From ea2f192496999c893f1c8ec8d2842db93302520e Mon Sep 17 00:00:00 2001 From: OCI DEX Release Bot Automation Date: Tue, 22 Sep 2026 19:56:39 +0000 Subject: [PATCH] Releasing version 3.97.0 --- CHANGELOG.md | 38 + 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 +- .../apmsynthetics/model/DnsConfiguration.java | 16 +- .../MaintenanceWindowRecurrenceType.java | 25 +- .../model/MaintenanceWindowSchedule.java | 103 +- .../model/MaintenanceWindowScheduleType.java | 53 + .../reflect-config.json | 12 + 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 | 390 ++- bmc-budget/pom.xml | 4 +- bmc-capacitymanagement/pom.xml | 4 +- bmc-certificates/pom.xml | 4 +- bmc-certificatesmanagement/pom.xml | 4 +- bmc-cims/pom.xml | 4 +- bmc-circuitbreaker/pom.xml | 2 +- bmc-cloudbridge/pom.xml | 4 +- bmc-cloudguard/pom.xml | 4 +- bmc-cloudmigrations/pom.xml | 4 +- bmc-clusterhealth/pom.xml | 4 +- bmc-clusterplacementgroups/pom.xml | 4 +- .../bmc-common-httpclient-jersey/pom.xml | 6 +- .../bmc-common-httpclient-jersey3/pom.xml | 6 +- bmc-common-httpclient-choices/pom.xml | 2 +- bmc-common-httpclient/pom.xml | 2 +- bmc-common/pom.xml | 8 +- .../oracle/bmc/http/internal/ClientCall.java | 1 + .../ClientCallTransientRequestLeakTest.java | 40 + bmc-computecloudatcustomer/pom.xml | 4 +- bmc-computeinstanceagent/pom.xml | 4 +- bmc-containerengine/pom.xml | 4 +- bmc-containerinstances/pom.xml | 4 +- bmc-containerregistry/pom.xml | 4 +- bmc-core/pom.xml | 6 +- bmc-costad/pom.xml | 4 +- bmc-dashboardservice/pom.xml | 4 +- bmc-database/pom.xml | 6 +- bmc-databasemanagement/pom.xml | 4 +- bmc-databasemigration/pom.xml | 4 +- 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 +- .../com/oracle/bmc/datasafe/DataSafe.java | 317 ++ .../oracle/bmc/datasafe/DataSafeAsync.java | 325 ++ .../bmc/datasafe/DataSafeAsyncClient.java | 856 +++++- .../oracle/bmc/datasafe/DataSafeClient.java | 795 ++++- .../bmc/datasafe/DataSafePaginators.java | 1155 ++++++++ .../oracle/bmc/datasafe/DataSafeWaiters.java | 107 + .../ChangeAuditProfileCompartmentDetails.java | 2 +- ...ngeCryptoAssessmentCompartmentDetails.java | 45 +- .../bmc/datasafe/model/CryptoAssessment.java | 1454 +++++++++ .../CryptoAssessmentBackupSetCollection.java | 135 + .../CryptoAssessmentBackupSetSummary.java | 738 +++++ .../CryptoAssessmentCbomItemCollection.java | 135 + .../CryptoAssessmentCbomItemSummary.java | 413 +++ ...CryptoAssessmentCertificateCollection.java | 135 + .../CryptoAssessmentCertificateSummary.java | 926 ++++++ .../model/CryptoAssessmentCollection.java | 133 + ...oAssessmentFindingAnalyticsCollection.java | 136 + ...yptoAssessmentFindingAnalyticsSummary.java | 516 ++++ ...ryptoAssessmentFindingCategorySummary.java | 207 ++ .../CryptoAssessmentFindingCollection.java | 285 ++ .../model/CryptoAssessmentFindingSummary.java | 782 +++++ ...CryptoAssessmentFindingSummaryMetrics.java | 493 +++ ...yptoAssessmentFindingTargetCollection.java | 44 +- .../CryptoAssessmentFindingTargetSummary.java | 474 +++ .../model/CryptoAssessmentKeyCollection.java | 43 +- .../model/CryptoAssessmentKeySummary.java | 729 +++++ .../CryptoAssessmentSqlnetParameters.java | 159 + .../model/CryptoAssessmentSummary.java | 1129 +++++++ .../CryptoAssessmentTdeObjectCollection.java | 135 + .../CryptoAssessmentTdeObjectSummary.java | 555 ++++ .../CryptoAssessmentWalletCollection.java | 134 + .../model/CryptoAssessmentWalletSummary.java | 513 ++++ .../bmc/datasafe/model/CryptoFeature.java | 54 + .../datasafe/model/CryptoFeatureStatus.java | 57 + .../datasafe/model/CryptoFindingCategory.java | 47 + .../datasafe/model/CryptoFindingStatus.java | 58 + .../datasafe/model/CryptoKeyCacheStatus.java | 55 + .../datasafe/model/CryptoKeystoreType.java | 33 +- .../bmc/datasafe/model/CryptoNnePosture.java | 511 ++++ .../model/CryptoObservedBooleanValue.java | 30 +- .../bmc/datasafe/model/CryptoPosture.java | 485 +++ .../datasafe/model/CryptoPostureCategory.java | 54 + .../model/CryptoQuantumReadiness.java | 56 + .../datasafe/model/CryptoSqlnetParameter.java | 198 ++ .../model/CryptoSqlnetParameterSource.java | 176 ++ .../model/CryptoSqlnetParameterValue.java | 223 ++ .../bmc/datasafe/model/CryptoTdePosture.java | 725 +++++ .../bmc/datasafe/model/CryptoTlsPosture.java | 468 +++ ...DownloadCryptoAssessmentReportDetails.java | 100 +- ...GenerateCryptoAssessmentReportDetails.java | 167 ++ ...teOnPremConnectorConfigurationDetails.java | 8 +- .../bmc/datasafe/model/ReportDefinition.java | 1 + .../model/ReportDefinitionDataSource.java | 1 + .../model/ReportDefinitionSummary.java | 1 + .../model/RunCryptoAssessmentDetails.java | 181 +- .../model/RunSecurityAssessmentDetails.java | 8 +- .../model/RunUserAssessmentDetails.java | 8 +- .../model/UpdateCryptoAssessmentDetails.java | 392 +++ .../bmc/datasafe/model/WorkRequest.java | 8 + .../datasafe/model/WorkRequestResource.java | 34 +- .../datasafe/model/WorkRequestSummary.java | 8 + .../ActivateTargetDatabaseRequest.java | 60 +- ...ngeCryptoAssessmentCompartmentRequest.java | 180 +- .../DeleteCryptoAssessmentRequest.java | 243 ++ ...DownloadCryptoAssessmentReportRequest.java | 166 +- ...GenerateCryptoAssessmentReportRequest.java | 224 +- .../requests/GetCryptoAssessmentRequest.java | 194 ++ ...yptoAssessmentSqlnetParametersRequest.java | 346 +++ .../requests/ListAlertAnalyticsRequest.java | 40 +- .../datasafe/requests/ListAlertsRequest.java | 40 +- ...ListCryptoAssessmentBackupSetsRequest.java | 717 +++++ .../ListCryptoAssessmentCbomItemsRequest.java | 197 ++ ...stCryptoAssessmentCertificatesRequest.java | 946 ++++++ ...yptoAssessmentFindingAnalyticsRequest.java | 638 ++++ ...CryptoAssessmentFindingTargetsRequest.java | 733 +++++ .../ListCryptoAssessmentFindingsRequest.java | 427 +++ .../ListCryptoAssessmentKeysRequest.java | 793 +++++ ...ListCryptoAssessmentTdeObjectsRequest.java | 885 ++++++ .../ListCryptoAssessmentWalletsRequest.java | 742 +++++ .../ListCryptoAssessmentsRequest.java | 904 ++++++ .../ListReportDefinitionsRequest.java | 1 + .../RefreshCryptoAssessmentRequest.java | 187 +- .../UpdateCryptoAssessmentRequest.java | 307 ++ ...geCryptoAssessmentCompartmentResponse.java | 40 +- .../DeleteCryptoAssessmentResponse.java | 38 +- ...ownloadCryptoAssessmentReportResponse.java | 83 +- ...enerateCryptoAssessmentReportResponse.java | 40 +- .../GetCryptoAssessmentResponse.java | 221 ++ ...ptoAssessmentSqlnetParametersResponse.java | 290 ++ ...istCryptoAssessmentBackupSetsResponse.java | 288 ++ ...ListCryptoAssessmentCbomItemsResponse.java | 78 +- ...tCryptoAssessmentCertificatesResponse.java | 289 ++ ...ptoAssessmentFindingAnalyticsResponse.java | 293 ++ ...ryptoAssessmentFindingTargetsResponse.java | 290 ++ .../ListCryptoAssessmentFindingsResponse.java | 242 ++ .../ListCryptoAssessmentKeysResponse.java | 287 ++ ...istCryptoAssessmentTdeObjectsResponse.java | 288 ++ .../ListCryptoAssessmentWalletsResponse.java | 288 ++ .../ListCryptoAssessmentsResponse.java | 283 ++ .../RefreshCryptoAssessmentResponse.java | 38 +- .../UpdateCryptoAssessmentResponse.java | 39 +- .../oci-java-sdk-datasafe/reflect-config.json | 960 +++++- bmc-datascience/pom.xml | 4 +- .../model/InstanceConfiguration.java | 63 +- ...teClusterInstanceConfigurationDetails.java | 51 + ...JobInfrastructureConfigurationDetails.java | 57 +- ...JobInfrastructureConfigurationDetails.java | 58 +- .../model/NotebookSessionConfigDetails.java | 54 + .../NotebookSessionConfigurationDetails.java | 54 + ...ineInfrastructureConfigurationDetails.java | 60 +- ...JobInfrastructureConfigurationDetails.java | 53 + ...teClusterInstanceConfigurationDetails.java | 54 +- bmc-dblm/pom.xml | 4 +- bmc-dbmulticloud/pom.xml | 4 +- bmc-ddfs/pom.xml | 4 +- .../oracle/bmc/ddfs/InstanceAsyncClient.java | 55 +- .../com/oracle/bmc/ddfs/InstanceClient.java | 55 +- 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 +- .../DistributedAutonomousDbService.java | 128 +- .../DistributedAutonomousDbServiceAsync.java | 134 +- ...ributedAutonomousDbServiceAsyncClient.java | 412 ++- .../DistributedAutonomousDbServiceClient.java | 389 ++- ...tributedAutonomousDbServicePaginators.java | 2 +- ...DistributedAutonomousDbServiceWaiters.java | 2 +- .../DistributedDbPrivateEndpointService.java | 20 +- ...tributedDbPrivateEndpointServiceAsync.java | 21 +- ...edDbPrivateEndpointServiceAsyncClient.java | 70 +- ...ributedDbPrivateEndpointServiceClient.java | 66 +- ...tedDbPrivateEndpointServicePaginators.java | 2 +- ...ibutedDbPrivateEndpointServiceWaiters.java | 2 +- .../DistributedDbService.java | 130 +- .../DistributedDbServiceAsync.java | 131 +- .../DistributedDbServiceAsyncClient.java | 375 ++- .../DistributedDbServiceClient.java | 353 ++- .../DistributedDbServicePaginators.java | 2 +- .../DistributedDbServiceWaiters.java | 2 +- .../DistributedDbWorkRequestService.java | 2 +- .../DistributedDbWorkRequestServiceAsync.java | 2 +- ...ibutedDbWorkRequestServiceAsyncClient.java | 18 +- ...DistributedDbWorkRequestServiceClient.java | 18 +- ...ributedDbWorkRequestServicePaginators.java | 2 +- ...istributedDbWorkRequestServiceWaiters.java | 2 +- .../distributeddatabase/model/ActionType.java | 2 +- ...tonomousDatabaseGdsControlNodeDetails.java | 2 +- ...tributedDatabaseGdsControlNodeDetails.java | 2 +- ...esourceManagementConfigurationDetails.java | 2 +- ...utonomousCompositeDataGuardShardSpace.java | 2 +- ...usCompositeDataGuardShardSpaceReplica.java | 2 +- .../AutonomousCompositeRaftShardSpace.java | 2 +- ...onomousCompositeShardSpaceRaftCluster.java | 2 +- .../AutonomousSystemDataGuardDatabase.java | 2 +- .../AutonomousSystemDataGuardReplica.java | 2 +- .../model/AutonomousSystemRaftCluster.java | 2 +- .../model/AutonomousUserShardSpace.java | 2 +- .../AutonomousUserShardSpaceReplica.java | 2 +- .../model/CatalogPeerWithDedicatedInfra.java | 673 ----- .../model/CatalogPeerWithExadbXs.java | 541 ---- ...alogPeerWithExadbXsNewVaultAndCluster.java | 602 ---- ...dAutonomousDatabaseCompartmentDetails.java | 2 +- ...ibutedAutonomousDbBackupConfigDetails.java | 2 +- ...DistributedDatabaseCompartmentDetails.java | 2 +- ...basePrivateEndpointCompartmentDetails.java | 2 +- ...hangeDistributedDbBackupConfigDetails.java | 2 +- .../model/CompositeDataGuardShardSpace.java | 2 +- .../CompositeDataGuardShardSpaceReplica.java | 2 +- .../model/CompositeRaftShardSpace.java | 2 +- .../model/CompositeShardSpaceRaftCluster.java | 2 +- ...DatabaseAutoResourceManagementDetails.java | 2 +- ...tedAutonomousDatabaseGsmWalletDetails.java | 2 +- ...tributedAutonomousDatabaseGsmsDetails.java | 2 +- ...DatabaseAutoResourceManagementDetails.java | 2 +- ...nfigureDistributedDatabaseGsmsDetails.java | 2 +- ...reateAutonomousCatalogDatabaseDetails.java | 2 +- .../model/CreateAutonomousCatalogDetails.java | 2 +- ...CreateAutonomousCatalogReplicaDetails.java | 2 +- ...usCompositeDataGuardShardSpaceDetails.java | 2 +- ...siteDataGuardShardSpaceReplicaDetails.java | 2 +- ...onomousCompositeRaftShardSpaceDetails.java | 2 +- ...CompositeShardSpaceRaftClusterDetails.java | 2 +- ...onomousSystemDataGuardDatabaseDetails.java | 2 +- ...tonomousSystemDataGuardReplicaDetails.java | 2 +- ...ateAutonomousSystemRaftClusterDetails.java | 2 +- ...CreateAutonomousUserShardSpaceDetails.java | 2 +- ...utonomousUserShardSpaceReplicaDetails.java | 2 +- ...eCatalogPeerWithDedicatedInfraDetails.java | 349 --- .../CreateCatalogPeerWithExadbXsDetails.java | 221 -- ...rWithExadbXsNewVaultAndClusterDetails.java | 288 -- ...teCompositeDataGuardShardSpaceDetails.java | 2 +- ...siteDataGuardShardSpaceReplicaDetails.java | 2 +- .../CreateCompositeRaftShardSpaceDetails.java | 2 +- ...CompositeShardSpaceRaftClusterDetails.java | 2 +- ...abaseCatalogWithDedicatedInfraDetails.java | 525 +++- ...eDistributedAutonomousDatabaseDetails.java | 691 ++--- ...utonomousDatabaseShardDatabaseDetails.java | 2 +- ...atabaseShardWithDedicatedInfraDetails.java | 583 ++-- ...ributedDatabaseCatalogDatabaseDetails.java | 120 +- ...abaseCatalogDatabaseWithDbHomeDetails.java | 160 +- ...baseCatalogDatabaseWithExadbXdDetails.java | 160 +- ...baseCatalogDatabaseWithExadbXsDetails.java | 160 +- ...eateDistributedDatabaseCatalogDetails.java | 165 +- ...tributedDatabaseCatalogReplicaDetails.java | 2 +- ...utedDatabaseCatalogWithExadbXsDetails.java | 472 --- ...seCatalogWithExadbXsNewClusterDetails.java | 160 +- ...gWithExadbXsNewVaultAndClusterDetails.java | 326 +- .../CreateDistributedDatabaseDetails.java | 694 ++--- ...ributedDatabasePrivateEndpointDetails.java | 54 +- ...stributedDatabaseShardDatabaseDetails.java | 248 ++ ...atabaseShardDatabaseWithDbHomeDetails.java | 160 +- ...tabaseShardDatabaseWithExadbXdDetails.java | 160 +- ...tabaseShardDatabaseWithExadbXsDetails.java | 160 +- ...ibutedDatabaseShardWithExadbXsDetails.java | 467 --- ...baseShardWithExadbXsNewClusterDetails.java | 160 +- ...dWithExadbXsNewVaultAndClusterDetails.java | 317 +- ...ateShardPeerWithDedicatedInfraDetails.java | 349 --- .../CreateShardPeerWithExadbXsDetails.java | 221 -- ...rWithExadbXsNewVaultAndClusterDetails.java | 288 -- .../CreateSystemDataGuardDatabaseDetails.java | 2 +- .../CreateSystemDataGuardReplicaDetails.java | 2 +- .../model/CreateSystemRaftClusterDetails.java | 2 +- .../model/CreateUserShardSpaceDetails.java | 2 +- .../CreateUserShardSpaceReplicaDetails.java | 2 +- .../model/DbStorageVaultDetails.java | 210 +- .../model/DistributedAutonomousDatabase.java | 1139 ++++--- ...DatabaseAssociatedWithPrivateEndpoint.java | 185 -- ...DatabaseAutoResourceManagementDetails.java | 2 +- .../DistributedAutonomousDatabaseCatalog.java | 193 +- ...utedAutonomousDatabaseCatalogDatabase.java | 2 +- ...butedAutonomousDatabaseCatalogReplica.java | 2 +- ...mousDatabaseCatalogWithDedicatedInfra.java | 552 ++-- ...stributedAutonomousDatabaseCollection.java | 2 +- ...tedAutonomousDatabaseConnectionString.java | 2 +- ...butedAutonomousDatabaseGdsControlNode.java | 2 +- ...AutonomousDatabaseGdsControlNodeImage.java | 2 +- .../DistributedAutonomousDatabaseGsm.java | 34 +- ...DistributedAutonomousDatabaseGsmImage.java | 50 +- ...stributedAutonomousDatabaseRaftMetric.java | 2 +- ...tributedAutonomousDatabaseRuChangeLog.java | 2 +- ...dAutonomousDatabaseRuChangeLogSummary.java | 2 +- .../DistributedAutonomousDatabaseShard.java | 178 -- ...ibutedAutonomousDatabaseShardDatabase.java | 2 +- ...nomousDatabaseShardWithDedicatedInfra.java | 595 ++-- .../DistributedAutonomousDatabaseSummary.java | 568 ++-- .../DistributedAutonomousDbBackupConfig.java | 2 +- ...tributedAutonomousDbBackupDestination.java | 95 +- .../DistributedAutonomousDbMetadata.java | 2 +- ...DistributedAutonomousDbProtectionMode.java | 2 +- .../model/DistributedDatabase.java | 1102 ++++--- ...DatabaseAssociatedWithPrivateEndpoint.java | 184 -- ...DatabaseAutoResourceManagementDetails.java | 2 +- .../model/DistributedDatabaseCatalog.java | 199 +- .../DistributedDatabaseCatalogDatabase.java | 2 +- ...utedDatabaseCatalogDatabaseWithDbHome.java | 2 +- ...tedDatabaseCatalogDatabaseWithExadbXd.java | 2 +- ...tedDatabaseCatalogDatabaseWithExadbXs.java | 2 +- ...eCatalogDatabaseWithExadbXsNewCluster.java | 2 +- ...DatabaseWithExadbXsNewVaultAndCluster.java | 2 +- ...tributedDatabaseCatalogReplicaDetails.java | 2 +- ...DistributedDatabaseCatalogWithExadbXs.java | 647 ---- ...eCatalogWithExadbXsNewVaultAndCluster.java | 708 ----- .../model/DistributedDatabaseCollection.java | 2 +- .../DistributedDatabaseGdsControlNode.java | 2 +- .../model/DistributedDatabaseGsm.java | 18 +- .../DistributedDatabasePrivateEndpoint.java | 164 +- ...utedDatabasePrivateEndpointCollection.java | 2 +- ...ributedDatabasePrivateEndpointSummary.java | 50 +- .../model/DistributedDatabaseRaftMetric.java | 2 +- .../model/DistributedDatabaseRuChangeLog.java | 2 +- ...DistributedDatabaseRuChangeLogSummary.java | 2 +- .../model/DistributedDatabaseShard.java | 186 -- .../DistributedDatabaseShardDatabase.java | 2 +- ...ibutedDatabaseShardDatabaseWithDbHome.java | 2 +- ...butedDatabaseShardDatabaseWithExadbXd.java | 2 +- ...butedDatabaseShardDatabaseWithExadbXs.java | 2 +- ...aseShardDatabaseWithExadbXsNewCluster.java | 2 +- ...DatabaseWithExadbXsNewVaultAndCluster.java | 2 +- .../DistributedDatabaseShardWithExadbXs.java | 696 ----- ...aseShardWithExadbXsNewVaultAndCluster.java | 757 ----- .../model/DistributedDatabaseSummary.java | 524 ++-- .../model/DistributedDbBackupConfig.java | 2 +- .../model/DistributedDbBackupDestination.java | 153 +- .../model/DistributedDbConnectionString.java | 2 +- .../DistributedDbGdsControlNodeImage.java | 2 +- .../model/DistributedDbGsmImage.java | 50 +- .../model/DistributedDbMetadata.java | 2 +- .../model/DistributedDbProtectionMode.java | 2 +- .../model/DistributedDbStorageVault.java | 218 +- .../model/DistributedDbTransportType.java | 4 +- .../model/DistributedDbVmCluster.java | 120 +- ...ibutedAutonomousDatabaseWalletDetails.java | 40 +- ...erateDistributedDatabaseWalletDetails.java | 40 +- ...onomousDatabaseReplicationUnitDetails.java | 2 +- ...ributedDatabaseReplicationUnitDetails.java | 2 +- .../model/OperationStatus.java | 2 +- .../model/OperationType.java | 13 +- ...hDistributedAutonomousDatabaseDetails.java | 6 +- .../PatchDistributedDatabaseDetails.java | 2 +- ...ributedDatabasePrivateEndpointDetails.java | 2 +- .../model/PatchInsertInstruction.java | 2 +- .../model/PatchInstruction.java | 2 +- .../model/PatchMergeInstruction.java | 2 +- .../model/PatchRemoveInstruction.java | 2 +- ...eDistributedAutonomousDatabaseDetails.java | 2 +- ...tedAutonomousDatabasePasswordsDetails.java | 2 +- .../RotateDistributedDatabaseDetails.java | 2 +- ...teDistributedDatabasePasswordsDetails.java | 2 +- ...tributedAutonomousDatabaseGsmsDetails.java | 2 +- .../ScaleDistributedDatabaseGsmsDetails.java | 2 +- .../model/ShardPeerWithDedicatedInfra.java | 673 ----- .../model/ShardPeerWithExadbXs.java | 541 ---- ...hardPeerWithExadbXsNewVaultAndCluster.java | 601 ---- .../distributeddatabase/model/SortOrder.java | 2 +- .../model/SystemDataGuardDatabase.java | 2 +- .../model/SystemDataGuardReplica.java | 2 +- .../model/SystemRaftCluster.java | 2 +- ...eDistributedAutonomousDatabaseDetails.java | 74 +- .../UpdateDistributedDatabaseDetails.java | 74 +- ...ributedDatabasePrivateEndpointDetails.java | 47 +- ...edCertificateAndGenerateWalletDetails.java | 150 - .../model/UserShardSpace.java | 2 +- .../model/UserShardSpaceReplica.java | 2 +- .../model/VcnNsgIdsDetails.java | 2 +- .../model/VmClusterDetails.java | 108 +- .../model/WorkRequest.java | 2 +- .../model/WorkRequestError.java | 2 +- .../model/WorkRequestErrorCollection.java | 2 +- .../model/WorkRequestLogEntry.java | 2 +- .../model/WorkRequestLogEntryCollection.java | 2 +- .../model/WorkRequestResource.java | 2 +- .../model/WorkRequestResourceMetadataKey.java | 2 +- .../model/WorkRequestSummary.java | 2 +- .../model/WorkRequestSummaryCollection.java | 2 +- ...tonomousDatabaseGdsControlNodeRequest.java | 10 +- ...tributedDatabaseGdsControlNodeRequest.java | 10 +- ...dAutonomousDatabaseCompartmentRequest.java | 10 +- ...ibutedAutonomousDbBackupConfigRequest.java | 10 +- ...DistributedDatabaseCompartmentRequest.java | 10 +- ...basePrivateEndpointCompartmentRequest.java | 2 +- ...hangeDistributedDbBackupConfigRequest.java | 10 +- ...DatabaseAutoResourceManagementRequest.java | 22 +- ...tedAutonomousDatabaseGsmWalletRequest.java | 10 +- ...tributedAutonomousDatabaseGsmsRequest.java | 10 +- ...utedAutonomousDatabaseShardingRequest.java | 10 +- ...DatabaseAutoResourceManagementRequest.java | 22 +- ...nfigureDistributedDatabaseGsmsRequest.java | 10 +- ...ureDistributedDatabaseShardingRequest.java | 10 +- ...eDistributedAutonomousDatabaseRequest.java | 2 +- ...ributedDatabasePrivateEndpointRequest.java | 2 +- .../CreateDistributedDatabaseRequest.java | 2 +- ...eDistributedAutonomousDatabaseRequest.java | 10 +- ...ributedDatabasePrivateEndpointRequest.java | 2 +- .../DeleteDistributedDatabaseRequest.java | 53 +- ...seGsmCertificateSigningRequestRequest.java | 311 -- ...seGsmCertificateSigningRequestRequest.java | 303 -- ...seGsmCertificateSigningRequestRequest.java | 338 --- ...ibutedAutonomousDatabaseWalletRequest.java | 10 +- ...seGsmCertificateSigningRequestRequest.java | 330 --- ...erateDistributedDatabaseWalletRequest.java | 10 +- ...edAutonomousDatabaseRaftMetricRequest.java | 10 +- ...tDistributedAutonomousDatabaseRequest.java | 20 +- ...dAutonomousDatabaseRuChangeLogRequest.java | 6 +- ...ributedDatabasePrivateEndpointRequest.java | 2 +- ...tDistributedDatabaseRaftMetricRequest.java | 10 +- .../GetDistributedDatabaseRequest.java | 20 +- ...DistributedDatabaseRuChangeLogRequest.java | 6 +- .../requests/GetWorkRequestRequest.java | 2 +- ...DistributedAutonomousDatabasesRequest.java | 148 +- ...ibutedDatabasePrivateEndpointsRequest.java | 49 +- .../ListDistributedDatabasesRequest.java | 146 +- .../ListWorkRequestErrorsRequest.java | 18 +- .../requests/ListWorkRequestLogsRequest.java | 18 +- .../requests/ListWorkRequestsRequest.java | 2 +- ...onomousDatabaseReplicationUnitRequest.java | 10 +- ...ributedDatabaseReplicationUnitRequest.java | 10 +- ...hDistributedAutonomousDatabaseRequest.java | 10 +- ...ributedDatabasePrivateEndpointRequest.java | 25 +- .../PatchDistributedDatabaseRequest.java | 10 +- ...utedAutonomousDatabaseResourceRequest.java | 47 +- ...ledDistributedDatabaseResourceRequest.java | 47 +- .../ReinstateProxyInstanceRequest.java | 2 +- ...tedAutonomousDatabasePasswordsRequest.java | 203 +- ...teDistributedDatabasePasswordsRequest.java | 189 +- ...tributedAutonomousDatabaseGsmsRequest.java | 23 +- .../ScaleDistributedDatabaseGsmsRequest.java | 25 +- ...tDistributedAutonomousDatabaseRequest.java | 10 +- .../StartDistributedDatabaseRequest.java | 10 +- ...pDistributedAutonomousDatabaseRequest.java | 10 +- .../StopDistributedDatabaseRequest.java | 10 +- ...eDistributedAutonomousDatabaseRequest.java | 10 +- ...ributedDatabasePrivateEndpointRequest.java | 2 +- .../UpdateDistributedDatabaseRequest.java | 10 +- ...edCertificateAndGenerateWalletRequest.java | 410 --- ...edCertificateAndGenerateWalletRequest.java | 397 --- ...utedAutonomousDatabaseCaBundleRequest.java | 10 +- ...butedAutonomousDatabaseNetworkRequest.java | 66 +- ...dateDistributedDatabaseNetworkRequest.java | 66 +- ...onomousDatabaseGdsControlNodeResponse.java | 2 +- ...ributedDatabaseGdsControlNodeResponse.java | 2 +- ...AutonomousDatabaseCompartmentResponse.java | 2 +- ...butedAutonomousDbBackupConfigResponse.java | 2 +- ...istributedDatabaseCompartmentResponse.java | 2 +- ...asePrivateEndpointCompartmentResponse.java | 2 +- ...angeDistributedDbBackupConfigResponse.java | 2 +- ...atabaseAutoResourceManagementResponse.java | 14 +- ...edAutonomousDatabaseGsmWalletResponse.java | 2 +- ...ributedAutonomousDatabaseGsmsResponse.java | 2 +- ...tedAutonomousDatabaseShardingResponse.java | 2 +- ...atabaseAutoResourceManagementResponse.java | 15 +- ...figureDistributedDatabaseGsmsResponse.java | 2 +- ...reDistributedDatabaseShardingResponse.java | 2 +- ...DistributedAutonomousDatabaseResponse.java | 2 +- ...ibutedDatabasePrivateEndpointResponse.java | 2 +- .../CreateDistributedDatabaseResponse.java | 2 +- ...DistributedAutonomousDatabaseResponse.java | 2 +- ...ibutedDatabasePrivateEndpointResponse.java | 2 +- .../DeleteDistributedDatabaseResponse.java | 2 +- ...eGsmCertificateSigningRequestResponse.java | 288 -- ...eGsmCertificateSigningRequestResponse.java | 285 -- ...eGsmCertificateSigningRequestResponse.java | 191 -- ...butedAutonomousDatabaseWalletResponse.java | 2 +- ...eGsmCertificateSigningRequestResponse.java | 188 -- ...rateDistributedDatabaseWalletResponse.java | 2 +- ...dAutonomousDatabaseRaftMetricResponse.java | 2 +- ...DistributedAutonomousDatabaseResponse.java | 2 +- ...AutonomousDatabaseRuChangeLogResponse.java | 14 +- ...ibutedDatabasePrivateEndpointResponse.java | 2 +- ...DistributedDatabaseRaftMetricResponse.java | 2 +- .../GetDistributedDatabaseResponse.java | 2 +- ...istributedDatabaseRuChangeLogResponse.java | 14 +- .../responses/GetWorkRequestResponse.java | 2 +- ...istributedAutonomousDatabasesResponse.java | 2 +- ...butedDatabasePrivateEndpointsResponse.java | 2 +- .../ListDistributedDatabasesResponse.java | 2 +- .../ListWorkRequestErrorsResponse.java | 2 +- .../ListWorkRequestLogsResponse.java | 2 +- .../responses/ListWorkRequestsResponse.java | 2 +- ...nomousDatabaseReplicationUnitResponse.java | 2 +- ...ibutedDatabaseReplicationUnitResponse.java | 2 +- ...DistributedAutonomousDatabaseResponse.java | 2 +- ...ibutedDatabasePrivateEndpointResponse.java | 4 +- .../PatchDistributedDatabaseResponse.java | 2 +- ...tedAutonomousDatabaseResourceResponse.java | 2 +- ...edDistributedDatabaseResourceResponse.java | 2 +- .../ReinstateProxyInstanceResponse.java | 2 +- ...edAutonomousDatabasePasswordsResponse.java | 2 +- ...eDistributedDatabasePasswordsResponse.java | 2 +- ...ributedAutonomousDatabaseGsmsResponse.java | 4 +- .../ScaleDistributedDatabaseGsmsResponse.java | 4 +- ...DistributedAutonomousDatabaseResponse.java | 2 +- .../StartDistributedDatabaseResponse.java | 2 +- ...DistributedAutonomousDatabaseResponse.java | 2 +- .../StopDistributedDatabaseResponse.java | 2 +- ...DistributedAutonomousDatabaseResponse.java | 2 +- ...ibutedDatabasePrivateEndpointResponse.java | 2 +- .../UpdateDistributedDatabaseResponse.java | 2 +- ...dCertificateAndGenerateWalletResponse.java | 192 -- ...dCertificateAndGenerateWalletResponse.java | 188 -- ...tedAutonomousDatabaseCaBundleResponse.java | 2 +- ...utedAutonomousDatabaseNetworkResponse.java | 2 +- ...ateDistributedDatabaseNetworkResponse.java | 2 +- .../reflect-config.json | 1436 +++++++-- .../bmc/distributeddatabase/client.properties | 2 +- 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 - .../DistributedDbServiceAsync.java | 457 --- .../DistributedDbServiceAsyncClient.java | 1161 -------- .../DistributedDbServiceClient.java | 1172 -------- .../DistributedDbServicePaginators.java | 169 -- .../DistributedDbServiceWaiters.java | 147 - ...tonomousDatabaseGdsControlNodeDetails.java | 181 -- ...tributedDatabaseGdsControlNodeDetails.java | 180 -- ...ibutedAutonomousDbBackupConfigDetails.java | 128 - ...hangeDistributedDbBackupConfigDetails.java | 125 - ...tedAutonomousDatabaseGsmWalletDetails.java | 192 -- ...tributedAutonomousDatabaseGsmsDetails.java | 192 -- ...nfigureDistributedDatabaseGsmsDetails.java | 191 -- ...abaseCatalogWithDedicatedInfraDetails.java | 764 ----- ...eDistributedAutonomousDatabaseDetails.java | 1267 -------- ...atabaseShardWithDedicatedInfraDetails.java | 815 ----- ...eateDistributedDatabaseCatalogDetails.java | 167 -- ...gWithExadbXsNewVaultAndClusterDetails.java | 528 ---- .../CreateDistributedDatabaseDetails.java | 1270 -------- ...dWithExadbXsNewVaultAndClusterDetails.java | 527 ---- .../model/DbStorageVaultDetails.java | 386 --- .../model/DistributedAutonomousDatabase.java | 2026 ------------- .../DistributedAutonomousDatabaseCatalog.java | 167 -- ...mousDatabaseCatalogWithDedicatedInfra.java | 888 ------ .../DistributedAutonomousDatabaseGsm.java | 552 ---- ...DistributedAutonomousDatabaseGsmImage.java | 178 -- ...stributedAutonomousDatabaseRaftMetric.java | 171 -- ...nomousDatabaseShardWithDedicatedInfra.java | 884 ------ .../DistributedAutonomousDatabaseSummary.java | 1451 --------- .../DistributedAutonomousDbBackupConfig.java | 200 -- ...tributedAutonomousDbBackupDestination.java | 406 --- .../model/DistributedDatabase.java | 2004 ------------- .../model/DistributedDatabaseCatalog.java | 165 -- .../model/DistributedDatabaseGsm.java | 552 ---- .../model/DistributedDatabaseRaftMetric.java | 171 -- .../model/DistributedDatabaseSummary.java | 1401 --------- .../model/DistributedDbBackupConfig.java | 887 ------ .../model/DistributedDbBackupDestination.java | 405 --- .../model/DistributedDbStorageVault.java | 479 --- .../model/DistributedDbVmCluster.java | 1070 ------- ...ibutedAutonomousDatabaseWalletDetails.java | 175 -- ...erateDistributedDatabaseWalletDetails.java | 175 -- ...onomousDatabaseReplicationUnitDetails.java | 239 -- ...ributedDatabaseReplicationUnitDetails.java | 239 -- .../model/OperationType.java | 89 - ...hDistributedAutonomousDatabaseDetails.java | 138 - .../model/PatchInstruction.java | 144 - .../model/SortOrder.java | 40 - ...eDistributedAutonomousDatabaseDetails.java | 295 -- .../UpdateDistributedDatabaseDetails.java | 294 -- .../model/VmClusterDetails.java | 965 ------ ...tonomousDatabaseGdsControlNodeRequest.java | 393 --- ...dAutonomousDatabaseCompartmentRequest.java | 385 --- ...ibutedAutonomousDbBackupConfigRequest.java | 392 --- ...DistributedDatabaseCompartmentRequest.java | 375 --- ...basePrivateEndpointCompartmentRequest.java | 387 --- ...tedAutonomousDatabaseGsmWalletRequest.java | 387 --- ...tributedAutonomousDatabaseGsmsRequest.java | 382 --- ...utedAutonomousDatabaseShardingRequest.java | 400 --- ...nfigureDistributedDatabaseGsmsRequest.java | 368 --- ...eDistributedAutonomousDatabaseRequest.java | 301 -- ...ributedDatabasePrivateEndpointRequest.java | 305 -- ...ibutedAutonomousDatabaseWalletRequest.java | 384 --- ...tDistributedAutonomousDatabaseRequest.java | 276 -- ...ributedDatabasePrivateEndpointRequest.java | 253 -- .../GetDistributedDatabaseRequest.java | 271 -- ...DistributedAutonomousDatabasesRequest.java | 616 ---- ...onomousDatabaseReplicationUnitRequest.java | 393 --- ...ributedDatabaseReplicationUnitRequest.java | 379 --- ...hDistributedAutonomousDatabaseRequest.java | 385 --- ...utedAutonomousDatabaseResourceRequest.java | 330 --- ...ledDistributedDatabaseResourceRequest.java | 327 -- ...tedAutonomousDatabasePasswordsRequest.java | 395 --- ...teDistributedDatabasePasswordsRequest.java | 377 --- ...pDistributedAutonomousDatabaseRequest.java | 301 -- ...eDistributedAutonomousDatabaseRequest.java | 326 -- ...ributedDatabasePrivateEndpointRequest.java | 385 --- ...butedAutonomousDatabaseNetworkRequest.java | 331 --- ...dateDistributedDatabaseNetworkRequest.java | 326 -- ...onomousDatabaseGdsControlNodeResponse.java | 188 -- ...AutonomousDatabaseCompartmentResponse.java | 188 -- ...istributedDatabaseCompartmentResponse.java | 188 -- ...asePrivateEndpointCompartmentResponse.java | 188 -- ...edAutonomousDatabaseGsmWalletResponse.java | 188 -- ...ributedAutonomousDatabaseGsmsResponse.java | 188 -- ...tedAutonomousDatabaseShardingResponse.java | 188 -- ...reDistributedDatabaseShardingResponse.java | 188 -- ...DistributedAutonomousDatabaseResponse.java | 271 -- ...ibutedDatabasePrivateEndpointResponse.java | 272 -- .../CreateDistributedDatabaseResponse.java | 264 -- ...DistributedAutonomousDatabaseResponse.java | 188 -- ...ibutedDatabasePrivateEndpointResponse.java | 188 -- .../DeleteDistributedDatabaseResponse.java | 186 -- ...butedAutonomousDatabaseWalletResponse.java | 285 -- ...dAutonomousDatabaseRaftMetricResponse.java | 194 -- ...nomousDatabaseReplicationUnitResponse.java | 188 -- ...tedAutonomousDatabaseResourceResponse.java | 188 -- ...edDistributedDatabaseResourceResponse.java | 188 -- ...edAutonomousDatabasePasswordsResponse.java | 188 -- ...eDistributedDatabasePasswordsResponse.java | 188 -- ...DistributedAutonomousDatabaseResponse.java | 188 -- ...ibutedDatabasePrivateEndpointResponse.java | 228 -- ...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 +- .../oracle/bmc/functions/FunctionsInvoke.java | 4 +- .../bmc/functions/FunctionsInvokeAsync.java | 4 +- .../functions/FunctionsInvokeAsyncClient.java | 6 +- .../bmc/functions/FunctionsInvokeClient.java | 6 +- .../bmc/functions/FunctionsManagement.java | 114 +- .../functions/FunctionsManagementAsync.java | 113 +- .../FunctionsManagementAsyncClient.java | 248 +- .../functions/FunctionsManagementClient.java | 235 +- .../FunctionsManagementPaginators.java | 252 +- .../functions/FunctionsManagementWaiters.java | 222 +- .../bmc/functions/WorkRequestManagement.java | 51 +- .../functions/WorkRequestManagementAsync.java | 37 +- .../WorkRequestManagementAsyncClient.java | 120 +- .../WorkRequestManagementClient.java | 129 +- .../WorkRequestManagementPaginators.java | 83 +- .../WorkRequestManagementWaiters.java | 19 +- .../bmc/functions}/model/ActionType.java | 4 +- .../bmc/functions/model/Application.java | 7 +- .../model/ApplicationLoggingConfig.java | 7 +- .../functions/model/ApplicationSummary.java | 4 +- .../model/ApplicationTraceConfig.java | 5 +- .../model/ArchiveFunctionSourceDetails.java | 241 ++ .../functions/model/ArchiveSourceDetails.java | 130 + .../ChangeApplicationCompartmentDetails.java | 5 +- .../bmc/functions/model/ConfigDetails.java | 6 +- .../ConstantProvisionedConcurrencyConfig.java | 5 +- .../ContainerImageFunctionSourceDetails.java | 199 ++ .../model/CreateApplicationDetails.java | 2 +- .../CreateArchiveFunctionSourceDetails.java | 200 ++ .../model/CreateArchiveSourceDetails.java | 56 +- ...teContainerImageFunctionSourceDetails.java | 200 ++ .../CreateDirectArchiveSourceDetails.java | 156 + .../model/CreateFunctionDetails.java | 119 +- .../model/CreateFunctionSourceDetails.java | 70 +- .../CreateFunctionUpdateRuntimeConfig.java | 87 +- .../model/CreateManualRuntimeConfig.java | 184 ++ ...eateObjectStorageArchiveSourceDetails.java | 255 ++ .../CreatePreBuiltFunctionSourceDetails.java | 89 +- .../functions/model/CreateRuntimeConfig.java | 114 + .../model/DirectArchiveSourceDetails.java | 43 +- .../model/FailureDestinationDetails.java | 9 +- .../oracle/bmc/functions/model/Function.java | 111 +- .../FunctionProvisionedConcurrencyConfig.java | 5 +- .../model/FunctionSourceDetails.java | 15 +- .../bmc/functions/model/FunctionSummary.java | 108 +- .../functions/model/FunctionTraceConfig.java | 5 +- .../model/FunctionUpdateRuntimeConfig.java | 184 ++ .../bmc/functions/model/FunctionsRuntime.java | 773 +++++ .../model/FunctionsRuntimeCollection.java | 133 + .../model/FunctionsRuntimeSummary.java | 711 +++++ .../model/FunctionsRuntimeVersion.java | 772 +++++ .../FunctionsRuntimeVersionCollection.java | 134 + .../model/FunctionsRuntimeVersionSummary.java | 708 +++++ .../functions/model/ImagePolicyConfig.java | 5 +- .../bmc/functions/model/KeyDetails.java | 5 +- .../functions/model/ManualRuntimeConfig.java | 182 ++ .../model/NoneFailureDestinationDetails.java | 2 +- .../NoneProvisionedConcurrencyConfig.java | 2 +- .../model/NoneSuccessDestinationDetails.java | 4 +- ...NotificationFailureDestinationDetails.java | 6 +- ...NotificationSuccessDestinationDetails.java | 7 +- .../ObjectStorageArchiveSourceDetails.java | 255 ++ .../bmc/functions}/model/OperationStatus.java | 8 +- .../bmc/functions/model/OperationType.java | 63 + .../bmc/functions/model/PbfListing.java | 8 +- .../functions/model/PbfListingSummary.java | 4 +- .../functions/model/PbfListingVersion.java | 8 +- .../model/PbfListingVersionSummary.java | 4 +- .../model/PbfListingVersionsCollection.java | 6 +- .../model/PbfListingsCollection.java | 6 +- .../bmc/functions/model/PolicyDetails.java | 5 +- .../model/PreBuiltFunctionSourceDetails.java | 5 +- .../bmc/functions/model/PublisherDetails.java | 5 +- .../model/QueueFailureDestinationDetails.java | 6 +- .../model/QueueSuccessDestinationDetails.java | 6 +- .../functions/model/RequirementDetails.java | 7 +- .../bmc/functions/model/RuntimeConfig.java | 127 + .../StreamFailureDestinationDetails.java | 6 +- .../StreamSuccessDestinationDetails.java | 6 +- .../model/SuccessDestinationDetails.java | 8 +- .../oracle/bmc/functions/model/Trigger.java | 5 +- .../bmc/functions/model/TriggerSummary.java | 4 +- .../functions/model/TriggersCollection.java | 6 +- .../model/UpdateApplicationDetails.java | 5 +- .../UpdateArchiveFunctionSourceDetails.java | 200 ++ .../model/UpdateArchiveSourceDetails.java | 48 +- ...teContainerImageFunctionSourceDetails.java | 200 ++ .../UpdateDirectArchiveSourceDetails.java | 106 +- .../model/UpdateFunctionDetails.java | 144 +- .../model/UpdateFunctionSourceDetails.java | 48 +- .../UpdateFunctionUpdateRuntimeConfig.java | 141 + .../model/UpdateManualRuntimeConfig.java | 184 ++ ...dateObjectStorageArchiveSourceDetails.java | 253 ++ .../functions/model/UpdateRuntimeConfig.java | 114 + .../bmc/functions}/model/WorkRequest.java | 183 +- .../functions}/model/WorkRequestError.java | 46 +- .../model/WorkRequestErrorCollection.java | 16 +- .../functions}/model/WorkRequestLogEntry.java | 30 +- .../model/WorkRequestLogEntryCollection.java | 15 +- .../functions}/model/WorkRequestResource.java | 68 +- .../model/WorkRequestResourceMetadataKey.java | 6 +- .../functions/model/WorkRequestSummary.java | 543 ++++ .../model/WorkRequestSummaryCollection.java | 16 +- .../requests/CancelWorkRequestRequest.java | 259 ++ .../ChangeApplicationCompartmentRequest.java | 2 +- .../requests/CreateApplicationRequest.java | 2 +- .../requests/CreateFunctionRequest.java | 2 +- .../requests/DeleteApplicationRequest.java | 2 +- .../requests/DeleteFunctionRequest.java | 2 +- .../requests/GetApplicationRequest.java | 2 +- .../requests/GetFunctionRequest.java | 2 +- .../requests/GetFunctionsRuntimeRequest.java | 204 ++ .../GetFunctionsRuntimeVersionRequest.java | 210 ++ .../requests/GetPbfListingRequest.java | 2 +- .../requests/GetPbfListingVersionRequest.java | 2 +- .../requests/GetWorkRequestRequest.java | 44 +- .../requests/InvokeFunctionRequest.java | 2 +- .../requests/ListApplicationsRequest.java | 2 +- .../requests/ListFunctionsRequest.java | 2 +- .../ListFunctionsRuntimeVersionsRequest.java | 650 ++++ .../ListFunctionsRuntimesRequest.java | 631 ++++ .../ListPbfListingVersionsRequest.java | 2 +- .../requests/ListPbfListingsRequest.java | 2 +- .../requests/ListTriggersRequest.java | 2 +- .../ListWorkRequestErrorsRequest.java | 172 +- .../requests/ListWorkRequestLogsRequest.java | 172 +- .../requests/ListWorkRequestsRequest.java | 538 ++++ .../requests/UpdateApplicationRequest.java | 2 +- .../requests/UpdateFunctionRequest.java | 2 +- .../responses/CancelWorkRequestResponse.java | 76 +- .../ChangeApplicationCompartmentResponse.java | 62 +- .../responses/CreateApplicationResponse.java | 51 +- .../responses/CreateFunctionResponse.java | 51 +- .../responses/DeleteApplicationResponse.java | 63 +- .../responses/DeleteFunctionResponse.java | 63 +- .../responses/GetApplicationResponse.java | 2 +- .../responses/GetFunctionResponse.java | 2 +- .../GetFunctionsRuntimeResponse.java | 211 ++ .../GetFunctionsRuntimeVersionResponse.java | 215 ++ .../responses/GetPbfListingResponse.java | 2 +- .../GetPbfListingVersionResponse.java | 2 +- .../responses/GetWorkRequestResponse.java | 52 +- .../responses/InvokeFunctionResponse.java | 2 +- .../responses/ListApplicationsResponse.java | 2 +- .../responses/ListFunctionsResponse.java | 2 +- .../ListFunctionsRuntimeVersionsResponse.java | 238 ++ .../ListFunctionsRuntimesResponse.java | 234 ++ .../ListPbfListingVersionsResponse.java | 2 +- .../responses/ListPbfListingsResponse.java | 2 +- .../responses/ListTriggersResponse.java | 2 +- .../ListWorkRequestErrorsResponse.java | 102 +- .../ListWorkRequestLogsResponse.java | 100 +- .../responses/ListWorkRequestsResponse.java | 16 +- .../responses/UpdateApplicationResponse.java | 99 +- .../responses/UpdateFunctionResponse.java | 99 +- .../reflect-config.json | 772 ++++- .../oracle/bmc/functions/client.properties | 2 +- bmc-fusionapps/pom.xml | 4 +- bmc-gdp/pom.xml | 4 +- bmc-generativeai/pom.xml | 4 +- .../oracle/bmc/generativeai/GenerativeAi.java | 117 + .../bmc/generativeai/GenerativeAiAsync.java | 118 + .../generativeai/GenerativeAiAsyncClient.java | 292 ++ .../bmc/generativeai/GenerativeAiClient.java | 270 ++ .../generativeai/GenerativeAiPaginators.java | 237 ++ .../bmc/generativeai/GenerativeAiWaiters.java | 109 + .../bmc/generativeai/model/Availability.java | 399 +++ ...hangeRoutingProfileCompartmentDetails.java | 44 +- .../model/CreateRoutingProfileDetails.java | 394 +++ .../generativeai/model/ModelDiscovery.java | 504 ++++ .../model/ModelDiscoveryCollection.java | 134 + .../bmc/generativeai/model/ModelModality.java | 55 + .../model/ModelModalitySupport.java | 169 ++ .../model/ModelRoutingPolicy.java | 86 +- .../bmc/generativeai/model/Parameter.java | 339 +++ .../model/PreviousRoutingProfileState.java | 663 +++++ .../model/RegionRoutingPolicy.java | 91 +- .../generativeai/model/RoutingProfile.java | 514 ++-- .../model/RoutingProfileCollection.java | 134 + .../model/RoutingProfileSummary.java | 436 ++- .../bmc/generativeai/model/ServingMode.java | 57 + .../model/UpdateRoutingProfileDetails.java | 166 +- ...hangeRoutingProfileCompartmentRequest.java | 248 +- .../requests/CreateRoutingProfileRequest.java | 164 +- .../requests/DeleteRoutingProfileRequest.java | 173 +- .../requests/GetRoutingProfileRequest.java | 216 ++ .../requests/ListModelDiscoveryRequest.java | 711 +++++ .../requests/ListRoutingProfilesRequest.java | 497 ++++ .../requests/UpdateRoutingProfileRequest.java | 220 +- ...angeRoutingProfileCompartmentResponse.java | 76 +- .../CreateRoutingProfileResponse.java | 211 ++ .../DeleteRoutingProfileResponse.java | 136 + .../responses/GetRoutingProfileResponse.java | 211 ++ .../responses/ListModelDiscoveryResponse.java | 232 ++ .../ListRoutingProfilesResponse.java | 232 ++ .../UpdateRoutingProfileResponse.java | 67 +- .../reflect-config.json | 220 ++ 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 +- .../AdministratorArtifact.java | 82 + .../AdministratorArtifactAsync.java | 80 + .../AdministratorArtifactAsyncClient.java | 296 ++ .../AdministratorArtifactClient.java | 284 ++ .../AdministratorPublisher.java | 81 + .../AdministratorPublisherAsync.java | 80 + .../AdministratorPublisherAsyncClient.java | 289 ++ .../AdministratorPublisherClient.java | 276 ++ .../MarketplaceAdministrator.java | 295 +- .../MarketplaceAdministratorAsync.java | 343 +++ .../MarketplaceAdministratorAsyncClient.java | 873 ++++++ .../MarketplaceAdministratorClient.java | 822 +++++ .../MarketplaceAdministratorPaginators.java | 1050 +++++++ .../MarketplacePublisher.java | 159 +- .../MarketplacePublisherAsync.java | 134 +- .../MarketplacePublisherAsyncClient.java | 302 +- .../MarketplacePublisherClient.java | 275 +- .../MarketplacePublisherPaginators.java | 134 + .../MarketplacePublisherWaiters.java | 124 + .../model/AdditionalFilter.java | 54 + .../model/AdminAiAgentListingRevision.java | 1029 +++++++ .../model/AdminArtifact.java | 366 +++ .../model/AdminArtifactCollection.java | 40 +- .../model/AdminArtifactSummary.java | 618 ++++ .../model/AdminBillToCountries.java | 108 +- .../model/AdminContainerImageArtifact.java | 323 ++ .../model/AdminContainerPackage.java | 386 +++ .../model/AdminCustomerSuccessAttachment.java | 507 ++++ .../model/AdminHelmChartPackage.java | 386 +++ .../model/AdminKubernetesImageArtifact.java | 364 +++ .../model/AdminLeadGenListingRevision.java | 931 ++++++ .../model/AdminListing.java | 790 +++++ .../model/AdminListingProduct.java | 294 ++ .../model/AdminListingRevision.java | 705 +++++ .../model/AdminListingRevisionAttachment.java | 344 +++ ...inListingRevisionAttachmentCollection.java | 136 + ...AdminListingRevisionAttachmentSummary.java | 781 +++++ .../model/AdminListingRevisionCollection.java | 133 + .../model/AdminListingRevisionPackage.java | 505 ++++ ...AdminListingRevisionPackageCollection.java | 135 + .../AdminListingRevisionPackageSummary.java | 780 +++++ .../model/AdminListingRevisionSummary.java | 1409 +++++++++ .../model/AdminMachineImageArtifact.java | 321 ++ .../model/AdminMachineImagePackage.java | 415 +++ .../model/AdminMarket.java | 244 ++ .../model/AdminOciListingRevision.java | 1099 +++++++ .../model/AdminOpnPartnerSummary.java | 945 ++++++ .../model/AdminPublisher.java | 1690 +++++++++++ .../model/AdminPublisherSku.java | 245 ++ .../model/AdminPublisherSkuCollection.java | 133 + .../model/AdminPublisherSummary.java | 1472 +++++++++ .../model/AdminRelatedDocumentAttachment.java | 396 +++ .../AdminReviewSupportDocumentAttachment.java | 470 +++ .../model/AdminScreenShotAttachment.java | 396 +++ .../model/AdminServiceListingRevision.java | 830 ++++++ .../model/AdminSkuPricingRate.java | 114 +- .../model/AdminStackArtifact.java | 320 ++ .../model/AdminStackPackage.java | 386 +++ .../AdminSupportedServiceAttachment.java | 507 ++++ .../marketplacepublisher/model/AdminTerm.java | 616 ++++ .../model/AdminTermCollection.java | 43 +- .../model/AdminTermSummary.java | 579 ++++ .../model/AdminTermVersion.java | 810 +++++ .../model/AdminTermVersionAttachment.java | 214 ++ .../model/AdminTermVersionCollection.java | 133 + .../model/AdminTermVersionSummary.java | 580 ++++ .../model/AdminVideoAttachment.java | 359 +++ .../model/AdminWorkRequestSummary.java | 24 +- .../AdminWorkRequestSummaryCollection.java | 135 + .../model/BillToCountry.java | 167 ++ ...CreateAdminListingRevisionNoteDetails.java | 173 ++ .../CreateCustomerSuccessAttachment.java | 41 +- .../model/CreateMarketDetails.java | 247 ++ .../CreateOciListingRevisionDetails.java | 161 +- .../model/CreatePublisherDetails.java | 691 +++++ ...reateRelatedDocumentAttachmentDetails.java | 119 +- ...CreateReviewSupportDocumentAttachment.java | 41 +- .../CreateScreenShotAttachmentDetails.java | 42 +- .../CreateSupportedServiceAttachment.java | 41 +- .../model/CreateVideoDetails.java | 44 +- .../model/CustomerInstanceReportExport.java | 1331 +++++++++ ...ustomerInstanceReportExportCollection.java | 135 + .../CustomerInstanceReportExportSummary.java | 1279 ++++++++ .../model/CustomerInstanceReportRecord.java | 92 +- .../model/CustomerSuccessAttachment.java | 15 + .../model/DisbursementReportRecord.java | 44 + ...teCustomerInstanceReportExportDetails.java | 848 ++++++ .../model/HybridPricingPlan.java | 481 +++ .../model/LeadGenListingRevision.java | 15 + .../model/ListingPart.java | 114 +- .../model/ListingRevision.java | 13 + .../model/ListingRevisionAttachment.java | 72 + .../ListingRevisionAttachmentSummary.java | 38 + .../ListingRevisionBannerAttachment.java | 205 ++ .../model/ListingRevisionNote.java | 38 + .../model/ListingRevisionNoteSummary.java | 38 + .../model/MetricType.java | 55 + .../model/OciListingRevision.java | 176 +- .../model/OperationType.java | 6 + .../model/OpnMembership.java | 57 +- .../model/PartnerPortalOptions.java | 1137 +++++++ .../model/PricingPlan.java | 8 + .../marketplacepublisher/model/Publisher.java | 442 ++- .../model/PublisherStatus.java | 57 + .../model/PublisherSummary.java | 314 ++ .../model/RelatedDocumentAttachment.java | 15 + .../ReviewSupportDocumentAttachment.java | 15 + .../model/SaaSPricingPlan.java | 133 +- .../model/ScreenShotAttachment.java | 15 + .../model/ServiceListingRevision.java | 15 + .../model/SupportedServiceAttachment.java | 15 + .../UpdateAdminArtifactStatusDetails.java | 67 +- .../UpdateOciListingRevisionDetails.java | 161 +- ...pdateRelatedDocumentAttachmentDetails.java | 41 +- .../UpdateSupportedServiceAttachment.java | 41 +- .../model/UsageBasedPricingPlan.java | 481 +++ .../model/UsageDimension.java | 479 +++ .../model/VideoAttachment.java | 15 + ...angeListingRevisionStatusToNewRequest.java | 188 +- .../requests/CreateMarketRequest.java | 146 +- .../requests/CreatePublisherRequest.java | 99 +- ...teCustomerInstanceReportExportRequest.java | 187 +- ...teCustomerInstanceReportExportRequest.java | 180 +- .../requests/GetAdminArtifactRequest.java | 190 ++ .../requests/GetAdminListingRequest.java | 190 ++ ...AdminListingRevisionAttachmentRequest.java | 205 ++ ...GetAdminListingRevisionPackageRequest.java | 80 +- .../GetAdminListingRevisionRequest.java | 194 ++ .../requests/GetAdminPublisherRequest.java | 190 ++ .../requests/GetAdminTermRequest.java | 190 ++ .../requests/GetAdminTermVersionRequest.java | 192 ++ ...merInstanceReportExportContentRequest.java | 85 +- ...etCustomerInstanceReportExportRequest.java | 204 ++ .../requests/ListAdminArtifactsRequest.java | 387 +-- ...dminListingRevisionAttachmentsRequest.java | 235 +- ...stAdminListingRevisionPackagesRequest.java | 457 +++ .../ListAdminListingRevisionsRequest.java | 802 +++++ .../ListAdminPublisherSkusRequest.java | 228 ++ .../ListAdminTermVersionsRequest.java | 416 +++ .../requests/ListAdminTermsRequest.java | 387 +++ .../ListAdminWorkRequestsRequest.java | 56 +- ...tCustomerInstanceReportExportsRequest.java | 790 +++++ ...tCustomerInstanceReportRecordsRequest.java | 492 ++- .../ListDisbursementReportRecordsRequest.java | 4 + .../UpdateAdminArtifactStatusRequest.java | 198 +- ...teListingRevisionBannerContentRequest.java | 232 +- ...ngeListingRevisionStatusToNewResponse.java | 69 +- .../responses/CreateMarketResponse.java | 23 +- .../responses/CreatePublisherResponse.java | 208 ++ ...eCustomerInstanceReportExportResponse.java | 78 +- ...eCustomerInstanceReportExportResponse.java | 67 +- .../responses/GetAdminArtifactResponse.java | 211 ++ .../responses/GetAdminListingResponse.java | 209 ++ ...dminListingRevisionAttachmentResponse.java | 79 +- ...etAdminListingRevisionPackageResponse.java | 78 +- .../GetAdminListingRevisionResponse.java | 228 ++ .../responses/GetAdminPublisherResponse.java | 211 ++ .../responses/GetAdminTermResponse.java | 208 ++ .../GetAdminTermVersionResponse.java | 211 ++ ...erInstanceReportExportContentResponse.java | 78 +- ...tCustomerInstanceReportExportResponse.java | 77 +- .../responses/ListAdminArtifactsResponse.java | 235 ++ ...minListingRevisionAttachmentsResponse.java | 87 +- ...tAdminListingRevisionPackagesResponse.java | 239 ++ .../ListAdminListingRevisionsResponse.java | 237 ++ .../ListAdminPublisherSkusResponse.java | 76 +- .../ListAdminTermVersionsResponse.java | 236 ++ .../responses/ListAdminTermsResponse.java | 225 ++ .../ListAdminWorkRequestsResponse.java | 237 ++ ...CustomerInstanceReportExportsResponse.java | 80 +- .../UpdateAdminArtifactStatusResponse.java | 209 ++ ...eListingRevisionBannerContentResponse.java | 214 ++ .../reflect-config.json | 1014 ++++++- bmc-mediaservices/pom.xml | 4 +- bmc-mngdmac/pom.xml | 4 +- bmc-modeldeployment/pom.xml | 4 +- bmc-monitoring/pom.xml | 4 +- bmc-multicloud/pom.xml | 4 +- bmc-mysql/pom.xml | 4 +- bmc-networkfirewall/pom.xml | 4 +- bmc-networkloadbalancer/pom.xml | 4 +- bmc-nosql/pom.xml | 4 +- .../bmc-objectstorage-combined/pom.xml | 6 +- .../bmc-objectstorage-extensions/pom.xml | 8 +- .../bmc-objectstorage-generated/pom.xml | 4 +- bmc-objectstorage/pom.xml | 2 +- bmc-oce/pom.xml | 4 +- bmc-ocicontrolcenter/pom.xml | 4 +- bmc-ocvp/pom.xml | 4 +- 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-resourcescheduler/pom.xml | 4 +- bmc-resourcesearch/pom.xml | 4 +- bmc-rover/pom.xml | 4 +- bmc-sch/pom.xml | 4 +- bmc-secrets/pom.xml | 4 +- bmc-securityattribute/pom.xml | 4 +- bmc-self/pom.xml | 4 +- bmc-servicecatalog/pom.xml | 4 +- bmc-servicemanagerproxy/pom.xml | 4 +- bmc-shaded/bmc-shaded-full/pom.xml | 2 +- bmc-shaded/pom.xml | 2 +- bmc-stackmonitoring/pom.xml | 4 +- bmc-streaming/pom.xml | 4 +- bmc-tenantmanagercontrolplane/pom.xml | 4 +- bmc-threatintelligence/pom.xml | 4 +- bmc-usage/pom.xml | 4 +- bmc-usageapi/pom.xml | 4 +- bmc-vault/pom.xml | 6 +- bmc-vbsinst/pom.xml | 4 +- bmc-visualbuilder/pom.xml | 4 +- bmc-vnmonitoring/pom.xml | 4 +- bmc-vulnerabilityscanning/pom.xml | 4 +- bmc-waa/pom.xml | 4 +- bmc-waas/pom.xml | 4 +- bmc-waf/pom.xml | 4 +- bmc-wlms/pom.xml | 4 +- bmc-workrequests/pom.xml | 4 +- bmc-zpr/pom.xml | 4 +- pom.xml | 5 +- 1153 files changed, 115602 insertions(+), 77706 deletions(-) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbTransportType.java => bmc-apmsynthetics/src/main/java/com/oracle/bmc/apmsynthetics/model/MaintenanceWindowRecurrenceType.java (60%) create mode 100644 bmc-apmsynthetics/src/main/java/com/oracle/bmc/apmsynthetics/model/MaintenanceWindowScheduleType.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabaseCompartmentDetails.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeCryptoAssessmentCompartmentDetails.java (72%) create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessment.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentBackupSetCollection.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentBackupSetSummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentCbomItemCollection.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentCbomItemSummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentCertificateCollection.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentCertificateSummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentCollection.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingAnalyticsCollection.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingAnalyticsSummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingCategorySummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingCollection.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingSummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingSummaryMetrics.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCollection.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingTargetCollection.java (73%) create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingTargetSummary.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpointCollection.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentKeyCollection.java (72%) create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentKeySummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentSqlnetParameters.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentSummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentTdeObjectCollection.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentTdeObjectSummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentWalletCollection.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentWalletSummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoFeature.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoFeatureStatus.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoFindingCategory.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoFindingStatus.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoKeyCacheStatus.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbProtectionMode.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoKeystoreType.java (57%) create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoNnePosture.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbProtectionMode.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoObservedBooleanValue.java (51%) create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoPosture.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoPostureCategory.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoQuantumReadiness.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoSqlnetParameter.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoSqlnetParameterSource.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoSqlnetParameterValue.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoTdePosture.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoTlsPosture.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbMetadata.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadCryptoAssessmentReportDetails.java (53%) create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateCryptoAssessmentReportDetails.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabasePrivateEndpointDetails.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RunCryptoAssessmentDetails.java (62%) create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateCryptoAssessmentDetails.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GenerateDistributedDatabaseWalletRequest.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ChangeCryptoAssessmentCompartmentRequest.java (61%) create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteCryptoAssessmentRequest.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedDatabaseRequest.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DownloadCryptoAssessmentReportRequest.java (62%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDbBackupConfigRequest.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GenerateCryptoAssessmentReportRequest.java (60%) create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetCryptoAssessmentRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetCryptoAssessmentSqlnetParametersRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentBackupSetsRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentCbomItemsRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentCertificatesRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentFindingAnalyticsRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentFindingTargetsRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentFindingsRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentKeysRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentTdeObjectsRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentWalletsRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentsRequest.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseShardingRequest.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/RefreshCryptoAssessmentRequest.java (61%) create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/UpdateCryptoAssessmentRequest.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StopDistributedAutonomousDatabaseResponse.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ChangeCryptoAssessmentCompartmentResponse.java (79%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDbBackupConfigResponse.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteCryptoAssessmentResponse.java (79%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GenerateDistributedDatabaseWalletResponse.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DownloadCryptoAssessmentReportResponse.java (74%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedAutonomousDbBackupConfigResponse.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GenerateCryptoAssessmentReportResponse.java (78%) create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetCryptoAssessmentResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetCryptoAssessmentSqlnetParametersResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentBackupSetsResponse.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseRaftMetricResponse.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentCbomItemsResponse.java (61%) create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentCertificatesResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentFindingAnalyticsResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentFindingTargetsResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentFindingsResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentKeysResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentTdeObjectsResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentWalletsResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentsResponse.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StopDistributedDatabaseResponse.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/RefreshCryptoAssessmentResponse.java (80%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseGsmsResponse.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UpdateCryptoAssessmentResponse.java (79%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/AutoResourceManagementConfigurationDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/AutonomousCompositeDataGuardShardSpace.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/AutonomousCompositeDataGuardShardSpaceReplica.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/AutonomousCompositeRaftShardSpace.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/AutonomousCompositeShardSpaceRaftCluster.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/AutonomousSystemDataGuardDatabase.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/AutonomousSystemDataGuardReplica.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/AutonomousSystemRaftCluster.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/AutonomousUserShardSpace.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/AutonomousUserShardSpaceReplica.java (99%) delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CatalogPeerWithDedicatedInfra.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CatalogPeerWithExadbXs.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CatalogPeerWithExadbXsNewVaultAndCluster.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CompositeDataGuardShardSpace.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CompositeDataGuardShardSpaceReplica.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CompositeRaftShardSpace.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CompositeShardSpaceRaftCluster.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/ConfigureDistributedDatabaseAutoResourceManagementDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateAutonomousCatalogDatabaseDetails.java (98%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateAutonomousCatalogDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateAutonomousCatalogReplicaDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateAutonomousCompositeDataGuardShardSpaceDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateAutonomousCompositeRaftShardSpaceDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateAutonomousCompositeShardSpaceRaftClusterDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateAutonomousSystemDataGuardDatabaseDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateAutonomousSystemDataGuardReplicaDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateAutonomousSystemRaftClusterDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateAutonomousUserShardSpaceDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateAutonomousUserShardSpaceReplicaDetails.java (99%) delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCatalogPeerWithDedicatedInfraDetails.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCatalogPeerWithExadbXsDetails.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCatalogPeerWithExadbXsNewVaultAndClusterDetails.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateCompositeDataGuardShardSpaceDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateCompositeDataGuardShardSpaceReplicaDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateCompositeRaftShardSpaceDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateCompositeShardSpaceRaftClusterDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateDistributedAutonomousDatabaseShardDatabaseDetails.java (98%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateDistributedDatabaseCatalogDatabaseDetails.java (51%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails.java (71%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails.java (71%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails.java (71%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateDistributedDatabaseCatalogReplicaDetails.java (99%) delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogWithExadbXsDetails.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails.java (75%) create mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardDatabaseDetails.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateDistributedDatabaseShardDatabaseWithDbHomeDetails.java (71%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateDistributedDatabaseShardDatabaseWithExadbXdDetails.java (71%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateDistributedDatabaseShardDatabaseWithExadbXsDetails.java (71%) delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardWithExadbXsDetails.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateDistributedDatabaseShardWithExadbXsNewClusterDetails.java (75%) delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateShardPeerWithDedicatedInfraDetails.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateShardPeerWithExadbXsDetails.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateShardPeerWithExadbXsNewVaultAndClusterDetails.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateSystemDataGuardDatabaseDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateSystemDataGuardReplicaDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateSystemRaftClusterDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateUserShardSpaceDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/CreateUserShardSpaceReplicaDetails.java (99%) delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseAssociatedWithPrivateEndpoint.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/DistributedAutonomousDatabaseAutoResourceManagementDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/DistributedAutonomousDatabaseCatalogDatabase.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/DistributedAutonomousDatabaseCatalogReplica.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/DistributedAutonomousDatabaseGdsControlNode.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/DistributedAutonomousDatabaseGdsControlNodeImage.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/DistributedAutonomousDatabaseRuChangeLog.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/DistributedAutonomousDatabaseRuChangeLogSummary.java (99%) delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseShard.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/DistributedAutonomousDatabaseShardDatabase.java (99%) delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseAssociatedWithPrivateEndpoint.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/DistributedDatabaseAutoResourceManagementDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/DistributedDatabaseCatalogDatabase.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/DistributedDatabaseCatalogDatabaseWithDbHome.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/DistributedDatabaseCatalogDatabaseWithExadbXd.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/DistributedDatabaseCatalogDatabaseWithExadbXs.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/DistributedDatabaseCatalogReplicaDetails.java (99%) delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogWithExadbXs.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogWithExadbXsNewVaultAndCluster.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/DistributedDatabaseGdsControlNode.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/DistributedDatabaseRuChangeLog.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/DistributedDatabaseRuChangeLogSummary.java (99%) delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShard.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/DistributedDatabaseShardDatabase.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/DistributedDatabaseShardDatabaseWithDbHome.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/DistributedDatabaseShardDatabaseWithExadbXd.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/DistributedDatabaseShardDatabaseWithExadbXs.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/DistributedDatabaseShardDatabaseWithExadbXsNewCluster.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster.java (99%) delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardWithExadbXs.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardWithExadbXsNewVaultAndCluster.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/DistributedDbGdsControlNodeImage.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/PatchDistributedDatabasePrivateEndpointDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/RotateDistributedAutonomousDatabaseDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/RotateDistributedAutonomousDatabasePasswordsDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/RotateDistributedDatabaseDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/RotateDistributedDatabasePasswordsDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/ScaleDistributedAutonomousDatabaseGsmsDetails.java (98%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/ScaleDistributedDatabaseGsmsDetails.java (98%) delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ShardPeerWithDedicatedInfra.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ShardPeerWithExadbXs.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ShardPeerWithExadbXsNewVaultAndCluster.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/SystemDataGuardDatabase.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/SystemDataGuardReplica.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/SystemRaftCluster.java (99%) delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/UserShardSpace.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/UserShardSpaceReplica.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/model/VcnNsgIdsDetails.java (99%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/requests/ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest.java (96%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/requests/ConfigureDistributedDatabaseAutoResourceManagementRequest.java (96%) delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DownloadDistributedDatabaseGsmCertificateSigningRequestRequest.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedDatabaseGsmCertificateSigningRequestRequest.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/requests/GetDistributedAutonomousDatabaseRuChangeLogRequest.java (97%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/requests/GetDistributedDatabaseRuChangeLogRequest.java (97%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/requests/PatchDistributedDatabasePrivateEndpointRequest.java (94%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/requests/ScaleDistributedAutonomousDatabaseGsmsRequest.java (95%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/requests/ScaleDistributedDatabaseGsmsRequest.java (93%) delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/responses/ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse.java (95%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/responses/ConfigureDistributedDatabaseAutoResourceManagementResponse.java (94%) delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DownloadDistributedDatabaseGsmCertificateSigningRequestResponse.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GenerateDistributedDatabaseGsmCertificateSigningRequestResponse.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/responses/GetDistributedAutonomousDatabaseRuChangeLogResponse.java (91%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/responses/GetDistributedDatabaseRuChangeLogResponse.java (92%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/responses/PatchDistributedDatabasePrivateEndpointResponse.java (98%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/responses/ScaleDistributedAutonomousDatabaseGsmsResponse.java (98%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/responses/ScaleDistributedDatabaseGsmsResponse.java (98%) delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse.java delete mode 100644 bmc-distributeddatabasev26/pom.xml delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbService.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceAsync.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceAsyncClient.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceClient.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServicePaginators.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceWaiters.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointService.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceAsync.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceAsyncClient.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceClient.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServicePaginators.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceWaiters.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceAsync.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceAsyncClient.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceClient.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServicePaginators.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceWaiters.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AddDistributedAutonomousDatabaseGdsControlNodeDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AddDistributedDatabaseGdsControlNodeDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedAutonomousDbBackupConfigDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDbBackupConfigDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseGsmWalletDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseGsmsDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedDatabaseGsmsDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DbStorageVaultDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabase.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalog.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogWithDedicatedInfra.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGsm.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGsmImage.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRaftMetric.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseShardWithDedicatedInfra.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseSummary.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbBackupConfig.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbBackupDestination.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabase.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalog.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseGsm.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRaftMetric.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseSummary.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbBackupConfig.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbBackupDestination.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbStorageVault.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbVmCluster.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/GenerateDistributedAutonomousDatabaseWalletDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/GenerateDistributedDatabaseWalletDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/MoveDistributedAutonomousDatabaseReplicationUnitDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/MoveDistributedDatabaseReplicationUnitDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/OperationType.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedAutonomousDatabaseDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchInstruction.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SortOrder.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedAutonomousDatabaseDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedDatabaseDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/VmClusterDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/AddDistributedAutonomousDatabaseGdsControlNodeRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedAutonomousDatabaseCompartmentRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedAutonomousDbBackupConfigRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDatabaseCompartmentRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDatabasePrivateEndpointCompartmentRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseGsmWalletRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseGsmsRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseShardingRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseGsmsRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedAutonomousDatabaseRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedDatabasePrivateEndpointRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GenerateDistributedAutonomousDatabaseWalletRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabasePrivateEndpointRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedAutonomousDatabasesRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/MoveDistributedAutonomousDatabaseReplicationUnitRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/MoveDistributedDatabaseReplicationUnitRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedAutonomousDatabaseRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RecreateFailedDistributedAutonomousDatabaseResourceRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RecreateFailedDistributedDatabaseResourceRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RotateDistributedAutonomousDatabasePasswordsRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RotateDistributedDatabasePasswordsRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StopDistributedAutonomousDatabaseRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedAutonomousDatabaseRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedDatabasePrivateEndpointRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseNetworkRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedDatabaseNetworkRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/AddDistributedAutonomousDatabaseGdsControlNodeResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedAutonomousDatabaseCompartmentResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDatabaseCompartmentResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDatabasePrivateEndpointCompartmentResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseGsmWalletResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseGsmsResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseShardingResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseShardingResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedAutonomousDatabaseResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedDatabasePrivateEndpointResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedDatabaseResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedAutonomousDatabaseResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedDatabasePrivateEndpointResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedDatabaseResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GenerateDistributedAutonomousDatabaseWalletResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseRaftMetricResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/MoveDistributedAutonomousDatabaseReplicationUnitResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RecreateFailedDistributedAutonomousDatabaseResourceResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RecreateFailedDistributedDatabaseResourceResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RotateDistributedAutonomousDatabasePasswordsResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RotateDistributedDatabasePasswordsResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StartDistributedAutonomousDatabaseResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabasePrivateEndpointResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedAutonomousDatabaseCaBundleResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedAutonomousDatabaseNetworkResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedDatabaseNetworkResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-distributeddatabasev26/reflect-config.json delete mode 100644 bmc-distributeddatabasev26/src/main/resources/com/oracle/bmc/distributeddatabasev26/client.properties rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestService.java => bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagement.java (76%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceAsync.java => bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagementAsync.java (81%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceAsyncClient.java => bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagementAsyncClient.java (81%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceClient.java => bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagementClient.java (83%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServicePaginators.java => bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagementPaginators.java (85%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceWaiters.java => bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagementWaiters.java (88%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-functions/src/main/java/com/oracle/bmc/functions}/model/ActionType.java (95%) create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/ArchiveFunctionSourceDetails.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/ArchiveSourceDetails.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/ContainerImageFunctionSourceDetails.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateArchiveFunctionSourceDetails.java rename bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardDetails.java => bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateArchiveSourceDetails.java (65%) create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateContainerImageFunctionSourceDetails.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateDirectArchiveSourceDetails.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseDetails.java => bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateFunctionSourceDetails.java (55%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchInsertInstruction.java => bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateFunctionUpdateRuntimeConfig.java (56%) create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateManualRuntimeConfig.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateObjectStorageArchiveSourceDetails.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabasePrivateEndpointCompartmentDetails.java => bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreatePreBuiltFunctionSourceDetails.java (57%) create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateRuntimeConfig.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchRemoveInstruction.java => bmc-functions/src/main/java/com/oracle/bmc/functions/model/DirectArchiveSourceDetails.java (70%) create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionUpdateRuntimeConfig.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntime.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntimeCollection.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntimeSummary.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntimeVersion.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntimeVersionCollection.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntimeVersionSummary.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/ManualRuntimeConfig.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/ObjectStorageArchiveSourceDetails.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-functions/src/main/java/com/oracle/bmc/functions}/model/OperationStatus.java (94%) create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/OperationType.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/RuntimeConfig.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateArchiveFunctionSourceDetails.java rename bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseCatalogDetails.java => bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateArchiveSourceDetails.java (69%) create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateContainerImageFunctionSourceDetails.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchMergeInstruction.java => bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateDirectArchiveSourceDetails.java (50%) rename bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseShardDetails.java => bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateFunctionSourceDetails.java (70%) create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateFunctionUpdateRuntimeConfig.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateManualRuntimeConfig.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateObjectStorageArchiveSourceDetails.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateRuntimeConfig.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-functions/src/main/java/com/oracle/bmc/functions}/model/WorkRequest.java (69%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-functions/src/main/java/com/oracle/bmc/functions}/model/WorkRequestError.java (80%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-functions/src/main/java/com/oracle/bmc/functions}/model/WorkRequestErrorCollection.java (92%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-functions/src/main/java/com/oracle/bmc/functions}/model/WorkRequestLogEntry.java (86%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-functions/src/main/java/com/oracle/bmc/functions}/model/WorkRequestLogEntryCollection.java (92%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-functions/src/main/java/com/oracle/bmc/functions}/model/WorkRequestResource.java (79%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-functions/src/main/java/com/oracle/bmc/functions}/model/WorkRequestResourceMetadataKey.java (92%) create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestSummary.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-functions/src/main/java/com/oracle/bmc/functions}/model/WorkRequestSummaryCollection.java (92%) create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/requests/CancelWorkRequestRequest.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetFunctionsRuntimeRequest.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetFunctionsRuntimeVersionRequest.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-functions/src/main/java/com/oracle/bmc/functions}/requests/GetWorkRequestRequest.java (81%) create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListFunctionsRuntimeVersionsRequest.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListFunctionsRuntimesRequest.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-functions/src/main/java/com/oracle/bmc/functions}/requests/ListWorkRequestErrorsRequest.java (71%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-functions/src/main/java/com/oracle/bmc/functions}/requests/ListWorkRequestLogsRequest.java (71%) create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListWorkRequestsRequest.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedDatabaseResponse.java => bmc-functions/src/main/java/com/oracle/bmc/functions/responses/CancelWorkRequestResponse.java (60%) create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetFunctionsRuntimeResponse.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetFunctionsRuntimeVersionResponse.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-functions/src/main/java/com/oracle/bmc/functions}/responses/GetWorkRequestResponse.java (81%) create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListFunctionsRuntimeVersionsResponse.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListFunctionsRuntimesResponse.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-functions/src/main/java/com/oracle/bmc/functions}/responses/ListWorkRequestErrorsResponse.java (92%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-functions/src/main/java/com/oracle/bmc/functions}/responses/ListWorkRequestLogsResponse.java (93%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-functions/src/main/java/com/oracle/bmc/functions}/responses/ListWorkRequestsResponse.java (93%) create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/Availability.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedAutonomousDatabaseCompartmentDetails.java => bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ChangeRoutingProfileCompartmentDetails.java (71%) create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateRoutingProfileDetails.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelDiscovery.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelDiscoveryCollection.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelModality.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelModalitySupport.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbConnectionString.java => bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelRoutingPolicy.java (55%) create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/Parameter.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/PreviousRoutingProfileState.java rename bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails.java => bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/RegionRoutingPolicy.java (54%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpoint.java => bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/RoutingProfile.java (61%) create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/RoutingProfileCollection.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpointSummary.java => bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/RoutingProfileSummary.java (65%) create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ServingMode.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedDatabasePrivateEndpointDetails.java => bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateRoutingProfileDetails.java (57%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/AddDistributedDatabaseGdsControlNodeRequest.java => bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ChangeRoutingProfileCompartmentRequest.java (57%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedDatabasePrivateEndpointRequest.java => bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/CreateRoutingProfileRequest.java (54%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ReinstateProxyInstanceRequest.java => bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/DeleteRoutingProfileRequest.java (55%) create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/GetRoutingProfileRequest.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListModelDiscoveryRequest.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListRoutingProfilesRequest.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseCaBundleRequest.java => bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/UpdateRoutingProfileRequest.java (55%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StartDistributedDatabaseResponse.java => bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ChangeRoutingProfileCompartmentResponse.java (60%) create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/CreateRoutingProfileResponse.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/DeleteRoutingProfileResponse.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/GetRoutingProfileResponse.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ListModelDiscoveryResponse.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ListRoutingProfilesResponse.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseResponse.java => bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/UpdateRoutingProfileResponse.java (71%) create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifact.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifactAsync.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifactAsyncClient.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifactClient.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisher.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisherAsync.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisherAsyncClient.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisherClient.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbService.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministrator.java (52%) create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministratorAsync.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministratorAsyncClient.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministratorClient.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministratorPaginators.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminAiAgentListingRevision.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminArtifact.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCollection.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminArtifactCollection.java (75%) create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminArtifactSummary.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseConnectionString.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminBillToCountries.java (54%) create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminContainerImageArtifact.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminContainerPackage.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminCustomerSuccessAttachment.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminHelmChartPackage.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminKubernetesImageArtifact.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminLeadGenListingRevision.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListing.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingProduct.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevision.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionAttachment.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionAttachmentCollection.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionAttachmentSummary.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionCollection.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionPackage.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionPackageCollection.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionPackageSummary.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionSummary.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminMachineImageArtifact.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminMachineImagePackage.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminMarket.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminOciListingRevision.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminOpnPartnerSummary.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminPublisher.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminPublisherSku.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminPublisherSkuCollection.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminPublisherSummary.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminRelatedDocumentAttachment.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminReviewSupportDocumentAttachment.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminScreenShotAttachment.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminServiceListingRevision.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbGsmImage.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminSkuPricingRate.java (52%) create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminStackArtifact.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminStackPackage.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminSupportedServiceAttachment.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTerm.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedDatabaseDetails.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermCollection.java (73%) create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermSummary.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermVersion.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermVersionAttachment.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermVersionCollection.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermVersionSummary.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminVideoAttachment.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestSummary.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminWorkRequestSummary.java (96%) create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminWorkRequestSummaryCollection.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/BillToCountry.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateAdminListingRevisionNoteDetails.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateMarketDetails.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreatePublisherDetails.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CustomerInstanceReportExport.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CustomerInstanceReportExportCollection.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CustomerInstanceReportExportSummary.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/GenerateCustomerInstanceReportExportDetails.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/HybridPricingPlan.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingRevisionBannerAttachment.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/MetricType.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/PartnerPortalOptions.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/PublisherStatus.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbMetadata.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UpdateAdminArtifactStatusDetails.java (63%) create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UsageBasedPricingPlan.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UsageDimension.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedDatabaseRequest.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ChangeListingRevisionStatusToNewRequest.java (57%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StopDistributedDatabaseRequest.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/CreateMarketRequest.java (63%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedDatabaseRequest.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/CreatePublisherRequest.java (69%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StartDistributedDatabaseRequest.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/DeleteCustomerInstanceReportExportRequest.java (58%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedAutonomousDatabaseRequest.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GenerateCustomerInstanceReportExportRequest.java (64%) create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminArtifactRequest.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminListingRequest.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminListingRevisionAttachmentRequest.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRaftMetricRequest.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminListingRevisionPackageRequest.java (66%) create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminListingRevisionRequest.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminPublisherRequest.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminTermRequest.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminTermVersionRequest.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRaftMetricRequest.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetCustomerInstanceReportExportContentRequest.java (63%) create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetCustomerInstanceReportExportRequest.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedDatabasesRequest.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminArtifactsRequest.java (50%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedDatabasePrivateEndpointsRequest.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminListingRevisionAttachmentsRequest.java (70%) create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminListingRevisionPackagesRequest.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminListingRevisionsRequest.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminPublisherSkusRequest.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminTermVersionsRequest.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminTermsRequest.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestsRequest.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminWorkRequestsRequest.java (87%) create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListCustomerInstanceReportExportsRequest.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedDatabaseRequest.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/UpdateAdminArtifactStatusRequest.java (62%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StartDistributedAutonomousDatabaseRequest.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/UpdateListingRevisionBannerContentRequest.java (57%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabaseResponse.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ChangeListingRevisionStatusToNewResponse.java (70%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ReinstateProxyInstanceResponse.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/CreateMarketResponse.java (89%) create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/CreatePublisherResponse.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedAutonomousDatabaseResponse.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/DeleteCustomerInstanceReportExportResponse.java (60%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/AddDistributedDatabaseGdsControlNodeResponse.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GenerateCustomerInstanceReportExportResponse.java (73%) create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminArtifactResponse.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminListingResponse.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabasePrivateEndpointResponse.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminListingRevisionAttachmentResponse.java (66%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedAutonomousDatabaseResponse.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminListingRevisionPackageResponse.java (66%) create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminListingRevisionResponse.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminPublisherResponse.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminTermResponse.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminTermVersionResponse.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/MoveDistributedDatabaseReplicationUnitResponse.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetCustomerInstanceReportExportContentResponse.java (60%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseResponse.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetCustomerInstanceReportExportResponse.java (67%) create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminArtifactsResponse.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasePrivateEndpointsResponse.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminListingRevisionAttachmentsResponse.java (67%) create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminListingRevisionPackagesResponse.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminListingRevisionsResponse.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasesResponse.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminPublisherSkusResponse.java (72%) create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminTermVersionsResponse.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminTermsResponse.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminWorkRequestsResponse.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedAutonomousDatabasesResponse.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListCustomerInstanceReportExportsResponse.java (69%) create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/UpdateAdminArtifactStatusResponse.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/UpdateListingRevisionBannerContentResponse.java diff --git a/CHANGELOG.md b/CHANGELOG.md index 758c62ed7a4..3b163556926 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,44 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## 3.97.0 - 2026-09-22 +### Added +- Support for recurring maintenance windows in the Application Performance Monitoring Synthetics service +- Support for crypto posture assessments in the Data Safe service +- Support for customer-managed compute capacity reservations for model deployments, notebook sessions, jobs, and pipelines in the Data Science service +- Support for code-only functions with managed runtimes and automated image builds in the Functions service +- Support for routing profiles and model discovery in the Generative AI service +- Support for generating, filtering, and downloading Customer Instance Report exports in the Marketplace Publisher service   + +### Breaking Changes +- The Distributed Database V26 service was renamed to Distributed Database service +- Method `getImage()` has been removed from the model `CreateFunctionDetails` in the Functions service +- Method `getImageDigest()` has been removed from the model `CreateFunctionDetails` in the Functions service +- The return type of method `getSourceDetails()` has changed to `com.oracle.bmc.functions.model.CreateFunctionSourceDetails` in the model `CreateFunctionDetails` in the Functions service +- Method `getImage()` has been removed from the model `Function` in the Functions service +- Method `getImageDigest()` has been removed from the model `Function` in the Functions service +- Method `getImage()` has been removed from the model `FunctionSummary` in the Functions service +- Method `getImageDigest()` has been removed from the model `FunctionSummary` in the Functions service +- Method `getImage()` has been removed from the model `UpdateFunctionDetails` in the Functions service +- Method `getImageDigest()` has been removed from the model `UpdateFunctionDetails` in the Functions service +- Method `getApplication()` has been removed from the response `UpdateApplicationResponse` in the Functions service +- Method `getEtag()` has been removed from the response `UpdateApplicationResponse` in the Functions service +- Method `getEtag()` has been removed from the response `UpdateFunctionResponse` in the Functions service +- Method `getFunction()` has been removed from the response `UpdateFunctionResponse` in the Functions service +- Method `getTenantAdminEmail()` has been removed from the model `CustomerInstanceReportRecord` in the Marketplace Publisher service +- Method `getTenantAdminName()` has been removed from the model `CustomerInstanceReportRecord` in the Marketplace Publisher service +- The return type of method `getMetricType()` has changed to `com.oracle.bmc.marketplacepublisher.model.MetricType` in the model `ListingPart` in the Marketplace Publisher service +- Class `com.oracle.bmc.marketplacepublisher.model.ListingPart$MetricType` has been removed from the Marketplace Publisher service +- The return type of method `getOpnStatus()` has changed to `com.oracle.bmc.marketplacepublisher.model.AdminOpnPartnerSummary$MembershipStatus` in the model `OpnMembership` in the Marketplace Publisher service +- Class `com.oracle.bmc.marketplacepublisher.model.OpnMembership$OpnStatus` has been removed from the Marketplace Publisher service +- The return type of method `getPublisherStatus()` has changed to `com.oracle.bmc.marketplacepublisher.model.PublisherStatus` in the model `Publisher` in the Marketplace Publisher service +- Class `com.oracle.bmc.marketplacepublisher.model.Publisher$PublisherStatus` has been removed from the Marketplace Publisher service +- The enum value `Yearly` has been removed from the model `SaaSPricingPlan$BillingFrequency` in the Marketplace Publisher service +- Method `getDateRange()` has been removed from the request `ListCustomerInstanceReportRecordsRequest` in the Marketplace Publisher service +- Class `com.oracle.bmc.marketplacepublisher.requests.ListCustomerInstanceReportRecordsRequest$DateRange` has been removed from the Marketplace Publisher service +- Enum value `DisplayName` has been removed from the request `ListCustomerInstanceReportRecordsRequest$SortBy` in the Marketplace Publisher service +- Enum value `TimeCreated` has been removed from the request `ListCustomerInstanceReportRecordsRequest$SortBy` in the Marketplace Publisher service + ## 3.96.0 - 2026-09-15 ### Added - Support for higher usage submission limits for metered SaaS listings and legacy subscription endpoints in the Service Enablement Lifecycle Framework service diff --git a/bmc-accessgovernancecp/pom.xml b/bmc-accessgovernancecp/pom.xml index 4a3aa9b4906..fe559cf38ca 100644 --- a/bmc-accessgovernancecp/pom.xml +++ b/bmc-accessgovernancecp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-accessgovernancecp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-addons/bmc-adk/pom.xml b/bmc-addons/bmc-adk/pom.xml index 295e6363011..797df6fb1a8 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.96.0 + 3.97.0 oci-java-sdk-addons-adk diff --git a/bmc-addons/bmc-aispeech-realtime/pom.xml b/bmc-addons/bmc-aispeech-realtime/pom.xml index a52e2e2ec6e..9f3f4f1856e 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.96.0 + 3.97.0 ../pom.xml 4.0.0 @@ -53,12 +53,12 @@ com.oracle.oci.sdk oci-java-sdk-aispeech - 3.96.0 + 3.97.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.96.0 + 3.97.0 compile diff --git a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml index 2729ff1d203..fa2cbe79103 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.96.0 + 3.97.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.96.0 + 3.97.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.96.0 + 3.97.0 pom import diff --git a/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml index 06c6ca21f27..e654829690e 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.96.0 + 3.97.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.96.0 + 3.97.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.96.0 + 3.97.0 pom import diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index 4c0f15393ee..cee61d12574 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.96.0 + 3.97.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-addons/bmc-oke-workload-identity/pom.xml b/bmc-addons/bmc-oke-workload-identity/pom.xml index c3c3cf27137..cf05d724d2a 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.96.0 + 3.97.0 4.0.0 @@ -38,25 +38,25 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 compile com.oracle.oci.sdk oci-java-sdk-core - 3.96.0 + 3.97.0 test com.oracle.oci.sdk oci-java-sdk-identity - 3.96.0 + 3.97.0 test com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.96.0 + 3.97.0 test diff --git a/bmc-addons/bmc-resteasy-client-configurator/pom.xml b/bmc-addons/bmc-resteasy-client-configurator/pom.xml index 08222b4b456..617cf5608a3 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.96.0 + 3.97.0 ../pom.xml @@ -23,7 +23,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml b/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml index 173bb51d56d..badcd4f5168 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.96.0 + 3.97.0 ../pom.xml 4.0.0 @@ -39,13 +39,13 @@ com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.96.0 + 3.97.0 compile com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.96.0 + 3.97.0 compile diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml index ef714bef574..d49e828531b 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.96.0 + 3.97.0 ../pom.xml @@ -61,7 +61,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 diff --git a/bmc-addons/bmc-sse-support-jersey3/pom.xml b/bmc-addons/bmc-sse-support-jersey3/pom.xml index 00714d786a4..ee35eef6b2a 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.96.0 + 3.97.0 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.96.0 + 3.97.0 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.96.0 + 3.97.0 diff --git a/bmc-addons/bmc-sse-support/pom.xml b/bmc-addons/bmc-sse-support/pom.xml index 9e3a61ae372..c62b81361d9 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.96.0 + 3.97.0 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.96.0 + 3.97.0 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.96.0 + 3.97.0 diff --git a/bmc-addons/pom.xml b/bmc-addons/pom.xml index ac615487ce2..0b4382d447e 100644 --- a/bmc-addons/pom.xml +++ b/bmc-addons/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml diff --git a/bmc-adm/pom.xml b/bmc-adm/pom.xml index 9216ce48ec8..edb0ee08d83 100644 --- a/bmc-adm/pom.xml +++ b/bmc-adm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-adm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-aidataplatform/pom.xml b/bmc-aidataplatform/pom.xml index 9768bf7c642..81c13162318 100644 --- a/bmc-aidataplatform/pom.xml +++ b/bmc-aidataplatform/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-aidataplatform @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-aidocument/pom.xml b/bmc-aidocument/pom.xml index 4b7f58355a2..d8871a7d10d 100644 --- a/bmc-aidocument/pom.xml +++ b/bmc-aidocument/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-aidocument @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-ailanguage/pom.xml b/bmc-ailanguage/pom.xml index 077ffea8e60..6e7961cf84e 100644 --- a/bmc-ailanguage/pom.xml +++ b/bmc-ailanguage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-ailanguage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-aispeech/pom.xml b/bmc-aispeech/pom.xml index 7c5daef3786..6f4bbcfccff 100644 --- a/bmc-aispeech/pom.xml +++ b/bmc-aispeech/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-aispeech @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-aivision/pom.xml b/bmc-aivision/pom.xml index cbb540dcb8e..99f9e552a99 100644 --- a/bmc-aivision/pom.xml +++ b/bmc-aivision/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-aivision @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-analytics/pom.xml b/bmc-analytics/pom.xml index cc3519da82d..4059cbd5ec0 100644 --- a/bmc-analytics/pom.xml +++ b/bmc-analytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-analytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-announcementsservice/pom.xml b/bmc-announcementsservice/pom.xml index 2a856794cc8..e98f43785c0 100644 --- a/bmc-announcementsservice/pom.xml +++ b/bmc-announcementsservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-announcementsservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-apiaccesscontrol/pom.xml b/bmc-apiaccesscontrol/pom.xml index a7c822b1dc6..aed6dc557be 100644 --- a/bmc-apiaccesscontrol/pom.xml +++ b/bmc-apiaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-apiaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-apigateway/pom.xml b/bmc-apigateway/pom.xml index 7f81ae80e40..ea148a62028 100644 --- a/bmc-apigateway/pom.xml +++ b/bmc-apigateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-apigateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-apiplatform/pom.xml b/bmc-apiplatform/pom.xml index df44ddf533b..9815afc19a5 100644 --- a/bmc-apiplatform/pom.xml +++ b/bmc-apiplatform/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-apiplatform @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-apmconfig/pom.xml b/bmc-apmconfig/pom.xml index 9e13be921d1..5fa2689cec8 100644 --- a/bmc-apmconfig/pom.xml +++ b/bmc-apmconfig/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-apmconfig @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-apmcontrolplane/pom.xml b/bmc-apmcontrolplane/pom.xml index 96c25f68bac..370be3ec33a 100644 --- a/bmc-apmcontrolplane/pom.xml +++ b/bmc-apmcontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-apmcontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-apmsynthetics/pom.xml b/bmc-apmsynthetics/pom.xml index aa99d1026e6..14035aa029f 100644 --- a/bmc-apmsynthetics/pom.xml +++ b/bmc-apmsynthetics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-apmsynthetics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-apmsynthetics/src/main/java/com/oracle/bmc/apmsynthetics/model/DnsConfiguration.java b/bmc-apmsynthetics/src/main/java/com/oracle/bmc/apmsynthetics/model/DnsConfiguration.java index c41e3de312e..0e66b083130 100644 --- a/bmc-apmsynthetics/src/main/java/com/oracle/bmc/apmsynthetics/model/DnsConfiguration.java +++ b/bmc-apmsynthetics/src/main/java/com/oracle/bmc/apmsynthetics/model/DnsConfiguration.java @@ -47,15 +47,15 @@ public Builder isOverrideDns(Boolean isOverrideDns) { return this; } /** - * Attribute to override the DNS IP value. This value will be honored only if isOverrideDns - * is set to true. + * Attribute to override the DNS IP value. This value is required only if isOverrideDns is + * set to true. */ @com.fasterxml.jackson.annotation.JsonProperty("overrideDnsIp") private String overrideDnsIp; /** - * Attribute to override the DNS IP value. This value will be honored only if isOverrideDns - * is set to true. + * Attribute to override the DNS IP value. This value is required only if isOverrideDns is + * set to true. * * @param overrideDnsIp the value to set * @return this builder @@ -112,15 +112,15 @@ public Boolean getIsOverrideDns() { } /** - * Attribute to override the DNS IP value. This value will be honored only if isOverrideDns is - * set to true. + * Attribute to override the DNS IP value. This value is required only if isOverrideDns is set + * to true. */ @com.fasterxml.jackson.annotation.JsonProperty("overrideDnsIp") private final String overrideDnsIp; /** - * Attribute to override the DNS IP value. This value will be honored only if isOverrideDns is - * set to true. + * Attribute to override the DNS IP value. This value is required only if isOverrideDns is set + * to true. * * @return the value */ diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbTransportType.java b/bmc-apmsynthetics/src/main/java/com/oracle/bmc/apmsynthetics/model/MaintenanceWindowRecurrenceType.java similarity index 60% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbTransportType.java rename to bmc-apmsynthetics/src/main/java/com/oracle/bmc/apmsynthetics/model/MaintenanceWindowRecurrenceType.java index 047a50abad0..7f65a6d6fcd 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbTransportType.java +++ b/bmc-apmsynthetics/src/main/java/com/oracle/bmc/apmsynthetics/model/MaintenanceWindowRecurrenceType.java @@ -2,14 +2,13 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.apmsynthetics.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"), +/** Maintenance window recurrence type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") +public enum MaintenanceWindowRecurrenceType implements com.oracle.bmc.http.internal.BmcEnum { + Weekly("WEEKLY"), + Monthly("MONTHLY"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -18,21 +17,21 @@ public enum DistributedDbTransportType implements com.oracle.bmc.http.internal.B UnknownEnumValue(null); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DistributedDbTransportType.class); + org.slf4j.LoggerFactory.getLogger(MaintenanceWindowRecurrenceType.class); private final String value; - private static java.util.Map map; + private static java.util.Map map; static { map = new java.util.HashMap<>(); - for (DistributedDbTransportType v : DistributedDbTransportType.values()) { + for (MaintenanceWindowRecurrenceType v : MaintenanceWindowRecurrenceType.values()) { if (v != UnknownEnumValue) { map.put(v.getValue(), v); } } } - DistributedDbTransportType(String value) { + MaintenanceWindowRecurrenceType(String value) { this.value = value; } @@ -42,12 +41,12 @@ public String getValue() { } @com.fasterxml.jackson.annotation.JsonCreator - public static DistributedDbTransportType create(String key) { + public static MaintenanceWindowRecurrenceType create(String key) { if (map.containsKey(key)) { return map.get(key); } LOG.warn( - "Received unknown value '{}' for enum 'DistributedDbTransportType', returning UnknownEnumValue", + "Received unknown value '{}' for enum 'MaintenanceWindowRecurrenceType', returning UnknownEnumValue", key); return UnknownEnumValue; } diff --git a/bmc-apmsynthetics/src/main/java/com/oracle/bmc/apmsynthetics/model/MaintenanceWindowSchedule.java b/bmc-apmsynthetics/src/main/java/com/oracle/bmc/apmsynthetics/model/MaintenanceWindowSchedule.java index 5c5c60b08f8..c7c7d568e56 100644 --- a/bmc-apmsynthetics/src/main/java/com/oracle/bmc/apmsynthetics/model/MaintenanceWindowSchedule.java +++ b/bmc-apmsynthetics/src/main/java/com/oracle/bmc/apmsynthetics/model/MaintenanceWindowSchedule.java @@ -23,15 +23,45 @@ public final class MaintenanceWindowSchedule extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"timeStarted", "timeEnded"}) - public MaintenanceWindowSchedule(java.util.Date timeStarted, java.util.Date timeEnded) { + @java.beans.ConstructorProperties({ + "scheduleType", + "timeStarted", + "timeEnded", + "recurrenceType" + }) + public MaintenanceWindowSchedule( + MaintenanceWindowScheduleType scheduleType, + java.util.Date timeStarted, + java.util.Date timeEnded, + MaintenanceWindowRecurrenceType recurrenceType) { super(); + this.scheduleType = scheduleType; this.timeStarted = timeStarted; this.timeEnded = timeEnded; + this.recurrenceType = recurrenceType; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + /** + * Type of maintenance window schedule. If not provided, a schedule with timeStarted and + * timeEnded is treated as ONE_TIME. + */ + @com.fasterxml.jackson.annotation.JsonProperty("scheduleType") + private MaintenanceWindowScheduleType scheduleType; + + /** + * Type of maintenance window schedule. If not provided, a schedule with timeStarted and + * timeEnded is treated as ONE_TIME. + * + * @param scheduleType the value to set + * @return this builder + */ + public Builder scheduleType(MaintenanceWindowScheduleType scheduleType) { + this.scheduleType = scheduleType; + this.__explicitlySet__.add("scheduleType"); + return this; + } /** * Start time of the maintenance window, expressed in [RFC * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code @@ -74,13 +104,32 @@ public Builder timeEnded(java.util.Date timeEnded) { this.__explicitlySet__.add("timeEnded"); return this; } + /** Type of recurrence for a recurring maintenance window. */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrenceType") + private MaintenanceWindowRecurrenceType recurrenceType; + + /** + * Type of recurrence for a recurring maintenance window. + * + * @param recurrenceType the value to set + * @return this builder + */ + public Builder recurrenceType(MaintenanceWindowRecurrenceType recurrenceType) { + this.recurrenceType = recurrenceType; + this.__explicitlySet__.add("recurrenceType"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public MaintenanceWindowSchedule build() { MaintenanceWindowSchedule model = - new MaintenanceWindowSchedule(this.timeStarted, this.timeEnded); + new MaintenanceWindowSchedule( + this.scheduleType, + this.timeStarted, + this.timeEnded, + this.recurrenceType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -89,12 +138,18 @@ public MaintenanceWindowSchedule build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(MaintenanceWindowSchedule model) { + if (model.wasPropertyExplicitlySet("scheduleType")) { + this.scheduleType(model.getScheduleType()); + } if (model.wasPropertyExplicitlySet("timeStarted")) { this.timeStarted(model.getTimeStarted()); } if (model.wasPropertyExplicitlySet("timeEnded")) { this.timeEnded(model.getTimeEnded()); } + if (model.wasPropertyExplicitlySet("recurrenceType")) { + this.recurrenceType(model.getRecurrenceType()); + } return this; } } @@ -108,6 +163,23 @@ public Builder toBuilder() { return new Builder().copy(this); } + /** + * Type of maintenance window schedule. If not provided, a schedule with timeStarted and + * timeEnded is treated as ONE_TIME. + */ + @com.fasterxml.jackson.annotation.JsonProperty("scheduleType") + private final MaintenanceWindowScheduleType scheduleType; + + /** + * Type of maintenance window schedule. If not provided, a schedule with timeStarted and + * timeEnded is treated as ONE_TIME. + * + * @return the value + */ + public MaintenanceWindowScheduleType getScheduleType() { + return scheduleType; + } + /** * Start time of the maintenance window, expressed in [RFC * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code @@ -146,6 +218,19 @@ public java.util.Date getTimeEnded() { return timeEnded; } + /** Type of recurrence for a recurring maintenance window. */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrenceType") + private final MaintenanceWindowRecurrenceType recurrenceType; + + /** + * Type of recurrence for a recurring maintenance window. + * + * @return the value + */ + public MaintenanceWindowRecurrenceType getRecurrenceType() { + return recurrenceType; + } + @Override public String toString() { return this.toString(true); @@ -161,8 +246,10 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("MaintenanceWindowSchedule("); sb.append("super=").append(super.toString()); - sb.append("timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append("scheduleType=").append(String.valueOf(this.scheduleType)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); sb.append(", timeEnded=").append(String.valueOf(this.timeEnded)); + sb.append(", recurrenceType=").append(String.valueOf(this.recurrenceType)); sb.append(")"); return sb.toString(); } @@ -177,8 +264,10 @@ public boolean equals(Object o) { } MaintenanceWindowSchedule other = (MaintenanceWindowSchedule) o; - return java.util.Objects.equals(this.timeStarted, other.timeStarted) + return java.util.Objects.equals(this.scheduleType, other.scheduleType) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) && java.util.Objects.equals(this.timeEnded, other.timeEnded) + && java.util.Objects.equals(this.recurrenceType, other.recurrenceType) && super.equals(other); } @@ -186,8 +275,12 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; + result = (result * PRIME) + (this.scheduleType == null ? 43 : this.scheduleType.hashCode()); result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); result = (result * PRIME) + (this.timeEnded == null ? 43 : this.timeEnded.hashCode()); + result = + (result * PRIME) + + (this.recurrenceType == null ? 43 : this.recurrenceType.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-apmsynthetics/src/main/java/com/oracle/bmc/apmsynthetics/model/MaintenanceWindowScheduleType.java b/bmc-apmsynthetics/src/main/java/com/oracle/bmc/apmsynthetics/model/MaintenanceWindowScheduleType.java new file mode 100644 index 00000000000..4ed5e280354 --- /dev/null +++ b/bmc-apmsynthetics/src/main/java/com/oracle/bmc/apmsynthetics/model/MaintenanceWindowScheduleType.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.apmsynthetics.model; + +/** Maintenance window schedule type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") +public enum MaintenanceWindowScheduleType implements com.oracle.bmc.http.internal.BmcEnum { + OneTime("ONE_TIME"), + Recurring("RECURRING"), + + /** + * 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(MaintenanceWindowScheduleType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MaintenanceWindowScheduleType v : MaintenanceWindowScheduleType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MaintenanceWindowScheduleType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MaintenanceWindowScheduleType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MaintenanceWindowScheduleType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-apmsynthetics/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-apmsynthetics/reflect-config.json b/bmc-apmsynthetics/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-apmsynthetics/reflect-config.json index 6ec33485aeb..cf0a490ccfc 100644 --- a/bmc-apmsynthetics/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-apmsynthetics/reflect-config.json +++ b/bmc-apmsynthetics/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-apmsynthetics/reflect-config.json @@ -450,6 +450,12 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.apmsynthetics.model.MaintenanceWindowRecurrenceType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.apmsynthetics.model.MaintenanceWindowSchedule", @@ -464,6 +470,12 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.apmsynthetics.model.MaintenanceWindowScheduleType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.apmsynthetics.model.Monitor", diff --git a/bmc-apmtraces/pom.xml b/bmc-apmtraces/pom.xml index 29d0e9b755a..0fecbc5df1a 100644 --- a/bmc-apmtraces/pom.xml +++ b/bmc-apmtraces/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-apmtraces @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-appmgmtcontrol/pom.xml b/bmc-appmgmtcontrol/pom.xml index 4490ada9e00..f5eded703d2 100644 --- a/bmc-appmgmtcontrol/pom.xml +++ b/bmc-appmgmtcontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-appmgmtcontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-artifacts/pom.xml b/bmc-artifacts/pom.xml index a6f7b4c3f50..ec217523dcb 100644 --- a/bmc-artifacts/pom.xml +++ b/bmc-artifacts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-artifacts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-audit/pom.xml b/bmc-audit/pom.xml index 289885fc466..c6fa85be9c6 100644 --- a/bmc-audit/pom.xml +++ b/bmc-audit/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 diff --git a/bmc-autoscaling/pom.xml b/bmc-autoscaling/pom.xml index f39efe776fb..773995faa8d 100644 --- a/bmc-autoscaling/pom.xml +++ b/bmc-autoscaling/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-autoscaling @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-bastion/pom.xml b/bmc-bastion/pom.xml index c27cb43212b..83b4152abcb 100644 --- a/bmc-bastion/pom.xml +++ b/bmc-bastion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-bastion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-batch/pom.xml b/bmc-batch/pom.xml index 9ddab633395..3cfb7875f60 100644 --- a/bmc-batch/pom.xml +++ b/bmc-batch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-batch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-bds/pom.xml b/bmc-bds/pom.xml index e03d079f7c2..bb20f0845a5 100644 --- a/bmc-bds/pom.xml +++ b/bmc-bds/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-bds @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-blockchain/pom.xml b/bmc-blockchain/pom.xml index 40afb8cfeac..bca6e6ca2a5 100644 --- a/bmc-blockchain/pom.xml +++ b/bmc-blockchain/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-blockchain @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-bom/pom.xml b/bmc-bom/pom.xml index 7659e64fbc6..c11fa8292de 100644 --- a/bmc-bom/pom.xml +++ b/bmc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk - 3.96.0 + 3.97.0 oci-java-sdk-bom pom Oracle Cloud Infrastructure SDK - BOM @@ -38,1135 +38,1129 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-shaded-full - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-audit - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-containerengine - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-core - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-database - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-dns - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-email - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-filestorage - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-identity - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.96.0 + 3.97.0 com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.96.0 + 3.97.0 com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 3.96.0 + 3.97.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.96.0 + 3.97.0 com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.96.0 + 3.97.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl-oke-workload-identity - 3.96.0 + 3.97.0 com.oracle.oci.sdk oci-java-sdk-addons-aispeech-realtime - 3.96.0 + 3.97.0 com.oracle.oci.sdk oci-java-sdk-resourcesearch - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-waas - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-streaming - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-monitoring - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-ons - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-budget - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-workrequests - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-limits - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-functions - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-events - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-oce - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-oda - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-analytics - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-integration - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-marketplace - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-apigateway - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-dataflow - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-datascience - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-nosql - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-secrets - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-vault - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-bds - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-encryption - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-cims - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-datasafe - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-mysql - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-dataintegration - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-ocvp - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-usageapi - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-blockchain - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-loggingingestion - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-logging - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-loganalytics - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-managementdashboard - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-sch - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-loggingsearch - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-managementagent - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-cloudguard - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-opsi - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-computeinstanceagent - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-optimizer - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-tenantmanagercontrolplane - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-rover - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-databasemanagement - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-artifacts - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-apmsynthetics - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-goldengate - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-apmcontrolplane - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-apmtraces - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-networkloadbalancer - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-vulnerabilityscanning - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-databasemigration - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-servicecatalog - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-ailanguage - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-operatoraccesscontrol - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-bastion - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-genericartifactscontent - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-jms - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-devops - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservice - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservicedataplane - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-apmconfig - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-waf - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-certificates - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-certificatesmanagement - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-usage - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-databasetools - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-servicemanagerproxy - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-appmgmtcontrol - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-ospgateway - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-identitydataplane - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-visualbuilder - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-osubusage - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-osubsubscription - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-osuborganizationsubscription - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-osubbillingschedule - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-dashboardservice - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-threatintelligence - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-aivision - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-aispeech - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-stackmonitoring - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-adm - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-licensemanager - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-onesubscription - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-governancerulescontrolplane - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-waa - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-networkfirewall - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-vnmonitoring - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-emwarehouse - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-lockbox - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-fusionapps - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-mediaservices - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-opa - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-opensearch - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-cloudmigrations - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-cloudbridge - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-disasterrecovery - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-containerinstances - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-aidocument - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-queue - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-recovery - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-vbsinst - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-identitydomains - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-accessgovernancecp - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-ocicontrolcenter - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-osmanagementhub - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-fleetsoftwareupdate - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-computecloudatcustomer - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-marketplacepublisher - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-redis - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-jmsjavadownloads - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-psql - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-generativeai - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-capacitymanagement - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-desktops - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-emaildataplane - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-clusterplacementgroups - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-resourcescheduler - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-demandsignal - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-fleetappsmanagement - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-delegateaccesscontrol - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiagent - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiagentruntime - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-securityattribute - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-zpr - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-dblm - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-mngdmac - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-lustrefilestorage - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-modeldeployment - 3.96.0 - false - - - com.oracle.oci.sdk - oci-java-sdk-distributeddatabase - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-apiaccesscontrol - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-wlms - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-addons-adk - 3.96.0 + 3.97.0 com.oracle.oci.sdk oci-java-sdk-dbmulticloud - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-apiplatform - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-managedkafka - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-aidataplatform - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-multicloud - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-resourceanalytics - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-jmsutils - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-iot - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-psa - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-dif - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-batch - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-marketplaceprivateoffer - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-gdp - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-limitsincrease - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-generativeaidata - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-self - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-containerregistry - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-databasetoolsruntime - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-costad - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-datacc - 3.96.0 + 3.97.0 false com.oracle.oci.sdk oci-java-sdk-ddfs - 3.96.0 + 3.97.0 false com.oracle.oci.sdk - oci-java-sdk-distributeddatabasev26 - 3.96.0 + oci-java-sdk-clusterhealth + 3.97.0 false com.oracle.oci.sdk - oci-java-sdk-clusterhealth - 3.96.0 + oci-java-sdk-distributeddatabase + 3.97.0 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index 3b0a6ff6f6c..2f26d1c2dcd 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-budget @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-capacitymanagement/pom.xml b/bmc-capacitymanagement/pom.xml index 6a368e0b330..7eac396cbef 100644 --- a/bmc-capacitymanagement/pom.xml +++ b/bmc-capacitymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-capacitymanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-certificates/pom.xml b/bmc-certificates/pom.xml index 0f53ba09edb..212a7da853a 100644 --- a/bmc-certificates/pom.xml +++ b/bmc-certificates/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-certificates @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-certificatesmanagement/pom.xml b/bmc-certificatesmanagement/pom.xml index 79965795be9..903423a28ff 100644 --- a/bmc-certificatesmanagement/pom.xml +++ b/bmc-certificatesmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-certificatesmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-cims/pom.xml b/bmc-cims/pom.xml index 17b4b257573..5391fc81374 100644 --- a/bmc-cims/pom.xml +++ b/bmc-cims/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-cims @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-circuitbreaker/pom.xml b/bmc-circuitbreaker/pom.xml index 8315b42c61c..b2a1986fb52 100644 --- a/bmc-circuitbreaker/pom.xml +++ b/bmc-circuitbreaker/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-circuitbreaker diff --git a/bmc-cloudbridge/pom.xml b/bmc-cloudbridge/pom.xml index 07025152441..b0c33bb692c 100644 --- a/bmc-cloudbridge/pom.xml +++ b/bmc-cloudbridge/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-cloudbridge @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml index e57255fc67e..c79da9a43df 100644 --- a/bmc-cloudguard/pom.xml +++ b/bmc-cloudguard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-cloudguard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-cloudmigrations/pom.xml b/bmc-cloudmigrations/pom.xml index c3aa6eeee4f..693321c7606 100644 --- a/bmc-cloudmigrations/pom.xml +++ b/bmc-cloudmigrations/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-cloudmigrations @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-clusterhealth/pom.xml b/bmc-clusterhealth/pom.xml index 97242fc9cd8..a3cd1b11ce9 100644 --- a/bmc-clusterhealth/pom.xml +++ b/bmc-clusterhealth/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-clusterhealth @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-clusterplacementgroups/pom.xml b/bmc-clusterplacementgroups/pom.xml index 09980589da9..0afa89844c0 100644 --- a/bmc-clusterplacementgroups/pom.xml +++ b/bmc-clusterplacementgroups/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-clusterplacementgroups @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml index 814624356f1..2dcfa77208d 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.96.0 + 3.97.0 ../pom.xml @@ -93,7 +93,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.96.0 + 3.97.0 @@ -102,7 +102,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.96.0 + 3.97.0 org.glassfish.jersey.core diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml index 352f8ce0818..2ecfd6ffc94 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.96.0 + 3.97.0 ../pom.xml @@ -93,7 +93,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.96.0 + 3.97.0 @@ -102,7 +102,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.96.0 + 3.97.0 jakarta.ws.rs diff --git a/bmc-common-httpclient-choices/pom.xml b/bmc-common-httpclient-choices/pom.xml index ddeb67f0fc4..bf27d809bc6 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.96.0 + 3.97.0 ../pom.xml diff --git a/bmc-common-httpclient/pom.xml b/bmc-common-httpclient/pom.xml index d47e1f41dd7..b71a226ee81 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.96.0 + 3.97.0 ../pom.xml diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index 70cef225337..7563051708e 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml @@ -87,12 +87,12 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.96.0 + 3.97.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.96.0 + 3.97.0 @@ -137,7 +137,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.96.0 + 3.97.0 test diff --git a/bmc-common/src/main/java/com/oracle/bmc/http/internal/ClientCall.java b/bmc-common/src/main/java/com/oracle/bmc/http/internal/ClientCall.java index 9b302c74b4d..7dac4c424dc 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/http/internal/ClientCall.java +++ b/bmc-common/src/main/java/com/oracle/bmc/http/internal/ClientCall.java @@ -1140,6 +1140,7 @@ private CompletionStage callAsyncImpl() { long start = circuitBreaker.getCurrentTimestamp(); CompletionStage upstream; try { + executed = true; upstream = transientRequest .execute() diff --git a/bmc-common/src/test/java/com/oracle/bmc/http/internal/ClientCallTransientRequestLeakTest.java b/bmc-common/src/test/java/com/oracle/bmc/http/internal/ClientCallTransientRequestLeakTest.java index 20f4dea29f4..bf0e079003b 100644 --- a/bmc-common/src/test/java/com/oracle/bmc/http/internal/ClientCallTransientRequestLeakTest.java +++ b/bmc-common/src/test/java/com/oracle/bmc/http/internal/ClientCallTransientRequestLeakTest.java @@ -9,6 +9,7 @@ import com.oracle.bmc.circuitbreaker.internal.resilience4j.OciCircuitBreakerImpl; import com.oracle.bmc.http.client.HttpClient; import com.oracle.bmc.http.client.HttpRequest; +import com.oracle.bmc.http.client.HttpResponse; import com.oracle.bmc.http.client.Method; import com.oracle.bmc.model.BmcException; import org.junit.Test; @@ -19,6 +20,7 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.List; +import java.util.concurrent.CompletableFuture; import java.util.function.Supplier; import static org.junit.Assert.fail; @@ -171,6 +173,44 @@ public void requestsExecutedOrDiscarded_whenCircuitBreakerOpen_withDefaultRetrie assertAllRequestsExecutedOrDiscardedExactlyOnce(requests); } + @Test + public void requestsExecutedOrDiscarded_whenCircuitBreakerClosed_executesRequest() + throws Exception { + HttpClient mockClient = mock(HttpClient.class); + List requests = new ArrayList<>(); + + HttpRequest main = mock(HttpRequest.class); + requests.add(main); + + when(mockClient.createRequest(any())).thenReturn(main); + when(main.offloadExecutor(any())).thenReturn(main); + when(main.copy()) + .thenAnswer( + inv -> { + HttpRequest copy = mock(HttpRequest.class); + HttpResponse response = mock(HttpResponse.class); + when(copy.headers()).thenReturn(new HashMap<>()); + when(copy.execute()) + .thenReturn(CompletableFuture.completedFuture(response)); + when(response.status()).thenReturn(200); + when(response.headers()).thenReturn(new HashMap<>()); + requests.add(copy); + return copy; + }); + when(main.uri()).thenReturn(new URI("https://localhost")); + + OciCircuitBreaker closedCb = + new OciCircuitBreakerImpl(new CircuitBreakerConfiguration(), t -> true); + + ClientCall.builder(mockClient, new ClientCallTest.TestRequest(), responseBuilder()) + .circuitBreaker(closedCb) + .logger(LOG, "mockLogger") + .method(Method.GET) + .callSync(); + + assertAllRequestsExecutedOrDiscardedExactlyOnce(requests); + } + private static void assertAllRequestsExecutedOrDiscardedExactlyOnce( List requests) { for (HttpRequest r : requests) { diff --git a/bmc-computecloudatcustomer/pom.xml b/bmc-computecloudatcustomer/pom.xml index b44f63357fd..bf399ba0b28 100644 --- a/bmc-computecloudatcustomer/pom.xml +++ b/bmc-computecloudatcustomer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-computecloudatcustomer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml index 4a761ac6b78..f2b8a1ea9c9 100644 --- a/bmc-computeinstanceagent/pom.xml +++ b/bmc-computeinstanceagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-computeinstanceagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index bf653e32d02..da58df9bcbb 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 diff --git a/bmc-containerinstances/pom.xml b/bmc-containerinstances/pom.xml index d9594aca63f..e46a534fe20 100644 --- a/bmc-containerinstances/pom.xml +++ b/bmc-containerinstances/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-containerinstances @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-containerregistry/pom.xml b/bmc-containerregistry/pom.xml index 987d8beac14..e6091740daf 100644 --- a/bmc-containerregistry/pom.xml +++ b/bmc-containerregistry/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-containerregistry @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index b4de82ac8d8..936325f8f62 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.96.0 + 3.97.0 diff --git a/bmc-costad/pom.xml b/bmc-costad/pom.xml index 3bfe4f6f3e7..9a7a2edfb89 100644 --- a/bmc-costad/pom.xml +++ b/bmc-costad/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-costad @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-dashboardservice/pom.xml b/bmc-dashboardservice/pom.xml index a29420589b3..303f06070ba 100644 --- a/bmc-dashboardservice/pom.xml +++ b/bmc-dashboardservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-dashboardservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index ae3facd328d..d729060238b 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.96.0 + 3.97.0 diff --git a/bmc-databasemanagement/pom.xml b/bmc-databasemanagement/pom.xml index 193ba2725bb..3ef56e8a737 100644 --- a/bmc-databasemanagement/pom.xml +++ b/bmc-databasemanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-databasemanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-databasemigration/pom.xml b/bmc-databasemigration/pom.xml index 8acf2d4d8b3..bae93b78e52 100644 --- a/bmc-databasemigration/pom.xml +++ b/bmc-databasemigration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-databasemigration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-databasetools/pom.xml b/bmc-databasetools/pom.xml index fb0340b270a..a4df74b7afe 100644 --- a/bmc-databasetools/pom.xml +++ b/bmc-databasetools/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-databasetools @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-databasetoolsruntime/pom.xml b/bmc-databasetoolsruntime/pom.xml index 233047cb386..4b76673bc2e 100644 --- a/bmc-databasetoolsruntime/pom.xml +++ b/bmc-databasetoolsruntime/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-databasetoolsruntime @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index 615af62fa1e..8243f251f68 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-datacatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-datacc/pom.xml b/bmc-datacc/pom.xml index 7191d8f61d0..93deb43faa2 100644 --- a/bmc-datacc/pom.xml +++ b/bmc-datacc/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-datacc @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index 5825411a997..a1e4c2c28f0 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-dataflow @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml index 4dddb0ef941..b8e81801c2f 100644 --- a/bmc-dataintegration/pom.xml +++ b/bmc-dataintegration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-dataintegration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-datalabelingservice/pom.xml b/bmc-datalabelingservice/pom.xml index 173b9951cad..ea2e5baab11 100644 --- a/bmc-datalabelingservice/pom.xml +++ b/bmc-datalabelingservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-datalabelingservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-datalabelingservicedataplane/pom.xml b/bmc-datalabelingservicedataplane/pom.xml index 7cb130b4200..8b7a3b1118d 100644 --- a/bmc-datalabelingservicedataplane/pom.xml +++ b/bmc-datalabelingservicedataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-datalabelingservicedataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml index e71eb503a32..cc6c4292273 100644 --- a/bmc-datasafe/pom.xml +++ b/bmc-datasafe/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-datasafe @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafe.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafe.java index 5453fbde780..594a611a48c 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafe.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafe.java @@ -430,6 +430,24 @@ ChangeAuditPolicyCompartmentResponse changeAuditPolicyCompartment( ChangeAuditProfileCompartmentResponse changeAuditProfileCompartment( ChangeAuditProfileCompartmentRequest request); + /** + * Moves the specified saved crypto assessment into a different compartment. Only `SAVED` crypto + * assessments are supported. + * + * @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 + * ChangeCryptoAssessmentCompartment API. + */ + ChangeCryptoAssessmentCompartmentResponse changeCryptoAssessmentCompartment( + ChangeCryptoAssessmentCompartmentRequest request); + /** * Moves the Data Safe private endpoint and its dependent resources to the specified * compartment. @@ -1651,6 +1669,23 @@ DeleteAuditArchiveRetrievalResponse deleteAuditArchiveRetrieval( */ DeleteAuditTrailResponse deleteAuditTrail(DeleteAuditTrailRequest request); + /** + * Deletes the specified saved crypto assessment. Only assessments of type `SAVED` can be + * deleted. Attempts to delete a `LATEST` assessment return `400 InvalidParameter`. + * + * @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 + * DeleteCryptoAssessment API. + */ + DeleteCryptoAssessmentResponse deleteCryptoAssessment(DeleteCryptoAssessmentRequest request); + /** * Deletes the specified Data Safe private endpoint. * @@ -2211,6 +2246,25 @@ DeploySecurityPolicyDeploymentResponse deploySecurityPolicyDeployment( */ DiscoverAuditTrailsResponse discoverAuditTrails(DiscoverAuditTrailsRequest request); + /** + * Downloads the report of the specified crypto assessment. To download the crypto assessment + * report, it needs to be generated first. Please use GenerateCryptoAssessmentReport to generate + * a downloadable report in the preferred format (PDF, XLS). + * + * @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 + * DownloadCryptoAssessmentReport API. + */ + DownloadCryptoAssessmentReportResponse downloadCryptoAssessmentReport( + DownloadCryptoAssessmentReportRequest request); + /** * Downloads an already-generated discovery report. Note that the * GenerateDiscoveryReportForDownload operation is a prerequisite for the @@ -2399,6 +2453,24 @@ DownloadUserAssessmentReportResponse downloadUserAssessmentReport( EnableDataSafeConfigurationResponse enableDataSafeConfiguration( EnableDataSafeConfigurationRequest request); + /** + * Generates the report of the specified crypto assessment. Supported output formats are PDF and + * XLS. + * + * @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 + * GenerateCryptoAssessmentReport API. + */ + GenerateCryptoAssessmentReportResponse generateCryptoAssessmentReport( + GenerateCryptoAssessmentReportRequest request); + /** * Generates a downloadable discovery report. It's a prerequisite for the * DownloadDiscoveryReport operation. Use this endpoint to generate a discovery report file and @@ -2750,6 +2822,40 @@ GetCompatibleFormatsForDataTypesResponse getCompatibleFormatsForDataTypes( GetCompatibleFormatsForSensitiveTypesResponse getCompatibleFormatsForSensitiveTypes( GetCompatibleFormatsForSensitiveTypesRequest request); + /** + * Gets the details of the specified crypto assessment. + * + * @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 GetCryptoAssessment + * API. + */ + GetCryptoAssessmentResponse getCryptoAssessment(GetCryptoAssessmentRequest request); + + /** + * Gets SQLNET.ORA parameter values and quantum-readiness evaluation for the specified crypto + * assessment. + * + * @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 + * GetCryptoAssessmentSqlnetParameters API. + */ + GetCryptoAssessmentSqlnetParametersResponse getCryptoAssessmentSqlnetParameters( + GetCryptoAssessmentSqlnetParametersRequest request); + /** * Gets the details of the Data Safe configuration. * @@ -3945,6 +4051,182 @@ ListCollectedAuditVolumesResponse listCollectedAuditVolumes( */ ListColumnsResponse listColumns(ListColumnsRequest request); + /** + * Gets backup set summaries across targets in a compartment. Use assessmentId to narrow results + * to one crypto assessment. + * + * @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 + * ListCryptoAssessmentBackupSets API. + */ + ListCryptoAssessmentBackupSetsResponse listCryptoAssessmentBackupSets( + ListCryptoAssessmentBackupSetsRequest request); + + /** + * Lists the CBOM items for the specified crypto assessment. + * + * @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 + * ListCryptoAssessmentCbomItems API. + */ + ListCryptoAssessmentCbomItemsResponse listCryptoAssessmentCbomItems( + ListCryptoAssessmentCbomItemsRequest request); + + /** + * Lists certificates discovered across targets in a compartment, including target, wallet + * location, issuer, subject, validity window, expiry bucket, public key type, and status so + * expiring or weak certificates can be identified and prioritized. + * + * @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 + * ListCryptoAssessmentCertificates API. + */ + ListCryptoAssessmentCertificatesResponse listCryptoAssessmentCertificates( + ListCryptoAssessmentCertificatesRequest request); + + /** + * Lists findings in a compartment with the number of affected targets. + * + * @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 + * ListCryptoAssessmentFindingAnalytics API. + */ + ListCryptoAssessmentFindingAnalyticsResponse listCryptoAssessmentFindingAnalytics( + ListCryptoAssessmentFindingAnalyticsRequest request); + + /** + * For a selected finding, lists targets where it occurs in assessments. + * + * @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 + * ListCryptoAssessmentFindingTargets API. + */ + ListCryptoAssessmentFindingTargetsResponse listCryptoAssessmentFindingTargets( + ListCryptoAssessmentFindingTargetsRequest request); + + /** + * Lists crypto deviation findings for the specified crypto assessment. + * + * @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 + * ListCryptoAssessmentFindings API. + */ + ListCryptoAssessmentFindingsResponse listCryptoAssessmentFindings( + ListCryptoAssessmentFindingsRequest request); + + /** + * Gets a paginated list of cryptographic keys across targets in a compartment. Use assessmentId + * to narrow results to one crypto assessment. + * + * @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 + * ListCryptoAssessmentKeys API. + */ + ListCryptoAssessmentKeysResponse listCryptoAssessmentKeys( + ListCryptoAssessmentKeysRequest request); + + /** + * Lists TDE object encryption summaries across targets in a compartment. Use assessmentId to + * narrow results to one crypto assessment, and objectType to return either tablespace-level or + * column-level TDE observations. + * + * @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 + * ListCryptoAssessmentTdeObjects API. + */ + ListCryptoAssessmentTdeObjectsResponse listCryptoAssessmentTdeObjects( + ListCryptoAssessmentTdeObjectsRequest request); + + /** + * Gets wallet details across targets in a compartment. Use assessmentId to narrow results to + * one crypto assessment. + * + * @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 + * ListCryptoAssessmentWallets API. + */ + ListCryptoAssessmentWalletsResponse listCryptoAssessmentWallets( + ListCryptoAssessmentWalletsRequest request); + + /** + * Gets a list of crypto assessments with filtering and pagination support. + * + * @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 + * ListCryptoAssessments API. + */ + ListCryptoAssessmentsResponse listCryptoAssessments(ListCryptoAssessmentsRequest request); + /** * Gets a list of Data Safe private endpoints. * @@ -5898,6 +6180,25 @@ PatchTargetAlertPolicyAssociationResponse patchTargetAlertPolicyAssociation( */ PurgeSqlCollectionLogsResponse purgeSqlCollectionLogs(PurgeSqlCollectionLogsRequest request); + /** + * Runs a crypto assessment, refreshes the latest assessment, and saves it for future reference. + * This operation runs with a cryptoAssessmentId of type LATEST. Before you start, first call + * the ListCryptoAssessments operation with filter \"type = latest\" to get the crypto + * assessment ID for the target's latest assessment. + * + * @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 + * RefreshCryptoAssessment API. + */ + RefreshCryptoAssessmentResponse refreshCryptoAssessment(RefreshCryptoAssessmentRequest request); + /** * Refreshes the specified database security configuration. * @@ -6389,6 +6690,22 @@ UpdateAuditArchiveRetrievalResponse updateAuditArchiveRetrieval( */ UpdateAuditTrailResponse updateAuditTrail(UpdateAuditTrailRequest request); + /** + * Updates one or more attributes of the specified crypto assessment. + * + * @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 + * UpdateCryptoAssessment API. + */ + UpdateCryptoAssessmentResponse updateCryptoAssessment(UpdateCryptoAssessmentRequest request); + /** * Updates one or more attributes of the specified Data Safe private endpoint. * diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsync.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsync.java index 870027ec3fa..e97ce8f66af 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsync.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsync.java @@ -402,6 +402,25 @@ java.util.concurrent.Future changeAuditPol ChangeAuditProfileCompartmentResponse> handler); + /** + * Moves the specified saved crypto assessment into a different compartment. Only `SAVED` crypto + * assessments are supported. + * + * @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 + changeCryptoAssessmentCompartment( + ChangeCryptoAssessmentCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeCryptoAssessmentCompartmentRequest, + ChangeCryptoAssessmentCompartmentResponse> + handler); + /** * Moves the Data Safe private endpoint and its dependent resources to the specified * compartment. @@ -1633,6 +1652,23 @@ java.util.concurrent.Future deleteAuditTrail( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Deletes the specified saved crypto assessment. Only assessments of type `SAVED` can be + * deleted. Attempts to delete a `LATEST` assessment return `400 InvalidParameter`. + * + * @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 deleteCryptoAssessment( + DeleteCryptoAssessmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteCryptoAssessmentRequest, DeleteCryptoAssessmentResponse> + handler); + /** * Deletes the specified Data Safe private endpoint. * @@ -2188,6 +2224,26 @@ java.util.concurrent.Future discoverAuditTrails( DiscoverAuditTrailsRequest, DiscoverAuditTrailsResponse> handler); + /** + * Downloads the report of the specified crypto assessment. To download the crypto assessment + * report, it needs to be generated first. Please use GenerateCryptoAssessmentReport to generate + * a downloadable report in the preferred format (PDF, XLS). + * + * @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 + downloadCryptoAssessmentReport( + DownloadCryptoAssessmentReportRequest request, + com.oracle.bmc.responses.AsyncHandler< + DownloadCryptoAssessmentReportRequest, + DownloadCryptoAssessmentReportResponse> + handler); + /** * Downloads an already-generated discovery report. Note that the * GenerateDiscoveryReportForDownload operation is a prerequisite for the @@ -2375,6 +2431,25 @@ java.util.concurrent.Future enableDataSafeC EnableDataSafeConfigurationRequest, EnableDataSafeConfigurationResponse> handler); + /** + * Generates the report of the specified crypto assessment. Supported output formats are PDF and + * XLS. + * + * @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 + generateCryptoAssessmentReport( + GenerateCryptoAssessmentReportRequest request, + com.oracle.bmc.responses.AsyncHandler< + GenerateCryptoAssessmentReportRequest, + GenerateCryptoAssessmentReportResponse> + handler); + /** * Generates a downloadable discovery report. It's a prerequisite for the * DownloadDiscoveryReport operation. Use this endpoint to generate a discovery report file and @@ -2729,6 +2804,41 @@ java.util.concurrent.Future getAuditTrail( GetCompatibleFormatsForSensitiveTypesResponse> handler); + /** + * Gets the details of the specified crypto assessment. + * + * @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 getCryptoAssessment( + GetCryptoAssessmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetCryptoAssessmentRequest, GetCryptoAssessmentResponse> + handler); + + /** + * Gets SQLNET.ORA parameter values and quantum-readiness evaluation for the specified crypto + * assessment. + * + * @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 + getCryptoAssessmentSqlnetParameters( + GetCryptoAssessmentSqlnetParametersRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetCryptoAssessmentSqlnetParametersRequest, + GetCryptoAssessmentSqlnetParametersResponse> + handler); + /** * Gets the details of the Data Safe configuration. * @@ -3900,6 +4010,186 @@ java.util.concurrent.Future listColumns( ListColumnsRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Gets backup set summaries across targets in a compartment. Use assessmentId to narrow results + * to one crypto assessment. + * + * @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 + listCryptoAssessmentBackupSets( + ListCryptoAssessmentBackupSetsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentBackupSetsRequest, + ListCryptoAssessmentBackupSetsResponse> + handler); + + /** + * Lists the CBOM items for the specified crypto assessment. + * + * @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 + listCryptoAssessmentCbomItems( + ListCryptoAssessmentCbomItemsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentCbomItemsRequest, + ListCryptoAssessmentCbomItemsResponse> + handler); + + /** + * Lists certificates discovered across targets in a compartment, including target, wallet + * location, issuer, subject, validity window, expiry bucket, public key type, and status so + * expiring or weak certificates can be identified and prioritized. + * + * @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 + listCryptoAssessmentCertificates( + ListCryptoAssessmentCertificatesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentCertificatesRequest, + ListCryptoAssessmentCertificatesResponse> + handler); + + /** + * Lists findings in a compartment with the number of affected targets. + * + * @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 + listCryptoAssessmentFindingAnalytics( + ListCryptoAssessmentFindingAnalyticsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentFindingAnalyticsRequest, + ListCryptoAssessmentFindingAnalyticsResponse> + handler); + + /** + * For a selected finding, lists targets where it occurs in assessments. + * + * @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 + listCryptoAssessmentFindingTargets( + ListCryptoAssessmentFindingTargetsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentFindingTargetsRequest, + ListCryptoAssessmentFindingTargetsResponse> + handler); + + /** + * Lists crypto deviation findings for the specified crypto assessment. + * + * @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 listCryptoAssessmentFindings( + ListCryptoAssessmentFindingsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentFindingsRequest, + ListCryptoAssessmentFindingsResponse> + handler); + + /** + * Gets a paginated list of cryptographic keys across targets in a compartment. Use assessmentId + * to narrow results to one crypto assessment. + * + * @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 listCryptoAssessmentKeys( + ListCryptoAssessmentKeysRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentKeysRequest, ListCryptoAssessmentKeysResponse> + handler); + + /** + * Lists TDE object encryption summaries across targets in a compartment. Use assessmentId to + * narrow results to one crypto assessment, and objectType to return either tablespace-level or + * column-level TDE observations. + * + * @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 + listCryptoAssessmentTdeObjects( + ListCryptoAssessmentTdeObjectsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentTdeObjectsRequest, + ListCryptoAssessmentTdeObjectsResponse> + handler); + + /** + * Gets wallet details across targets in a compartment. Use assessmentId to narrow results to + * one crypto assessment. + * + * @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 listCryptoAssessmentWallets( + ListCryptoAssessmentWalletsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentWalletsRequest, ListCryptoAssessmentWalletsResponse> + handler); + + /** + * Gets a list of crypto assessments with filtering and pagination support. + * + * @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 listCryptoAssessments( + ListCryptoAssessmentsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentsRequest, ListCryptoAssessmentsResponse> + handler); + /** * Gets a list of Data Safe private endpoints. * @@ -5846,6 +6136,25 @@ java.util.concurrent.Future purgeSqlCollectionLo PurgeSqlCollectionLogsRequest, PurgeSqlCollectionLogsResponse> handler); + /** + * Runs a crypto assessment, refreshes the latest assessment, and saves it for future reference. + * This operation runs with a cryptoAssessmentId of type LATEST. Before you start, first call + * the ListCryptoAssessments operation with filter \"type = latest\" to get the crypto + * assessment ID for the target's latest assessment. + * + * @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 refreshCryptoAssessment( + RefreshCryptoAssessmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + RefreshCryptoAssessmentRequest, RefreshCryptoAssessmentResponse> + handler); + /** * Refreshes the specified database security configuration. * @@ -6335,6 +6644,22 @@ java.util.concurrent.Future updateAuditTrail( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Updates one or more attributes of the specified crypto assessment. + * + * @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 updateCryptoAssessment( + UpdateCryptoAssessmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateCryptoAssessmentRequest, UpdateCryptoAssessmentResponse> + handler); + /** * Updates one or more attributes of the specified Data Safe private endpoint. * diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsyncClient.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsyncClient.java index c31e99f7802..528f640ef7f 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsyncClient.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsyncClient.java @@ -56,7 +56,7 @@ public class DataSafeAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncC LOG.warn( com.oracle.bmc.util.StreamUtils.getStreamWarningMessage( "DataSafeAsyncClient", - "downloadDiscoveryReport,downloadMaskingLog,downloadMaskingPolicy,downloadMaskingReport,downloadPrivilegeScript,downloadSecurityAssessmentReport,downloadSensitiveDataModel,downloadSensitiveTypesExport,downloadUserAssessmentReport,generateOnPremConnectorConfiguration,getReportContent")); + "downloadCryptoAssessmentReport,downloadDiscoveryReport,downloadMaskingLog,downloadMaskingPolicy,downloadMaskingReport,downloadPrivilegeScript,downloadSecurityAssessmentReport,downloadSensitiveDataModel,downloadSensitiveTypesExport,downloadUserAssessmentReport,generateOnPremConnectorConfiguration,getReportContent")); } } @@ -129,9 +129,6 @@ public java.util.concurrent.Future activateTarge final com.oracle.bmc.responses.AsyncHandler< ActivateTargetDatabaseRequest, ActivateTargetDatabaseResponse> handler) { - Objects.requireNonNull( - request.getActivateTargetDatabaseDetails(), - "activateTargetDatabaseDetails is required"); Validate.notBlank(request.getTargetDatabaseId(), "targetDatabaseId must not be blank"); @@ -850,6 +847,47 @@ public java.util.concurrent.Future changeAlertCo .callAsync(handler); } + @Override + public java.util.concurrent.Future + changeCryptoAssessmentCompartment( + ChangeCryptoAssessmentCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeCryptoAssessmentCompartmentRequest, + ChangeCryptoAssessmentCompartmentResponse> + handler) { + + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + Objects.requireNonNull( + request.getChangeCryptoAssessmentCompartmentDetails(), + "changeCryptoAssessmentCompartmentDetails is required"); + + return clientCall(request, ChangeCryptoAssessmentCompartmentResponse::builder) + .logger(LOG, "changeCryptoAssessmentCompartment") + .serviceDetails( + "DataSafe", + "ChangeCryptoAssessmentCompartment", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ChangeCryptoAssessmentCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeCryptoAssessmentCompartmentRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam(request.getCryptoAssessmentId()) + .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", + ChangeCryptoAssessmentCompartmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ChangeCryptoAssessmentCompartmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future changeDataSafePrivateEndpointCompartment( @@ -3408,6 +3446,37 @@ public java.util.concurrent.Future deleteAuditTrail( .callAsync(handler); } + @Override + public java.util.concurrent.Future deleteCryptoAssessment( + DeleteCryptoAssessmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteCryptoAssessmentRequest, DeleteCryptoAssessmentResponse> + handler) { + + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + + return clientCall(request, DeleteCryptoAssessmentResponse::builder) + .logger(LOG, "deleteCryptoAssessment") + .serviceDetails( + "DataSafe", + "DeleteCryptoAssessment", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/DeleteCryptoAssessment") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteCryptoAssessmentRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam(request.getCryptoAssessmentId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteCryptoAssessmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteCryptoAssessmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future deleteDataSafePrivateEndpoint( @@ -4489,6 +4558,52 @@ public java.util.concurrent.Future discoverAuditTra .callAsync(handler); } + @Override + public java.util.concurrent.Future + downloadCryptoAssessmentReport( + DownloadCryptoAssessmentReportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DownloadCryptoAssessmentReportRequest, + DownloadCryptoAssessmentReportResponse> + handler) { + + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + Objects.requireNonNull( + request.getDownloadCryptoAssessmentReportDetails(), + "downloadCryptoAssessmentReportDetails is required"); + + return clientCall(request, DownloadCryptoAssessmentReportResponse::builder) + .logger(LOG, "downloadCryptoAssessmentReport") + .serviceDetails( + "DataSafe", + "DownloadCryptoAssessmentReport", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/DownloadCryptoAssessmentReport") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DownloadCryptoAssessmentReportRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam(request.getCryptoAssessmentId()) + .appendPathParam("actions") + .appendPathParam("downloadReport") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + java.io.InputStream.class, + DownloadCryptoAssessmentReportResponse.Builder::inputStream) + .handleResponseHeaderString( + "opc-request-id", + DownloadCryptoAssessmentReportResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", DownloadCryptoAssessmentReportResponse.Builder::etag) + .handleResponseHeaderLong( + "content-length", + DownloadCryptoAssessmentReportResponse.Builder::contentLength) + .callAsync(handler); + } + @Override public java.util.concurrent.Future downloadDiscoveryReport( DownloadDiscoveryReportRequest request, @@ -4893,6 +5008,47 @@ public java.util.concurrent.Future downloadPriv .callAsync(handler); } + @Override + public java.util.concurrent.Future + generateCryptoAssessmentReport( + GenerateCryptoAssessmentReportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GenerateCryptoAssessmentReportRequest, + GenerateCryptoAssessmentReportResponse> + handler) { + + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + Objects.requireNonNull( + request.getGenerateCryptoAssessmentReportDetails(), + "generateCryptoAssessmentReportDetails is required"); + + return clientCall(request, GenerateCryptoAssessmentReportResponse::builder) + .logger(LOG, "generateCryptoAssessmentReport") + .serviceDetails( + "DataSafe", + "GenerateCryptoAssessmentReport", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/GenerateCryptoAssessmentReport") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(GenerateCryptoAssessmentReportRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam(request.getCryptoAssessmentId()) + .appendPathParam("actions") + .appendPathParam("generateReport") + .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", + GenerateCryptoAssessmentReportResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + GenerateCryptoAssessmentReportResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future generateDiscoveryReportForDownload( @@ -5623,6 +5779,82 @@ public java.util.concurrent.Future getAuditTrail( .callAsync(handler); } + @Override + public java.util.concurrent.Future getCryptoAssessment( + GetCryptoAssessmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetCryptoAssessmentRequest, GetCryptoAssessmentResponse> + handler) { + + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + + return clientCall(request, GetCryptoAssessmentResponse::builder) + .logger(LOG, "getCryptoAssessment") + .serviceDetails( + "DataSafe", + "GetCryptoAssessment", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/GetCryptoAssessment") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetCryptoAssessmentRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam(request.getCryptoAssessmentId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.CryptoAssessment.class, + GetCryptoAssessmentResponse.Builder::cryptoAssessment) + .handleResponseHeaderString( + "opc-request-id", GetCryptoAssessmentResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetCryptoAssessmentResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getCryptoAssessmentSqlnetParameters( + GetCryptoAssessmentSqlnetParametersRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetCryptoAssessmentSqlnetParametersRequest, + GetCryptoAssessmentSqlnetParametersResponse> + handler) { + + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + + return clientCall(request, GetCryptoAssessmentSqlnetParametersResponse::builder) + .logger(LOG, "getCryptoAssessmentSqlnetParameters") + .serviceDetails( + "DataSafe", + "GetCryptoAssessmentSqlnetParameters", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/GetCryptoAssessmentSqlnetParameters") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetCryptoAssessmentSqlnetParametersRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam(request.getCryptoAssessmentId()) + .appendPathParam("sqlnetParameters") + .appendQueryParam("parameter", request.getParameter()) + .appendEnumQueryParam("quantumReadiness", request.getQuantumReadiness()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.CryptoAssessmentSqlnetParameters.class, + GetCryptoAssessmentSqlnetParametersResponse.Builder + ::cryptoAssessmentSqlnetParameters) + .handleResponseHeaderString( + "opc-next-page", + GetCryptoAssessmentSqlnetParametersResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + GetCryptoAssessmentSqlnetParametersResponse.Builder::opcPrevPage) + .handleResponseHeaderString( + "opc-request-id", + GetCryptoAssessmentSqlnetParametersResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getDataSafeConfiguration( GetDataSafeConfigurationRequest request, @@ -8091,6 +8323,550 @@ public java.util.concurrent.Future listColumns( .callAsync(handler); } + @Override + public java.util.concurrent.Future + listCryptoAssessmentBackupSets( + ListCryptoAssessmentBackupSetsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentBackupSetsRequest, + ListCryptoAssessmentBackupSetsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListCryptoAssessmentBackupSetsResponse::builder) + .logger(LOG, "listCryptoAssessmentBackupSets") + .serviceDetails( + "DataSafe", + "ListCryptoAssessmentBackupSets", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentBackupSets") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCryptoAssessmentBackupSetsRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam("backupSets") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendQueryParam("assessmentId", request.getAssessmentId()) + .appendEnumQueryParam("assessmentType", request.getAssessmentType()) + .appendQueryParam("targetId", request.getTargetId()) + .appendListQueryParam( + "targetIds", + request.getTargetIds(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("backupSetKey", request.getBackupSetKey()) + .appendQueryParam("isEncrypted", request.getIsEncrypted()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.CryptoAssessmentBackupSetCollection.class, + ListCryptoAssessmentBackupSetsResponse.Builder + ::cryptoAssessmentBackupSetCollection) + .handleResponseHeaderString( + "opc-request-id", + ListCryptoAssessmentBackupSetsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListCryptoAssessmentBackupSetsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + ListCryptoAssessmentBackupSetsResponse.Builder::opcPrevPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listCryptoAssessmentCbomItems( + ListCryptoAssessmentCbomItemsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentCbomItemsRequest, + ListCryptoAssessmentCbomItemsResponse> + handler) { + + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + + return clientCall(request, ListCryptoAssessmentCbomItemsResponse::builder) + .logger(LOG, "listCryptoAssessmentCbomItems") + .serviceDetails( + "DataSafe", + "ListCryptoAssessmentCbomItems", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentCbomItems") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCryptoAssessmentCbomItemsRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam(request.getCryptoAssessmentId()) + .appendPathParam("cbomItems") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.CryptoAssessmentCbomItemCollection.class, + ListCryptoAssessmentCbomItemsResponse.Builder + ::cryptoAssessmentCbomItemCollection) + .handleResponseHeaderString( + "opc-request-id", + ListCryptoAssessmentCbomItemsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listCryptoAssessmentCertificates( + ListCryptoAssessmentCertificatesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentCertificatesRequest, + ListCryptoAssessmentCertificatesResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListCryptoAssessmentCertificatesResponse::builder) + .logger(LOG, "listCryptoAssessmentCertificates") + .serviceDetails( + "DataSafe", + "ListCryptoAssessmentCertificates", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentCertificates") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCryptoAssessmentCertificatesRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam("certificates") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendQueryParam("assessmentId", request.getAssessmentId()) + .appendEnumQueryParam("assessmentType", request.getAssessmentType()) + .appendQueryParam("targetId", request.getTargetId()) + .appendListQueryParam( + "targetIds", + request.getTargetIds(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "certificateType", + request.getCertificateType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "status", + request.getStatus(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "publicKeyType", + request.getPublicKeyType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "signatureAlgorithm", + request.getSignatureAlgorithm(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("expiryBucket", request.getExpiryBucket()) + .appendQueryParam("daysToExpiry", request.getDaysToExpiry()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.CryptoAssessmentCertificateCollection.class, + ListCryptoAssessmentCertificatesResponse.Builder + ::cryptoAssessmentCertificateCollection) + .handleResponseHeaderString( + "opc-request-id", + ListCryptoAssessmentCertificatesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListCryptoAssessmentCertificatesResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + ListCryptoAssessmentCertificatesResponse.Builder::opcPrevPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listCryptoAssessmentFindingAnalytics( + ListCryptoAssessmentFindingAnalyticsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentFindingAnalyticsRequest, + ListCryptoAssessmentFindingAnalyticsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListCryptoAssessmentFindingAnalyticsResponse::builder) + .logger(LOG, "listCryptoAssessmentFindingAnalytics") + .serviceDetails( + "DataSafe", + "ListCryptoAssessmentFindingAnalytics", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentFindingAnalytics") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCryptoAssessmentFindingAnalyticsRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam("findingAnalytics") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendEnumQueryParam("category", request.getCategory()) + .appendListQueryParam( + "findingKey", + request.getFindingKey(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("isQuantumReadinessCheck", request.getIsQuantumReadinessCheck()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.CryptoAssessmentFindingAnalyticsCollection + .class, + ListCryptoAssessmentFindingAnalyticsResponse.Builder + ::cryptoAssessmentFindingAnalyticsCollection) + .handleResponseHeaderString( + "opc-request-id", + ListCryptoAssessmentFindingAnalyticsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListCryptoAssessmentFindingAnalyticsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + ListCryptoAssessmentFindingAnalyticsResponse.Builder::opcPrevPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listCryptoAssessmentFindingTargets( + ListCryptoAssessmentFindingTargetsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentFindingTargetsRequest, + ListCryptoAssessmentFindingTargetsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + Objects.requireNonNull(request.getFindingKey(), "findingKey is required"); + + return clientCall(request, ListCryptoAssessmentFindingTargetsResponse::builder) + .logger(LOG, "listCryptoAssessmentFindingTargets") + .serviceDetails( + "DataSafe", + "ListCryptoAssessmentFindingTargets", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentFindingTargets") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCryptoAssessmentFindingTargetsRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam("findingTargets") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendListQueryParam( + "findingKey", + request.getFindingKey(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendEnumQueryParam("assessmentType", request.getAssessmentType()) + .appendQueryParam("targetId", request.getTargetId()) + .appendListQueryParam( + "targetIds", + request.getTargetIds(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendEnumQueryParam("status", request.getStatus()) + .appendQueryParam("isQuantumReadinessCheck", request.getIsQuantumReadinessCheck()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.CryptoAssessmentFindingTargetCollection.class, + ListCryptoAssessmentFindingTargetsResponse.Builder + ::cryptoAssessmentFindingTargetCollection) + .handleResponseHeaderString( + "opc-request-id", + ListCryptoAssessmentFindingTargetsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListCryptoAssessmentFindingTargetsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + ListCryptoAssessmentFindingTargetsResponse.Builder::opcPrevPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listCryptoAssessmentFindings( + ListCryptoAssessmentFindingsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentFindingsRequest, + ListCryptoAssessmentFindingsResponse> + handler) { + + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + + return clientCall(request, ListCryptoAssessmentFindingsResponse::builder) + .logger(LOG, "listCryptoAssessmentFindings") + .serviceDetails( + "DataSafe", + "ListCryptoAssessmentFindings", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentFindings") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCryptoAssessmentFindingsRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam(request.getCryptoAssessmentId()) + .appendPathParam("findings") + .appendQueryParam("findingKey", request.getFindingKey()) + .appendQueryParam("title", request.getTitle()) + .appendEnumQueryParam("category", request.getCategory()) + .appendEnumQueryParam("status", request.getStatus()) + .appendQueryParam("isQuantumReadinessCheck", request.getIsQuantumReadinessCheck()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.CryptoAssessmentFindingCollection.class, + ListCryptoAssessmentFindingsResponse.Builder + ::cryptoAssessmentFindingCollection) + .handleResponseHeaderString( + "opc-request-id", + ListCryptoAssessmentFindingsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListCryptoAssessmentFindingsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listCryptoAssessmentKeys( + ListCryptoAssessmentKeysRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentKeysRequest, ListCryptoAssessmentKeysResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListCryptoAssessmentKeysResponse::builder) + .logger(LOG, "listCryptoAssessmentKeys") + .serviceDetails( + "DataSafe", + "ListCryptoAssessmentKeys", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentKeys") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCryptoAssessmentKeysRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam("keys") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendQueryParam("assessmentId", request.getAssessmentId()) + .appendEnumQueryParam("assessmentType", request.getAssessmentType()) + .appendQueryParam("targetId", request.getTargetId()) + .appendListQueryParam( + "targetIds", + request.getTargetIds(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendEnumQueryParam("feature", request.getFeature()) + .appendQueryParam("keyId", request.getKeyId()) + .appendEnumQueryParam("keyType", request.getKeyType()) + .appendListQueryParam( + "keyManagerType", + request.getKeyManagerType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.CryptoAssessmentKeyCollection.class, + ListCryptoAssessmentKeysResponse.Builder::cryptoAssessmentKeyCollection) + .handleResponseHeaderString( + "opc-request-id", ListCryptoAssessmentKeysResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListCryptoAssessmentKeysResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListCryptoAssessmentKeysResponse.Builder::opcPrevPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listCryptoAssessmentTdeObjects( + ListCryptoAssessmentTdeObjectsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentTdeObjectsRequest, + ListCryptoAssessmentTdeObjectsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + Objects.requireNonNull(request.getObjectType(), "objectType is required"); + + return clientCall(request, ListCryptoAssessmentTdeObjectsResponse::builder) + .logger(LOG, "listCryptoAssessmentTdeObjects") + .serviceDetails( + "DataSafe", + "ListCryptoAssessmentTdeObjects", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentTdeObjects") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCryptoAssessmentTdeObjectsRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam("tdeObjects") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendQueryParam("assessmentId", request.getAssessmentId()) + .appendEnumQueryParam("assessmentType", request.getAssessmentType()) + .appendQueryParam("targetId", request.getTargetId()) + .appendListQueryParam( + "targetIds", + request.getTargetIds(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendEnumQueryParam("objectType", request.getObjectType()) + .appendEnumQueryParam("quantumReadiness", request.getQuantumReadiness()) + .appendListQueryParam( + "encryptionObserved", + request.getEncryptionObserved(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendEnumQueryParam("encryptionStatus", request.getEncryptionStatus()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.CryptoAssessmentTdeObjectCollection.class, + ListCryptoAssessmentTdeObjectsResponse.Builder + ::cryptoAssessmentTdeObjectCollection) + .handleResponseHeaderString( + "opc-request-id", + ListCryptoAssessmentTdeObjectsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListCryptoAssessmentTdeObjectsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + ListCryptoAssessmentTdeObjectsResponse.Builder::opcPrevPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listCryptoAssessmentWallets( + ListCryptoAssessmentWalletsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentWalletsRequest, + ListCryptoAssessmentWalletsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListCryptoAssessmentWalletsResponse::builder) + .logger(LOG, "listCryptoAssessmentWallets") + .serviceDetails( + "DataSafe", + "ListCryptoAssessmentWallets", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentWallets") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCryptoAssessmentWalletsRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam("wallets") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendQueryParam("assessmentId", request.getAssessmentId()) + .appendEnumQueryParam("assessmentType", request.getAssessmentType()) + .appendQueryParam("targetId", request.getTargetId()) + .appendListQueryParam( + "targetIds", + request.getTargetIds(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendEnumQueryParam("feature", request.getFeature()) + .appendListQueryParam( + "walletEncryptionAlgorithm", + request.getWalletEncryptionAlgorithm(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.CryptoAssessmentWalletCollection.class, + ListCryptoAssessmentWalletsResponse.Builder + ::cryptoAssessmentWalletCollection) + .handleResponseHeaderString( + "opc-request-id", ListCryptoAssessmentWalletsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListCryptoAssessmentWalletsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListCryptoAssessmentWalletsResponse.Builder::opcPrevPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listCryptoAssessments( + ListCryptoAssessmentsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentsRequest, ListCryptoAssessmentsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListCryptoAssessmentsResponse::builder) + .logger(LOG, "listCryptoAssessments") + .serviceDetails( + "DataSafe", + "ListCryptoAssessments", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessments") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCryptoAssessmentsRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("type", request.getType()) + .appendQueryParam("assessmentId", request.getAssessmentId()) + .appendQueryParam("targetId", request.getTargetId()) + .appendListQueryParam( + "targetIds", + request.getTargetIds(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("targetDatabaseGroupId", request.getTargetDatabaseGroupId()) + .appendEnumQueryParam("targetType", request.getTargetType()) + .appendListQueryParam( + "postureCategory", + request.getPostureCategory(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("isAssessmentScheduled", request.getIsAssessmentScheduled()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.CryptoAssessmentCollection.class, + ListCryptoAssessmentsResponse.Builder::cryptoAssessmentCollection) + .handleResponseHeaderString( + "opc-request-id", ListCryptoAssessmentsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListCryptoAssessmentsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListCryptoAssessmentsResponse.Builder::opcPrevPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listDataSafePrivateEndpoints( @@ -12565,6 +13341,43 @@ public java.util.concurrent.Future purgeSqlColle .callAsync(handler); } + @Override + public java.util.concurrent.Future refreshCryptoAssessment( + RefreshCryptoAssessmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RefreshCryptoAssessmentRequest, RefreshCryptoAssessmentResponse> + handler) { + + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + Objects.requireNonNull( + request.getRunCryptoAssessmentDetails(), "runCryptoAssessmentDetails is required"); + + return clientCall(request, RefreshCryptoAssessmentResponse::builder) + .logger(LOG, "refreshCryptoAssessment") + .serviceDetails( + "DataSafe", + "RefreshCryptoAssessment", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/RefreshCryptoAssessment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RefreshCryptoAssessmentRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam(request.getCryptoAssessmentId()) + .appendPathParam("actions") + .appendPathParam("refresh") + .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", + RefreshCryptoAssessmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", RefreshCryptoAssessmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future refreshDatabaseSecurityConfiguration( @@ -13589,6 +14402,41 @@ public java.util.concurrent.Future updateAuditTrail( .callAsync(handler); } + @Override + public java.util.concurrent.Future updateCryptoAssessment( + UpdateCryptoAssessmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateCryptoAssessmentRequest, UpdateCryptoAssessmentResponse> + handler) { + + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + Objects.requireNonNull( + request.getUpdateCryptoAssessmentDetails(), + "updateCryptoAssessmentDetails is required"); + + return clientCall(request, UpdateCryptoAssessmentResponse::builder) + .logger(LOG, "updateCryptoAssessment") + .serviceDetails( + "DataSafe", + "UpdateCryptoAssessment", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/UpdateCryptoAssessment") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateCryptoAssessmentRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam(request.getCryptoAssessmentId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateCryptoAssessmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateCryptoAssessmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updateDataSafePrivateEndpoint( diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeClient.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeClient.java index a13f436bfbb..720232fcf9c 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeClient.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeClient.java @@ -71,7 +71,7 @@ public class DataSafeClient extends com.oracle.bmc.http.internal.BaseSyncClient LOG.warn( com.oracle.bmc.util.StreamUtils.getStreamWarningMessage( "DataSafeClient", - "downloadDiscoveryReport,downloadMaskingLog,downloadMaskingPolicy,downloadMaskingReport,downloadPrivilegeScript,downloadSecurityAssessmentReport,downloadSensitiveDataModel,downloadSensitiveTypesExport,downloadUserAssessmentReport,generateOnPremConnectorConfiguration,getReportContent")); + "downloadCryptoAssessmentReport,downloadDiscoveryReport,downloadMaskingLog,downloadMaskingPolicy,downloadMaskingReport,downloadPrivilegeScript,downloadSecurityAssessmentReport,downloadSensitiveDataModel,downloadSensitiveTypesExport,downloadUserAssessmentReport,generateOnPremConnectorConfiguration,getReportContent")); } } @@ -153,9 +153,6 @@ public void setRegion(String regionId) { @Override public ActivateTargetDatabaseResponse activateTargetDatabase( ActivateTargetDatabaseRequest request) { - Objects.requireNonNull( - request.getActivateTargetDatabaseDetails(), - "activateTargetDatabaseDetails is required"); Validate.notBlank(request.getTargetDatabaseId(), "targetDatabaseId must not be blank"); @@ -814,6 +811,43 @@ public ChangeAuditProfileCompartmentResponse changeAuditProfileCompartment( .callSync(); } + @Override + public ChangeCryptoAssessmentCompartmentResponse changeCryptoAssessmentCompartment( + ChangeCryptoAssessmentCompartmentRequest request) { + + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + Objects.requireNonNull( + request.getChangeCryptoAssessmentCompartmentDetails(), + "changeCryptoAssessmentCompartmentDetails is required"); + + return clientCall(request, ChangeCryptoAssessmentCompartmentResponse::builder) + .logger(LOG, "changeCryptoAssessmentCompartment") + .serviceDetails( + "DataSafe", + "ChangeCryptoAssessmentCompartment", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ChangeCryptoAssessmentCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeCryptoAssessmentCompartmentRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam(request.getCryptoAssessmentId()) + .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", + ChangeCryptoAssessmentCompartmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ChangeCryptoAssessmentCompartmentResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ChangeDataSafePrivateEndpointCompartmentResponse changeDataSafePrivateEndpointCompartment( @@ -3160,6 +3194,35 @@ public DeleteAuditTrailResponse deleteAuditTrail(DeleteAuditTrailRequest request .callSync(); } + @Override + public DeleteCryptoAssessmentResponse deleteCryptoAssessment( + DeleteCryptoAssessmentRequest request) { + + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + + return clientCall(request, DeleteCryptoAssessmentResponse::builder) + .logger(LOG, "deleteCryptoAssessment") + .serviceDetails( + "DataSafe", + "DeleteCryptoAssessment", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/DeleteCryptoAssessment") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteCryptoAssessmentRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam(request.getCryptoAssessmentId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + DeleteCryptoAssessmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteCryptoAssessmentResponse.Builder::opcRequestId) + .callSync(); + } + @Override public DeleteDataSafePrivateEndpointResponse deleteDataSafePrivateEndpoint( DeleteDataSafePrivateEndpointRequest request) { @@ -4143,6 +4206,48 @@ public DiscoverAuditTrailsResponse discoverAuditTrails(DiscoverAuditTrailsReques .callSync(); } + @Override + public DownloadCryptoAssessmentReportResponse downloadCryptoAssessmentReport( + DownloadCryptoAssessmentReportRequest request) { + + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + Objects.requireNonNull( + request.getDownloadCryptoAssessmentReportDetails(), + "downloadCryptoAssessmentReportDetails is required"); + + return clientCall(request, DownloadCryptoAssessmentReportResponse::builder) + .logger(LOG, "downloadCryptoAssessmentReport") + .serviceDetails( + "DataSafe", + "DownloadCryptoAssessmentReport", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/DownloadCryptoAssessmentReport") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DownloadCryptoAssessmentReportRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam(request.getCryptoAssessmentId()) + .appendPathParam("actions") + .appendPathParam("downloadReport") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + java.io.InputStream.class, + DownloadCryptoAssessmentReportResponse.Builder::inputStream) + .handleResponseHeaderString( + "opc-request-id", + DownloadCryptoAssessmentReportResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", DownloadCryptoAssessmentReportResponse.Builder::etag) + .handleResponseHeaderLong( + "content-length", + DownloadCryptoAssessmentReportResponse.Builder::contentLength) + .callSync(); + } + @Override public DownloadDiscoveryReportResponse downloadDiscoveryReport( DownloadDiscoveryReportRequest request) { @@ -4516,6 +4621,43 @@ public EnableDataSafeConfigurationResponse enableDataSafeConfiguration( .callSync(); } + @Override + public GenerateCryptoAssessmentReportResponse generateCryptoAssessmentReport( + GenerateCryptoAssessmentReportRequest request) { + + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + Objects.requireNonNull( + request.getGenerateCryptoAssessmentReportDetails(), + "generateCryptoAssessmentReportDetails is required"); + + return clientCall(request, GenerateCryptoAssessmentReportResponse::builder) + .logger(LOG, "generateCryptoAssessmentReport") + .serviceDetails( + "DataSafe", + "GenerateCryptoAssessmentReport", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/GenerateCryptoAssessmentReport") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(GenerateCryptoAssessmentReportRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam(request.getCryptoAssessmentId()) + .appendPathParam("actions") + .appendPathParam("generateReport") + .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", + GenerateCryptoAssessmentReportResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + GenerateCryptoAssessmentReportResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GenerateDiscoveryReportForDownloadResponse generateDiscoveryReportForDownload( GenerateDiscoveryReportForDownloadRequest request) { @@ -5181,6 +5323,75 @@ public GetCompatibleFormatsForSensitiveTypesResponse getCompatibleFormatsForSens .callSync(); } + @Override + public GetCryptoAssessmentResponse getCryptoAssessment(GetCryptoAssessmentRequest request) { + + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + + return clientCall(request, GetCryptoAssessmentResponse::builder) + .logger(LOG, "getCryptoAssessment") + .serviceDetails( + "DataSafe", + "GetCryptoAssessment", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/GetCryptoAssessment") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetCryptoAssessmentRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam(request.getCryptoAssessmentId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.CryptoAssessment.class, + GetCryptoAssessmentResponse.Builder::cryptoAssessment) + .handleResponseHeaderString( + "opc-request-id", GetCryptoAssessmentResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetCryptoAssessmentResponse.Builder::etag) + .callSync(); + } + + @Override + public GetCryptoAssessmentSqlnetParametersResponse getCryptoAssessmentSqlnetParameters( + GetCryptoAssessmentSqlnetParametersRequest request) { + + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + + return clientCall(request, GetCryptoAssessmentSqlnetParametersResponse::builder) + .logger(LOG, "getCryptoAssessmentSqlnetParameters") + .serviceDetails( + "DataSafe", + "GetCryptoAssessmentSqlnetParameters", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/GetCryptoAssessmentSqlnetParameters") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetCryptoAssessmentSqlnetParametersRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam(request.getCryptoAssessmentId()) + .appendPathParam("sqlnetParameters") + .appendQueryParam("parameter", request.getParameter()) + .appendEnumQueryParam("quantumReadiness", request.getQuantumReadiness()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.CryptoAssessmentSqlnetParameters.class, + GetCryptoAssessmentSqlnetParametersResponse.Builder + ::cryptoAssessmentSqlnetParameters) + .handleResponseHeaderString( + "opc-next-page", + GetCryptoAssessmentSqlnetParametersResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + GetCryptoAssessmentSqlnetParametersResponse.Builder::opcPrevPage) + .handleResponseHeaderString( + "opc-request-id", + GetCryptoAssessmentSqlnetParametersResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetDataSafeConfigurationResponse getDataSafeConfiguration( GetDataSafeConfigurationRequest request) { @@ -7468,6 +7679,514 @@ public ListColumnsResponse listColumns(ListColumnsRequest request) { .callSync(); } + @Override + public ListCryptoAssessmentBackupSetsResponse listCryptoAssessmentBackupSets( + ListCryptoAssessmentBackupSetsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListCryptoAssessmentBackupSetsResponse::builder) + .logger(LOG, "listCryptoAssessmentBackupSets") + .serviceDetails( + "DataSafe", + "ListCryptoAssessmentBackupSets", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentBackupSets") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCryptoAssessmentBackupSetsRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam("backupSets") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendQueryParam("assessmentId", request.getAssessmentId()) + .appendEnumQueryParam("assessmentType", request.getAssessmentType()) + .appendQueryParam("targetId", request.getTargetId()) + .appendListQueryParam( + "targetIds", + request.getTargetIds(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("backupSetKey", request.getBackupSetKey()) + .appendQueryParam("isEncrypted", request.getIsEncrypted()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.CryptoAssessmentBackupSetCollection.class, + ListCryptoAssessmentBackupSetsResponse.Builder + ::cryptoAssessmentBackupSetCollection) + .handleResponseHeaderString( + "opc-request-id", + ListCryptoAssessmentBackupSetsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListCryptoAssessmentBackupSetsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + ListCryptoAssessmentBackupSetsResponse.Builder::opcPrevPage) + .callSync(); + } + + @Override + public ListCryptoAssessmentCbomItemsResponse listCryptoAssessmentCbomItems( + ListCryptoAssessmentCbomItemsRequest request) { + + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + + return clientCall(request, ListCryptoAssessmentCbomItemsResponse::builder) + .logger(LOG, "listCryptoAssessmentCbomItems") + .serviceDetails( + "DataSafe", + "ListCryptoAssessmentCbomItems", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentCbomItems") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCryptoAssessmentCbomItemsRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam(request.getCryptoAssessmentId()) + .appendPathParam("cbomItems") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.CryptoAssessmentCbomItemCollection.class, + ListCryptoAssessmentCbomItemsResponse.Builder + ::cryptoAssessmentCbomItemCollection) + .handleResponseHeaderString( + "opc-request-id", + ListCryptoAssessmentCbomItemsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListCryptoAssessmentCertificatesResponse listCryptoAssessmentCertificates( + ListCryptoAssessmentCertificatesRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListCryptoAssessmentCertificatesResponse::builder) + .logger(LOG, "listCryptoAssessmentCertificates") + .serviceDetails( + "DataSafe", + "ListCryptoAssessmentCertificates", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentCertificates") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCryptoAssessmentCertificatesRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam("certificates") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendQueryParam("assessmentId", request.getAssessmentId()) + .appendEnumQueryParam("assessmentType", request.getAssessmentType()) + .appendQueryParam("targetId", request.getTargetId()) + .appendListQueryParam( + "targetIds", + request.getTargetIds(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "certificateType", + request.getCertificateType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "status", + request.getStatus(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "publicKeyType", + request.getPublicKeyType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "signatureAlgorithm", + request.getSignatureAlgorithm(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("expiryBucket", request.getExpiryBucket()) + .appendQueryParam("daysToExpiry", request.getDaysToExpiry()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.CryptoAssessmentCertificateCollection.class, + ListCryptoAssessmentCertificatesResponse.Builder + ::cryptoAssessmentCertificateCollection) + .handleResponseHeaderString( + "opc-request-id", + ListCryptoAssessmentCertificatesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListCryptoAssessmentCertificatesResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + ListCryptoAssessmentCertificatesResponse.Builder::opcPrevPage) + .callSync(); + } + + @Override + public ListCryptoAssessmentFindingAnalyticsResponse listCryptoAssessmentFindingAnalytics( + ListCryptoAssessmentFindingAnalyticsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListCryptoAssessmentFindingAnalyticsResponse::builder) + .logger(LOG, "listCryptoAssessmentFindingAnalytics") + .serviceDetails( + "DataSafe", + "ListCryptoAssessmentFindingAnalytics", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentFindingAnalytics") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCryptoAssessmentFindingAnalyticsRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam("findingAnalytics") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendEnumQueryParam("category", request.getCategory()) + .appendListQueryParam( + "findingKey", + request.getFindingKey(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("isQuantumReadinessCheck", request.getIsQuantumReadinessCheck()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.CryptoAssessmentFindingAnalyticsCollection + .class, + ListCryptoAssessmentFindingAnalyticsResponse.Builder + ::cryptoAssessmentFindingAnalyticsCollection) + .handleResponseHeaderString( + "opc-request-id", + ListCryptoAssessmentFindingAnalyticsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListCryptoAssessmentFindingAnalyticsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + ListCryptoAssessmentFindingAnalyticsResponse.Builder::opcPrevPage) + .callSync(); + } + + @Override + public ListCryptoAssessmentFindingTargetsResponse listCryptoAssessmentFindingTargets( + ListCryptoAssessmentFindingTargetsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + Objects.requireNonNull(request.getFindingKey(), "findingKey is required"); + + return clientCall(request, ListCryptoAssessmentFindingTargetsResponse::builder) + .logger(LOG, "listCryptoAssessmentFindingTargets") + .serviceDetails( + "DataSafe", + "ListCryptoAssessmentFindingTargets", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentFindingTargets") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCryptoAssessmentFindingTargetsRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam("findingTargets") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendListQueryParam( + "findingKey", + request.getFindingKey(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendEnumQueryParam("assessmentType", request.getAssessmentType()) + .appendQueryParam("targetId", request.getTargetId()) + .appendListQueryParam( + "targetIds", + request.getTargetIds(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendEnumQueryParam("status", request.getStatus()) + .appendQueryParam("isQuantumReadinessCheck", request.getIsQuantumReadinessCheck()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.CryptoAssessmentFindingTargetCollection.class, + ListCryptoAssessmentFindingTargetsResponse.Builder + ::cryptoAssessmentFindingTargetCollection) + .handleResponseHeaderString( + "opc-request-id", + ListCryptoAssessmentFindingTargetsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListCryptoAssessmentFindingTargetsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + ListCryptoAssessmentFindingTargetsResponse.Builder::opcPrevPage) + .callSync(); + } + + @Override + public ListCryptoAssessmentFindingsResponse listCryptoAssessmentFindings( + ListCryptoAssessmentFindingsRequest request) { + + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + + return clientCall(request, ListCryptoAssessmentFindingsResponse::builder) + .logger(LOG, "listCryptoAssessmentFindings") + .serviceDetails( + "DataSafe", + "ListCryptoAssessmentFindings", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentFindings") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCryptoAssessmentFindingsRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam(request.getCryptoAssessmentId()) + .appendPathParam("findings") + .appendQueryParam("findingKey", request.getFindingKey()) + .appendQueryParam("title", request.getTitle()) + .appendEnumQueryParam("category", request.getCategory()) + .appendEnumQueryParam("status", request.getStatus()) + .appendQueryParam("isQuantumReadinessCheck", request.getIsQuantumReadinessCheck()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.CryptoAssessmentFindingCollection.class, + ListCryptoAssessmentFindingsResponse.Builder + ::cryptoAssessmentFindingCollection) + .handleResponseHeaderString( + "opc-request-id", + ListCryptoAssessmentFindingsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListCryptoAssessmentFindingsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListCryptoAssessmentKeysResponse listCryptoAssessmentKeys( + ListCryptoAssessmentKeysRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListCryptoAssessmentKeysResponse::builder) + .logger(LOG, "listCryptoAssessmentKeys") + .serviceDetails( + "DataSafe", + "ListCryptoAssessmentKeys", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentKeys") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCryptoAssessmentKeysRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam("keys") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendQueryParam("assessmentId", request.getAssessmentId()) + .appendEnumQueryParam("assessmentType", request.getAssessmentType()) + .appendQueryParam("targetId", request.getTargetId()) + .appendListQueryParam( + "targetIds", + request.getTargetIds(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendEnumQueryParam("feature", request.getFeature()) + .appendQueryParam("keyId", request.getKeyId()) + .appendEnumQueryParam("keyType", request.getKeyType()) + .appendListQueryParam( + "keyManagerType", + request.getKeyManagerType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.CryptoAssessmentKeyCollection.class, + ListCryptoAssessmentKeysResponse.Builder::cryptoAssessmentKeyCollection) + .handleResponseHeaderString( + "opc-request-id", ListCryptoAssessmentKeysResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListCryptoAssessmentKeysResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListCryptoAssessmentKeysResponse.Builder::opcPrevPage) + .callSync(); + } + + @Override + public ListCryptoAssessmentTdeObjectsResponse listCryptoAssessmentTdeObjects( + ListCryptoAssessmentTdeObjectsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + Objects.requireNonNull(request.getObjectType(), "objectType is required"); + + return clientCall(request, ListCryptoAssessmentTdeObjectsResponse::builder) + .logger(LOG, "listCryptoAssessmentTdeObjects") + .serviceDetails( + "DataSafe", + "ListCryptoAssessmentTdeObjects", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentTdeObjects") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCryptoAssessmentTdeObjectsRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam("tdeObjects") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendQueryParam("assessmentId", request.getAssessmentId()) + .appendEnumQueryParam("assessmentType", request.getAssessmentType()) + .appendQueryParam("targetId", request.getTargetId()) + .appendListQueryParam( + "targetIds", + request.getTargetIds(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendEnumQueryParam("objectType", request.getObjectType()) + .appendEnumQueryParam("quantumReadiness", request.getQuantumReadiness()) + .appendListQueryParam( + "encryptionObserved", + request.getEncryptionObserved(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendEnumQueryParam("encryptionStatus", request.getEncryptionStatus()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.CryptoAssessmentTdeObjectCollection.class, + ListCryptoAssessmentTdeObjectsResponse.Builder + ::cryptoAssessmentTdeObjectCollection) + .handleResponseHeaderString( + "opc-request-id", + ListCryptoAssessmentTdeObjectsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListCryptoAssessmentTdeObjectsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + ListCryptoAssessmentTdeObjectsResponse.Builder::opcPrevPage) + .callSync(); + } + + @Override + public ListCryptoAssessmentWalletsResponse listCryptoAssessmentWallets( + ListCryptoAssessmentWalletsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListCryptoAssessmentWalletsResponse::builder) + .logger(LOG, "listCryptoAssessmentWallets") + .serviceDetails( + "DataSafe", + "ListCryptoAssessmentWallets", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentWallets") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCryptoAssessmentWalletsRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam("wallets") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendQueryParam("assessmentId", request.getAssessmentId()) + .appendEnumQueryParam("assessmentType", request.getAssessmentType()) + .appendQueryParam("targetId", request.getTargetId()) + .appendListQueryParam( + "targetIds", + request.getTargetIds(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendEnumQueryParam("feature", request.getFeature()) + .appendListQueryParam( + "walletEncryptionAlgorithm", + request.getWalletEncryptionAlgorithm(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.CryptoAssessmentWalletCollection.class, + ListCryptoAssessmentWalletsResponse.Builder + ::cryptoAssessmentWalletCollection) + .handleResponseHeaderString( + "opc-request-id", ListCryptoAssessmentWalletsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListCryptoAssessmentWalletsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListCryptoAssessmentWalletsResponse.Builder::opcPrevPage) + .callSync(); + } + + @Override + public ListCryptoAssessmentsResponse listCryptoAssessments( + ListCryptoAssessmentsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListCryptoAssessmentsResponse::builder) + .logger(LOG, "listCryptoAssessments") + .serviceDetails( + "DataSafe", + "ListCryptoAssessments", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessments") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCryptoAssessmentsRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("type", request.getType()) + .appendQueryParam("assessmentId", request.getAssessmentId()) + .appendQueryParam("targetId", request.getTargetId()) + .appendListQueryParam( + "targetIds", + request.getTargetIds(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("targetDatabaseGroupId", request.getTargetDatabaseGroupId()) + .appendEnumQueryParam("targetType", request.getTargetType()) + .appendListQueryParam( + "postureCategory", + request.getPostureCategory(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("isAssessmentScheduled", request.getIsAssessmentScheduled()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.CryptoAssessmentCollection.class, + ListCryptoAssessmentsResponse.Builder::cryptoAssessmentCollection) + .handleResponseHeaderString( + "opc-request-id", ListCryptoAssessmentsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListCryptoAssessmentsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListCryptoAssessmentsResponse.Builder::opcPrevPage) + .callSync(); + } + @Override public ListDataSafePrivateEndpointsResponse listDataSafePrivateEndpoints( ListDataSafePrivateEndpointsRequest request) { @@ -11667,6 +12386,41 @@ public PurgeSqlCollectionLogsResponse purgeSqlCollectionLogs( .callSync(); } + @Override + public RefreshCryptoAssessmentResponse refreshCryptoAssessment( + RefreshCryptoAssessmentRequest request) { + + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + Objects.requireNonNull( + request.getRunCryptoAssessmentDetails(), "runCryptoAssessmentDetails is required"); + + return clientCall(request, RefreshCryptoAssessmentResponse::builder) + .logger(LOG, "refreshCryptoAssessment") + .serviceDetails( + "DataSafe", + "RefreshCryptoAssessment", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/RefreshCryptoAssessment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RefreshCryptoAssessmentRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam(request.getCryptoAssessmentId()) + .appendPathParam("actions") + .appendPathParam("refresh") + .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", + RefreshCryptoAssessmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", RefreshCryptoAssessmentResponse.Builder::opcRequestId) + .callSync(); + } + @Override public RefreshDatabaseSecurityConfigurationResponse refreshDatabaseSecurityConfiguration( RefreshDatabaseSecurityConfigurationRequest request) { @@ -12603,6 +13357,39 @@ public UpdateAuditTrailResponse updateAuditTrail(UpdateAuditTrailRequest request .callSync(); } + @Override + public UpdateCryptoAssessmentResponse updateCryptoAssessment( + UpdateCryptoAssessmentRequest request) { + + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + Objects.requireNonNull( + request.getUpdateCryptoAssessmentDetails(), + "updateCryptoAssessmentDetails is required"); + + return clientCall(request, UpdateCryptoAssessmentResponse::builder) + .logger(LOG, "updateCryptoAssessment") + .serviceDetails( + "DataSafe", + "UpdateCryptoAssessment", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/UpdateCryptoAssessment") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateCryptoAssessmentRequest::builder) + .basePath("/20181201") + .appendPathParam("cryptoAssessments") + .appendPathParam(request.getCryptoAssessmentId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateCryptoAssessmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateCryptoAssessmentResponse.Builder::opcRequestId) + .callSync(); + } + @Override public UpdateDataSafePrivateEndpointResponse updateDataSafePrivateEndpoint( UpdateDataSafePrivateEndpointRequest request) { diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafePaginators.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafePaginators.java index f0573215f2a..743b830fe14 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafePaginators.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafePaginators.java @@ -2308,6 +2308,1161 @@ public java.util.List apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listCryptoAssessmentBackupSets 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 + listCryptoAssessmentBackupSetsResponseIterator( + final ListCryptoAssessmentBackupSetsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListCryptoAssessmentBackupSetsRequest.Builder, + ListCryptoAssessmentBackupSetsRequest, + ListCryptoAssessmentBackupSetsResponse>( + new java.util.function.Supplier() { + @Override + public ListCryptoAssessmentBackupSetsRequest.Builder get() { + return ListCryptoAssessmentBackupSetsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListCryptoAssessmentBackupSetsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentBackupSetsRequest.Builder>, + ListCryptoAssessmentBackupSetsRequest>() { + @Override + public ListCryptoAssessmentBackupSetsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentBackupSetsRequest.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< + ListCryptoAssessmentBackupSetsRequest, + ListCryptoAssessmentBackupSetsResponse>() { + @Override + public ListCryptoAssessmentBackupSetsResponse apply( + ListCryptoAssessmentBackupSetsRequest request) { + return client.listCryptoAssessmentBackupSets(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datasafe.model.CryptoAssessmentBackupSetSummary} objects contained in + * responses from the listCryptoAssessmentBackupSets 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.datasafe.model.CryptoAssessmentBackupSetSummary} objects contained in + * responses received from the service. + */ + public Iterable + listCryptoAssessmentBackupSetsRecordIterator( + final ListCryptoAssessmentBackupSetsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListCryptoAssessmentBackupSetsRequest.Builder, + ListCryptoAssessmentBackupSetsRequest, + ListCryptoAssessmentBackupSetsResponse, + com.oracle.bmc.datasafe.model.CryptoAssessmentBackupSetSummary>( + new java.util.function.Supplier() { + @Override + public ListCryptoAssessmentBackupSetsRequest.Builder get() { + return ListCryptoAssessmentBackupSetsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListCryptoAssessmentBackupSetsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentBackupSetsRequest.Builder>, + ListCryptoAssessmentBackupSetsRequest>() { + @Override + public ListCryptoAssessmentBackupSetsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentBackupSetsRequest.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< + ListCryptoAssessmentBackupSetsRequest, + ListCryptoAssessmentBackupSetsResponse>() { + @Override + public ListCryptoAssessmentBackupSetsResponse apply( + ListCryptoAssessmentBackupSetsRequest request) { + return client.listCryptoAssessmentBackupSets(request); + } + }, + new java.util.function.Function< + ListCryptoAssessmentBackupSetsResponse, + java.util.List< + com.oracle.bmc.datasafe.model.CryptoAssessmentBackupSetSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.datasafe.model.CryptoAssessmentBackupSetSummary> + apply(ListCryptoAssessmentBackupSetsResponse response) { + return response.getCryptoAssessmentBackupSetCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listCryptoAssessmentCertificates 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 + listCryptoAssessmentCertificatesResponseIterator( + final ListCryptoAssessmentCertificatesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListCryptoAssessmentCertificatesRequest.Builder, + ListCryptoAssessmentCertificatesRequest, + ListCryptoAssessmentCertificatesResponse>( + new java.util.function.Supplier() { + @Override + public ListCryptoAssessmentCertificatesRequest.Builder get() { + return ListCryptoAssessmentCertificatesRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListCryptoAssessmentCertificatesResponse, String>() { + @Override + public String apply(ListCryptoAssessmentCertificatesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentCertificatesRequest.Builder>, + ListCryptoAssessmentCertificatesRequest>() { + @Override + public ListCryptoAssessmentCertificatesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentCertificatesRequest.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< + ListCryptoAssessmentCertificatesRequest, + ListCryptoAssessmentCertificatesResponse>() { + @Override + public ListCryptoAssessmentCertificatesResponse apply( + ListCryptoAssessmentCertificatesRequest request) { + return client.listCryptoAssessmentCertificates(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datasafe.model.CryptoAssessmentCertificateSummary} objects contained in + * responses from the listCryptoAssessmentCertificates 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.datasafe.model.CryptoAssessmentCertificateSummary} objects contained in + * responses received from the service. + */ + public Iterable + listCryptoAssessmentCertificatesRecordIterator( + final ListCryptoAssessmentCertificatesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListCryptoAssessmentCertificatesRequest.Builder, + ListCryptoAssessmentCertificatesRequest, + ListCryptoAssessmentCertificatesResponse, + com.oracle.bmc.datasafe.model.CryptoAssessmentCertificateSummary>( + new java.util.function.Supplier() { + @Override + public ListCryptoAssessmentCertificatesRequest.Builder get() { + return ListCryptoAssessmentCertificatesRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListCryptoAssessmentCertificatesResponse, String>() { + @Override + public String apply(ListCryptoAssessmentCertificatesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentCertificatesRequest.Builder>, + ListCryptoAssessmentCertificatesRequest>() { + @Override + public ListCryptoAssessmentCertificatesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentCertificatesRequest.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< + ListCryptoAssessmentCertificatesRequest, + ListCryptoAssessmentCertificatesResponse>() { + @Override + public ListCryptoAssessmentCertificatesResponse apply( + ListCryptoAssessmentCertificatesRequest request) { + return client.listCryptoAssessmentCertificates(request); + } + }, + new java.util.function.Function< + ListCryptoAssessmentCertificatesResponse, + java.util.List< + com.oracle.bmc.datasafe.model + .CryptoAssessmentCertificateSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.datasafe.model + .CryptoAssessmentCertificateSummary> + apply(ListCryptoAssessmentCertificatesResponse response) { + return response.getCryptoAssessmentCertificateCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listCryptoAssessmentFindingAnalytics 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 + listCryptoAssessmentFindingAnalyticsResponseIterator( + final ListCryptoAssessmentFindingAnalyticsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListCryptoAssessmentFindingAnalyticsRequest.Builder, + ListCryptoAssessmentFindingAnalyticsRequest, + ListCryptoAssessmentFindingAnalyticsResponse>( + new java.util.function.Supplier< + ListCryptoAssessmentFindingAnalyticsRequest.Builder>() { + @Override + public ListCryptoAssessmentFindingAnalyticsRequest.Builder get() { + return ListCryptoAssessmentFindingAnalyticsRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListCryptoAssessmentFindingAnalyticsResponse, String>() { + @Override + public String apply(ListCryptoAssessmentFindingAnalyticsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentFindingAnalyticsRequest.Builder>, + ListCryptoAssessmentFindingAnalyticsRequest>() { + @Override + public ListCryptoAssessmentFindingAnalyticsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentFindingAnalyticsRequest.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< + ListCryptoAssessmentFindingAnalyticsRequest, + ListCryptoAssessmentFindingAnalyticsResponse>() { + @Override + public ListCryptoAssessmentFindingAnalyticsResponse apply( + ListCryptoAssessmentFindingAnalyticsRequest request) { + return client.listCryptoAssessmentFindingAnalytics(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datasafe.model.CryptoAssessmentFindingAnalyticsSummary} objects contained in + * responses from the listCryptoAssessmentFindingAnalytics 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.datasafe.model.CryptoAssessmentFindingAnalyticsSummary} objects contained + * in responses received from the service. + */ + public Iterable + listCryptoAssessmentFindingAnalyticsRecordIterator( + final ListCryptoAssessmentFindingAnalyticsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListCryptoAssessmentFindingAnalyticsRequest.Builder, + ListCryptoAssessmentFindingAnalyticsRequest, + ListCryptoAssessmentFindingAnalyticsResponse, + com.oracle.bmc.datasafe.model.CryptoAssessmentFindingAnalyticsSummary>( + new java.util.function.Supplier< + ListCryptoAssessmentFindingAnalyticsRequest.Builder>() { + @Override + public ListCryptoAssessmentFindingAnalyticsRequest.Builder get() { + return ListCryptoAssessmentFindingAnalyticsRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListCryptoAssessmentFindingAnalyticsResponse, String>() { + @Override + public String apply(ListCryptoAssessmentFindingAnalyticsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentFindingAnalyticsRequest.Builder>, + ListCryptoAssessmentFindingAnalyticsRequest>() { + @Override + public ListCryptoAssessmentFindingAnalyticsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentFindingAnalyticsRequest.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< + ListCryptoAssessmentFindingAnalyticsRequest, + ListCryptoAssessmentFindingAnalyticsResponse>() { + @Override + public ListCryptoAssessmentFindingAnalyticsResponse apply( + ListCryptoAssessmentFindingAnalyticsRequest request) { + return client.listCryptoAssessmentFindingAnalytics(request); + } + }, + new java.util.function.Function< + ListCryptoAssessmentFindingAnalyticsResponse, + java.util.List< + com.oracle.bmc.datasafe.model + .CryptoAssessmentFindingAnalyticsSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.datasafe.model + .CryptoAssessmentFindingAnalyticsSummary> + apply(ListCryptoAssessmentFindingAnalyticsResponse response) { + return response.getCryptoAssessmentFindingAnalyticsCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listCryptoAssessmentFindingTargets 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 + listCryptoAssessmentFindingTargetsResponseIterator( + final ListCryptoAssessmentFindingTargetsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListCryptoAssessmentFindingTargetsRequest.Builder, + ListCryptoAssessmentFindingTargetsRequest, + ListCryptoAssessmentFindingTargetsResponse>( + new java.util.function.Supplier< + ListCryptoAssessmentFindingTargetsRequest.Builder>() { + @Override + public ListCryptoAssessmentFindingTargetsRequest.Builder get() { + return ListCryptoAssessmentFindingTargetsRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListCryptoAssessmentFindingTargetsResponse, String>() { + @Override + public String apply(ListCryptoAssessmentFindingTargetsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentFindingTargetsRequest.Builder>, + ListCryptoAssessmentFindingTargetsRequest>() { + @Override + public ListCryptoAssessmentFindingTargetsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentFindingTargetsRequest.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< + ListCryptoAssessmentFindingTargetsRequest, + ListCryptoAssessmentFindingTargetsResponse>() { + @Override + public ListCryptoAssessmentFindingTargetsResponse apply( + ListCryptoAssessmentFindingTargetsRequest request) { + return client.listCryptoAssessmentFindingTargets(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datasafe.model.CryptoAssessmentFindingTargetSummary} objects contained in + * responses from the listCryptoAssessmentFindingTargets 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.datasafe.model.CryptoAssessmentFindingTargetSummary} objects contained in + * responses received from the service. + */ + public Iterable + listCryptoAssessmentFindingTargetsRecordIterator( + final ListCryptoAssessmentFindingTargetsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListCryptoAssessmentFindingTargetsRequest.Builder, + ListCryptoAssessmentFindingTargetsRequest, + ListCryptoAssessmentFindingTargetsResponse, + com.oracle.bmc.datasafe.model.CryptoAssessmentFindingTargetSummary>( + new java.util.function.Supplier< + ListCryptoAssessmentFindingTargetsRequest.Builder>() { + @Override + public ListCryptoAssessmentFindingTargetsRequest.Builder get() { + return ListCryptoAssessmentFindingTargetsRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListCryptoAssessmentFindingTargetsResponse, String>() { + @Override + public String apply(ListCryptoAssessmentFindingTargetsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentFindingTargetsRequest.Builder>, + ListCryptoAssessmentFindingTargetsRequest>() { + @Override + public ListCryptoAssessmentFindingTargetsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentFindingTargetsRequest.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< + ListCryptoAssessmentFindingTargetsRequest, + ListCryptoAssessmentFindingTargetsResponse>() { + @Override + public ListCryptoAssessmentFindingTargetsResponse apply( + ListCryptoAssessmentFindingTargetsRequest request) { + return client.listCryptoAssessmentFindingTargets(request); + } + }, + new java.util.function.Function< + ListCryptoAssessmentFindingTargetsResponse, + java.util.List< + com.oracle.bmc.datasafe.model + .CryptoAssessmentFindingTargetSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.datasafe.model + .CryptoAssessmentFindingTargetSummary> + apply(ListCryptoAssessmentFindingTargetsResponse response) { + return response.getCryptoAssessmentFindingTargetCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listCryptoAssessmentFindings 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 + listCryptoAssessmentFindingsResponseIterator( + final ListCryptoAssessmentFindingsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListCryptoAssessmentFindingsRequest.Builder, + ListCryptoAssessmentFindingsRequest, + ListCryptoAssessmentFindingsResponse>( + new java.util.function.Supplier() { + @Override + public ListCryptoAssessmentFindingsRequest.Builder get() { + return ListCryptoAssessmentFindingsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListCryptoAssessmentFindingsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentFindingsRequest.Builder>, + ListCryptoAssessmentFindingsRequest>() { + @Override + public ListCryptoAssessmentFindingsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentFindingsRequest.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< + ListCryptoAssessmentFindingsRequest, + ListCryptoAssessmentFindingsResponse>() { + @Override + public ListCryptoAssessmentFindingsResponse apply( + ListCryptoAssessmentFindingsRequest request) { + return client.listCryptoAssessmentFindings(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datasafe.model.CryptoAssessmentFindingSummary} objects contained in responses + * from the listCryptoAssessmentFindings 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.datasafe.model.CryptoAssessmentFindingSummary} objects contained in + * responses received from the service. + */ + public Iterable + listCryptoAssessmentFindingsRecordIterator( + final ListCryptoAssessmentFindingsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListCryptoAssessmentFindingsRequest.Builder, + ListCryptoAssessmentFindingsRequest, + ListCryptoAssessmentFindingsResponse, + com.oracle.bmc.datasafe.model.CryptoAssessmentFindingSummary>( + new java.util.function.Supplier() { + @Override + public ListCryptoAssessmentFindingsRequest.Builder get() { + return ListCryptoAssessmentFindingsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListCryptoAssessmentFindingsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentFindingsRequest.Builder>, + ListCryptoAssessmentFindingsRequest>() { + @Override + public ListCryptoAssessmentFindingsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentFindingsRequest.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< + ListCryptoAssessmentFindingsRequest, + ListCryptoAssessmentFindingsResponse>() { + @Override + public ListCryptoAssessmentFindingsResponse apply( + ListCryptoAssessmentFindingsRequest request) { + return client.listCryptoAssessmentFindings(request); + } + }, + new java.util.function.Function< + ListCryptoAssessmentFindingsResponse, + java.util.List< + com.oracle.bmc.datasafe.model.CryptoAssessmentFindingSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.datasafe.model.CryptoAssessmentFindingSummary> + apply(ListCryptoAssessmentFindingsResponse response) { + return response.getCryptoAssessmentFindingCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listCryptoAssessmentKeys 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 listCryptoAssessmentKeysResponseIterator( + final ListCryptoAssessmentKeysRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListCryptoAssessmentKeysRequest.Builder, + ListCryptoAssessmentKeysRequest, + ListCryptoAssessmentKeysResponse>( + new java.util.function.Supplier() { + @Override + public ListCryptoAssessmentKeysRequest.Builder get() { + return ListCryptoAssessmentKeysRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListCryptoAssessmentKeysResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentKeysRequest.Builder>, + ListCryptoAssessmentKeysRequest>() { + @Override + public ListCryptoAssessmentKeysRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentKeysRequest.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< + ListCryptoAssessmentKeysRequest, ListCryptoAssessmentKeysResponse>() { + @Override + public ListCryptoAssessmentKeysResponse apply( + ListCryptoAssessmentKeysRequest request) { + return client.listCryptoAssessmentKeys(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datasafe.model.CryptoAssessmentKeySummary} objects contained in responses from + * the listCryptoAssessmentKeys 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.datasafe.model.CryptoAssessmentKeySummary} objects contained in responses + * received from the service. + */ + public Iterable + listCryptoAssessmentKeysRecordIterator(final ListCryptoAssessmentKeysRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListCryptoAssessmentKeysRequest.Builder, + ListCryptoAssessmentKeysRequest, + ListCryptoAssessmentKeysResponse, + com.oracle.bmc.datasafe.model.CryptoAssessmentKeySummary>( + new java.util.function.Supplier() { + @Override + public ListCryptoAssessmentKeysRequest.Builder get() { + return ListCryptoAssessmentKeysRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListCryptoAssessmentKeysResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentKeysRequest.Builder>, + ListCryptoAssessmentKeysRequest>() { + @Override + public ListCryptoAssessmentKeysRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentKeysRequest.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< + ListCryptoAssessmentKeysRequest, ListCryptoAssessmentKeysResponse>() { + @Override + public ListCryptoAssessmentKeysResponse apply( + ListCryptoAssessmentKeysRequest request) { + return client.listCryptoAssessmentKeys(request); + } + }, + new java.util.function.Function< + ListCryptoAssessmentKeysResponse, + java.util.List< + com.oracle.bmc.datasafe.model.CryptoAssessmentKeySummary>>() { + @Override + public java.util.List + apply(ListCryptoAssessmentKeysResponse response) { + return response.getCryptoAssessmentKeyCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listCryptoAssessmentTdeObjects 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 + listCryptoAssessmentTdeObjectsResponseIterator( + final ListCryptoAssessmentTdeObjectsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListCryptoAssessmentTdeObjectsRequest.Builder, + ListCryptoAssessmentTdeObjectsRequest, + ListCryptoAssessmentTdeObjectsResponse>( + new java.util.function.Supplier() { + @Override + public ListCryptoAssessmentTdeObjectsRequest.Builder get() { + return ListCryptoAssessmentTdeObjectsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListCryptoAssessmentTdeObjectsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentTdeObjectsRequest.Builder>, + ListCryptoAssessmentTdeObjectsRequest>() { + @Override + public ListCryptoAssessmentTdeObjectsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentTdeObjectsRequest.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< + ListCryptoAssessmentTdeObjectsRequest, + ListCryptoAssessmentTdeObjectsResponse>() { + @Override + public ListCryptoAssessmentTdeObjectsResponse apply( + ListCryptoAssessmentTdeObjectsRequest request) { + return client.listCryptoAssessmentTdeObjects(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datasafe.model.CryptoAssessmentTdeObjectSummary} objects contained in + * responses from the listCryptoAssessmentTdeObjects 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.datasafe.model.CryptoAssessmentTdeObjectSummary} objects contained in + * responses received from the service. + */ + public Iterable + listCryptoAssessmentTdeObjectsRecordIterator( + final ListCryptoAssessmentTdeObjectsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListCryptoAssessmentTdeObjectsRequest.Builder, + ListCryptoAssessmentTdeObjectsRequest, + ListCryptoAssessmentTdeObjectsResponse, + com.oracle.bmc.datasafe.model.CryptoAssessmentTdeObjectSummary>( + new java.util.function.Supplier() { + @Override + public ListCryptoAssessmentTdeObjectsRequest.Builder get() { + return ListCryptoAssessmentTdeObjectsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListCryptoAssessmentTdeObjectsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentTdeObjectsRequest.Builder>, + ListCryptoAssessmentTdeObjectsRequest>() { + @Override + public ListCryptoAssessmentTdeObjectsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentTdeObjectsRequest.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< + ListCryptoAssessmentTdeObjectsRequest, + ListCryptoAssessmentTdeObjectsResponse>() { + @Override + public ListCryptoAssessmentTdeObjectsResponse apply( + ListCryptoAssessmentTdeObjectsRequest request) { + return client.listCryptoAssessmentTdeObjects(request); + } + }, + new java.util.function.Function< + ListCryptoAssessmentTdeObjectsResponse, + java.util.List< + com.oracle.bmc.datasafe.model.CryptoAssessmentTdeObjectSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.datasafe.model.CryptoAssessmentTdeObjectSummary> + apply(ListCryptoAssessmentTdeObjectsResponse response) { + return response.getCryptoAssessmentTdeObjectCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listCryptoAssessmentWallets 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 + listCryptoAssessmentWalletsResponseIterator( + final ListCryptoAssessmentWalletsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListCryptoAssessmentWalletsRequest.Builder, + ListCryptoAssessmentWalletsRequest, + ListCryptoAssessmentWalletsResponse>( + new java.util.function.Supplier() { + @Override + public ListCryptoAssessmentWalletsRequest.Builder get() { + return ListCryptoAssessmentWalletsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListCryptoAssessmentWalletsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentWalletsRequest.Builder>, + ListCryptoAssessmentWalletsRequest>() { + @Override + public ListCryptoAssessmentWalletsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentWalletsRequest.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< + ListCryptoAssessmentWalletsRequest, ListCryptoAssessmentWalletsResponse>() { + @Override + public ListCryptoAssessmentWalletsResponse apply( + ListCryptoAssessmentWalletsRequest request) { + return client.listCryptoAssessmentWallets(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datasafe.model.CryptoAssessmentWalletSummary} objects contained in responses + * from the listCryptoAssessmentWallets 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.datasafe.model.CryptoAssessmentWalletSummary} objects contained in + * responses received from the service. + */ + public Iterable + listCryptoAssessmentWalletsRecordIterator( + final ListCryptoAssessmentWalletsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListCryptoAssessmentWalletsRequest.Builder, + ListCryptoAssessmentWalletsRequest, + ListCryptoAssessmentWalletsResponse, + com.oracle.bmc.datasafe.model.CryptoAssessmentWalletSummary>( + new java.util.function.Supplier() { + @Override + public ListCryptoAssessmentWalletsRequest.Builder get() { + return ListCryptoAssessmentWalletsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListCryptoAssessmentWalletsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentWalletsRequest.Builder>, + ListCryptoAssessmentWalletsRequest>() { + @Override + public ListCryptoAssessmentWalletsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentWalletsRequest.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< + ListCryptoAssessmentWalletsRequest, ListCryptoAssessmentWalletsResponse>() { + @Override + public ListCryptoAssessmentWalletsResponse apply( + ListCryptoAssessmentWalletsRequest request) { + return client.listCryptoAssessmentWallets(request); + } + }, + new java.util.function.Function< + ListCryptoAssessmentWalletsResponse, + java.util.List< + com.oracle.bmc.datasafe.model.CryptoAssessmentWalletSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.datasafe.model.CryptoAssessmentWalletSummary> + apply(ListCryptoAssessmentWalletsResponse response) { + return response.getCryptoAssessmentWalletCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listCryptoAssessments 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 listCryptoAssessmentsResponseIterator( + final ListCryptoAssessmentsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListCryptoAssessmentsRequest.Builder, + ListCryptoAssessmentsRequest, + ListCryptoAssessmentsResponse>( + new java.util.function.Supplier() { + @Override + public ListCryptoAssessmentsRequest.Builder get() { + return ListCryptoAssessmentsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListCryptoAssessmentsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentsRequest.Builder>, + ListCryptoAssessmentsRequest>() { + @Override + public ListCryptoAssessmentsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentsRequest.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< + ListCryptoAssessmentsRequest, ListCryptoAssessmentsResponse>() { + @Override + public ListCryptoAssessmentsResponse apply( + ListCryptoAssessmentsRequest request) { + return client.listCryptoAssessments(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datasafe.model.CryptoAssessmentSummary} objects contained in responses from + * the listCryptoAssessments 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.datasafe.model.CryptoAssessmentSummary} objects contained in responses + * received from the service. + */ + public Iterable + listCryptoAssessmentsRecordIterator(final ListCryptoAssessmentsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListCryptoAssessmentsRequest.Builder, + ListCryptoAssessmentsRequest, + ListCryptoAssessmentsResponse, + com.oracle.bmc.datasafe.model.CryptoAssessmentSummary>( + new java.util.function.Supplier() { + @Override + public ListCryptoAssessmentsRequest.Builder get() { + return ListCryptoAssessmentsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListCryptoAssessmentsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentsRequest.Builder>, + ListCryptoAssessmentsRequest>() { + @Override + public ListCryptoAssessmentsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCryptoAssessmentsRequest.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< + ListCryptoAssessmentsRequest, ListCryptoAssessmentsResponse>() { + @Override + public ListCryptoAssessmentsResponse apply( + ListCryptoAssessmentsRequest request) { + return client.listCryptoAssessments(request); + } + }, + new java.util.function.Function< + ListCryptoAssessmentsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListCryptoAssessmentsResponse response) { + return response.getCryptoAssessmentCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the * listDataSafePrivateEndpoints operation. This iterable will fetch more data from the server as diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeWaiters.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeWaiters.java index ff7025aad74..fab5d5bd002 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeWaiters.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeWaiters.java @@ -857,6 +857,113 @@ public boolean test(GetAuditTrailResponse response) { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forCryptoAssessment( + GetCryptoAssessmentRequest request, + com.oracle.bmc.datasafe.model.CryptoAssessment.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 forCryptoAssessment( + 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 + forCryptoAssessment( + GetCryptoAssessmentRequest request, + com.oracle.bmc.datasafe.model.CryptoAssessment.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 forCryptoAssessment( + 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 + forCryptoAssessment( + GetCryptoAssessmentRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.datasafe.model.CryptoAssessment.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 forCryptoAssessment( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for CryptoAssessment. + private com.oracle.bmc.waiter.Waiter + forCryptoAssessment( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetCryptoAssessmentRequest request, + final com.oracle.bmc.datasafe.model.CryptoAssessment.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< + GetCryptoAssessmentRequest, GetCryptoAssessmentResponse>() { + @Override + public GetCryptoAssessmentResponse apply( + GetCryptoAssessmentRequest request) { + return client.getCryptoAssessment(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetCryptoAssessmentResponse response) { + return targetStatesSet.contains( + response.getCryptoAssessment().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.datasafe.model.CryptoAssessment.LifecycleState + .Deleted)), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeAuditProfileCompartmentDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeAuditProfileCompartmentDetails.java index b90328245fa..04076c0da87 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeAuditProfileCompartmentDetails.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeAuditProfileCompartmentDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.datasafe.model; /** - * Moves the specified audit profile and its assoicated resources into a different compartment.
+ * Moves the specified audit profile and its associated resources into a different compartment.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabaseCompartmentDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeCryptoAssessmentCompartmentDetails.java similarity index 72% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabaseCompartmentDetails.java rename to bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeCryptoAssessmentCompartmentDetails.java index 5eda8bb876b..5deb5206492 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabaseCompartmentDetails.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeCryptoAssessmentCompartmentDetails.java @@ -2,11 +2,10 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.datasafe.model; /** - * The configuration details for moving the resource for Globally distributed database to other - * compartment.
+ * The details used to change the compartment of the crypto assessment.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -16,32 +15,28 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = ChangeDistributedDatabaseCompartmentDetails.Builder.class) + builder = ChangeCryptoAssessmentCompartmentDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class ChangeDistributedDatabaseCompartmentDetails +public final class ChangeCryptoAssessmentCompartmentDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"compartmentId"}) - public ChangeDistributedDatabaseCompartmentDetails(String compartmentId) { + public ChangeCryptoAssessmentCompartmentDetails(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. - */ + /** The OCID of the compartment where you want to move the crypto assessment. */ @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. + * The OCID of the compartment where you want to move the crypto assessment. * * @param compartmentId the value to set * @return this builder @@ -55,9 +50,9 @@ public Builder compartmentId(String compartmentId) { @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public ChangeDistributedDatabaseCompartmentDetails build() { - ChangeDistributedDatabaseCompartmentDetails model = - new ChangeDistributedDatabaseCompartmentDetails(this.compartmentId); + public ChangeCryptoAssessmentCompartmentDetails build() { + ChangeCryptoAssessmentCompartmentDetails model = + new ChangeCryptoAssessmentCompartmentDetails(this.compartmentId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -65,7 +60,7 @@ public ChangeDistributedDatabaseCompartmentDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ChangeDistributedDatabaseCompartmentDetails model) { + public Builder copy(ChangeCryptoAssessmentCompartmentDetails model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } @@ -82,16 +77,12 @@ 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. - */ + /** The OCID of the compartment where you want to move the crypto assessment. */ @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. + * The OCID of the compartment where you want to move the crypto assessment. * * @return the value */ @@ -112,7 +103,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("ChangeDistributedDatabaseCompartmentDetails("); + sb.append("ChangeCryptoAssessmentCompartmentDetails("); sb.append("super=").append(super.toString()); sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(")"); @@ -124,12 +115,12 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ChangeDistributedDatabaseCompartmentDetails)) { + if (!(o instanceof ChangeCryptoAssessmentCompartmentDetails)) { return false; } - ChangeDistributedDatabaseCompartmentDetails other = - (ChangeDistributedDatabaseCompartmentDetails) o; + ChangeCryptoAssessmentCompartmentDetails other = + (ChangeCryptoAssessmentCompartmentDetails) o; return java.util.Objects.equals(this.compartmentId, other.compartmentId) && super.equals(other); } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessment.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessment.java new file mode 100644 index 00000000000..e108765ef93 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessment.java @@ -0,0 +1,1454 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** + * A crypto assessment that provides insight into database cryptographic posture. The assessment + * evaluates data and network encryption, certificates, key management, backups, and + * quantum-readiness settings for a target 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: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = CryptoAssessment.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoAssessment + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "description", + "compartmentId", + "timeCreated", + "timeUpdated", + "timeLastAssessed", + "lifecycleState", + "lifecycleDetails", + "type", + "triggeredBy", + "targetType", + "targetId", + "targetDatabaseGroupId", + "databaseVersion", + "databaseName", + "databaseArchitecture", + "cryptoProvider", + "postureCategory", + "schedule", + "cryptoPosture", + "issueCount", + "targetsWithIssuesCount", + "isAssessmentScheduled", + "freeformTags", + "definedTags", + "systemTags" + }) + public CryptoAssessment( + String id, + String displayName, + String description, + String compartmentId, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeLastAssessed, + LifecycleState lifecycleState, + String lifecycleDetails, + Type type, + TriggeredBy triggeredBy, + TargetType targetType, + String targetId, + String targetDatabaseGroupId, + String databaseVersion, + String databaseName, + String databaseArchitecture, + String cryptoProvider, + CryptoPostureCategory postureCategory, + String schedule, + CryptoPosture cryptoPosture, + Integer issueCount, + Integer targetsWithIssuesCount, + Boolean isAssessmentScheduled, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.description = description; + this.compartmentId = compartmentId; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timeLastAssessed = timeLastAssessed; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.type = type; + this.triggeredBy = triggeredBy; + this.targetType = targetType; + this.targetId = targetId; + this.targetDatabaseGroupId = targetDatabaseGroupId; + this.databaseVersion = databaseVersion; + this.databaseName = databaseName; + this.databaseArchitecture = databaseArchitecture; + this.cryptoProvider = cryptoProvider; + this.postureCategory = postureCategory; + this.schedule = schedule; + this.cryptoPosture = cryptoPosture; + this.issueCount = issueCount; + this.targetsWithIssuesCount = targetsWithIssuesCount; + this.isAssessmentScheduled = isAssessmentScheduled; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the crypto assessment. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The display name of the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the crypto assessment. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The description of the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the crypto assessment. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** The OCID of the compartment that contains the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the crypto assessment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The date and time the crypto assessment was created, in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the crypto assessment was created, in RFC3339 format. + * + * @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 crypto assessment was last updated, in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the crypto assessment was last updated, in RFC3339 format. + * + * @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 date and time the crypto posture was last assessed, in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastAssessed") + private java.util.Date timeLastAssessed; + + /** + * The date and time the crypto posture was last assessed, in RFC3339 format. + * + * @param timeLastAssessed the value to set + * @return this builder + */ + public Builder timeLastAssessed(java.util.Date timeLastAssessed) { + this.timeLastAssessed = timeLastAssessed; + this.__explicitlySet__.add("timeLastAssessed"); + return this; + } + /** The current lifecycle state of the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current lifecycle state of the crypto assessment. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Details about the current lifecycle state of the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Details about the current lifecycle state of the crypto assessment. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** The type of this crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * The type of this crypto assessment. + * + * @param type the value to set + * @return this builder + */ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** The actor that created the assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("triggeredBy") + private TriggeredBy triggeredBy; + + /** + * The actor that created the assessment. + * + * @param triggeredBy the value to set + * @return this builder + */ + public Builder triggeredBy(TriggeredBy triggeredBy) { + this.triggeredBy = triggeredBy; + this.__explicitlySet__.add("triggeredBy"); + return this; + } + /** The target type of the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetType") + private TargetType targetType; + + /** + * The target type of the crypto assessment. + * + * @param targetType the value to set + * @return this builder + */ + public Builder targetType(TargetType targetType) { + this.targetType = targetType; + this.__explicitlySet__.add("targetType"); + return this; + } + /** The OCID of the target database. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * The OCID of the target database. + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + /** + * The OCID of the target database group. This is returned when {@code targetType} is {@code + * TARGET_DATABASE_GROUP}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseGroupId") + private String targetDatabaseGroupId; + + /** + * The OCID of the target database group. This is returned when {@code targetType} is {@code + * TARGET_DATABASE_GROUP}. + * + * @param targetDatabaseGroupId the value to set + * @return this builder + */ + public Builder targetDatabaseGroupId(String targetDatabaseGroupId) { + this.targetDatabaseGroupId = targetDatabaseGroupId; + this.__explicitlySet__.add("targetDatabaseGroupId"); + return this; + } + /** The version of the assessed target database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + /** + * The version of the assessed target database. + * + * @param databaseVersion the value to set + * @return this builder + */ + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + /** The name of the assessed target database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private String databaseName; + + /** + * The name of the assessed target database. + * + * @param databaseName the value to set + * @return this builder + */ + public Builder databaseName(String databaseName) { + this.databaseName = databaseName; + this.__explicitlySet__.add("databaseName"); + return this; + } + /** The architecture of the assessed target database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseArchitecture") + private String databaseArchitecture; + + /** + * The architecture of the assessed target database. + * + * @param databaseArchitecture the value to set + * @return this builder + */ + public Builder databaseArchitecture(String databaseArchitecture) { + this.databaseArchitecture = databaseArchitecture; + this.__explicitlySet__.add("databaseArchitecture"); + return this; + } + /** Cryptographic provider and version information observed on the target. */ + @com.fasterxml.jackson.annotation.JsonProperty("cryptoProvider") + private String cryptoProvider; + + /** + * Cryptographic provider and version information observed on the target. + * + * @param cryptoProvider the value to set + * @return this builder + */ + public Builder cryptoProvider(String cryptoProvider) { + this.cryptoProvider = cryptoProvider; + this.__explicitlySet__.add("cryptoProvider"); + return this; + } + /** Overall posture category for the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("postureCategory") + private CryptoPostureCategory postureCategory; + + /** + * Overall posture category for the crypto assessment. + * + * @param postureCategory the value to set + * @return this builder + */ + public Builder postureCategory(CryptoPostureCategory postureCategory) { + this.postureCategory = postureCategory; + this.__explicitlySet__.add("postureCategory"); + return this; + } + /** + * The schedule used to run the crypto assessment periodically. The schedule uses the + * format: ; + * + *

For v1, the version-specific schedule format is: + * + * + *

Specify either day-of-week for weekly schedules or day-of-month for monthly schedules. + * Do not specify both. For monthly schedules, day-of-month must be between 1 and 28. If the + * service generates a default monthly schedule for an assessment created on day 29, 30, or + * 31 of a month, it uses day 28. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedule") + private String schedule; + + /** + * The schedule used to run the crypto assessment periodically. The schedule uses the + * format: ; + * + *

For v1, the version-specific schedule format is: + * + * + *

Specify either day-of-week for weekly schedules or day-of-month for monthly schedules. + * Do not specify both. For monthly schedules, day-of-month must be between 1 and 28. If the + * service generates a default monthly schedule for an assessment created on day 29, 30, or + * 31 of a month, it uses day 28. + * + * @param schedule the value to set + * @return this builder + */ + public Builder schedule(String schedule) { + this.schedule = schedule; + this.__explicitlySet__.add("schedule"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cryptoPosture") + private CryptoPosture cryptoPosture; + + public Builder cryptoPosture(CryptoPosture cryptoPosture) { + this.cryptoPosture = cryptoPosture; + this.__explicitlySet__.add("cryptoPosture"); + return this; + } + /** Number of crypto issues detected in this assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("issueCount") + private Integer issueCount; + + /** + * Number of crypto issues detected in this assessment. + * + * @param issueCount the value to set + * @return this builder + */ + public Builder issueCount(Integer issueCount) { + this.issueCount = issueCount; + this.__explicitlySet__.add("issueCount"); + return this; + } + /** + * Number of assessed targets with one or more crypto issues. For a target database + * assessment, this value is 1 when the target has issues and 0 otherwise. For a target + * database group assessment, this value is the number of targets in the group that have + * issues. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetsWithIssuesCount") + private Integer targetsWithIssuesCount; + + /** + * Number of assessed targets with one or more crypto issues. For a target database + * assessment, this value is 1 when the target has issues and 0 otherwise. For a target + * database group assessment, this value is the number of targets in the group that have + * issues. + * + * @param targetsWithIssuesCount the value to set + * @return this builder + */ + public Builder targetsWithIssuesCount(Integer targetsWithIssuesCount) { + this.targetsWithIssuesCount = targetsWithIssuesCount; + this.__explicitlySet__.add("targetsWithIssuesCount"); + return this; + } + /** + * Indicates whether scheduled execution is active for this crypto assessment. When false, + * the schedule value is retained but scheduled execution is paused. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAssessmentScheduled") + private Boolean isAssessmentScheduled; + + /** + * Indicates whether scheduled execution is active for this crypto assessment. When false, + * the schedule value is retained but scheduled execution is paused. + * + * @param isAssessmentScheduled the value to set + * @return this builder + */ + public Builder isAssessmentScheduled(Boolean isAssessmentScheduled) { + this.isAssessmentScheduled = isAssessmentScheduled; + this.__explicitlySet__.add("isAssessmentScheduled"); + 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. For more + * information, see Resource Tags. Example: {@code {"orcl-cloud": {"free-tier-retained": + * "true"}}} + */ + @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. For more + * information, see Resource Tags. 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 CryptoAssessment build() { + CryptoAssessment model = + new CryptoAssessment( + this.id, + this.displayName, + this.description, + this.compartmentId, + this.timeCreated, + this.timeUpdated, + this.timeLastAssessed, + this.lifecycleState, + this.lifecycleDetails, + this.type, + this.triggeredBy, + this.targetType, + this.targetId, + this.targetDatabaseGroupId, + this.databaseVersion, + this.databaseName, + this.databaseArchitecture, + this.cryptoProvider, + this.postureCategory, + this.schedule, + this.cryptoPosture, + this.issueCount, + this.targetsWithIssuesCount, + this.isAssessmentScheduled, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoAssessment model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeLastAssessed")) { + this.timeLastAssessed(model.getTimeLastAssessed()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("triggeredBy")) { + this.triggeredBy(model.getTriggeredBy()); + } + if (model.wasPropertyExplicitlySet("targetType")) { + this.targetType(model.getTargetType()); + } + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + if (model.wasPropertyExplicitlySet("targetDatabaseGroupId")) { + this.targetDatabaseGroupId(model.getTargetDatabaseGroupId()); + } + if (model.wasPropertyExplicitlySet("databaseVersion")) { + this.databaseVersion(model.getDatabaseVersion()); + } + if (model.wasPropertyExplicitlySet("databaseName")) { + this.databaseName(model.getDatabaseName()); + } + if (model.wasPropertyExplicitlySet("databaseArchitecture")) { + this.databaseArchitecture(model.getDatabaseArchitecture()); + } + if (model.wasPropertyExplicitlySet("cryptoProvider")) { + this.cryptoProvider(model.getCryptoProvider()); + } + if (model.wasPropertyExplicitlySet("postureCategory")) { + this.postureCategory(model.getPostureCategory()); + } + if (model.wasPropertyExplicitlySet("schedule")) { + this.schedule(model.getSchedule()); + } + if (model.wasPropertyExplicitlySet("cryptoPosture")) { + this.cryptoPosture(model.getCryptoPosture()); + } + if (model.wasPropertyExplicitlySet("issueCount")) { + this.issueCount(model.getIssueCount()); + } + if (model.wasPropertyExplicitlySet("targetsWithIssuesCount")) { + this.targetsWithIssuesCount(model.getTargetsWithIssuesCount()); + } + if (model.wasPropertyExplicitlySet("isAssessmentScheduled")) { + this.isAssessmentScheduled(model.getIsAssessmentScheduled()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the crypto assessment. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The display name of the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the crypto assessment. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The description of the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the crypto assessment. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The OCID of the compartment that contains the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the crypto assessment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The date and time the crypto assessment was created, in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the crypto assessment was created, in RFC3339 format. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The date and time the crypto assessment was last updated, in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the crypto assessment was last updated, in RFC3339 format. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The date and time the crypto posture was last assessed, in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastAssessed") + private final java.util.Date timeLastAssessed; + + /** + * The date and time the crypto posture was last assessed, in RFC3339 format. + * + * @return the value + */ + public java.util.Date getTimeLastAssessed() { + return timeLastAssessed; + } + + /** The current lifecycle state of the crypto assessment. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Active("ACTIVE"), + Updating("UPDATING"), + 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 lifecycle state of the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current lifecycle state of the crypto assessment. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Details about the current lifecycle state of the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Details about the current lifecycle state of the crypto assessment. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** The type of this crypto assessment. */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + Latest("LATEST"), + Saved("SAVED"), + + /** + * 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; + } + }; + /** The type of this crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * The type of this crypto assessment. + * + * @return the value + */ + public Type getType() { + return type; + } + + /** The actor that created the assessment. */ + public enum TriggeredBy implements com.oracle.bmc.http.internal.BmcEnum { + User("USER"), + System("SYSTEM"), + + /** + * 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(TriggeredBy.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TriggeredBy v : TriggeredBy.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + TriggeredBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TriggeredBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'TriggeredBy', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The actor that created the assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("triggeredBy") + private final TriggeredBy triggeredBy; + + /** + * The actor that created the assessment. + * + * @return the value + */ + public TriggeredBy getTriggeredBy() { + return triggeredBy; + } + + /** The target type of the crypto assessment. */ + public enum TargetType implements com.oracle.bmc.http.internal.BmcEnum { + TargetDatabase("TARGET_DATABASE"), + TargetDatabaseGroup("TARGET_DATABASE_GROUP"), + + /** + * 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(TargetType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TargetType v : TargetType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + TargetType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TargetType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'TargetType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The target type of the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetType") + private final TargetType targetType; + + /** + * The target type of the crypto assessment. + * + * @return the value + */ + public TargetType getTargetType() { + return targetType; + } + + /** The OCID of the target database. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * The OCID of the target database. + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** + * The OCID of the target database group. This is returned when {@code targetType} is {@code + * TARGET_DATABASE_GROUP}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseGroupId") + private final String targetDatabaseGroupId; + + /** + * The OCID of the target database group. This is returned when {@code targetType} is {@code + * TARGET_DATABASE_GROUP}. + * + * @return the value + */ + public String getTargetDatabaseGroupId() { + return targetDatabaseGroupId; + } + + /** The version of the assessed target database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private final String databaseVersion; + + /** + * The version of the assessed target database. + * + * @return the value + */ + public String getDatabaseVersion() { + return databaseVersion; + } + + /** The name of the assessed target database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private final String databaseName; + + /** + * The name of the assessed target database. + * + * @return the value + */ + public String getDatabaseName() { + return databaseName; + } + + /** The architecture of the assessed target database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseArchitecture") + private final String databaseArchitecture; + + /** + * The architecture of the assessed target database. + * + * @return the value + */ + public String getDatabaseArchitecture() { + return databaseArchitecture; + } + + /** Cryptographic provider and version information observed on the target. */ + @com.fasterxml.jackson.annotation.JsonProperty("cryptoProvider") + private final String cryptoProvider; + + /** + * Cryptographic provider and version information observed on the target. + * + * @return the value + */ + public String getCryptoProvider() { + return cryptoProvider; + } + + /** Overall posture category for the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("postureCategory") + private final CryptoPostureCategory postureCategory; + + /** + * Overall posture category for the crypto assessment. + * + * @return the value + */ + public CryptoPostureCategory getPostureCategory() { + return postureCategory; + } + + /** + * The schedule used to run the crypto assessment periodically. The schedule uses the format: + * ; + * + *

For v1, the version-specific schedule format is: + * + * + *

Specify either day-of-week for weekly schedules or day-of-month for monthly schedules. Do + * not specify both. For monthly schedules, day-of-month must be between 1 and 28. If the + * service generates a default monthly schedule for an assessment created on day 29, 30, or 31 + * of a month, it uses day 28. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedule") + private final String schedule; + + /** + * The schedule used to run the crypto assessment periodically. The schedule uses the format: + * ; + * + *

For v1, the version-specific schedule format is: + * + * + *

Specify either day-of-week for weekly schedules or day-of-month for monthly schedules. Do + * not specify both. For monthly schedules, day-of-month must be between 1 and 28. If the + * service generates a default monthly schedule for an assessment created on day 29, 30, or 31 + * of a month, it uses day 28. + * + * @return the value + */ + public String getSchedule() { + return schedule; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cryptoPosture") + private final CryptoPosture cryptoPosture; + + public CryptoPosture getCryptoPosture() { + return cryptoPosture; + } + + /** Number of crypto issues detected in this assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("issueCount") + private final Integer issueCount; + + /** + * Number of crypto issues detected in this assessment. + * + * @return the value + */ + public Integer getIssueCount() { + return issueCount; + } + + /** + * Number of assessed targets with one or more crypto issues. For a target database assessment, + * this value is 1 when the target has issues and 0 otherwise. For a target database group + * assessment, this value is the number of targets in the group that have issues. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetsWithIssuesCount") + private final Integer targetsWithIssuesCount; + + /** + * Number of assessed targets with one or more crypto issues. For a target database assessment, + * this value is 1 when the target has issues and 0 otherwise. For a target database group + * assessment, this value is the number of targets in the group that have issues. + * + * @return the value + */ + public Integer getTargetsWithIssuesCount() { + return targetsWithIssuesCount; + } + + /** + * Indicates whether scheduled execution is active for this crypto assessment. When false, the + * schedule value is retained but scheduled execution is paused. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAssessmentScheduled") + private final Boolean isAssessmentScheduled; + + /** + * Indicates whether scheduled execution is active for this crypto assessment. When false, the + * schedule value is retained but scheduled execution is paused. + * + * @return the value + */ + public Boolean getIsAssessmentScheduled() { + return isAssessmentScheduled; + } + + /** + * 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. For more + * information, see Resource Tags. Example: {@code {"orcl-cloud": {"free-tier-retained": + * "true"}}} + */ + @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. For more + * information, see Resource Tags. 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("CryptoAssessment("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeLastAssessed=").append(String.valueOf(this.timeLastAssessed)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", triggeredBy=").append(String.valueOf(this.triggeredBy)); + sb.append(", targetType=").append(String.valueOf(this.targetType)); + sb.append(", targetId=").append(String.valueOf(this.targetId)); + sb.append(", targetDatabaseGroupId=").append(String.valueOf(this.targetDatabaseGroupId)); + sb.append(", databaseVersion=").append(String.valueOf(this.databaseVersion)); + sb.append(", databaseName=").append(String.valueOf(this.databaseName)); + sb.append(", databaseArchitecture=").append(String.valueOf(this.databaseArchitecture)); + sb.append(", cryptoProvider=").append(String.valueOf(this.cryptoProvider)); + sb.append(", postureCategory=").append(String.valueOf(this.postureCategory)); + sb.append(", schedule=").append(String.valueOf(this.schedule)); + sb.append(", cryptoPosture=").append(String.valueOf(this.cryptoPosture)); + sb.append(", issueCount=").append(String.valueOf(this.issueCount)); + sb.append(", targetsWithIssuesCount=").append(String.valueOf(this.targetsWithIssuesCount)); + sb.append(", isAssessmentScheduled=").append(String.valueOf(this.isAssessmentScheduled)); + 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 CryptoAssessment)) { + return false; + } + + CryptoAssessment other = (CryptoAssessment) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeLastAssessed, other.timeLastAssessed) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.triggeredBy, other.triggeredBy) + && java.util.Objects.equals(this.targetType, other.targetType) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.targetDatabaseGroupId, other.targetDatabaseGroupId) + && java.util.Objects.equals(this.databaseVersion, other.databaseVersion) + && java.util.Objects.equals(this.databaseName, other.databaseName) + && java.util.Objects.equals(this.databaseArchitecture, other.databaseArchitecture) + && java.util.Objects.equals(this.cryptoProvider, other.cryptoProvider) + && java.util.Objects.equals(this.postureCategory, other.postureCategory) + && java.util.Objects.equals(this.schedule, other.schedule) + && java.util.Objects.equals(this.cryptoPosture, other.cryptoPosture) + && java.util.Objects.equals(this.issueCount, other.issueCount) + && java.util.Objects.equals( + this.targetsWithIssuesCount, other.targetsWithIssuesCount) + && java.util.Objects.equals(this.isAssessmentScheduled, other.isAssessmentScheduled) + && 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.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.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.timeLastAssessed == null ? 43 : this.timeLastAssessed.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.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.triggeredBy == null ? 43 : this.triggeredBy.hashCode()); + result = (result * PRIME) + (this.targetType == null ? 43 : this.targetType.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = + (result * PRIME) + + (this.targetDatabaseGroupId == null + ? 43 + : this.targetDatabaseGroupId.hashCode()); + result = + (result * PRIME) + + (this.databaseVersion == null ? 43 : this.databaseVersion.hashCode()); + result = (result * PRIME) + (this.databaseName == null ? 43 : this.databaseName.hashCode()); + result = + (result * PRIME) + + (this.databaseArchitecture == null + ? 43 + : this.databaseArchitecture.hashCode()); + result = + (result * PRIME) + + (this.cryptoProvider == null ? 43 : this.cryptoProvider.hashCode()); + result = + (result * PRIME) + + (this.postureCategory == null ? 43 : this.postureCategory.hashCode()); + result = (result * PRIME) + (this.schedule == null ? 43 : this.schedule.hashCode()); + result = + (result * PRIME) + + (this.cryptoPosture == null ? 43 : this.cryptoPosture.hashCode()); + result = (result * PRIME) + (this.issueCount == null ? 43 : this.issueCount.hashCode()); + result = + (result * PRIME) + + (this.targetsWithIssuesCount == null + ? 43 + : this.targetsWithIssuesCount.hashCode()); + result = + (result * PRIME) + + (this.isAssessmentScheduled == null + ? 43 + : this.isAssessmentScheduled.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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentBackupSetCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentBackupSetCollection.java new file mode 100644 index 00000000000..d62bec3ba54 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentBackupSetCollection.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.datasafe.model; + +/** + * Backup set summaries observed for a crypto assessment.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CryptoAssessmentBackupSetCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoAssessmentBackupSetCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public CryptoAssessmentBackupSetCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Backup set summary items for the specified crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Backup set summary items for the specified crypto assessment. + * + * @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 CryptoAssessmentBackupSetCollection build() { + CryptoAssessmentBackupSetCollection model = + new CryptoAssessmentBackupSetCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoAssessmentBackupSetCollection 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); + } + + /** Backup set summary items for the specified crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Backup set summary items for the specified crypto assessment. + * + * @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("CryptoAssessmentBackupSetCollection("); + 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 CryptoAssessmentBackupSetCollection)) { + return false; + } + + CryptoAssessmentBackupSetCollection other = (CryptoAssessmentBackupSetCollection) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentBackupSetSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentBackupSetSummary.java new file mode 100644 index 00000000000..53880413cc4 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentBackupSetSummary.java @@ -0,0 +1,738 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** + * Summary of one backup set observed for a crypto assessment.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CryptoAssessmentBackupSetSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoAssessmentBackupSetSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "assessmentId", + "timeLastAssessed", + "targetId", + "backupSetKey", + "setStamp", + "backupType", + "status", + "backupPieces", + "isEncrypted", + "algorithmObserved", + "cipherModeObserved", + "isCompressed", + "timeCreated", + "sizeInGBs" + }) + public CryptoAssessmentBackupSetSummary( + String assessmentId, + java.util.Date timeLastAssessed, + String targetId, + String backupSetKey, + String setStamp, + BackupType backupType, + Status status, + Integer backupPieces, + Boolean isEncrypted, + String algorithmObserved, + String cipherModeObserved, + Boolean isCompressed, + java.util.Date timeCreated, + Double sizeInGBs) { + super(); + this.assessmentId = assessmentId; + this.timeLastAssessed = timeLastAssessed; + this.targetId = targetId; + this.backupSetKey = backupSetKey; + this.setStamp = setStamp; + this.backupType = backupType; + this.status = status; + this.backupPieces = backupPieces; + this.isEncrypted = isEncrypted; + this.algorithmObserved = algorithmObserved; + this.cipherModeObserved = cipherModeObserved; + this.isCompressed = isCompressed; + this.timeCreated = timeCreated; + this.sizeInGBs = sizeInGBs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** OCID of the crypto assessment that discovered the backup set. */ + @com.fasterxml.jackson.annotation.JsonProperty("assessmentId") + private String assessmentId; + + /** + * OCID of the crypto assessment that discovered the backup set. + * + * @param assessmentId the value to set + * @return this builder + */ + public Builder assessmentId(String assessmentId) { + this.assessmentId = assessmentId; + this.__explicitlySet__.add("assessmentId"); + return this; + } + /** + * The date and time the associated crypto assessment was last assessed, in RFC3339 format. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastAssessed") + private java.util.Date timeLastAssessed; + + /** + * The date and time the associated crypto assessment was last assessed, in RFC3339 format. + * + * @param timeLastAssessed the value to set + * @return this builder + */ + public Builder timeLastAssessed(java.util.Date timeLastAssessed) { + this.timeLastAssessed = timeLastAssessed; + this.__explicitlySet__.add("timeLastAssessed"); + return this; + } + /** OCID of the target database associated with the backup set. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * OCID of the target database associated with the backup set. + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + /** Backup set key. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupSetKey") + private String backupSetKey; + + /** + * Backup set key. + * + * @param backupSetKey the value to set + * @return this builder + */ + public Builder backupSetKey(String backupSetKey) { + this.backupSetKey = backupSetKey; + this.__explicitlySet__.add("backupSetKey"); + return this; + } + /** Backup set stamp. */ + @com.fasterxml.jackson.annotation.JsonProperty("setStamp") + private String setStamp; + + /** + * Backup set stamp. + * + * @param setStamp the value to set + * @return this builder + */ + public Builder setStamp(String setStamp) { + this.setStamp = setStamp; + this.__explicitlySet__.add("setStamp"); + return this; + } + /** Backup type observed for the set. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupType") + private BackupType backupType; + + /** + * Backup type observed for the set. + * + * @param backupType the value to set + * @return this builder + */ + public Builder backupType(BackupType backupType) { + this.backupType = backupType; + this.__explicitlySet__.add("backupType"); + return this; + } + /** Current status of the backup set. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * Current status of the backup set. + * + * @param status the value to set + * @return this builder + */ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** Number of backup pieces in the set. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupPieces") + private Integer backupPieces; + + /** + * Number of backup pieces in the set. + * + * @param backupPieces the value to set + * @return this builder + */ + public Builder backupPieces(Integer backupPieces) { + this.backupPieces = backupPieces; + this.__explicitlySet__.add("backupPieces"); + return this; + } + /** Indicates whether the backup set is encrypted. */ + @com.fasterxml.jackson.annotation.JsonProperty("isEncrypted") + private Boolean isEncrypted; + + /** + * Indicates whether the backup set is encrypted. + * + * @param isEncrypted the value to set + * @return this builder + */ + public Builder isEncrypted(Boolean isEncrypted) { + this.isEncrypted = isEncrypted; + this.__explicitlySet__.add("isEncrypted"); + return this; + } + /** Encryption algorithm observed for the backup set when encryption is enabled. */ + @com.fasterxml.jackson.annotation.JsonProperty("algorithmObserved") + private String algorithmObserved; + + /** + * Encryption algorithm observed for the backup set when encryption is enabled. + * + * @param algorithmObserved the value to set + * @return this builder + */ + public Builder algorithmObserved(String algorithmObserved) { + this.algorithmObserved = algorithmObserved; + this.__explicitlySet__.add("algorithmObserved"); + return this; + } + /** Cipher mode observed for the backup set when encryption is enabled. */ + @com.fasterxml.jackson.annotation.JsonProperty("cipherModeObserved") + private String cipherModeObserved; + + /** + * Cipher mode observed for the backup set when encryption is enabled. + * + * @param cipherModeObserved the value to set + * @return this builder + */ + public Builder cipherModeObserved(String cipherModeObserved) { + this.cipherModeObserved = cipherModeObserved; + this.__explicitlySet__.add("cipherModeObserved"); + return this; + } + /** Indicates whether the backup set is compressed. */ + @com.fasterxml.jackson.annotation.JsonProperty("isCompressed") + private Boolean isCompressed; + + /** + * Indicates whether the backup set is compressed. + * + * @param isCompressed the value to set + * @return this builder + */ + public Builder isCompressed(Boolean isCompressed) { + this.isCompressed = isCompressed; + this.__explicitlySet__.add("isCompressed"); + return this; + } + /** Backup set creation time in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * Backup set creation time in RFC3339 format. + * + * @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; + } + /** Backup set size in gigabytes. */ + @com.fasterxml.jackson.annotation.JsonProperty("sizeInGBs") + private Double sizeInGBs; + + /** + * Backup set size in gigabytes. + * + * @param sizeInGBs the value to set + * @return this builder + */ + public Builder sizeInGBs(Double sizeInGBs) { + this.sizeInGBs = sizeInGBs; + this.__explicitlySet__.add("sizeInGBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CryptoAssessmentBackupSetSummary build() { + CryptoAssessmentBackupSetSummary model = + new CryptoAssessmentBackupSetSummary( + this.assessmentId, + this.timeLastAssessed, + this.targetId, + this.backupSetKey, + this.setStamp, + this.backupType, + this.status, + this.backupPieces, + this.isEncrypted, + this.algorithmObserved, + this.cipherModeObserved, + this.isCompressed, + this.timeCreated, + this.sizeInGBs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoAssessmentBackupSetSummary model) { + if (model.wasPropertyExplicitlySet("assessmentId")) { + this.assessmentId(model.getAssessmentId()); + } + if (model.wasPropertyExplicitlySet("timeLastAssessed")) { + this.timeLastAssessed(model.getTimeLastAssessed()); + } + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + if (model.wasPropertyExplicitlySet("backupSetKey")) { + this.backupSetKey(model.getBackupSetKey()); + } + if (model.wasPropertyExplicitlySet("setStamp")) { + this.setStamp(model.getSetStamp()); + } + if (model.wasPropertyExplicitlySet("backupType")) { + this.backupType(model.getBackupType()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("backupPieces")) { + this.backupPieces(model.getBackupPieces()); + } + if (model.wasPropertyExplicitlySet("isEncrypted")) { + this.isEncrypted(model.getIsEncrypted()); + } + if (model.wasPropertyExplicitlySet("algorithmObserved")) { + this.algorithmObserved(model.getAlgorithmObserved()); + } + if (model.wasPropertyExplicitlySet("cipherModeObserved")) { + this.cipherModeObserved(model.getCipherModeObserved()); + } + if (model.wasPropertyExplicitlySet("isCompressed")) { + this.isCompressed(model.getIsCompressed()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("sizeInGBs")) { + this.sizeInGBs(model.getSizeInGBs()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** OCID of the crypto assessment that discovered the backup set. */ + @com.fasterxml.jackson.annotation.JsonProperty("assessmentId") + private final String assessmentId; + + /** + * OCID of the crypto assessment that discovered the backup set. + * + * @return the value + */ + public String getAssessmentId() { + return assessmentId; + } + + /** The date and time the associated crypto assessment was last assessed, in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastAssessed") + private final java.util.Date timeLastAssessed; + + /** + * The date and time the associated crypto assessment was last assessed, in RFC3339 format. + * + * @return the value + */ + public java.util.Date getTimeLastAssessed() { + return timeLastAssessed; + } + + /** OCID of the target database associated with the backup set. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * OCID of the target database associated with the backup set. + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** Backup set key. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupSetKey") + private final String backupSetKey; + + /** + * Backup set key. + * + * @return the value + */ + public String getBackupSetKey() { + return backupSetKey; + } + + /** Backup set stamp. */ + @com.fasterxml.jackson.annotation.JsonProperty("setStamp") + private final String setStamp; + + /** + * Backup set stamp. + * + * @return the value + */ + public String getSetStamp() { + return setStamp; + } + + /** Backup type observed for the set. */ + public enum BackupType implements com.oracle.bmc.http.internal.BmcEnum { + Datafile("DATAFILE"), + Archived("ARCHIVED"), + Incremental("INCREMENTAL"), + NotSupported("NOT_SUPPORTED"), + + /** + * 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(BackupType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (BackupType v : BackupType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + BackupType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static BackupType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'BackupType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Backup type observed for the set. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupType") + private final BackupType backupType; + + /** + * Backup type observed for the set. + * + * @return the value + */ + public BackupType getBackupType() { + return backupType; + } + + /** Current status of the backup set. */ + public enum Status implements com.oracle.bmc.http.internal.BmcEnum { + Available("AVAILABLE"), + Expired("EXPIRED"), + Deleted("DELETED"), + NotSupported("NOT_SUPPORTED"), + + /** + * 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 status of the backup set. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * Current status of the backup set. + * + * @return the value + */ + public Status getStatus() { + return status; + } + + /** Number of backup pieces in the set. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupPieces") + private final Integer backupPieces; + + /** + * Number of backup pieces in the set. + * + * @return the value + */ + public Integer getBackupPieces() { + return backupPieces; + } + + /** Indicates whether the backup set is encrypted. */ + @com.fasterxml.jackson.annotation.JsonProperty("isEncrypted") + private final Boolean isEncrypted; + + /** + * Indicates whether the backup set is encrypted. + * + * @return the value + */ + public Boolean getIsEncrypted() { + return isEncrypted; + } + + /** Encryption algorithm observed for the backup set when encryption is enabled. */ + @com.fasterxml.jackson.annotation.JsonProperty("algorithmObserved") + private final String algorithmObserved; + + /** + * Encryption algorithm observed for the backup set when encryption is enabled. + * + * @return the value + */ + public String getAlgorithmObserved() { + return algorithmObserved; + } + + /** Cipher mode observed for the backup set when encryption is enabled. */ + @com.fasterxml.jackson.annotation.JsonProperty("cipherModeObserved") + private final String cipherModeObserved; + + /** + * Cipher mode observed for the backup set when encryption is enabled. + * + * @return the value + */ + public String getCipherModeObserved() { + return cipherModeObserved; + } + + /** Indicates whether the backup set is compressed. */ + @com.fasterxml.jackson.annotation.JsonProperty("isCompressed") + private final Boolean isCompressed; + + /** + * Indicates whether the backup set is compressed. + * + * @return the value + */ + public Boolean getIsCompressed() { + return isCompressed; + } + + /** Backup set creation time in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * Backup set creation time in RFC3339 format. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** Backup set size in gigabytes. */ + @com.fasterxml.jackson.annotation.JsonProperty("sizeInGBs") + private final Double sizeInGBs; + + /** + * Backup set size in gigabytes. + * + * @return the value + */ + public Double getSizeInGBs() { + return sizeInGBs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CryptoAssessmentBackupSetSummary("); + sb.append("super=").append(super.toString()); + sb.append("assessmentId=").append(String.valueOf(this.assessmentId)); + sb.append(", timeLastAssessed=").append(String.valueOf(this.timeLastAssessed)); + sb.append(", targetId=").append(String.valueOf(this.targetId)); + sb.append(", backupSetKey=").append(String.valueOf(this.backupSetKey)); + sb.append(", setStamp=").append(String.valueOf(this.setStamp)); + sb.append(", backupType=").append(String.valueOf(this.backupType)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", backupPieces=").append(String.valueOf(this.backupPieces)); + sb.append(", isEncrypted=").append(String.valueOf(this.isEncrypted)); + sb.append(", algorithmObserved=").append(String.valueOf(this.algorithmObserved)); + sb.append(", cipherModeObserved=").append(String.valueOf(this.cipherModeObserved)); + sb.append(", isCompressed=").append(String.valueOf(this.isCompressed)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", sizeInGBs=").append(String.valueOf(this.sizeInGBs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CryptoAssessmentBackupSetSummary)) { + return false; + } + + CryptoAssessmentBackupSetSummary other = (CryptoAssessmentBackupSetSummary) o; + return java.util.Objects.equals(this.assessmentId, other.assessmentId) + && java.util.Objects.equals(this.timeLastAssessed, other.timeLastAssessed) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.backupSetKey, other.backupSetKey) + && java.util.Objects.equals(this.setStamp, other.setStamp) + && java.util.Objects.equals(this.backupType, other.backupType) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.backupPieces, other.backupPieces) + && java.util.Objects.equals(this.isEncrypted, other.isEncrypted) + && java.util.Objects.equals(this.algorithmObserved, other.algorithmObserved) + && java.util.Objects.equals(this.cipherModeObserved, other.cipherModeObserved) + && java.util.Objects.equals(this.isCompressed, other.isCompressed) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.sizeInGBs, other.sizeInGBs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.assessmentId == null ? 43 : this.assessmentId.hashCode()); + result = + (result * PRIME) + + (this.timeLastAssessed == null ? 43 : this.timeLastAssessed.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = (result * PRIME) + (this.backupSetKey == null ? 43 : this.backupSetKey.hashCode()); + result = (result * PRIME) + (this.setStamp == null ? 43 : this.setStamp.hashCode()); + result = (result * PRIME) + (this.backupType == null ? 43 : this.backupType.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.backupPieces == null ? 43 : this.backupPieces.hashCode()); + result = (result * PRIME) + (this.isEncrypted == null ? 43 : this.isEncrypted.hashCode()); + result = + (result * PRIME) + + (this.algorithmObserved == null ? 43 : this.algorithmObserved.hashCode()); + result = + (result * PRIME) + + (this.cipherModeObserved == null + ? 43 + : this.cipherModeObserved.hashCode()); + result = (result * PRIME) + (this.isCompressed == null ? 43 : this.isCompressed.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.sizeInGBs == null ? 43 : this.sizeInGBs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentCbomItemCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentCbomItemCollection.java new file mode 100644 index 00000000000..e8c9b7ef11b --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentCbomItemCollection.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.datasafe.model; + +/** + * Collection of CBOM items discovered for a crypto assessment.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CryptoAssessmentCbomItemCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoAssessmentCbomItemCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public CryptoAssessmentCbomItemCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** CBOM items for the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * CBOM items for the crypto assessment. + * + * @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 CryptoAssessmentCbomItemCollection build() { + CryptoAssessmentCbomItemCollection model = + new CryptoAssessmentCbomItemCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoAssessmentCbomItemCollection 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); + } + + /** CBOM items for the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * CBOM items for the crypto assessment. + * + * @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("CryptoAssessmentCbomItemCollection("); + 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 CryptoAssessmentCbomItemCollection)) { + return false; + } + + CryptoAssessmentCbomItemCollection other = (CryptoAssessmentCbomItemCollection) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentCbomItemSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentCbomItemSummary.java new file mode 100644 index 00000000000..295259bbcee --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentCbomItemSummary.java @@ -0,0 +1,413 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** + * One CBOM item representing a cryptographic component or configuration.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CryptoAssessmentCbomItemSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoAssessmentCbomItemSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "componentType", + "feature", + "protocol", + "algorithm", + "format", + "keySize", + "configurationLocation", + "complianceDriver" + }) + public CryptoAssessmentCbomItemSummary( + String componentType, + String feature, + String protocol, + String algorithm, + String format, + String keySize, + java.util.List configurationLocation, + String complianceDriver) { + super(); + this.componentType = componentType; + this.feature = feature; + this.protocol = protocol; + this.algorithm = algorithm; + this.format = format; + this.keySize = keySize; + this.configurationLocation = configurationLocation; + this.complianceDriver = complianceDriver; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Type of component represented in the CBOM item. */ + @com.fasterxml.jackson.annotation.JsonProperty("componentType") + private String componentType; + + /** + * Type of component represented in the CBOM item. + * + * @param componentType the value to set + * @return this builder + */ + public Builder componentType(String componentType) { + this.componentType = componentType; + this.__explicitlySet__.add("componentType"); + return this; + } + /** Feature name represented by the CBOM item. */ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private String feature; + + /** + * Feature name represented by the CBOM item. + * + * @param feature the value to set + * @return this builder + */ + public Builder feature(String feature) { + this.feature = feature; + this.__explicitlySet__.add("feature"); + return this; + } + /** Protocol used by the cryptographic feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("protocol") + private String protocol; + + /** + * Protocol used by the cryptographic feature. + * + * @param protocol the value to set + * @return this builder + */ + public Builder protocol(String protocol) { + this.protocol = protocol; + this.__explicitlySet__.add("protocol"); + return this; + } + /** Cryptographic algorithm or integrity/checksum value observed for the feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("algorithm") + private String algorithm; + + /** + * Cryptographic algorithm or integrity/checksum value observed for the feature. + * + * @param algorithm the value to set + * @return this builder + */ + public Builder algorithm(String algorithm) { + this.algorithm = algorithm; + this.__explicitlySet__.add("algorithm"); + return this; + } + /** Cryptographic format used by the feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("format") + private String format; + + /** + * Cryptographic format used by the feature. + * + * @param format the value to set + * @return this builder + */ + public Builder format(String format) { + this.format = format; + this.__explicitlySet__.add("format"); + return this; + } + /** Observed key size for the feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("keySize") + private String keySize; + + /** + * Observed key size for the feature. + * + * @param keySize the value to set + * @return this builder + */ + public Builder keySize(String keySize) { + this.keySize = keySize; + this.__explicitlySet__.add("keySize"); + return this; + } + /** Locations where this item is configured or stored. */ + @com.fasterxml.jackson.annotation.JsonProperty("configurationLocation") + private java.util.List configurationLocation; + + /** + * Locations where this item is configured or stored. + * + * @param configurationLocation the value to set + * @return this builder + */ + public Builder configurationLocation(java.util.List configurationLocation) { + this.configurationLocation = configurationLocation; + this.__explicitlySet__.add("configurationLocation"); + return this; + } + /** Static compliance standards applicable to the feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("complianceDriver") + private String complianceDriver; + + /** + * Static compliance standards applicable to the feature. + * + * @param complianceDriver the value to set + * @return this builder + */ + public Builder complianceDriver(String complianceDriver) { + this.complianceDriver = complianceDriver; + this.__explicitlySet__.add("complianceDriver"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CryptoAssessmentCbomItemSummary build() { + CryptoAssessmentCbomItemSummary model = + new CryptoAssessmentCbomItemSummary( + this.componentType, + this.feature, + this.protocol, + this.algorithm, + this.format, + this.keySize, + this.configurationLocation, + this.complianceDriver); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoAssessmentCbomItemSummary model) { + if (model.wasPropertyExplicitlySet("componentType")) { + this.componentType(model.getComponentType()); + } + if (model.wasPropertyExplicitlySet("feature")) { + this.feature(model.getFeature()); + } + if (model.wasPropertyExplicitlySet("protocol")) { + this.protocol(model.getProtocol()); + } + if (model.wasPropertyExplicitlySet("algorithm")) { + this.algorithm(model.getAlgorithm()); + } + if (model.wasPropertyExplicitlySet("format")) { + this.format(model.getFormat()); + } + if (model.wasPropertyExplicitlySet("keySize")) { + this.keySize(model.getKeySize()); + } + if (model.wasPropertyExplicitlySet("configurationLocation")) { + this.configurationLocation(model.getConfigurationLocation()); + } + if (model.wasPropertyExplicitlySet("complianceDriver")) { + this.complianceDriver(model.getComplianceDriver()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Type of component represented in the CBOM item. */ + @com.fasterxml.jackson.annotation.JsonProperty("componentType") + private final String componentType; + + /** + * Type of component represented in the CBOM item. + * + * @return the value + */ + public String getComponentType() { + return componentType; + } + + /** Feature name represented by the CBOM item. */ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private final String feature; + + /** + * Feature name represented by the CBOM item. + * + * @return the value + */ + public String getFeature() { + return feature; + } + + /** Protocol used by the cryptographic feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("protocol") + private final String protocol; + + /** + * Protocol used by the cryptographic feature. + * + * @return the value + */ + public String getProtocol() { + return protocol; + } + + /** Cryptographic algorithm or integrity/checksum value observed for the feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("algorithm") + private final String algorithm; + + /** + * Cryptographic algorithm or integrity/checksum value observed for the feature. + * + * @return the value + */ + public String getAlgorithm() { + return algorithm; + } + + /** Cryptographic format used by the feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("format") + private final String format; + + /** + * Cryptographic format used by the feature. + * + * @return the value + */ + public String getFormat() { + return format; + } + + /** Observed key size for the feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("keySize") + private final String keySize; + + /** + * Observed key size for the feature. + * + * @return the value + */ + public String getKeySize() { + return keySize; + } + + /** Locations where this item is configured or stored. */ + @com.fasterxml.jackson.annotation.JsonProperty("configurationLocation") + private final java.util.List configurationLocation; + + /** + * Locations where this item is configured or stored. + * + * @return the value + */ + public java.util.List getConfigurationLocation() { + return configurationLocation; + } + + /** Static compliance standards applicable to the feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("complianceDriver") + private final String complianceDriver; + + /** + * Static compliance standards applicable to the feature. + * + * @return the value + */ + public String getComplianceDriver() { + return complianceDriver; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CryptoAssessmentCbomItemSummary("); + sb.append("super=").append(super.toString()); + sb.append("componentType=").append(String.valueOf(this.componentType)); + sb.append(", feature=").append(String.valueOf(this.feature)); + sb.append(", protocol=").append(String.valueOf(this.protocol)); + sb.append(", algorithm=").append(String.valueOf(this.algorithm)); + sb.append(", format=").append(String.valueOf(this.format)); + sb.append(", keySize=").append(String.valueOf(this.keySize)); + sb.append(", configurationLocation=").append(String.valueOf(this.configurationLocation)); + sb.append(", complianceDriver=").append(String.valueOf(this.complianceDriver)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CryptoAssessmentCbomItemSummary)) { + return false; + } + + CryptoAssessmentCbomItemSummary other = (CryptoAssessmentCbomItemSummary) o; + return java.util.Objects.equals(this.componentType, other.componentType) + && java.util.Objects.equals(this.feature, other.feature) + && java.util.Objects.equals(this.protocol, other.protocol) + && java.util.Objects.equals(this.algorithm, other.algorithm) + && java.util.Objects.equals(this.format, other.format) + && java.util.Objects.equals(this.keySize, other.keySize) + && java.util.Objects.equals(this.configurationLocation, other.configurationLocation) + && java.util.Objects.equals(this.complianceDriver, other.complianceDriver) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.componentType == null ? 43 : this.componentType.hashCode()); + result = (result * PRIME) + (this.feature == null ? 43 : this.feature.hashCode()); + result = (result * PRIME) + (this.protocol == null ? 43 : this.protocol.hashCode()); + result = (result * PRIME) + (this.algorithm == null ? 43 : this.algorithm.hashCode()); + result = (result * PRIME) + (this.format == null ? 43 : this.format.hashCode()); + result = (result * PRIME) + (this.keySize == null ? 43 : this.keySize.hashCode()); + result = + (result * PRIME) + + (this.configurationLocation == null + ? 43 + : this.configurationLocation.hashCode()); + result = + (result * PRIME) + + (this.complianceDriver == null ? 43 : this.complianceDriver.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentCertificateCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentCertificateCollection.java new file mode 100644 index 00000000000..e6d9eb91936 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentCertificateCollection.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.datasafe.model; + +/** + * Certificates discovered across targets in a 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: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CryptoAssessmentCertificateCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoAssessmentCertificateCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public CryptoAssessmentCertificateCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Certificate summaries that match the request filters. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Certificate summaries that match the request filters. + * + * @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 CryptoAssessmentCertificateCollection build() { + CryptoAssessmentCertificateCollection model = + new CryptoAssessmentCertificateCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoAssessmentCertificateCollection 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); + } + + /** Certificate summaries that match the request filters. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Certificate summaries that match the request filters. + * + * @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("CryptoAssessmentCertificateCollection("); + 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 CryptoAssessmentCertificateCollection)) { + return false; + } + + CryptoAssessmentCertificateCollection other = (CryptoAssessmentCertificateCollection) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentCertificateSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentCertificateSummary.java new file mode 100644 index 00000000000..7f78785f0b2 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentCertificateSummary.java @@ -0,0 +1,926 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** + * Summary of one certificate discovered across targets in a 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: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CryptoAssessmentCertificateSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoAssessmentCertificateSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "assessmentId", + "timeLastAssessed", + "assessmentType", + "compartmentId", + "targetId", + "walletLocation", + "certificateType", + "subject", + "issuer", + "status", + "serialNumber", + "age", + "timeValidFrom", + "timeValidUntil", + "expiryBucket", + "daysToExpiry", + "publicKeyType", + "signatureAlgorithm" + }) + public CryptoAssessmentCertificateSummary( + String assessmentId, + java.util.Date timeLastAssessed, + CryptoAssessment.Type assessmentType, + String compartmentId, + String targetId, + String walletLocation, + CertificateType certificateType, + String subject, + String issuer, + Status status, + String serialNumber, + Long age, + java.util.Date timeValidFrom, + java.util.Date timeValidUntil, + String expiryBucket, + Integer daysToExpiry, + String publicKeyType, + String signatureAlgorithm) { + super(); + this.assessmentId = assessmentId; + this.timeLastAssessed = timeLastAssessed; + this.assessmentType = assessmentType; + this.compartmentId = compartmentId; + this.targetId = targetId; + this.walletLocation = walletLocation; + this.certificateType = certificateType; + this.subject = subject; + this.issuer = issuer; + this.status = status; + this.serialNumber = serialNumber; + this.age = age; + this.timeValidFrom = timeValidFrom; + this.timeValidUntil = timeValidUntil; + this.expiryBucket = expiryBucket; + this.daysToExpiry = daysToExpiry; + this.publicKeyType = publicKeyType; + this.signatureAlgorithm = signatureAlgorithm; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** OCID of the crypto assessment that discovered the certificate. */ + @com.fasterxml.jackson.annotation.JsonProperty("assessmentId") + private String assessmentId; + + /** + * OCID of the crypto assessment that discovered the certificate. + * + * @param assessmentId the value to set + * @return this builder + */ + public Builder assessmentId(String assessmentId) { + this.assessmentId = assessmentId; + this.__explicitlySet__.add("assessmentId"); + return this; + } + /** + * The date and time the associated crypto assessment was last assessed, in RFC3339 format. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastAssessed") + private java.util.Date timeLastAssessed; + + /** + * The date and time the associated crypto assessment was last assessed, in RFC3339 format. + * + * @param timeLastAssessed the value to set + * @return this builder + */ + public Builder timeLastAssessed(java.util.Date timeLastAssessed) { + this.timeLastAssessed = timeLastAssessed; + this.__explicitlySet__.add("timeLastAssessed"); + return this; + } + /** Type of the crypto assessment that discovered the certificate. */ + @com.fasterxml.jackson.annotation.JsonProperty("assessmentType") + private CryptoAssessment.Type assessmentType; + + /** + * Type of the crypto assessment that discovered the certificate. + * + * @param assessmentType the value to set + * @return this builder + */ + public Builder assessmentType(CryptoAssessment.Type assessmentType) { + this.assessmentType = assessmentType; + this.__explicitlySet__.add("assessmentType"); + return this; + } + /** OCID of the compartment that contains the certificate row. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * OCID of the compartment that contains the certificate row. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** OCID of the target database associated with the certificate. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * OCID of the target database associated with the certificate. + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + /** Wallet location where the certificate was discovered, if available. */ + @com.fasterxml.jackson.annotation.JsonProperty("walletLocation") + private String walletLocation; + + /** + * Wallet location where the certificate was discovered, if available. + * + * @param walletLocation the value to set + * @return this builder + */ + public Builder walletLocation(String walletLocation) { + this.walletLocation = walletLocation; + this.__explicitlySet__.add("walletLocation"); + return this; + } + /** Type of certificate. */ + @com.fasterxml.jackson.annotation.JsonProperty("certificateType") + private CertificateType certificateType; + + /** + * Type of certificate. + * + * @param certificateType the value to set + * @return this builder + */ + public Builder certificateType(CertificateType certificateType) { + this.certificateType = certificateType; + this.__explicitlySet__.add("certificateType"); + return this; + } + /** Subject of the certificate. */ + @com.fasterxml.jackson.annotation.JsonProperty("subject") + private String subject; + + /** + * Subject of the certificate. + * + * @param subject the value to set + * @return this builder + */ + public Builder subject(String subject) { + this.subject = subject; + this.__explicitlySet__.add("subject"); + return this; + } + /** Issuer of the certificate. */ + @com.fasterxml.jackson.annotation.JsonProperty("issuer") + private String issuer; + + /** + * Issuer of the certificate. + * + * @param issuer the value to set + * @return this builder + */ + public Builder issuer(String issuer) { + this.issuer = issuer; + this.__explicitlySet__.add("issuer"); + return this; + } + /** Certificate validity status. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * Certificate validity status. + * + * @param status the value to set + * @return this builder + */ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** Certificate serial number. */ + @com.fasterxml.jackson.annotation.JsonProperty("serialNumber") + private String serialNumber; + + /** + * Certificate serial number. + * + * @param serialNumber the value to set + * @return this builder + */ + public Builder serialNumber(String serialNumber) { + this.serialNumber = serialNumber; + this.__explicitlySet__.add("serialNumber"); + return this; + } + /** + * Age of the certificate in whole days, calculated from timeValidFrom using the current UTC + * date. + */ + @com.fasterxml.jackson.annotation.JsonProperty("age") + private Long age; + + /** + * Age of the certificate in whole days, calculated from timeValidFrom using the current UTC + * date. + * + * @param age the value to set + * @return this builder + */ + public Builder age(Long age) { + this.age = age; + this.__explicitlySet__.add("age"); + return this; + } + /** Certificate validity start time in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeValidFrom") + private java.util.Date timeValidFrom; + + /** + * Certificate validity start time in RFC3339 format. + * + * @param timeValidFrom the value to set + * @return this builder + */ + public Builder timeValidFrom(java.util.Date timeValidFrom) { + this.timeValidFrom = timeValidFrom; + this.__explicitlySet__.add("timeValidFrom"); + return this; + } + /** Certificate validity end time in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeValidUntil") + private java.util.Date timeValidUntil; + + /** + * Certificate validity end time in RFC3339 format. + * + * @param timeValidUntil the value to set + * @return this builder + */ + public Builder timeValidUntil(java.util.Date timeValidUntil) { + this.timeValidUntil = timeValidUntil; + this.__explicitlySet__.add("timeValidUntil"); + return this; + } + /** + * Expiry bucket populated for the certificate when the assessment runs. Supported values + * are 0_15, 15_30, 30_60, 60_90, and 90_PLUS. + */ + @com.fasterxml.jackson.annotation.JsonProperty("expiryBucket") + private String expiryBucket; + + /** + * Expiry bucket populated for the certificate when the assessment runs. Supported values + * are 0_15, 15_30, 30_60, 60_90, and 90_PLUS. + * + * @param expiryBucket the value to set + * @return this builder + */ + public Builder expiryBucket(String expiryBucket) { + this.expiryBucket = expiryBucket; + this.__explicitlySet__.add("expiryBucket"); + return this; + } + /** + * Number of whole days until certificate expiration, calculated from timeValidUntil. + * Negative values indicate already expired certificates. + */ + @com.fasterxml.jackson.annotation.JsonProperty("daysToExpiry") + private Integer daysToExpiry; + + /** + * Number of whole days until certificate expiration, calculated from timeValidUntil. + * Negative values indicate already expired certificates. + * + * @param daysToExpiry the value to set + * @return this builder + */ + public Builder daysToExpiry(Integer daysToExpiry) { + this.daysToExpiry = daysToExpiry; + this.__explicitlySet__.add("daysToExpiry"); + return this; + } + /** Public key type and size. */ + @com.fasterxml.jackson.annotation.JsonProperty("publicKeyType") + private String publicKeyType; + + /** + * Public key type and size. + * + * @param publicKeyType the value to set + * @return this builder + */ + public Builder publicKeyType(String publicKeyType) { + this.publicKeyType = publicKeyType; + this.__explicitlySet__.add("publicKeyType"); + return this; + } + /** Signature algorithm used by the certificate. */ + @com.fasterxml.jackson.annotation.JsonProperty("signatureAlgorithm") + private String signatureAlgorithm; + + /** + * Signature algorithm used by the certificate. + * + * @param signatureAlgorithm the value to set + * @return this builder + */ + public Builder signatureAlgorithm(String signatureAlgorithm) { + this.signatureAlgorithm = signatureAlgorithm; + this.__explicitlySet__.add("signatureAlgorithm"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CryptoAssessmentCertificateSummary build() { + CryptoAssessmentCertificateSummary model = + new CryptoAssessmentCertificateSummary( + this.assessmentId, + this.timeLastAssessed, + this.assessmentType, + this.compartmentId, + this.targetId, + this.walletLocation, + this.certificateType, + this.subject, + this.issuer, + this.status, + this.serialNumber, + this.age, + this.timeValidFrom, + this.timeValidUntil, + this.expiryBucket, + this.daysToExpiry, + this.publicKeyType, + this.signatureAlgorithm); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoAssessmentCertificateSummary model) { + if (model.wasPropertyExplicitlySet("assessmentId")) { + this.assessmentId(model.getAssessmentId()); + } + if (model.wasPropertyExplicitlySet("timeLastAssessed")) { + this.timeLastAssessed(model.getTimeLastAssessed()); + } + if (model.wasPropertyExplicitlySet("assessmentType")) { + this.assessmentType(model.getAssessmentType()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + if (model.wasPropertyExplicitlySet("walletLocation")) { + this.walletLocation(model.getWalletLocation()); + } + if (model.wasPropertyExplicitlySet("certificateType")) { + this.certificateType(model.getCertificateType()); + } + if (model.wasPropertyExplicitlySet("subject")) { + this.subject(model.getSubject()); + } + if (model.wasPropertyExplicitlySet("issuer")) { + this.issuer(model.getIssuer()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("serialNumber")) { + this.serialNumber(model.getSerialNumber()); + } + if (model.wasPropertyExplicitlySet("age")) { + this.age(model.getAge()); + } + if (model.wasPropertyExplicitlySet("timeValidFrom")) { + this.timeValidFrom(model.getTimeValidFrom()); + } + if (model.wasPropertyExplicitlySet("timeValidUntil")) { + this.timeValidUntil(model.getTimeValidUntil()); + } + if (model.wasPropertyExplicitlySet("expiryBucket")) { + this.expiryBucket(model.getExpiryBucket()); + } + if (model.wasPropertyExplicitlySet("daysToExpiry")) { + this.daysToExpiry(model.getDaysToExpiry()); + } + if (model.wasPropertyExplicitlySet("publicKeyType")) { + this.publicKeyType(model.getPublicKeyType()); + } + if (model.wasPropertyExplicitlySet("signatureAlgorithm")) { + this.signatureAlgorithm(model.getSignatureAlgorithm()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** OCID of the crypto assessment that discovered the certificate. */ + @com.fasterxml.jackson.annotation.JsonProperty("assessmentId") + private final String assessmentId; + + /** + * OCID of the crypto assessment that discovered the certificate. + * + * @return the value + */ + public String getAssessmentId() { + return assessmentId; + } + + /** The date and time the associated crypto assessment was last assessed, in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastAssessed") + private final java.util.Date timeLastAssessed; + + /** + * The date and time the associated crypto assessment was last assessed, in RFC3339 format. + * + * @return the value + */ + public java.util.Date getTimeLastAssessed() { + return timeLastAssessed; + } + + /** Type of the crypto assessment that discovered the certificate. */ + @com.fasterxml.jackson.annotation.JsonProperty("assessmentType") + private final CryptoAssessment.Type assessmentType; + + /** + * Type of the crypto assessment that discovered the certificate. + * + * @return the value + */ + public CryptoAssessment.Type getAssessmentType() { + return assessmentType; + } + + /** OCID of the compartment that contains the certificate row. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * OCID of the compartment that contains the certificate row. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** OCID of the target database associated with the certificate. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * OCID of the target database associated with the certificate. + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** Wallet location where the certificate was discovered, if available. */ + @com.fasterxml.jackson.annotation.JsonProperty("walletLocation") + private final String walletLocation; + + /** + * Wallet location where the certificate was discovered, if available. + * + * @return the value + */ + public String getWalletLocation() { + return walletLocation; + } + + /** Type of certificate. */ + public enum CertificateType implements com.oracle.bmc.http.internal.BmcEnum { + Server("SERVER"), + User("USER"), + Trusted("TRUSTED"), + + /** + * 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(CertificateType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CertificateType v : CertificateType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CertificateType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CertificateType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'CertificateType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Type of certificate. */ + @com.fasterxml.jackson.annotation.JsonProperty("certificateType") + private final CertificateType certificateType; + + /** + * Type of certificate. + * + * @return the value + */ + public CertificateType getCertificateType() { + return certificateType; + } + + /** Subject of the certificate. */ + @com.fasterxml.jackson.annotation.JsonProperty("subject") + private final String subject; + + /** + * Subject of the certificate. + * + * @return the value + */ + public String getSubject() { + return subject; + } + + /** Issuer of the certificate. */ + @com.fasterxml.jackson.annotation.JsonProperty("issuer") + private final String issuer; + + /** + * Issuer of the certificate. + * + * @return the value + */ + public String getIssuer() { + return issuer; + } + + /** Certificate validity status. */ + public enum Status implements com.oracle.bmc.http.internal.BmcEnum { + Valid("VALID"), + ExpiringSoon("EXPIRING_SOON"), + Expired("EXPIRED"), + Invalid("INVALID"), + InUse("IN_USE"), + + /** + * 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; + } + }; + /** Certificate validity status. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * Certificate validity status. + * + * @return the value + */ + public Status getStatus() { + return status; + } + + /** Certificate serial number. */ + @com.fasterxml.jackson.annotation.JsonProperty("serialNumber") + private final String serialNumber; + + /** + * Certificate serial number. + * + * @return the value + */ + public String getSerialNumber() { + return serialNumber; + } + + /** + * Age of the certificate in whole days, calculated from timeValidFrom using the current UTC + * date. + */ + @com.fasterxml.jackson.annotation.JsonProperty("age") + private final Long age; + + /** + * Age of the certificate in whole days, calculated from timeValidFrom using the current UTC + * date. + * + * @return the value + */ + public Long getAge() { + return age; + } + + /** Certificate validity start time in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeValidFrom") + private final java.util.Date timeValidFrom; + + /** + * Certificate validity start time in RFC3339 format. + * + * @return the value + */ + public java.util.Date getTimeValidFrom() { + return timeValidFrom; + } + + /** Certificate validity end time in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeValidUntil") + private final java.util.Date timeValidUntil; + + /** + * Certificate validity end time in RFC3339 format. + * + * @return the value + */ + public java.util.Date getTimeValidUntil() { + return timeValidUntil; + } + + /** + * Expiry bucket populated for the certificate when the assessment runs. Supported values are + * 0_15, 15_30, 30_60, 60_90, and 90_PLUS. + */ + @com.fasterxml.jackson.annotation.JsonProperty("expiryBucket") + private final String expiryBucket; + + /** + * Expiry bucket populated for the certificate when the assessment runs. Supported values are + * 0_15, 15_30, 30_60, 60_90, and 90_PLUS. + * + * @return the value + */ + public String getExpiryBucket() { + return expiryBucket; + } + + /** + * Number of whole days until certificate expiration, calculated from timeValidUntil. Negative + * values indicate already expired certificates. + */ + @com.fasterxml.jackson.annotation.JsonProperty("daysToExpiry") + private final Integer daysToExpiry; + + /** + * Number of whole days until certificate expiration, calculated from timeValidUntil. Negative + * values indicate already expired certificates. + * + * @return the value + */ + public Integer getDaysToExpiry() { + return daysToExpiry; + } + + /** Public key type and size. */ + @com.fasterxml.jackson.annotation.JsonProperty("publicKeyType") + private final String publicKeyType; + + /** + * Public key type and size. + * + * @return the value + */ + public String getPublicKeyType() { + return publicKeyType; + } + + /** Signature algorithm used by the certificate. */ + @com.fasterxml.jackson.annotation.JsonProperty("signatureAlgorithm") + private final String signatureAlgorithm; + + /** + * Signature algorithm used by the certificate. + * + * @return the value + */ + public String getSignatureAlgorithm() { + return signatureAlgorithm; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CryptoAssessmentCertificateSummary("); + sb.append("super=").append(super.toString()); + sb.append("assessmentId=").append(String.valueOf(this.assessmentId)); + sb.append(", timeLastAssessed=").append(String.valueOf(this.timeLastAssessed)); + sb.append(", assessmentType=").append(String.valueOf(this.assessmentType)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", targetId=").append(String.valueOf(this.targetId)); + sb.append(", walletLocation=").append(String.valueOf(this.walletLocation)); + sb.append(", certificateType=").append(String.valueOf(this.certificateType)); + sb.append(", subject=").append(String.valueOf(this.subject)); + sb.append(", issuer=").append(String.valueOf(this.issuer)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", serialNumber=").append(String.valueOf(this.serialNumber)); + sb.append(", age=").append(String.valueOf(this.age)); + sb.append(", timeValidFrom=").append(String.valueOf(this.timeValidFrom)); + sb.append(", timeValidUntil=").append(String.valueOf(this.timeValidUntil)); + sb.append(", expiryBucket=").append(String.valueOf(this.expiryBucket)); + sb.append(", daysToExpiry=").append(String.valueOf(this.daysToExpiry)); + sb.append(", publicKeyType=").append(String.valueOf(this.publicKeyType)); + sb.append(", signatureAlgorithm=").append(String.valueOf(this.signatureAlgorithm)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CryptoAssessmentCertificateSummary)) { + return false; + } + + CryptoAssessmentCertificateSummary other = (CryptoAssessmentCertificateSummary) o; + return java.util.Objects.equals(this.assessmentId, other.assessmentId) + && java.util.Objects.equals(this.timeLastAssessed, other.timeLastAssessed) + && java.util.Objects.equals(this.assessmentType, other.assessmentType) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.walletLocation, other.walletLocation) + && java.util.Objects.equals(this.certificateType, other.certificateType) + && java.util.Objects.equals(this.subject, other.subject) + && java.util.Objects.equals(this.issuer, other.issuer) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.serialNumber, other.serialNumber) + && java.util.Objects.equals(this.age, other.age) + && java.util.Objects.equals(this.timeValidFrom, other.timeValidFrom) + && java.util.Objects.equals(this.timeValidUntil, other.timeValidUntil) + && java.util.Objects.equals(this.expiryBucket, other.expiryBucket) + && java.util.Objects.equals(this.daysToExpiry, other.daysToExpiry) + && java.util.Objects.equals(this.publicKeyType, other.publicKeyType) + && java.util.Objects.equals(this.signatureAlgorithm, other.signatureAlgorithm) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.assessmentId == null ? 43 : this.assessmentId.hashCode()); + result = + (result * PRIME) + + (this.timeLastAssessed == null ? 43 : this.timeLastAssessed.hashCode()); + result = + (result * PRIME) + + (this.assessmentType == null ? 43 : this.assessmentType.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = + (result * PRIME) + + (this.walletLocation == null ? 43 : this.walletLocation.hashCode()); + result = + (result * PRIME) + + (this.certificateType == null ? 43 : this.certificateType.hashCode()); + result = (result * PRIME) + (this.subject == null ? 43 : this.subject.hashCode()); + result = (result * PRIME) + (this.issuer == null ? 43 : this.issuer.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.serialNumber == null ? 43 : this.serialNumber.hashCode()); + result = (result * PRIME) + (this.age == null ? 43 : this.age.hashCode()); + result = + (result * PRIME) + + (this.timeValidFrom == null ? 43 : this.timeValidFrom.hashCode()); + result = + (result * PRIME) + + (this.timeValidUntil == null ? 43 : this.timeValidUntil.hashCode()); + result = (result * PRIME) + (this.expiryBucket == null ? 43 : this.expiryBucket.hashCode()); + result = (result * PRIME) + (this.daysToExpiry == null ? 43 : this.daysToExpiry.hashCode()); + result = + (result * PRIME) + + (this.publicKeyType == null ? 43 : this.publicKeyType.hashCode()); + result = + (result * PRIME) + + (this.signatureAlgorithm == null + ? 43 + : this.signatureAlgorithm.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentCollection.java new file mode 100644 index 00000000000..c0387a57d85 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentCollection.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.datasafe.model; + +/** + * Collection of crypto assessment summaries.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CryptoAssessmentCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoAssessmentCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public CryptoAssessmentCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Crypto assessment summary items. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Crypto assessment summary items. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CryptoAssessmentCollection build() { + CryptoAssessmentCollection model = new CryptoAssessmentCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoAssessmentCollection 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); + } + + /** Crypto assessment summary items. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Crypto assessment summary items. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CryptoAssessmentCollection("); + 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 CryptoAssessmentCollection)) { + return false; + } + + CryptoAssessmentCollection other = (CryptoAssessmentCollection) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingAnalyticsCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingAnalyticsCollection.java new file mode 100644 index 00000000000..ab7f5de83a7 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingAnalyticsCollection.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.datasafe.model; + +/** + * List of crypto finding analytics for the specified 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: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CryptoAssessmentFindingAnalyticsCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoAssessmentFindingAnalyticsCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public CryptoAssessmentFindingAnalyticsCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Array of crypto finding analytics summaries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array of crypto finding analytics 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 CryptoAssessmentFindingAnalyticsCollection build() { + CryptoAssessmentFindingAnalyticsCollection model = + new CryptoAssessmentFindingAnalyticsCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoAssessmentFindingAnalyticsCollection 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 crypto finding analytics summaries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array of crypto finding analytics 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("CryptoAssessmentFindingAnalyticsCollection("); + 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 CryptoAssessmentFindingAnalyticsCollection)) { + return false; + } + + CryptoAssessmentFindingAnalyticsCollection other = + (CryptoAssessmentFindingAnalyticsCollection) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingAnalyticsSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingAnalyticsSummary.java new file mode 100644 index 00000000000..63bc66b042c --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingAnalyticsSummary.java @@ -0,0 +1,516 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** + * Aggregated finding details with number of affected targets.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CryptoAssessmentFindingAnalyticsSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoAssessmentFindingAnalyticsSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "findingKey", + "title", + "category", + "targetCount", + "priority", + "severity", + "shortSummary", + "shortRemediation" + }) + public CryptoAssessmentFindingAnalyticsSummary( + String findingKey, + String title, + Category category, + Integer targetCount, + Integer priority, + Severity severity, + String shortSummary, + String shortRemediation) { + super(); + this.findingKey = findingKey; + this.title = title; + this.category = category; + this.targetCount = targetCount; + this.priority = priority; + this.severity = severity; + this.shortSummary = shortSummary; + this.shortRemediation = shortRemediation; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique key of the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("findingKey") + private String findingKey; + + /** + * Unique key of the finding. + * + * @param findingKey the value to set + * @return this builder + */ + public Builder findingKey(String findingKey) { + this.findingKey = findingKey; + this.__explicitlySet__.add("findingKey"); + return this; + } + /** Display title of the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("title") + private String title; + + /** + * Display title of the finding. + * + * @param title the value to set + * @return this builder + */ + public Builder title(String title) { + this.title = title; + this.__explicitlySet__.add("title"); + return this; + } + /** Category key to which the finding belongs. */ + @com.fasterxml.jackson.annotation.JsonProperty("category") + private Category category; + + /** + * Category key to which the finding belongs. + * + * @param category the value to set + * @return this builder + */ + public Builder category(Category category) { + this.category = category; + this.__explicitlySet__.add("category"); + return this; + } + /** Number of targets impacted by this finding in the queried scope. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetCount") + private Integer targetCount; + + /** + * Number of targets impacted by this finding in the queried scope. + * + * @param targetCount the value to set + * @return this builder + */ + public Builder targetCount(Integer targetCount) { + this.targetCount = targetCount; + this.__explicitlySet__.add("targetCount"); + return this; + } + /** Numeric priority of the finding. 1 is CRITICAL, 2 is HIGH, 3 is MEDIUM, and 4 is LOW. */ + @com.fasterxml.jackson.annotation.JsonProperty("priority") + private Integer priority; + + /** + * Numeric priority of the finding. 1 is CRITICAL, 2 is HIGH, 3 is MEDIUM, and 4 is LOW. + * + * @param priority the value to set + * @return this builder + */ + public Builder priority(Integer priority) { + this.priority = priority; + this.__explicitlySet__.add("priority"); + return this; + } + /** + * Text severity derived from priority using the static mapping 1=CRITICAL, 2=HIGH, + * 3=MEDIUM, 4=LOW. + */ + @com.fasterxml.jackson.annotation.JsonProperty("severity") + private Severity severity; + + /** + * Text severity derived from priority using the static mapping 1=CRITICAL, 2=HIGH, + * 3=MEDIUM, 4=LOW. + * + * @param severity the value to set + * @return this builder + */ + public Builder severity(Severity severity) { + this.severity = severity; + this.__explicitlySet__.add("severity"); + return this; + } + /** Short summary of the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("shortSummary") + private String shortSummary; + + /** + * Short summary of the finding. + * + * @param shortSummary the value to set + * @return this builder + */ + public Builder shortSummary(String shortSummary) { + this.shortSummary = shortSummary; + this.__explicitlySet__.add("shortSummary"); + return this; + } + /** Short remediation for the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("shortRemediation") + private String shortRemediation; + + /** + * Short remediation for the finding. + * + * @param shortRemediation the value to set + * @return this builder + */ + public Builder shortRemediation(String shortRemediation) { + this.shortRemediation = shortRemediation; + this.__explicitlySet__.add("shortRemediation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CryptoAssessmentFindingAnalyticsSummary build() { + CryptoAssessmentFindingAnalyticsSummary model = + new CryptoAssessmentFindingAnalyticsSummary( + this.findingKey, + this.title, + this.category, + this.targetCount, + this.priority, + this.severity, + this.shortSummary, + this.shortRemediation); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoAssessmentFindingAnalyticsSummary model) { + if (model.wasPropertyExplicitlySet("findingKey")) { + this.findingKey(model.getFindingKey()); + } + if (model.wasPropertyExplicitlySet("title")) { + this.title(model.getTitle()); + } + if (model.wasPropertyExplicitlySet("category")) { + this.category(model.getCategory()); + } + if (model.wasPropertyExplicitlySet("targetCount")) { + this.targetCount(model.getTargetCount()); + } + if (model.wasPropertyExplicitlySet("priority")) { + this.priority(model.getPriority()); + } + if (model.wasPropertyExplicitlySet("severity")) { + this.severity(model.getSeverity()); + } + if (model.wasPropertyExplicitlySet("shortSummary")) { + this.shortSummary(model.getShortSummary()); + } + if (model.wasPropertyExplicitlySet("shortRemediation")) { + this.shortRemediation(model.getShortRemediation()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Unique key of the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("findingKey") + private final String findingKey; + + /** + * Unique key of the finding. + * + * @return the value + */ + public String getFindingKey() { + return findingKey; + } + + /** Display title of the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("title") + private final String title; + + /** + * Display title of the finding. + * + * @return the value + */ + public String getTitle() { + return title; + } + + /** Category key to which the finding belongs. */ + public enum Category implements com.oracle.bmc.http.internal.BmcEnum { + NetworkEncryption("NETWORK_ENCRYPTION"), + DataEncryption("DATA_ENCRYPTION"), + CertificatesAndKeyManagement("CERTIFICATES_AND_KEY_MANAGEMENT"), + BackupAndExportEncryption("BACKUP_AND_EXPORT_ENCRYPTION"), + PostQuantumReadiness("POST_QUANTUM_READINESS"), + NotSupported("NOT_SUPPORTED"), + + /** + * 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(Category.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Category v : Category.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Category(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Category create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Category', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Category key to which the finding belongs. */ + @com.fasterxml.jackson.annotation.JsonProperty("category") + private final Category category; + + /** + * Category key to which the finding belongs. + * + * @return the value + */ + public Category getCategory() { + return category; + } + + /** Number of targets impacted by this finding in the queried scope. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetCount") + private final Integer targetCount; + + /** + * Number of targets impacted by this finding in the queried scope. + * + * @return the value + */ + public Integer getTargetCount() { + return targetCount; + } + + /** Numeric priority of the finding. 1 is CRITICAL, 2 is HIGH, 3 is MEDIUM, and 4 is LOW. */ + @com.fasterxml.jackson.annotation.JsonProperty("priority") + private final Integer priority; + + /** + * Numeric priority of the finding. 1 is CRITICAL, 2 is HIGH, 3 is MEDIUM, and 4 is LOW. + * + * @return the value + */ + public Integer getPriority() { + return priority; + } + + /** + * Text severity derived from priority using the static mapping 1=CRITICAL, 2=HIGH, 3=MEDIUM, + * 4=LOW. + */ + public enum Severity implements com.oracle.bmc.http.internal.BmcEnum { + Critical("CRITICAL"), + High("HIGH"), + Medium("MEDIUM"), + Low("LOW"), + + /** + * 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(Severity.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Severity v : Severity.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Severity(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Severity create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Severity', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Text severity derived from priority using the static mapping 1=CRITICAL, 2=HIGH, 3=MEDIUM, + * 4=LOW. + */ + @com.fasterxml.jackson.annotation.JsonProperty("severity") + private final Severity severity; + + /** + * Text severity derived from priority using the static mapping 1=CRITICAL, 2=HIGH, 3=MEDIUM, + * 4=LOW. + * + * @return the value + */ + public Severity getSeverity() { + return severity; + } + + /** Short summary of the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("shortSummary") + private final String shortSummary; + + /** + * Short summary of the finding. + * + * @return the value + */ + public String getShortSummary() { + return shortSummary; + } + + /** Short remediation for the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("shortRemediation") + private final String shortRemediation; + + /** + * Short remediation for the finding. + * + * @return the value + */ + public String getShortRemediation() { + return shortRemediation; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CryptoAssessmentFindingAnalyticsSummary("); + sb.append("super=").append(super.toString()); + sb.append("findingKey=").append(String.valueOf(this.findingKey)); + sb.append(", title=").append(String.valueOf(this.title)); + sb.append(", category=").append(String.valueOf(this.category)); + sb.append(", targetCount=").append(String.valueOf(this.targetCount)); + sb.append(", priority=").append(String.valueOf(this.priority)); + sb.append(", severity=").append(String.valueOf(this.severity)); + sb.append(", shortSummary=").append(String.valueOf(this.shortSummary)); + sb.append(", shortRemediation=").append(String.valueOf(this.shortRemediation)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CryptoAssessmentFindingAnalyticsSummary)) { + return false; + } + + CryptoAssessmentFindingAnalyticsSummary other = (CryptoAssessmentFindingAnalyticsSummary) o; + return java.util.Objects.equals(this.findingKey, other.findingKey) + && java.util.Objects.equals(this.title, other.title) + && java.util.Objects.equals(this.category, other.category) + && java.util.Objects.equals(this.targetCount, other.targetCount) + && java.util.Objects.equals(this.priority, other.priority) + && java.util.Objects.equals(this.severity, other.severity) + && java.util.Objects.equals(this.shortSummary, other.shortSummary) + && java.util.Objects.equals(this.shortRemediation, other.shortRemediation) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.findingKey == null ? 43 : this.findingKey.hashCode()); + result = (result * PRIME) + (this.title == null ? 43 : this.title.hashCode()); + result = (result * PRIME) + (this.category == null ? 43 : this.category.hashCode()); + result = (result * PRIME) + (this.targetCount == null ? 43 : this.targetCount.hashCode()); + result = (result * PRIME) + (this.priority == null ? 43 : this.priority.hashCode()); + result = (result * PRIME) + (this.severity == null ? 43 : this.severity.hashCode()); + result = (result * PRIME) + (this.shortSummary == null ? 43 : this.shortSummary.hashCode()); + result = + (result * PRIME) + + (this.shortRemediation == null ? 43 : this.shortRemediation.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingCategorySummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingCategorySummary.java new file mode 100644 index 00000000000..60e21565c70 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingCategorySummary.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.datasafe.model; + +/** + * Aggregate finding counts for one crypto finding category.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CryptoAssessmentFindingCategorySummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoAssessmentFindingCategorySummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"passChecks", "findings", "totalChecks"}) + public CryptoAssessmentFindingCategorySummary( + Integer passChecks, Integer findings, Integer totalChecks) { + super(); + this.passChecks = passChecks; + this.findings = findings; + this.totalChecks = totalChecks; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Findings with PASS status. */ + @com.fasterxml.jackson.annotation.JsonProperty("passChecks") + private Integer passChecks; + + /** + * Findings with PASS status. + * + * @param passChecks the value to set + * @return this builder + */ + public Builder passChecks(Integer passChecks) { + this.passChecks = passChecks; + this.__explicitlySet__.add("passChecks"); + return this; + } + /** Findings with FAIL or EVALUATE status. */ + @com.fasterxml.jackson.annotation.JsonProperty("findings") + private Integer findings; + + /** + * Findings with FAIL or EVALUATE status. + * + * @param findings the value to set + * @return this builder + */ + public Builder findings(Integer findings) { + this.findings = findings; + this.__explicitlySet__.add("findings"); + return this; + } + /** Total findings across all statuses in this category. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalChecks") + private Integer totalChecks; + + /** + * Total findings across all statuses in this category. + * + * @param totalChecks the value to set + * @return this builder + */ + public Builder totalChecks(Integer totalChecks) { + this.totalChecks = totalChecks; + this.__explicitlySet__.add("totalChecks"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CryptoAssessmentFindingCategorySummary build() { + CryptoAssessmentFindingCategorySummary model = + new CryptoAssessmentFindingCategorySummary( + this.passChecks, this.findings, this.totalChecks); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoAssessmentFindingCategorySummary model) { + if (model.wasPropertyExplicitlySet("passChecks")) { + this.passChecks(model.getPassChecks()); + } + if (model.wasPropertyExplicitlySet("findings")) { + this.findings(model.getFindings()); + } + if (model.wasPropertyExplicitlySet("totalChecks")) { + this.totalChecks(model.getTotalChecks()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Findings with PASS status. */ + @com.fasterxml.jackson.annotation.JsonProperty("passChecks") + private final Integer passChecks; + + /** + * Findings with PASS status. + * + * @return the value + */ + public Integer getPassChecks() { + return passChecks; + } + + /** Findings with FAIL or EVALUATE status. */ + @com.fasterxml.jackson.annotation.JsonProperty("findings") + private final Integer findings; + + /** + * Findings with FAIL or EVALUATE status. + * + * @return the value + */ + public Integer getFindings() { + return findings; + } + + /** Total findings across all statuses in this category. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalChecks") + private final Integer totalChecks; + + /** + * Total findings across all statuses in this category. + * + * @return the value + */ + public Integer getTotalChecks() { + return totalChecks; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CryptoAssessmentFindingCategorySummary("); + sb.append("super=").append(super.toString()); + sb.append("passChecks=").append(String.valueOf(this.passChecks)); + sb.append(", findings=").append(String.valueOf(this.findings)); + sb.append(", totalChecks=").append(String.valueOf(this.totalChecks)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CryptoAssessmentFindingCategorySummary)) { + return false; + } + + CryptoAssessmentFindingCategorySummary other = (CryptoAssessmentFindingCategorySummary) o; + return java.util.Objects.equals(this.passChecks, other.passChecks) + && java.util.Objects.equals(this.findings, other.findings) + && java.util.Objects.equals(this.totalChecks, other.totalChecks) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.passChecks == null ? 43 : this.passChecks.hashCode()); + result = (result * PRIME) + (this.findings == null ? 43 : this.findings.hashCode()); + result = (result * PRIME) + (this.totalChecks == null ? 43 : this.totalChecks.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingCollection.java new file mode 100644 index 00000000000..43d113536f7 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingCollection.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.datasafe.model; + +/** + * List of crypto deviation findings for the specified crypto assessment.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CryptoAssessmentFindingCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoAssessmentFindingCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "targetId", + "assessmentType", + "databaseVersion", + "summary", + "items" + }) + public CryptoAssessmentFindingCollection( + String targetId, + CryptoAssessment.Type assessmentType, + String databaseVersion, + CryptoAssessmentFindingSummaryMetrics summary, + java.util.List items) { + super(); + this.targetId = targetId; + this.assessmentType = assessmentType; + this.databaseVersion = databaseVersion; + this.summary = summary; + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the target database for the specified crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * The OCID of the target database for the specified crypto assessment. + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + /** Assessment type recorded in the findings table. */ + @com.fasterxml.jackson.annotation.JsonProperty("assessmentType") + private CryptoAssessment.Type assessmentType; + + /** + * Assessment type recorded in the findings table. + * + * @param assessmentType the value to set + * @return this builder + */ + public Builder assessmentType(CryptoAssessment.Type assessmentType) { + this.assessmentType = assessmentType; + this.__explicitlySet__.add("assessmentType"); + return this; + } + /** + * Database version for the target database associated with the specified crypto assessment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + /** + * Database version for the target database associated with the specified crypto assessment. + * + * @param databaseVersion the value to set + * @return this builder + */ + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("summary") + private CryptoAssessmentFindingSummaryMetrics summary; + + public Builder summary(CryptoAssessmentFindingSummaryMetrics summary) { + this.summary = summary; + this.__explicitlySet__.add("summary"); + return this; + } + /** Array of crypto deviation findings. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array of crypto deviation findings. + * + * @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 CryptoAssessmentFindingCollection build() { + CryptoAssessmentFindingCollection model = + new CryptoAssessmentFindingCollection( + this.targetId, + this.assessmentType, + this.databaseVersion, + this.summary, + this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoAssessmentFindingCollection model) { + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + if (model.wasPropertyExplicitlySet("assessmentType")) { + this.assessmentType(model.getAssessmentType()); + } + if (model.wasPropertyExplicitlySet("databaseVersion")) { + this.databaseVersion(model.getDatabaseVersion()); + } + if (model.wasPropertyExplicitlySet("summary")) { + this.summary(model.getSummary()); + } + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the target database for the specified crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * The OCID of the target database for the specified crypto assessment. + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** Assessment type recorded in the findings table. */ + @com.fasterxml.jackson.annotation.JsonProperty("assessmentType") + private final CryptoAssessment.Type assessmentType; + + /** + * Assessment type recorded in the findings table. + * + * @return the value + */ + public CryptoAssessment.Type getAssessmentType() { + return assessmentType; + } + + /** Database version for the target database associated with the specified crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private final String databaseVersion; + + /** + * Database version for the target database associated with the specified crypto assessment. + * + * @return the value + */ + public String getDatabaseVersion() { + return databaseVersion; + } + + @com.fasterxml.jackson.annotation.JsonProperty("summary") + private final CryptoAssessmentFindingSummaryMetrics summary; + + public CryptoAssessmentFindingSummaryMetrics getSummary() { + return summary; + } + + /** Array of crypto deviation findings. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array of crypto deviation findings. + * + * @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("CryptoAssessmentFindingCollection("); + sb.append("super=").append(super.toString()); + sb.append("targetId=").append(String.valueOf(this.targetId)); + sb.append(", assessmentType=").append(String.valueOf(this.assessmentType)); + sb.append(", databaseVersion=").append(String.valueOf(this.databaseVersion)); + sb.append(", summary=").append(String.valueOf(this.summary)); + 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 CryptoAssessmentFindingCollection)) { + return false; + } + + CryptoAssessmentFindingCollection other = (CryptoAssessmentFindingCollection) o; + return java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.assessmentType, other.assessmentType) + && java.util.Objects.equals(this.databaseVersion, other.databaseVersion) + && java.util.Objects.equals(this.summary, other.summary) + && 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.targetId == null ? 43 : this.targetId.hashCode()); + result = + (result * PRIME) + + (this.assessmentType == null ? 43 : this.assessmentType.hashCode()); + result = + (result * PRIME) + + (this.databaseVersion == null ? 43 : this.databaseVersion.hashCode()); + result = (result * PRIME) + (this.summary == null ? 43 : this.summary.hashCode()); + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingSummary.java new file mode 100644 index 00000000000..d15a5fa3e75 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingSummary.java @@ -0,0 +1,782 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** + * One crypto deviation finding for a specific assessment run.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CryptoAssessmentFindingSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoAssessmentFindingSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "findingKey", + "title", + "category", + "priority", + "severity", + "expectedValue", + "observedValue", + "recommendedValue", + "status", + "isQuantumReadinessCheck", + "summary", + "shortSummary", + "url", + "remediation", + "shortRemediation", + "compliance" + }) + public CryptoAssessmentFindingSummary( + String findingKey, + String title, + String category, + Integer priority, + Severity severity, + String expectedValue, + java.util.List observedValue, + String recommendedValue, + CryptoFindingStatus status, + Boolean isQuantumReadinessCheck, + String summary, + String shortSummary, + String url, + String remediation, + String shortRemediation, + String compliance) { + super(); + this.findingKey = findingKey; + this.title = title; + this.category = category; + this.priority = priority; + this.severity = severity; + this.expectedValue = expectedValue; + this.observedValue = observedValue; + this.recommendedValue = recommendedValue; + this.status = status; + this.isQuantumReadinessCheck = isQuantumReadinessCheck; + this.summary = summary; + this.shortSummary = shortSummary; + this.url = url; + this.remediation = remediation; + this.shortRemediation = shortRemediation; + this.compliance = compliance; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique key identifier for the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("findingKey") + private String findingKey; + + /** + * Unique key identifier for the finding. + * + * @param findingKey the value to set + * @return this builder + */ + public Builder findingKey(String findingKey) { + this.findingKey = findingKey; + this.__explicitlySet__.add("findingKey"); + return this; + } + /** Human-readable title for the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("title") + private String title; + + /** + * Human-readable title for the finding. + * + * @param title the value to set + * @return this builder + */ + public Builder title(String title) { + this.title = title; + this.__explicitlySet__.add("title"); + return this; + } + /** Category value recorded for the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("category") + private String category; + + /** + * Category value recorded for the finding. + * + * @param category the value to set + * @return this builder + */ + public Builder category(String category) { + this.category = category; + this.__explicitlySet__.add("category"); + return this; + } + /** Numeric priority of the finding. 1 is CRITICAL, 2 is HIGH, 3 is MEDIUM, and 4 is LOW. */ + @com.fasterxml.jackson.annotation.JsonProperty("priority") + private Integer priority; + + /** + * Numeric priority of the finding. 1 is CRITICAL, 2 is HIGH, 3 is MEDIUM, and 4 is LOW. + * + * @param priority the value to set + * @return this builder + */ + public Builder priority(Integer priority) { + this.priority = priority; + this.__explicitlySet__.add("priority"); + return this; + } + /** + * Text severity derived from priority using the static mapping 1=CRITICAL, 2=HIGH, + * 3=MEDIUM, 4=LOW. + */ + @com.fasterxml.jackson.annotation.JsonProperty("severity") + private Severity severity; + + /** + * Text severity derived from priority using the static mapping 1=CRITICAL, 2=HIGH, + * 3=MEDIUM, 4=LOW. + * + * @param severity the value to set + * @return this builder + */ + public Builder severity(Severity severity) { + this.severity = severity; + this.__explicitlySet__.add("severity"); + return this; + } + /** Expected value recorded for the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("expectedValue") + private String expectedValue; + + /** + * Expected value recorded for the finding. + * + * @param expectedValue the value to set + * @return this builder + */ + public Builder expectedValue(String expectedValue) { + this.expectedValue = expectedValue; + this.__explicitlySet__.add("expectedValue"); + return this; + } + /** Observed values recorded for the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("observedValue") + private java.util.List observedValue; + + /** + * Observed values recorded for the finding. + * + * @param observedValue the value to set + * @return this builder + */ + public Builder observedValue(java.util.List observedValue) { + this.observedValue = observedValue; + this.__explicitlySet__.add("observedValue"); + return this; + } + /** Recommended value recorded for the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("recommendedValue") + private String recommendedValue; + + /** + * Recommended value recorded for the finding. + * + * @param recommendedValue the value to set + * @return this builder + */ + public Builder recommendedValue(String recommendedValue) { + this.recommendedValue = recommendedValue; + this.__explicitlySet__.add("recommendedValue"); + return this; + } + /** Status recorded for the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private CryptoFindingStatus status; + + /** + * Status recorded for the finding. + * + * @param status the value to set + * @return this builder + */ + public Builder status(CryptoFindingStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** Indicates whether this finding is part of quantum-readiness checks. */ + @com.fasterxml.jackson.annotation.JsonProperty("isQuantumReadinessCheck") + private Boolean isQuantumReadinessCheck; + + /** + * Indicates whether this finding is part of quantum-readiness checks. + * + * @param isQuantumReadinessCheck the value to set + * @return this builder + */ + public Builder isQuantumReadinessCheck(Boolean isQuantumReadinessCheck) { + this.isQuantumReadinessCheck = isQuantumReadinessCheck; + this.__explicitlySet__.add("isQuantumReadinessCheck"); + return this; + } + /** Summary recorded for the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("summary") + private String summary; + + /** + * Summary recorded for the finding. + * + * @param summary the value to set + * @return this builder + */ + public Builder summary(String summary) { + this.summary = summary; + this.__explicitlySet__.add("summary"); + return this; + } + /** Short summary of the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("shortSummary") + private String shortSummary; + + /** + * Short summary of the finding. + * + * @param shortSummary the value to set + * @return this builder + */ + public Builder shortSummary(String shortSummary) { + this.shortSummary = shortSummary; + this.__explicitlySet__.add("shortSummary"); + return this; + } + /** URL recorded for the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private String url; + + /** + * URL recorded for the finding. + * + * @param url the value to set + * @return this builder + */ + public Builder url(String url) { + this.url = url; + this.__explicitlySet__.add("url"); + return this; + } + /** Remediation text recorded for the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("remediation") + private String remediation; + + /** + * Remediation text recorded for the finding. + * + * @param remediation the value to set + * @return this builder + */ + public Builder remediation(String remediation) { + this.remediation = remediation; + this.__explicitlySet__.add("remediation"); + return this; + } + /** Short remediation for the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("shortRemediation") + private String shortRemediation; + + /** + * Short remediation for the finding. + * + * @param shortRemediation the value to set + * @return this builder + */ + public Builder shortRemediation(String shortRemediation) { + this.shortRemediation = shortRemediation; + this.__explicitlySet__.add("shortRemediation"); + return this; + } + /** Compliance mapping recorded for the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("compliance") + private String compliance; + + /** + * Compliance mapping recorded for the finding. + * + * @param compliance the value to set + * @return this builder + */ + public Builder compliance(String compliance) { + this.compliance = compliance; + this.__explicitlySet__.add("compliance"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CryptoAssessmentFindingSummary build() { + CryptoAssessmentFindingSummary model = + new CryptoAssessmentFindingSummary( + this.findingKey, + this.title, + this.category, + this.priority, + this.severity, + this.expectedValue, + this.observedValue, + this.recommendedValue, + this.status, + this.isQuantumReadinessCheck, + this.summary, + this.shortSummary, + this.url, + this.remediation, + this.shortRemediation, + this.compliance); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoAssessmentFindingSummary model) { + if (model.wasPropertyExplicitlySet("findingKey")) { + this.findingKey(model.getFindingKey()); + } + if (model.wasPropertyExplicitlySet("title")) { + this.title(model.getTitle()); + } + if (model.wasPropertyExplicitlySet("category")) { + this.category(model.getCategory()); + } + if (model.wasPropertyExplicitlySet("priority")) { + this.priority(model.getPriority()); + } + if (model.wasPropertyExplicitlySet("severity")) { + this.severity(model.getSeverity()); + } + if (model.wasPropertyExplicitlySet("expectedValue")) { + this.expectedValue(model.getExpectedValue()); + } + if (model.wasPropertyExplicitlySet("observedValue")) { + this.observedValue(model.getObservedValue()); + } + if (model.wasPropertyExplicitlySet("recommendedValue")) { + this.recommendedValue(model.getRecommendedValue()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("isQuantumReadinessCheck")) { + this.isQuantumReadinessCheck(model.getIsQuantumReadinessCheck()); + } + if (model.wasPropertyExplicitlySet("summary")) { + this.summary(model.getSummary()); + } + if (model.wasPropertyExplicitlySet("shortSummary")) { + this.shortSummary(model.getShortSummary()); + } + if (model.wasPropertyExplicitlySet("url")) { + this.url(model.getUrl()); + } + if (model.wasPropertyExplicitlySet("remediation")) { + this.remediation(model.getRemediation()); + } + if (model.wasPropertyExplicitlySet("shortRemediation")) { + this.shortRemediation(model.getShortRemediation()); + } + if (model.wasPropertyExplicitlySet("compliance")) { + this.compliance(model.getCompliance()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Unique key identifier for the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("findingKey") + private final String findingKey; + + /** + * Unique key identifier for the finding. + * + * @return the value + */ + public String getFindingKey() { + return findingKey; + } + + /** Human-readable title for the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("title") + private final String title; + + /** + * Human-readable title for the finding. + * + * @return the value + */ + public String getTitle() { + return title; + } + + /** Category value recorded for the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("category") + private final String category; + + /** + * Category value recorded for the finding. + * + * @return the value + */ + public String getCategory() { + return category; + } + + /** Numeric priority of the finding. 1 is CRITICAL, 2 is HIGH, 3 is MEDIUM, and 4 is LOW. */ + @com.fasterxml.jackson.annotation.JsonProperty("priority") + private final Integer priority; + + /** + * Numeric priority of the finding. 1 is CRITICAL, 2 is HIGH, 3 is MEDIUM, and 4 is LOW. + * + * @return the value + */ + public Integer getPriority() { + return priority; + } + + /** + * Text severity derived from priority using the static mapping 1=CRITICAL, 2=HIGH, 3=MEDIUM, + * 4=LOW. + */ + public enum Severity implements com.oracle.bmc.http.internal.BmcEnum { + Critical("CRITICAL"), + High("HIGH"), + Medium("MEDIUM"), + Low("LOW"), + + /** + * 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(Severity.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Severity v : Severity.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Severity(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Severity create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Severity', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Text severity derived from priority using the static mapping 1=CRITICAL, 2=HIGH, 3=MEDIUM, + * 4=LOW. + */ + @com.fasterxml.jackson.annotation.JsonProperty("severity") + private final Severity severity; + + /** + * Text severity derived from priority using the static mapping 1=CRITICAL, 2=HIGH, 3=MEDIUM, + * 4=LOW. + * + * @return the value + */ + public Severity getSeverity() { + return severity; + } + + /** Expected value recorded for the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("expectedValue") + private final String expectedValue; + + /** + * Expected value recorded for the finding. + * + * @return the value + */ + public String getExpectedValue() { + return expectedValue; + } + + /** Observed values recorded for the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("observedValue") + private final java.util.List observedValue; + + /** + * Observed values recorded for the finding. + * + * @return the value + */ + public java.util.List getObservedValue() { + return observedValue; + } + + /** Recommended value recorded for the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("recommendedValue") + private final String recommendedValue; + + /** + * Recommended value recorded for the finding. + * + * @return the value + */ + public String getRecommendedValue() { + return recommendedValue; + } + + /** Status recorded for the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final CryptoFindingStatus status; + + /** + * Status recorded for the finding. + * + * @return the value + */ + public CryptoFindingStatus getStatus() { + return status; + } + + /** Indicates whether this finding is part of quantum-readiness checks. */ + @com.fasterxml.jackson.annotation.JsonProperty("isQuantumReadinessCheck") + private final Boolean isQuantumReadinessCheck; + + /** + * Indicates whether this finding is part of quantum-readiness checks. + * + * @return the value + */ + public Boolean getIsQuantumReadinessCheck() { + return isQuantumReadinessCheck; + } + + /** Summary recorded for the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("summary") + private final String summary; + + /** + * Summary recorded for the finding. + * + * @return the value + */ + public String getSummary() { + return summary; + } + + /** Short summary of the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("shortSummary") + private final String shortSummary; + + /** + * Short summary of the finding. + * + * @return the value + */ + public String getShortSummary() { + return shortSummary; + } + + /** URL recorded for the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private final String url; + + /** + * URL recorded for the finding. + * + * @return the value + */ + public String getUrl() { + return url; + } + + /** Remediation text recorded for the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("remediation") + private final String remediation; + + /** + * Remediation text recorded for the finding. + * + * @return the value + */ + public String getRemediation() { + return remediation; + } + + /** Short remediation for the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("shortRemediation") + private final String shortRemediation; + + /** + * Short remediation for the finding. + * + * @return the value + */ + public String getShortRemediation() { + return shortRemediation; + } + + /** Compliance mapping recorded for the finding. */ + @com.fasterxml.jackson.annotation.JsonProperty("compliance") + private final String compliance; + + /** + * Compliance mapping recorded for the finding. + * + * @return the value + */ + public String getCompliance() { + return compliance; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CryptoAssessmentFindingSummary("); + sb.append("super=").append(super.toString()); + sb.append("findingKey=").append(String.valueOf(this.findingKey)); + sb.append(", title=").append(String.valueOf(this.title)); + sb.append(", category=").append(String.valueOf(this.category)); + sb.append(", priority=").append(String.valueOf(this.priority)); + sb.append(", severity=").append(String.valueOf(this.severity)); + sb.append(", expectedValue=").append(String.valueOf(this.expectedValue)); + sb.append(", observedValue=").append(String.valueOf(this.observedValue)); + sb.append(", recommendedValue=").append(String.valueOf(this.recommendedValue)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", isQuantumReadinessCheck=") + .append(String.valueOf(this.isQuantumReadinessCheck)); + sb.append(", summary=").append(String.valueOf(this.summary)); + sb.append(", shortSummary=").append(String.valueOf(this.shortSummary)); + sb.append(", url=").append(String.valueOf(this.url)); + sb.append(", remediation=").append(String.valueOf(this.remediation)); + sb.append(", shortRemediation=").append(String.valueOf(this.shortRemediation)); + sb.append(", compliance=").append(String.valueOf(this.compliance)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CryptoAssessmentFindingSummary)) { + return false; + } + + CryptoAssessmentFindingSummary other = (CryptoAssessmentFindingSummary) o; + return java.util.Objects.equals(this.findingKey, other.findingKey) + && java.util.Objects.equals(this.title, other.title) + && java.util.Objects.equals(this.category, other.category) + && java.util.Objects.equals(this.priority, other.priority) + && java.util.Objects.equals(this.severity, other.severity) + && java.util.Objects.equals(this.expectedValue, other.expectedValue) + && java.util.Objects.equals(this.observedValue, other.observedValue) + && java.util.Objects.equals(this.recommendedValue, other.recommendedValue) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals( + this.isQuantumReadinessCheck, other.isQuantumReadinessCheck) + && java.util.Objects.equals(this.summary, other.summary) + && java.util.Objects.equals(this.shortSummary, other.shortSummary) + && java.util.Objects.equals(this.url, other.url) + && java.util.Objects.equals(this.remediation, other.remediation) + && java.util.Objects.equals(this.shortRemediation, other.shortRemediation) + && java.util.Objects.equals(this.compliance, other.compliance) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.findingKey == null ? 43 : this.findingKey.hashCode()); + result = (result * PRIME) + (this.title == null ? 43 : this.title.hashCode()); + result = (result * PRIME) + (this.category == null ? 43 : this.category.hashCode()); + result = (result * PRIME) + (this.priority == null ? 43 : this.priority.hashCode()); + result = (result * PRIME) + (this.severity == null ? 43 : this.severity.hashCode()); + result = + (result * PRIME) + + (this.expectedValue == null ? 43 : this.expectedValue.hashCode()); + result = + (result * PRIME) + + (this.observedValue == null ? 43 : this.observedValue.hashCode()); + result = + (result * PRIME) + + (this.recommendedValue == null ? 43 : this.recommendedValue.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.isQuantumReadinessCheck == null + ? 43 + : this.isQuantumReadinessCheck.hashCode()); + result = (result * PRIME) + (this.summary == null ? 43 : this.summary.hashCode()); + result = (result * PRIME) + (this.shortSummary == null ? 43 : this.shortSummary.hashCode()); + result = (result * PRIME) + (this.url == null ? 43 : this.url.hashCode()); + result = (result * PRIME) + (this.remediation == null ? 43 : this.remediation.hashCode()); + result = + (result * PRIME) + + (this.shortRemediation == null ? 43 : this.shortRemediation.hashCode()); + result = (result * PRIME) + (this.compliance == null ? 43 : this.compliance.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingSummaryMetrics.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingSummaryMetrics.java new file mode 100644 index 00000000000..c1dbeb6dece --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingSummaryMetrics.java @@ -0,0 +1,493 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** + * Aggregate finding counts for the specified crypto assessment.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CryptoAssessmentFindingSummaryMetrics.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoAssessmentFindingSummaryMetrics + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "totalChecks", + "totalFindings", + "critical", + "high", + "med", + "low", + "statusCounts", + "networkEncryptionStatus", + "dataEncryptionStatus", + "walletStatus", + "backupStatus" + }) + public CryptoAssessmentFindingSummaryMetrics( + Integer totalChecks, + Integer totalFindings, + Integer critical, + Integer high, + Integer med, + Integer low, + java.util.Map statusCounts, + CryptoAssessmentFindingCategorySummary networkEncryptionStatus, + CryptoAssessmentFindingCategorySummary dataEncryptionStatus, + CryptoAssessmentFindingCategorySummary walletStatus, + CryptoAssessmentFindingCategorySummary backupStatus) { + super(); + this.totalChecks = totalChecks; + this.totalFindings = totalFindings; + this.critical = critical; + this.high = high; + this.med = med; + this.low = low; + this.statusCounts = statusCounts; + this.networkEncryptionStatus = networkEncryptionStatus; + this.dataEncryptionStatus = dataEncryptionStatus; + this.walletStatus = walletStatus; + this.backupStatus = backupStatus; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Total findings across all statuses. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalChecks") + private Integer totalChecks; + + /** + * Total findings across all statuses. + * + * @param totalChecks the value to set + * @return this builder + */ + public Builder totalChecks(Integer totalChecks) { + this.totalChecks = totalChecks; + this.__explicitlySet__.add("totalChecks"); + return this; + } + /** Findings with FAIL or EVALUATE status. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalFindings") + private Integer totalFindings; + + /** + * Findings with FAIL or EVALUATE status. + * + * @param totalFindings the value to set + * @return this builder + */ + public Builder totalFindings(Integer totalFindings) { + this.totalFindings = totalFindings; + this.__explicitlySet__.add("totalFindings"); + return this; + } + /** FAIL or EVALUATE findings with priority 1. */ + @com.fasterxml.jackson.annotation.JsonProperty("critical") + private Integer critical; + + /** + * FAIL or EVALUATE findings with priority 1. + * + * @param critical the value to set + * @return this builder + */ + public Builder critical(Integer critical) { + this.critical = critical; + this.__explicitlySet__.add("critical"); + return this; + } + /** FAIL or EVALUATE findings with priority 2. */ + @com.fasterxml.jackson.annotation.JsonProperty("high") + private Integer high; + + /** + * FAIL or EVALUATE findings with priority 2. + * + * @param high the value to set + * @return this builder + */ + public Builder high(Integer high) { + this.high = high; + this.__explicitlySet__.add("high"); + return this; + } + /** FAIL or EVALUATE findings with priority 3. */ + @com.fasterxml.jackson.annotation.JsonProperty("med") + private Integer med; + + /** + * FAIL or EVALUATE findings with priority 3. + * + * @param med the value to set + * @return this builder + */ + public Builder med(Integer med) { + this.med = med; + this.__explicitlySet__.add("med"); + return this; + } + /** FAIL or EVALUATE findings with priority 4. */ + @com.fasterxml.jackson.annotation.JsonProperty("low") + private Integer low; + + /** + * FAIL or EVALUATE findings with priority 4. + * + * @param low the value to set + * @return this builder + */ + public Builder low(Integer low) { + this.low = low; + this.__explicitlySet__.add("low"); + return this; + } + /** + * Counts keyed by finding status. All supported statuses are included with a zero count + * when absent. + */ + @com.fasterxml.jackson.annotation.JsonProperty("statusCounts") + private java.util.Map statusCounts; + + /** + * Counts keyed by finding status. All supported statuses are included with a zero count + * when absent. + * + * @param statusCounts the value to set + * @return this builder + */ + public Builder statusCounts(java.util.Map statusCounts) { + this.statusCounts = statusCounts; + this.__explicitlySet__.add("statusCounts"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkEncryptionStatus") + private CryptoAssessmentFindingCategorySummary networkEncryptionStatus; + + public Builder networkEncryptionStatus( + CryptoAssessmentFindingCategorySummary networkEncryptionStatus) { + this.networkEncryptionStatus = networkEncryptionStatus; + this.__explicitlySet__.add("networkEncryptionStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataEncryptionStatus") + private CryptoAssessmentFindingCategorySummary dataEncryptionStatus; + + public Builder dataEncryptionStatus( + CryptoAssessmentFindingCategorySummary dataEncryptionStatus) { + this.dataEncryptionStatus = dataEncryptionStatus; + this.__explicitlySet__.add("dataEncryptionStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("walletStatus") + private CryptoAssessmentFindingCategorySummary walletStatus; + + public Builder walletStatus(CryptoAssessmentFindingCategorySummary walletStatus) { + this.walletStatus = walletStatus; + this.__explicitlySet__.add("walletStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("backupStatus") + private CryptoAssessmentFindingCategorySummary backupStatus; + + public Builder backupStatus(CryptoAssessmentFindingCategorySummary backupStatus) { + this.backupStatus = backupStatus; + this.__explicitlySet__.add("backupStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CryptoAssessmentFindingSummaryMetrics build() { + CryptoAssessmentFindingSummaryMetrics model = + new CryptoAssessmentFindingSummaryMetrics( + this.totalChecks, + this.totalFindings, + this.critical, + this.high, + this.med, + this.low, + this.statusCounts, + this.networkEncryptionStatus, + this.dataEncryptionStatus, + this.walletStatus, + this.backupStatus); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoAssessmentFindingSummaryMetrics model) { + if (model.wasPropertyExplicitlySet("totalChecks")) { + this.totalChecks(model.getTotalChecks()); + } + if (model.wasPropertyExplicitlySet("totalFindings")) { + this.totalFindings(model.getTotalFindings()); + } + if (model.wasPropertyExplicitlySet("critical")) { + this.critical(model.getCritical()); + } + if (model.wasPropertyExplicitlySet("high")) { + this.high(model.getHigh()); + } + if (model.wasPropertyExplicitlySet("med")) { + this.med(model.getMed()); + } + if (model.wasPropertyExplicitlySet("low")) { + this.low(model.getLow()); + } + if (model.wasPropertyExplicitlySet("statusCounts")) { + this.statusCounts(model.getStatusCounts()); + } + if (model.wasPropertyExplicitlySet("networkEncryptionStatus")) { + this.networkEncryptionStatus(model.getNetworkEncryptionStatus()); + } + if (model.wasPropertyExplicitlySet("dataEncryptionStatus")) { + this.dataEncryptionStatus(model.getDataEncryptionStatus()); + } + if (model.wasPropertyExplicitlySet("walletStatus")) { + this.walletStatus(model.getWalletStatus()); + } + if (model.wasPropertyExplicitlySet("backupStatus")) { + this.backupStatus(model.getBackupStatus()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Total findings across all statuses. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalChecks") + private final Integer totalChecks; + + /** + * Total findings across all statuses. + * + * @return the value + */ + public Integer getTotalChecks() { + return totalChecks; + } + + /** Findings with FAIL or EVALUATE status. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalFindings") + private final Integer totalFindings; + + /** + * Findings with FAIL or EVALUATE status. + * + * @return the value + */ + public Integer getTotalFindings() { + return totalFindings; + } + + /** FAIL or EVALUATE findings with priority 1. */ + @com.fasterxml.jackson.annotation.JsonProperty("critical") + private final Integer critical; + + /** + * FAIL or EVALUATE findings with priority 1. + * + * @return the value + */ + public Integer getCritical() { + return critical; + } + + /** FAIL or EVALUATE findings with priority 2. */ + @com.fasterxml.jackson.annotation.JsonProperty("high") + private final Integer high; + + /** + * FAIL or EVALUATE findings with priority 2. + * + * @return the value + */ + public Integer getHigh() { + return high; + } + + /** FAIL or EVALUATE findings with priority 3. */ + @com.fasterxml.jackson.annotation.JsonProperty("med") + private final Integer med; + + /** + * FAIL or EVALUATE findings with priority 3. + * + * @return the value + */ + public Integer getMed() { + return med; + } + + /** FAIL or EVALUATE findings with priority 4. */ + @com.fasterxml.jackson.annotation.JsonProperty("low") + private final Integer low; + + /** + * FAIL or EVALUATE findings with priority 4. + * + * @return the value + */ + public Integer getLow() { + return low; + } + + /** + * Counts keyed by finding status. All supported statuses are included with a zero count when + * absent. + */ + @com.fasterxml.jackson.annotation.JsonProperty("statusCounts") + private final java.util.Map statusCounts; + + /** + * Counts keyed by finding status. All supported statuses are included with a zero count when + * absent. + * + * @return the value + */ + public java.util.Map getStatusCounts() { + return statusCounts; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkEncryptionStatus") + private final CryptoAssessmentFindingCategorySummary networkEncryptionStatus; + + public CryptoAssessmentFindingCategorySummary getNetworkEncryptionStatus() { + return networkEncryptionStatus; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataEncryptionStatus") + private final CryptoAssessmentFindingCategorySummary dataEncryptionStatus; + + public CryptoAssessmentFindingCategorySummary getDataEncryptionStatus() { + return dataEncryptionStatus; + } + + @com.fasterxml.jackson.annotation.JsonProperty("walletStatus") + private final CryptoAssessmentFindingCategorySummary walletStatus; + + public CryptoAssessmentFindingCategorySummary getWalletStatus() { + return walletStatus; + } + + @com.fasterxml.jackson.annotation.JsonProperty("backupStatus") + private final CryptoAssessmentFindingCategorySummary backupStatus; + + public CryptoAssessmentFindingCategorySummary getBackupStatus() { + return backupStatus; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CryptoAssessmentFindingSummaryMetrics("); + sb.append("super=").append(super.toString()); + sb.append("totalChecks=").append(String.valueOf(this.totalChecks)); + sb.append(", totalFindings=").append(String.valueOf(this.totalFindings)); + sb.append(", critical=").append(String.valueOf(this.critical)); + sb.append(", high=").append(String.valueOf(this.high)); + sb.append(", med=").append(String.valueOf(this.med)); + sb.append(", low=").append(String.valueOf(this.low)); + sb.append(", statusCounts=").append(String.valueOf(this.statusCounts)); + sb.append(", networkEncryptionStatus=") + .append(String.valueOf(this.networkEncryptionStatus)); + sb.append(", dataEncryptionStatus=").append(String.valueOf(this.dataEncryptionStatus)); + sb.append(", walletStatus=").append(String.valueOf(this.walletStatus)); + sb.append(", backupStatus=").append(String.valueOf(this.backupStatus)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CryptoAssessmentFindingSummaryMetrics)) { + return false; + } + + CryptoAssessmentFindingSummaryMetrics other = (CryptoAssessmentFindingSummaryMetrics) o; + return java.util.Objects.equals(this.totalChecks, other.totalChecks) + && java.util.Objects.equals(this.totalFindings, other.totalFindings) + && java.util.Objects.equals(this.critical, other.critical) + && java.util.Objects.equals(this.high, other.high) + && java.util.Objects.equals(this.med, other.med) + && java.util.Objects.equals(this.low, other.low) + && java.util.Objects.equals(this.statusCounts, other.statusCounts) + && java.util.Objects.equals( + this.networkEncryptionStatus, other.networkEncryptionStatus) + && java.util.Objects.equals(this.dataEncryptionStatus, other.dataEncryptionStatus) + && java.util.Objects.equals(this.walletStatus, other.walletStatus) + && java.util.Objects.equals(this.backupStatus, other.backupStatus) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.totalChecks == null ? 43 : this.totalChecks.hashCode()); + result = + (result * PRIME) + + (this.totalFindings == null ? 43 : this.totalFindings.hashCode()); + result = (result * PRIME) + (this.critical == null ? 43 : this.critical.hashCode()); + result = (result * PRIME) + (this.high == null ? 43 : this.high.hashCode()); + result = (result * PRIME) + (this.med == null ? 43 : this.med.hashCode()); + result = (result * PRIME) + (this.low == null ? 43 : this.low.hashCode()); + result = (result * PRIME) + (this.statusCounts == null ? 43 : this.statusCounts.hashCode()); + result = + (result * PRIME) + + (this.networkEncryptionStatus == null + ? 43 + : this.networkEncryptionStatus.hashCode()); + result = + (result * PRIME) + + (this.dataEncryptionStatus == null + ? 43 + : this.dataEncryptionStatus.hashCode()); + result = (result * PRIME) + (this.walletStatus == null ? 43 : this.walletStatus.hashCode()); + result = (result * PRIME) + (this.backupStatus == null ? 43 : this.backupStatus.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingTargetCollection.java similarity index 73% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCollection.java rename to bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingTargetCollection.java index 1fb148d9c89..8894eb74b38 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCollection.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingTargetCollection.java @@ -2,10 +2,10 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.datasafe.model; /** - * Collection of Globally distributed autonomous databases.
+ * List of targets impacted by a specified crypto finding.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,34 +15,34 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedAutonomousDatabaseCollection.Builder.class) + builder = CryptoAssessmentFindingTargetCollection.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class DistributedAutonomousDatabaseCollection +public final class CryptoAssessmentFindingTargetCollection extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"items"}) - public DistributedAutonomousDatabaseCollection( - java.util.List items) { + public CryptoAssessmentFindingTargetCollection( + 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. */ + /** Array of target-level finding occurrences. */ @com.fasterxml.jackson.annotation.JsonProperty("items") - private java.util.List items; + private java.util.List items; /** - * Array of Globally distributed autonomous database summaries. + * Array of target-level finding occurrences. * * @param items the value to set * @return this builder */ - public Builder items(java.util.List items) { + public Builder items(java.util.List items) { this.items = items; this.__explicitlySet__.add("items"); return this; @@ -51,9 +51,9 @@ public Builder items(java.util.List items) @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public DistributedAutonomousDatabaseCollection build() { - DistributedAutonomousDatabaseCollection model = - new DistributedAutonomousDatabaseCollection(this.items); + public CryptoAssessmentFindingTargetCollection build() { + CryptoAssessmentFindingTargetCollection model = + new CryptoAssessmentFindingTargetCollection(this.items); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -61,7 +61,7 @@ public DistributedAutonomousDatabaseCollection build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedAutonomousDatabaseCollection model) { + public Builder copy(CryptoAssessmentFindingTargetCollection model) { if (model.wasPropertyExplicitlySet("items")) { this.items(model.getItems()); } @@ -78,16 +78,16 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Array of Globally distributed autonomous database summaries. */ + /** Array of target-level finding occurrences. */ @com.fasterxml.jackson.annotation.JsonProperty("items") - private final java.util.List items; + private final java.util.List items; /** - * Array of Globally distributed autonomous database summaries. + * Array of target-level finding occurrences. * * @return the value */ - public java.util.List getItems() { + public java.util.List getItems() { return items; } @@ -104,7 +104,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedAutonomousDatabaseCollection("); + sb.append("CryptoAssessmentFindingTargetCollection("); sb.append("super=").append(super.toString()); sb.append("items=").append(String.valueOf(this.items)); sb.append(")"); @@ -116,11 +116,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DistributedAutonomousDatabaseCollection)) { + if (!(o instanceof CryptoAssessmentFindingTargetCollection)) { return false; } - DistributedAutonomousDatabaseCollection other = (DistributedAutonomousDatabaseCollection) o; + CryptoAssessmentFindingTargetCollection other = (CryptoAssessmentFindingTargetCollection) o; return java.util.Objects.equals(this.items, other.items) && super.equals(other); } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingTargetSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingTargetSummary.java new file mode 100644 index 00000000000..f77d411777a --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingTargetSummary.java @@ -0,0 +1,474 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** + * Target-level occurrence details for a crypto finding.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CryptoAssessmentFindingTargetSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoAssessmentFindingTargetSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "targetId", + "findingKey", + "priority", + "severity", + "observedValue", + "databaseVersion", + "isQuantumReadinessCheck", + "assessmentId" + }) + public CryptoAssessmentFindingTargetSummary( + String targetId, + String findingKey, + Integer priority, + Severity severity, + String observedValue, + String databaseVersion, + Boolean isQuantumReadinessCheck, + String assessmentId) { + super(); + this.targetId = targetId; + this.findingKey = findingKey; + this.priority = priority; + this.severity = severity; + this.observedValue = observedValue; + this.databaseVersion = databaseVersion; + this.isQuantumReadinessCheck = isQuantumReadinessCheck; + this.assessmentId = assessmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the affected target. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * The OCID of the affected target. + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + /** Unique key of the finding affecting this target. */ + @com.fasterxml.jackson.annotation.JsonProperty("findingKey") + private String findingKey; + + /** + * Unique key of the finding affecting this target. + * + * @param findingKey the value to set + * @return this builder + */ + public Builder findingKey(String findingKey) { + this.findingKey = findingKey; + this.__explicitlySet__.add("findingKey"); + return this; + } + /** Numeric priority of the finding. 1 is CRITICAL, 2 is HIGH, 3 is MEDIUM, and 4 is LOW. */ + @com.fasterxml.jackson.annotation.JsonProperty("priority") + private Integer priority; + + /** + * Numeric priority of the finding. 1 is CRITICAL, 2 is HIGH, 3 is MEDIUM, and 4 is LOW. + * + * @param priority the value to set + * @return this builder + */ + public Builder priority(Integer priority) { + this.priority = priority; + this.__explicitlySet__.add("priority"); + return this; + } + /** + * Text severity derived from priority using the static mapping 1=CRITICAL, 2=HIGH, + * 3=MEDIUM, 4=LOW. + */ + @com.fasterxml.jackson.annotation.JsonProperty("severity") + private Severity severity; + + /** + * Text severity derived from priority using the static mapping 1=CRITICAL, 2=HIGH, + * 3=MEDIUM, 4=LOW. + * + * @param severity the value to set + * @return this builder + */ + public Builder severity(Severity severity) { + this.severity = severity; + this.__explicitlySet__.add("severity"); + return this; + } + /** The observed value for the selected finding on this target. */ + @com.fasterxml.jackson.annotation.JsonProperty("observedValue") + private String observedValue; + + /** + * The observed value for the selected finding on this target. + * + * @param observedValue the value to set + * @return this builder + */ + public Builder observedValue(String observedValue) { + this.observedValue = observedValue; + this.__explicitlySet__.add("observedValue"); + return this; + } + /** Database version of the affected target. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + /** + * Database version of the affected target. + * + * @param databaseVersion the value to set + * @return this builder + */ + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + /** Indicates whether this finding is part of quantum-readiness checks. */ + @com.fasterxml.jackson.annotation.JsonProperty("isQuantumReadinessCheck") + private Boolean isQuantumReadinessCheck; + + /** + * Indicates whether this finding is part of quantum-readiness checks. + * + * @param isQuantumReadinessCheck the value to set + * @return this builder + */ + public Builder isQuantumReadinessCheck(Boolean isQuantumReadinessCheck) { + this.isQuantumReadinessCheck = isQuantumReadinessCheck; + this.__explicitlySet__.add("isQuantumReadinessCheck"); + return this; + } + /** The crypto assessment OCID associated with this finding occurrence. */ + @com.fasterxml.jackson.annotation.JsonProperty("assessmentId") + private String assessmentId; + + /** + * The crypto assessment OCID associated with this finding occurrence. + * + * @param assessmentId the value to set + * @return this builder + */ + public Builder assessmentId(String assessmentId) { + this.assessmentId = assessmentId; + this.__explicitlySet__.add("assessmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CryptoAssessmentFindingTargetSummary build() { + CryptoAssessmentFindingTargetSummary model = + new CryptoAssessmentFindingTargetSummary( + this.targetId, + this.findingKey, + this.priority, + this.severity, + this.observedValue, + this.databaseVersion, + this.isQuantumReadinessCheck, + this.assessmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoAssessmentFindingTargetSummary model) { + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + if (model.wasPropertyExplicitlySet("findingKey")) { + this.findingKey(model.getFindingKey()); + } + if (model.wasPropertyExplicitlySet("priority")) { + this.priority(model.getPriority()); + } + if (model.wasPropertyExplicitlySet("severity")) { + this.severity(model.getSeverity()); + } + if (model.wasPropertyExplicitlySet("observedValue")) { + this.observedValue(model.getObservedValue()); + } + if (model.wasPropertyExplicitlySet("databaseVersion")) { + this.databaseVersion(model.getDatabaseVersion()); + } + if (model.wasPropertyExplicitlySet("isQuantumReadinessCheck")) { + this.isQuantumReadinessCheck(model.getIsQuantumReadinessCheck()); + } + if (model.wasPropertyExplicitlySet("assessmentId")) { + this.assessmentId(model.getAssessmentId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the affected target. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * The OCID of the affected target. + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** Unique key of the finding affecting this target. */ + @com.fasterxml.jackson.annotation.JsonProperty("findingKey") + private final String findingKey; + + /** + * Unique key of the finding affecting this target. + * + * @return the value + */ + public String getFindingKey() { + return findingKey; + } + + /** Numeric priority of the finding. 1 is CRITICAL, 2 is HIGH, 3 is MEDIUM, and 4 is LOW. */ + @com.fasterxml.jackson.annotation.JsonProperty("priority") + private final Integer priority; + + /** + * Numeric priority of the finding. 1 is CRITICAL, 2 is HIGH, 3 is MEDIUM, and 4 is LOW. + * + * @return the value + */ + public Integer getPriority() { + return priority; + } + + /** + * Text severity derived from priority using the static mapping 1=CRITICAL, 2=HIGH, 3=MEDIUM, + * 4=LOW. + */ + public enum Severity implements com.oracle.bmc.http.internal.BmcEnum { + Critical("CRITICAL"), + High("HIGH"), + Medium("MEDIUM"), + Low("LOW"), + + /** + * 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(Severity.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Severity v : Severity.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Severity(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Severity create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Severity', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Text severity derived from priority using the static mapping 1=CRITICAL, 2=HIGH, 3=MEDIUM, + * 4=LOW. + */ + @com.fasterxml.jackson.annotation.JsonProperty("severity") + private final Severity severity; + + /** + * Text severity derived from priority using the static mapping 1=CRITICAL, 2=HIGH, 3=MEDIUM, + * 4=LOW. + * + * @return the value + */ + public Severity getSeverity() { + return severity; + } + + /** The observed value for the selected finding on this target. */ + @com.fasterxml.jackson.annotation.JsonProperty("observedValue") + private final String observedValue; + + /** + * The observed value for the selected finding on this target. + * + * @return the value + */ + public String getObservedValue() { + return observedValue; + } + + /** Database version of the affected target. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private final String databaseVersion; + + /** + * Database version of the affected target. + * + * @return the value + */ + public String getDatabaseVersion() { + return databaseVersion; + } + + /** Indicates whether this finding is part of quantum-readiness checks. */ + @com.fasterxml.jackson.annotation.JsonProperty("isQuantumReadinessCheck") + private final Boolean isQuantumReadinessCheck; + + /** + * Indicates whether this finding is part of quantum-readiness checks. + * + * @return the value + */ + public Boolean getIsQuantumReadinessCheck() { + return isQuantumReadinessCheck; + } + + /** The crypto assessment OCID associated with this finding occurrence. */ + @com.fasterxml.jackson.annotation.JsonProperty("assessmentId") + private final String assessmentId; + + /** + * The crypto assessment OCID associated with this finding occurrence. + * + * @return the value + */ + public String getAssessmentId() { + return assessmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CryptoAssessmentFindingTargetSummary("); + sb.append("super=").append(super.toString()); + sb.append("targetId=").append(String.valueOf(this.targetId)); + sb.append(", findingKey=").append(String.valueOf(this.findingKey)); + sb.append(", priority=").append(String.valueOf(this.priority)); + sb.append(", severity=").append(String.valueOf(this.severity)); + sb.append(", observedValue=").append(String.valueOf(this.observedValue)); + sb.append(", databaseVersion=").append(String.valueOf(this.databaseVersion)); + sb.append(", isQuantumReadinessCheck=") + .append(String.valueOf(this.isQuantumReadinessCheck)); + sb.append(", assessmentId=").append(String.valueOf(this.assessmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CryptoAssessmentFindingTargetSummary)) { + return false; + } + + CryptoAssessmentFindingTargetSummary other = (CryptoAssessmentFindingTargetSummary) o; + return java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.findingKey, other.findingKey) + && java.util.Objects.equals(this.priority, other.priority) + && java.util.Objects.equals(this.severity, other.severity) + && java.util.Objects.equals(this.observedValue, other.observedValue) + && java.util.Objects.equals(this.databaseVersion, other.databaseVersion) + && java.util.Objects.equals( + this.isQuantumReadinessCheck, other.isQuantumReadinessCheck) + && java.util.Objects.equals(this.assessmentId, other.assessmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = (result * PRIME) + (this.findingKey == null ? 43 : this.findingKey.hashCode()); + result = (result * PRIME) + (this.priority == null ? 43 : this.priority.hashCode()); + result = (result * PRIME) + (this.severity == null ? 43 : this.severity.hashCode()); + result = + (result * PRIME) + + (this.observedValue == null ? 43 : this.observedValue.hashCode()); + result = + (result * PRIME) + + (this.databaseVersion == null ? 43 : this.databaseVersion.hashCode()); + result = + (result * PRIME) + + (this.isQuantumReadinessCheck == null + ? 43 + : this.isQuantumReadinessCheck.hashCode()); + result = (result * PRIME) + (this.assessmentId == null ? 43 : this.assessmentId.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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentKeyCollection.java similarity index 72% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpointCollection.java rename to bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentKeyCollection.java index d91d249576a..0e7b78101dd 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpointCollection.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentKeyCollection.java @@ -2,10 +2,10 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.datasafe.model; /** - * Collection of private endpoints.
+ * Cryptographic keys associated with a crypto assessment.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,34 +15,33 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabasePrivateEndpointCollection.Builder.class) + builder = CryptoAssessmentKeyCollection.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class DistributedDatabasePrivateEndpointCollection +public final class CryptoAssessmentKeyCollection extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"items"}) - public DistributedDatabasePrivateEndpointCollection( - java.util.List items) { + public CryptoAssessmentKeyCollection(java.util.List items) { super(); this.items = items; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Array of private endpoint summaries. */ + /** Cryptographic key summaries for the specified crypto assessment. */ @com.fasterxml.jackson.annotation.JsonProperty("items") - private java.util.List items; + private java.util.List items; /** - * Array of private endpoint summaries. + * Cryptographic key summaries for the specified crypto assessment. * * @param items the value to set * @return this builder */ - public Builder items(java.util.List items) { + public Builder items(java.util.List items) { this.items = items; this.__explicitlySet__.add("items"); return this; @@ -51,9 +50,8 @@ public Builder items(java.util.List i @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public DistributedDatabasePrivateEndpointCollection build() { - DistributedDatabasePrivateEndpointCollection model = - new DistributedDatabasePrivateEndpointCollection(this.items); + public CryptoAssessmentKeyCollection build() { + CryptoAssessmentKeyCollection model = new CryptoAssessmentKeyCollection(this.items); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -61,7 +59,7 @@ public DistributedDatabasePrivateEndpointCollection build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabasePrivateEndpointCollection model) { + public Builder copy(CryptoAssessmentKeyCollection model) { if (model.wasPropertyExplicitlySet("items")) { this.items(model.getItems()); } @@ -78,16 +76,16 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Array of private endpoint summaries. */ + /** Cryptographic key summaries for the specified crypto assessment. */ @com.fasterxml.jackson.annotation.JsonProperty("items") - private final java.util.List items; + private final java.util.List items; /** - * Array of private endpoint summaries. + * Cryptographic key summaries for the specified crypto assessment. * * @return the value */ - public java.util.List getItems() { + public java.util.List getItems() { return items; } @@ -104,7 +102,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabasePrivateEndpointCollection("); + sb.append("CryptoAssessmentKeyCollection("); sb.append("super=").append(super.toString()); sb.append("items=").append(String.valueOf(this.items)); sb.append(")"); @@ -116,12 +114,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DistributedDatabasePrivateEndpointCollection)) { + if (!(o instanceof CryptoAssessmentKeyCollection)) { return false; } - DistributedDatabasePrivateEndpointCollection other = - (DistributedDatabasePrivateEndpointCollection) o; + CryptoAssessmentKeyCollection other = (CryptoAssessmentKeyCollection) o; return java.util.Objects.equals(this.items, other.items) && super.equals(other); } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentKeySummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentKeySummary.java new file mode 100644 index 00000000000..2d2d352fea8 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentKeySummary.java @@ -0,0 +1,729 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** + * Summary of one cryptographic key observed for a crypto assessment.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CryptoAssessmentKeySummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoAssessmentKeySummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "assessmentId", + "timeLastAssessed", + "targetId", + "keyId", + "feature", + "keyType", + "status", + "algorithm", + "timeCreated", + "keystoreType", + "secondaryKeystoreType", + "keyCache", + "walletLocation", + "timeLastRotation", + "age" + }) + public CryptoAssessmentKeySummary( + String assessmentId, + java.util.Date timeLastAssessed, + String targetId, + String keyId, + CryptoFeature feature, + KeyType keyType, + String status, + String algorithm, + java.util.Date timeCreated, + CryptoKeystoreType keystoreType, + CryptoKeystoreType secondaryKeystoreType, + CryptoKeyCacheStatus keyCache, + String walletLocation, + java.util.Date timeLastRotation, + Long age) { + super(); + this.assessmentId = assessmentId; + this.timeLastAssessed = timeLastAssessed; + this.targetId = targetId; + this.keyId = keyId; + this.feature = feature; + this.keyType = keyType; + this.status = status; + this.algorithm = algorithm; + this.timeCreated = timeCreated; + this.keystoreType = keystoreType; + this.secondaryKeystoreType = secondaryKeystoreType; + this.keyCache = keyCache; + this.walletLocation = walletLocation; + this.timeLastRotation = timeLastRotation; + this.age = age; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** OCID of the crypto assessment that discovered the key. */ + @com.fasterxml.jackson.annotation.JsonProperty("assessmentId") + private String assessmentId; + + /** + * OCID of the crypto assessment that discovered the key. + * + * @param assessmentId the value to set + * @return this builder + */ + public Builder assessmentId(String assessmentId) { + this.assessmentId = assessmentId; + this.__explicitlySet__.add("assessmentId"); + return this; + } + /** + * The date and time the associated crypto assessment was last assessed, in RFC3339 format. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastAssessed") + private java.util.Date timeLastAssessed; + + /** + * The date and time the associated crypto assessment was last assessed, in RFC3339 format. + * + * @param timeLastAssessed the value to set + * @return this builder + */ + public Builder timeLastAssessed(java.util.Date timeLastAssessed) { + this.timeLastAssessed = timeLastAssessed; + this.__explicitlySet__.add("timeLastAssessed"); + return this; + } + /** OCID of the target database associated with the key. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * OCID of the target database associated with the key. + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + /** Identifier of the cryptographic key. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private String keyId; + + /** + * Identifier of the cryptographic key. + * + * @param keyId the value to set + * @return this builder + */ + public Builder keyId(String keyId) { + this.keyId = keyId; + this.__explicitlySet__.add("keyId"); + return this; + } + /** Crypto feature for which the key is observed. */ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private CryptoFeature feature; + + /** + * Crypto feature for which the key is observed. + * + * @param feature the value to set + * @return this builder + */ + public Builder feature(CryptoFeature feature) { + this.feature = feature; + this.__explicitlySet__.add("feature"); + return this; + } + /** Type of cryptographic key observed for the assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyType") + private KeyType keyType; + + /** + * Type of cryptographic key observed for the assessment. + * + * @param keyType the value to set + * @return this builder + */ + public Builder keyType(KeyType keyType) { + this.keyType = keyType; + this.__explicitlySet__.add("keyType"); + return this; + } + /** Current status of the cryptographic key as observed on the target. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private String status; + + /** + * Current status of the cryptographic key as observed on the target. + * + * @param status the value to set + * @return this builder + */ + public Builder status(String status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** Cryptographic algorithm used by the key. */ + @com.fasterxml.jackson.annotation.JsonProperty("algorithm") + private String algorithm; + + /** + * Cryptographic algorithm used by the key. + * + * @param algorithm the value to set + * @return this builder + */ + public Builder algorithm(String algorithm) { + this.algorithm = algorithm; + this.__explicitlySet__.add("algorithm"); + return this; + } + /** Key creation time in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * Key creation time in RFC3339 format. + * + * @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; + } + /** Primary keystore type observed for the key. */ + @com.fasterxml.jackson.annotation.JsonProperty("keystoreType") + private CryptoKeystoreType keystoreType; + + /** + * Primary keystore type observed for the key. + * + * @param keystoreType the value to set + * @return this builder + */ + public Builder keystoreType(CryptoKeystoreType keystoreType) { + this.keystoreType = keystoreType; + this.__explicitlySet__.add("keystoreType"); + return this; + } + /** Secondary keystore type observed for the key, if configured. */ + @com.fasterxml.jackson.annotation.JsonProperty("secondaryKeystoreType") + private CryptoKeystoreType secondaryKeystoreType; + + /** + * Secondary keystore type observed for the key, if configured. + * + * @param secondaryKeystoreType the value to set + * @return this builder + */ + public Builder secondaryKeystoreType(CryptoKeystoreType secondaryKeystoreType) { + this.secondaryKeystoreType = secondaryKeystoreType; + this.__explicitlySet__.add("secondaryKeystoreType"); + return this; + } + /** Key cache setting observed for the key. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyCache") + private CryptoKeyCacheStatus keyCache; + + /** + * Key cache setting observed for the key. + * + * @param keyCache the value to set + * @return this builder + */ + public Builder keyCache(CryptoKeyCacheStatus keyCache) { + this.keyCache = keyCache; + this.__explicitlySet__.add("keyCache"); + return this; + } + /** Wallet location observed for the key. */ + @com.fasterxml.jackson.annotation.JsonProperty("walletLocation") + private String walletLocation; + + /** + * Wallet location observed for the key. + * + * @param walletLocation the value to set + * @return this builder + */ + public Builder walletLocation(String walletLocation) { + this.walletLocation = walletLocation; + this.__explicitlySet__.add("walletLocation"); + return this; + } + /** Most recent key rotation time in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastRotation") + private java.util.Date timeLastRotation; + + /** + * Most recent key rotation time in RFC3339 format. + * + * @param timeLastRotation the value to set + * @return this builder + */ + public Builder timeLastRotation(java.util.Date timeLastRotation) { + this.timeLastRotation = timeLastRotation; + this.__explicitlySet__.add("timeLastRotation"); + return this; + } + /** Age of the key in whole days, calculated from timeCreated using the current UTC date. */ + @com.fasterxml.jackson.annotation.JsonProperty("age") + private Long age; + + /** + * Age of the key in whole days, calculated from timeCreated using the current UTC date. + * + * @param age the value to set + * @return this builder + */ + public Builder age(Long age) { + this.age = age; + this.__explicitlySet__.add("age"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CryptoAssessmentKeySummary build() { + CryptoAssessmentKeySummary model = + new CryptoAssessmentKeySummary( + this.assessmentId, + this.timeLastAssessed, + this.targetId, + this.keyId, + this.feature, + this.keyType, + this.status, + this.algorithm, + this.timeCreated, + this.keystoreType, + this.secondaryKeystoreType, + this.keyCache, + this.walletLocation, + this.timeLastRotation, + this.age); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoAssessmentKeySummary model) { + if (model.wasPropertyExplicitlySet("assessmentId")) { + this.assessmentId(model.getAssessmentId()); + } + if (model.wasPropertyExplicitlySet("timeLastAssessed")) { + this.timeLastAssessed(model.getTimeLastAssessed()); + } + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + if (model.wasPropertyExplicitlySet("keyId")) { + this.keyId(model.getKeyId()); + } + if (model.wasPropertyExplicitlySet("feature")) { + this.feature(model.getFeature()); + } + if (model.wasPropertyExplicitlySet("keyType")) { + this.keyType(model.getKeyType()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("algorithm")) { + this.algorithm(model.getAlgorithm()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("keystoreType")) { + this.keystoreType(model.getKeystoreType()); + } + if (model.wasPropertyExplicitlySet("secondaryKeystoreType")) { + this.secondaryKeystoreType(model.getSecondaryKeystoreType()); + } + if (model.wasPropertyExplicitlySet("keyCache")) { + this.keyCache(model.getKeyCache()); + } + if (model.wasPropertyExplicitlySet("walletLocation")) { + this.walletLocation(model.getWalletLocation()); + } + if (model.wasPropertyExplicitlySet("timeLastRotation")) { + this.timeLastRotation(model.getTimeLastRotation()); + } + if (model.wasPropertyExplicitlySet("age")) { + this.age(model.getAge()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** OCID of the crypto assessment that discovered the key. */ + @com.fasterxml.jackson.annotation.JsonProperty("assessmentId") + private final String assessmentId; + + /** + * OCID of the crypto assessment that discovered the key. + * + * @return the value + */ + public String getAssessmentId() { + return assessmentId; + } + + /** The date and time the associated crypto assessment was last assessed, in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastAssessed") + private final java.util.Date timeLastAssessed; + + /** + * The date and time the associated crypto assessment was last assessed, in RFC3339 format. + * + * @return the value + */ + public java.util.Date getTimeLastAssessed() { + return timeLastAssessed; + } + + /** OCID of the target database associated with the key. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * OCID of the target database associated with the key. + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** Identifier of the cryptographic key. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private final String keyId; + + /** + * Identifier of the cryptographic key. + * + * @return the value + */ + public String getKeyId() { + return keyId; + } + + /** Crypto feature for which the key is observed. */ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private final CryptoFeature feature; + + /** + * Crypto feature for which the key is observed. + * + * @return the value + */ + public CryptoFeature getFeature() { + return feature; + } + + /** Type of cryptographic key observed for the assessment. */ + public enum KeyType implements com.oracle.bmc.http.internal.BmcEnum { + MasterKey("MASTER_KEY"), + EncryptionKey("ENCRYPTION_KEY"), + + /** + * 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(KeyType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (KeyType v : KeyType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + KeyType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static KeyType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'KeyType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Type of cryptographic key observed for the assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyType") + private final KeyType keyType; + + /** + * Type of cryptographic key observed for the assessment. + * + * @return the value + */ + public KeyType getKeyType() { + return keyType; + } + + /** Current status of the cryptographic key as observed on the target. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final String status; + + /** + * Current status of the cryptographic key as observed on the target. + * + * @return the value + */ + public String getStatus() { + return status; + } + + /** Cryptographic algorithm used by the key. */ + @com.fasterxml.jackson.annotation.JsonProperty("algorithm") + private final String algorithm; + + /** + * Cryptographic algorithm used by the key. + * + * @return the value + */ + public String getAlgorithm() { + return algorithm; + } + + /** Key creation time in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * Key creation time in RFC3339 format. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** Primary keystore type observed for the key. */ + @com.fasterxml.jackson.annotation.JsonProperty("keystoreType") + private final CryptoKeystoreType keystoreType; + + /** + * Primary keystore type observed for the key. + * + * @return the value + */ + public CryptoKeystoreType getKeystoreType() { + return keystoreType; + } + + /** Secondary keystore type observed for the key, if configured. */ + @com.fasterxml.jackson.annotation.JsonProperty("secondaryKeystoreType") + private final CryptoKeystoreType secondaryKeystoreType; + + /** + * Secondary keystore type observed for the key, if configured. + * + * @return the value + */ + public CryptoKeystoreType getSecondaryKeystoreType() { + return secondaryKeystoreType; + } + + /** Key cache setting observed for the key. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyCache") + private final CryptoKeyCacheStatus keyCache; + + /** + * Key cache setting observed for the key. + * + * @return the value + */ + public CryptoKeyCacheStatus getKeyCache() { + return keyCache; + } + + /** Wallet location observed for the key. */ + @com.fasterxml.jackson.annotation.JsonProperty("walletLocation") + private final String walletLocation; + + /** + * Wallet location observed for the key. + * + * @return the value + */ + public String getWalletLocation() { + return walletLocation; + } + + /** Most recent key rotation time in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastRotation") + private final java.util.Date timeLastRotation; + + /** + * Most recent key rotation time in RFC3339 format. + * + * @return the value + */ + public java.util.Date getTimeLastRotation() { + return timeLastRotation; + } + + /** Age of the key in whole days, calculated from timeCreated using the current UTC date. */ + @com.fasterxml.jackson.annotation.JsonProperty("age") + private final Long age; + + /** + * Age of the key in whole days, calculated from timeCreated using the current UTC date. + * + * @return the value + */ + public Long getAge() { + return age; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CryptoAssessmentKeySummary("); + sb.append("super=").append(super.toString()); + sb.append("assessmentId=").append(String.valueOf(this.assessmentId)); + sb.append(", timeLastAssessed=").append(String.valueOf(this.timeLastAssessed)); + sb.append(", targetId=").append(String.valueOf(this.targetId)); + sb.append(", keyId=").append(String.valueOf(this.keyId)); + sb.append(", feature=").append(String.valueOf(this.feature)); + sb.append(", keyType=").append(String.valueOf(this.keyType)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", algorithm=").append(String.valueOf(this.algorithm)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", keystoreType=").append(String.valueOf(this.keystoreType)); + sb.append(", secondaryKeystoreType=").append(String.valueOf(this.secondaryKeystoreType)); + sb.append(", keyCache=").append(String.valueOf(this.keyCache)); + sb.append(", walletLocation=").append(String.valueOf(this.walletLocation)); + sb.append(", timeLastRotation=").append(String.valueOf(this.timeLastRotation)); + sb.append(", age=").append(String.valueOf(this.age)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CryptoAssessmentKeySummary)) { + return false; + } + + CryptoAssessmentKeySummary other = (CryptoAssessmentKeySummary) o; + return java.util.Objects.equals(this.assessmentId, other.assessmentId) + && java.util.Objects.equals(this.timeLastAssessed, other.timeLastAssessed) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.keyId, other.keyId) + && java.util.Objects.equals(this.feature, other.feature) + && java.util.Objects.equals(this.keyType, other.keyType) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.algorithm, other.algorithm) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.keystoreType, other.keystoreType) + && java.util.Objects.equals(this.secondaryKeystoreType, other.secondaryKeystoreType) + && java.util.Objects.equals(this.keyCache, other.keyCache) + && java.util.Objects.equals(this.walletLocation, other.walletLocation) + && java.util.Objects.equals(this.timeLastRotation, other.timeLastRotation) + && java.util.Objects.equals(this.age, other.age) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.assessmentId == null ? 43 : this.assessmentId.hashCode()); + result = + (result * PRIME) + + (this.timeLastAssessed == null ? 43 : this.timeLastAssessed.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = (result * PRIME) + (this.keyId == null ? 43 : this.keyId.hashCode()); + result = (result * PRIME) + (this.feature == null ? 43 : this.feature.hashCode()); + result = (result * PRIME) + (this.keyType == null ? 43 : this.keyType.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.algorithm == null ? 43 : this.algorithm.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.keystoreType == null ? 43 : this.keystoreType.hashCode()); + result = + (result * PRIME) + + (this.secondaryKeystoreType == null + ? 43 + : this.secondaryKeystoreType.hashCode()); + result = (result * PRIME) + (this.keyCache == null ? 43 : this.keyCache.hashCode()); + result = + (result * PRIME) + + (this.walletLocation == null ? 43 : this.walletLocation.hashCode()); + result = + (result * PRIME) + + (this.timeLastRotation == null ? 43 : this.timeLastRotation.hashCode()); + result = (result * PRIME) + (this.age == null ? 43 : this.age.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentSqlnetParameters.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentSqlnetParameters.java new file mode 100644 index 00000000000..52b1e39fa4c --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentSqlnetParameters.java @@ -0,0 +1,159 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** + * SQLNET.ORA parameter values for a crypto assessment.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CryptoAssessmentSqlnetParameters.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoAssessmentSqlnetParameters + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"source", "parameters"}) + public CryptoAssessmentSqlnetParameters( + CryptoSqlnetParameterSource source, java.util.List parameters) { + super(); + this.source = source; + this.parameters = parameters; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("source") + private CryptoSqlnetParameterSource source; + + public Builder source(CryptoSqlnetParameterSource source) { + this.source = source; + this.__explicitlySet__.add("source"); + return this; + } + /** SQLNET parameters observed for the assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("parameters") + private java.util.List parameters; + + /** + * SQLNET parameters observed for the assessment. + * + * @param parameters the value to set + * @return this builder + */ + public Builder parameters(java.util.List parameters) { + this.parameters = parameters; + this.__explicitlySet__.add("parameters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CryptoAssessmentSqlnetParameters build() { + CryptoAssessmentSqlnetParameters model = + new CryptoAssessmentSqlnetParameters(this.source, this.parameters); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoAssessmentSqlnetParameters model) { + if (model.wasPropertyExplicitlySet("source")) { + this.source(model.getSource()); + } + if (model.wasPropertyExplicitlySet("parameters")) { + this.parameters(model.getParameters()); + } + 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("source") + private final CryptoSqlnetParameterSource source; + + public CryptoSqlnetParameterSource getSource() { + return source; + } + + /** SQLNET parameters observed for the assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("parameters") + private final java.util.List parameters; + + /** + * SQLNET parameters observed for the assessment. + * + * @return the value + */ + public java.util.List getParameters() { + return parameters; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CryptoAssessmentSqlnetParameters("); + sb.append("super=").append(super.toString()); + sb.append("source=").append(String.valueOf(this.source)); + sb.append(", parameters=").append(String.valueOf(this.parameters)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CryptoAssessmentSqlnetParameters)) { + return false; + } + + CryptoAssessmentSqlnetParameters other = (CryptoAssessmentSqlnetParameters) o; + return java.util.Objects.equals(this.source, other.source) + && java.util.Objects.equals(this.parameters, other.parameters) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.source == null ? 43 : this.source.hashCode()); + result = (result * PRIME) + (this.parameters == null ? 43 : this.parameters.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentSummary.java new file mode 100644 index 00000000000..78fcfb2e26f --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentSummary.java @@ -0,0 +1,1129 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** + * The summary of a crypto assessment.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CryptoAssessmentSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoAssessmentSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "description", + "compartmentId", + "timeCreated", + "timeUpdated", + "timeLastAssessed", + "lifecycleState", + "lifecycleDetails", + "type", + "triggeredBy", + "targetType", + "targetId", + "targetDatabaseGroupId", + "databaseVersion", + "postureCategory", + "schedule", + "issueCount", + "targetsWithIssuesCount", + "isAssessmentScheduled", + "freeformTags", + "definedTags", + "systemTags" + }) + public CryptoAssessmentSummary( + String id, + String displayName, + String description, + String compartmentId, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeLastAssessed, + CryptoAssessment.LifecycleState lifecycleState, + String lifecycleDetails, + CryptoAssessment.Type type, + CryptoAssessment.TriggeredBy triggeredBy, + CryptoAssessment.TargetType targetType, + String targetId, + String targetDatabaseGroupId, + String databaseVersion, + CryptoPostureCategory postureCategory, + String schedule, + Integer issueCount, + Integer targetsWithIssuesCount, + Boolean isAssessmentScheduled, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.description = description; + this.compartmentId = compartmentId; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timeLastAssessed = timeLastAssessed; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.type = type; + this.triggeredBy = triggeredBy; + this.targetType = targetType; + this.targetId = targetId; + this.targetDatabaseGroupId = targetDatabaseGroupId; + this.databaseVersion = databaseVersion; + this.postureCategory = postureCategory; + this.schedule = schedule; + this.issueCount = issueCount; + this.targetsWithIssuesCount = targetsWithIssuesCount; + this.isAssessmentScheduled = isAssessmentScheduled; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the crypto assessment. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The display name of the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the crypto assessment. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The description of the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the crypto assessment. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** The OCID of the compartment that contains the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the crypto assessment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The date and time the crypto assessment was created, in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the crypto assessment was created, in RFC3339 format. + * + * @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 crypto assessment was last updated, in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the crypto assessment was last updated, in RFC3339 format. + * + * @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 date and time the crypto posture was last assessed, in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastAssessed") + private java.util.Date timeLastAssessed; + + /** + * The date and time the crypto posture was last assessed, in RFC3339 format. + * + * @param timeLastAssessed the value to set + * @return this builder + */ + public Builder timeLastAssessed(java.util.Date timeLastAssessed) { + this.timeLastAssessed = timeLastAssessed; + this.__explicitlySet__.add("timeLastAssessed"); + return this; + } + /** The current lifecycle state of the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private CryptoAssessment.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the crypto assessment. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(CryptoAssessment.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Details about the current lifecycle state of the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Details about the current lifecycle state of the crypto assessment. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** The type of this crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private CryptoAssessment.Type type; + + /** + * The type of this crypto assessment. + * + * @param type the value to set + * @return this builder + */ + public Builder type(CryptoAssessment.Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** The actor that created the assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("triggeredBy") + private CryptoAssessment.TriggeredBy triggeredBy; + + /** + * The actor that created the assessment. + * + * @param triggeredBy the value to set + * @return this builder + */ + public Builder triggeredBy(CryptoAssessment.TriggeredBy triggeredBy) { + this.triggeredBy = triggeredBy; + this.__explicitlySet__.add("triggeredBy"); + return this; + } + /** + * Indicates whether this summary row is for a target database or a target database group. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetType") + private CryptoAssessment.TargetType targetType; + + /** + * Indicates whether this summary row is for a target database or a target database group. + * + * @param targetType the value to set + * @return this builder + */ + public Builder targetType(CryptoAssessment.TargetType targetType) { + this.targetType = targetType; + this.__explicitlySet__.add("targetType"); + return this; + } + /** + * The OCID of the target database. This is returned when {@code targetType} is {@code + * TARGET_DATABASE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * The OCID of the target database. This is returned when {@code targetType} is {@code + * TARGET_DATABASE}. + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + /** + * The OCID of the target database group. This is returned when {@code targetType} is {@code + * TARGET_DATABASE_GROUP}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseGroupId") + private String targetDatabaseGroupId; + + /** + * The OCID of the target database group. This is returned when {@code targetType} is {@code + * TARGET_DATABASE_GROUP}. + * + * @param targetDatabaseGroupId the value to set + * @return this builder + */ + public Builder targetDatabaseGroupId(String targetDatabaseGroupId) { + this.targetDatabaseGroupId = targetDatabaseGroupId; + this.__explicitlySet__.add("targetDatabaseGroupId"); + return this; + } + /** The version of the assessed target database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + /** + * The version of the assessed target database. + * + * @param databaseVersion the value to set + * @return this builder + */ + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + /** Overall posture category for the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("postureCategory") + private CryptoPostureCategory postureCategory; + + /** + * Overall posture category for the crypto assessment. + * + * @param postureCategory the value to set + * @return this builder + */ + public Builder postureCategory(CryptoPostureCategory postureCategory) { + this.postureCategory = postureCategory; + this.__explicitlySet__.add("postureCategory"); + return this; + } + /** + * The schedule used to run the crypto assessment periodically. The schedule uses the + * format: ; + * + *

For v1, the version-specific schedule format is: + * + * + *

Specify either day-of-week for weekly schedules or day-of-month for monthly schedules. + * Do not specify both. For monthly schedules, day-of-month must be between 1 and 28. If the + * service generates a default monthly schedule for an assessment created on day 29, 30, or + * 31 of a month, it uses day 28. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedule") + private String schedule; + + /** + * The schedule used to run the crypto assessment periodically. The schedule uses the + * format: ; + * + *

For v1, the version-specific schedule format is: + * + * + *

Specify either day-of-week for weekly schedules or day-of-month for monthly schedules. + * Do not specify both. For monthly schedules, day-of-month must be between 1 and 28. If the + * service generates a default monthly schedule for an assessment created on day 29, 30, or + * 31 of a month, it uses day 28. + * + * @param schedule the value to set + * @return this builder + */ + public Builder schedule(String schedule) { + this.schedule = schedule; + this.__explicitlySet__.add("schedule"); + return this; + } + /** Number of crypto issues detected in this assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("issueCount") + private Integer issueCount; + + /** + * Number of crypto issues detected in this assessment. + * + * @param issueCount the value to set + * @return this builder + */ + public Builder issueCount(Integer issueCount) { + this.issueCount = issueCount; + this.__explicitlySet__.add("issueCount"); + return this; + } + /** + * Number of assessed targets with one or more crypto issues. For a target database + * assessment, this value is 1 when the target has issues and 0 otherwise. For a target + * database group assessment, this value is the number of targets in the group that have + * issues. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetsWithIssuesCount") + private Integer targetsWithIssuesCount; + + /** + * Number of assessed targets with one or more crypto issues. For a target database + * assessment, this value is 1 when the target has issues and 0 otherwise. For a target + * database group assessment, this value is the number of targets in the group that have + * issues. + * + * @param targetsWithIssuesCount the value to set + * @return this builder + */ + public Builder targetsWithIssuesCount(Integer targetsWithIssuesCount) { + this.targetsWithIssuesCount = targetsWithIssuesCount; + this.__explicitlySet__.add("targetsWithIssuesCount"); + return this; + } + /** + * Indicates whether scheduled execution is active for this crypto assessment. When false, + * the schedule value is retained but scheduled execution is paused. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAssessmentScheduled") + private Boolean isAssessmentScheduled; + + /** + * Indicates whether scheduled execution is active for this crypto assessment. When false, + * the schedule value is retained but scheduled execution is paused. + * + * @param isAssessmentScheduled the value to set + * @return this builder + */ + public Builder isAssessmentScheduled(Boolean isAssessmentScheduled) { + this.isAssessmentScheduled = isAssessmentScheduled; + this.__explicitlySet__.add("isAssessmentScheduled"); + 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. For more + * information, see Resource Tags. Example: {@code {"orcl-cloud": {"free-tier-retained": + * "true"}}} + */ + @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. For more + * information, see Resource Tags. 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 CryptoAssessmentSummary build() { + CryptoAssessmentSummary model = + new CryptoAssessmentSummary( + this.id, + this.displayName, + this.description, + this.compartmentId, + this.timeCreated, + this.timeUpdated, + this.timeLastAssessed, + this.lifecycleState, + this.lifecycleDetails, + this.type, + this.triggeredBy, + this.targetType, + this.targetId, + this.targetDatabaseGroupId, + this.databaseVersion, + this.postureCategory, + this.schedule, + this.issueCount, + this.targetsWithIssuesCount, + this.isAssessmentScheduled, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoAssessmentSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeLastAssessed")) { + this.timeLastAssessed(model.getTimeLastAssessed()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("triggeredBy")) { + this.triggeredBy(model.getTriggeredBy()); + } + if (model.wasPropertyExplicitlySet("targetType")) { + this.targetType(model.getTargetType()); + } + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + if (model.wasPropertyExplicitlySet("targetDatabaseGroupId")) { + this.targetDatabaseGroupId(model.getTargetDatabaseGroupId()); + } + if (model.wasPropertyExplicitlySet("databaseVersion")) { + this.databaseVersion(model.getDatabaseVersion()); + } + if (model.wasPropertyExplicitlySet("postureCategory")) { + this.postureCategory(model.getPostureCategory()); + } + if (model.wasPropertyExplicitlySet("schedule")) { + this.schedule(model.getSchedule()); + } + if (model.wasPropertyExplicitlySet("issueCount")) { + this.issueCount(model.getIssueCount()); + } + if (model.wasPropertyExplicitlySet("targetsWithIssuesCount")) { + this.targetsWithIssuesCount(model.getTargetsWithIssuesCount()); + } + if (model.wasPropertyExplicitlySet("isAssessmentScheduled")) { + this.isAssessmentScheduled(model.getIsAssessmentScheduled()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the crypto assessment. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The display name of the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the crypto assessment. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The description of the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the crypto assessment. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The OCID of the compartment that contains the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the crypto assessment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The date and time the crypto assessment was created, in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the crypto assessment was created, in RFC3339 format. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The date and time the crypto assessment was last updated, in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the crypto assessment was last updated, in RFC3339 format. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The date and time the crypto posture was last assessed, in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastAssessed") + private final java.util.Date timeLastAssessed; + + /** + * The date and time the crypto posture was last assessed, in RFC3339 format. + * + * @return the value + */ + public java.util.Date getTimeLastAssessed() { + return timeLastAssessed; + } + + /** The current lifecycle state of the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final CryptoAssessment.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the crypto assessment. + * + * @return the value + */ + public CryptoAssessment.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Details about the current lifecycle state of the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Details about the current lifecycle state of the crypto assessment. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** The type of this crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final CryptoAssessment.Type type; + + /** + * The type of this crypto assessment. + * + * @return the value + */ + public CryptoAssessment.Type getType() { + return type; + } + + /** The actor that created the assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("triggeredBy") + private final CryptoAssessment.TriggeredBy triggeredBy; + + /** + * The actor that created the assessment. + * + * @return the value + */ + public CryptoAssessment.TriggeredBy getTriggeredBy() { + return triggeredBy; + } + + /** Indicates whether this summary row is for a target database or a target database group. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetType") + private final CryptoAssessment.TargetType targetType; + + /** + * Indicates whether this summary row is for a target database or a target database group. + * + * @return the value + */ + public CryptoAssessment.TargetType getTargetType() { + return targetType; + } + + /** + * The OCID of the target database. This is returned when {@code targetType} is {@code + * TARGET_DATABASE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * The OCID of the target database. This is returned when {@code targetType} is {@code + * TARGET_DATABASE}. + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** + * The OCID of the target database group. This is returned when {@code targetType} is {@code + * TARGET_DATABASE_GROUP}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseGroupId") + private final String targetDatabaseGroupId; + + /** + * The OCID of the target database group. This is returned when {@code targetType} is {@code + * TARGET_DATABASE_GROUP}. + * + * @return the value + */ + public String getTargetDatabaseGroupId() { + return targetDatabaseGroupId; + } + + /** The version of the assessed target database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private final String databaseVersion; + + /** + * The version of the assessed target database. + * + * @return the value + */ + public String getDatabaseVersion() { + return databaseVersion; + } + + /** Overall posture category for the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("postureCategory") + private final CryptoPostureCategory postureCategory; + + /** + * Overall posture category for the crypto assessment. + * + * @return the value + */ + public CryptoPostureCategory getPostureCategory() { + return postureCategory; + } + + /** + * The schedule used to run the crypto assessment periodically. The schedule uses the format: + * ; + * + *

For v1, the version-specific schedule format is: + * + * + *

Specify either day-of-week for weekly schedules or day-of-month for monthly schedules. Do + * not specify both. For monthly schedules, day-of-month must be between 1 and 28. If the + * service generates a default monthly schedule for an assessment created on day 29, 30, or 31 + * of a month, it uses day 28. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedule") + private final String schedule; + + /** + * The schedule used to run the crypto assessment periodically. The schedule uses the format: + * ; + * + *

For v1, the version-specific schedule format is: + * + * + *

Specify either day-of-week for weekly schedules or day-of-month for monthly schedules. Do + * not specify both. For monthly schedules, day-of-month must be between 1 and 28. If the + * service generates a default monthly schedule for an assessment created on day 29, 30, or 31 + * of a month, it uses day 28. + * + * @return the value + */ + public String getSchedule() { + return schedule; + } + + /** Number of crypto issues detected in this assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("issueCount") + private final Integer issueCount; + + /** + * Number of crypto issues detected in this assessment. + * + * @return the value + */ + public Integer getIssueCount() { + return issueCount; + } + + /** + * Number of assessed targets with one or more crypto issues. For a target database assessment, + * this value is 1 when the target has issues and 0 otherwise. For a target database group + * assessment, this value is the number of targets in the group that have issues. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetsWithIssuesCount") + private final Integer targetsWithIssuesCount; + + /** + * Number of assessed targets with one or more crypto issues. For a target database assessment, + * this value is 1 when the target has issues and 0 otherwise. For a target database group + * assessment, this value is the number of targets in the group that have issues. + * + * @return the value + */ + public Integer getTargetsWithIssuesCount() { + return targetsWithIssuesCount; + } + + /** + * Indicates whether scheduled execution is active for this crypto assessment. When false, the + * schedule value is retained but scheduled execution is paused. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAssessmentScheduled") + private final Boolean isAssessmentScheduled; + + /** + * Indicates whether scheduled execution is active for this crypto assessment. When false, the + * schedule value is retained but scheduled execution is paused. + * + * @return the value + */ + public Boolean getIsAssessmentScheduled() { + return isAssessmentScheduled; + } + + /** + * 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. For more + * information, see Resource Tags. Example: {@code {"orcl-cloud": {"free-tier-retained": + * "true"}}} + */ + @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. For more + * information, see Resource Tags. 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("CryptoAssessmentSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeLastAssessed=").append(String.valueOf(this.timeLastAssessed)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", triggeredBy=").append(String.valueOf(this.triggeredBy)); + sb.append(", targetType=").append(String.valueOf(this.targetType)); + sb.append(", targetId=").append(String.valueOf(this.targetId)); + sb.append(", targetDatabaseGroupId=").append(String.valueOf(this.targetDatabaseGroupId)); + sb.append(", databaseVersion=").append(String.valueOf(this.databaseVersion)); + sb.append(", postureCategory=").append(String.valueOf(this.postureCategory)); + sb.append(", schedule=").append(String.valueOf(this.schedule)); + sb.append(", issueCount=").append(String.valueOf(this.issueCount)); + sb.append(", targetsWithIssuesCount=").append(String.valueOf(this.targetsWithIssuesCount)); + sb.append(", isAssessmentScheduled=").append(String.valueOf(this.isAssessmentScheduled)); + 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 CryptoAssessmentSummary)) { + return false; + } + + CryptoAssessmentSummary other = (CryptoAssessmentSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeLastAssessed, other.timeLastAssessed) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.triggeredBy, other.triggeredBy) + && java.util.Objects.equals(this.targetType, other.targetType) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.targetDatabaseGroupId, other.targetDatabaseGroupId) + && java.util.Objects.equals(this.databaseVersion, other.databaseVersion) + && java.util.Objects.equals(this.postureCategory, other.postureCategory) + && java.util.Objects.equals(this.schedule, other.schedule) + && java.util.Objects.equals(this.issueCount, other.issueCount) + && java.util.Objects.equals( + this.targetsWithIssuesCount, other.targetsWithIssuesCount) + && java.util.Objects.equals(this.isAssessmentScheduled, other.isAssessmentScheduled) + && 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.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.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.timeLastAssessed == null ? 43 : this.timeLastAssessed.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.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.triggeredBy == null ? 43 : this.triggeredBy.hashCode()); + result = (result * PRIME) + (this.targetType == null ? 43 : this.targetType.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = + (result * PRIME) + + (this.targetDatabaseGroupId == null + ? 43 + : this.targetDatabaseGroupId.hashCode()); + result = + (result * PRIME) + + (this.databaseVersion == null ? 43 : this.databaseVersion.hashCode()); + result = + (result * PRIME) + + (this.postureCategory == null ? 43 : this.postureCategory.hashCode()); + result = (result * PRIME) + (this.schedule == null ? 43 : this.schedule.hashCode()); + result = (result * PRIME) + (this.issueCount == null ? 43 : this.issueCount.hashCode()); + result = + (result * PRIME) + + (this.targetsWithIssuesCount == null + ? 43 + : this.targetsWithIssuesCount.hashCode()); + result = + (result * PRIME) + + (this.isAssessmentScheduled == null + ? 43 + : this.isAssessmentScheduled.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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentTdeObjectCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentTdeObjectCollection.java new file mode 100644 index 00000000000..7982c39b07f --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentTdeObjectCollection.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.datasafe.model; + +/** + * TDE object encryption summaries for a crypto assessment.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CryptoAssessmentTdeObjectCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoAssessmentTdeObjectCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public CryptoAssessmentTdeObjectCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** TDE object encryption summary items. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * TDE object encryption summary items. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CryptoAssessmentTdeObjectCollection build() { + CryptoAssessmentTdeObjectCollection model = + new CryptoAssessmentTdeObjectCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoAssessmentTdeObjectCollection 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); + } + + /** TDE object encryption summary items. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * TDE object encryption summary items. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CryptoAssessmentTdeObjectCollection("); + 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 CryptoAssessmentTdeObjectCollection)) { + return false; + } + + CryptoAssessmentTdeObjectCollection other = (CryptoAssessmentTdeObjectCollection) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentTdeObjectSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentTdeObjectSummary.java new file mode 100644 index 00000000000..c1cf52e6337 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentTdeObjectSummary.java @@ -0,0 +1,555 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** + * Summary of one TDE object encryption observation.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CryptoAssessmentTdeObjectSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoAssessmentTdeObjectSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "assessmentId", + "timeLastAssessed", + "targetId", + "tablespaceName", + "schemaName", + "tableName", + "columnName", + "encryptionObserved", + "modeObserved", + "sizeInGBs", + "quantumReadiness" + }) + public CryptoAssessmentTdeObjectSummary( + String assessmentId, + java.util.Date timeLastAssessed, + String targetId, + String tablespaceName, + String schemaName, + String tableName, + String columnName, + String encryptionObserved, + String modeObserved, + Double sizeInGBs, + CryptoQuantumReadiness quantumReadiness) { + super(); + this.assessmentId = assessmentId; + this.timeLastAssessed = timeLastAssessed; + this.targetId = targetId; + this.tablespaceName = tablespaceName; + this.schemaName = schemaName; + this.tableName = tableName; + this.columnName = columnName; + this.encryptionObserved = encryptionObserved; + this.modeObserved = modeObserved; + this.sizeInGBs = sizeInGBs; + this.quantumReadiness = quantumReadiness; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** OCID of the crypto assessment that discovered the TDE object. */ + @com.fasterxml.jackson.annotation.JsonProperty("assessmentId") + private String assessmentId; + + /** + * OCID of the crypto assessment that discovered the TDE object. + * + * @param assessmentId the value to set + * @return this builder + */ + public Builder assessmentId(String assessmentId) { + this.assessmentId = assessmentId; + this.__explicitlySet__.add("assessmentId"); + return this; + } + /** + * The date and time the associated crypto assessment was last assessed, in RFC3339 format. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastAssessed") + private java.util.Date timeLastAssessed; + + /** + * The date and time the associated crypto assessment was last assessed, in RFC3339 format. + * + * @param timeLastAssessed the value to set + * @return this builder + */ + public Builder timeLastAssessed(java.util.Date timeLastAssessed) { + this.timeLastAssessed = timeLastAssessed; + this.__explicitlySet__.add("timeLastAssessed"); + return this; + } + /** OCID of the target database associated with the TDE object. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * OCID of the target database associated with the TDE object. + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + /** Name of the tablespace. This field is returned when objectType is TABLESPACE. */ + @com.fasterxml.jackson.annotation.JsonProperty("tablespaceName") + private String tablespaceName; + + /** + * Name of the tablespace. This field is returned when objectType is TABLESPACE. + * + * @param tablespaceName the value to set + * @return this builder + */ + public Builder tablespaceName(String tablespaceName) { + this.tablespaceName = tablespaceName; + this.__explicitlySet__.add("tablespaceName"); + return this; + } + /** + * Name of the schema containing the encrypted column. This field is returned when + * objectType is COLUMN. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schemaName") + private String schemaName; + + /** + * Name of the schema containing the encrypted column. This field is returned when + * objectType is COLUMN. + * + * @param schemaName the value to set + * @return this builder + */ + public Builder schemaName(String schemaName) { + this.schemaName = schemaName; + this.__explicitlySet__.add("schemaName"); + return this; + } + /** + * Name of the table containing the encrypted column. This field is returned when objectType + * is COLUMN. + */ + @com.fasterxml.jackson.annotation.JsonProperty("tableName") + private String tableName; + + /** + * Name of the table containing the encrypted column. This field is returned when objectType + * is COLUMN. + * + * @param tableName the value to set + * @return this builder + */ + public Builder tableName(String tableName) { + this.tableName = tableName; + this.__explicitlySet__.add("tableName"); + return this; + } + /** Name of the encrypted column. This field is returned when objectType is COLUMN. */ + @com.fasterxml.jackson.annotation.JsonProperty("columnName") + private String columnName; + + /** + * Name of the encrypted column. This field is returned when objectType is COLUMN. + * + * @param columnName the value to set + * @return this builder + */ + public Builder columnName(String columnName) { + this.columnName = columnName; + this.__explicitlySet__.add("columnName"); + return this; + } + /** Encryption algorithm observed for the TDE object. */ + @com.fasterxml.jackson.annotation.JsonProperty("encryptionObserved") + private String encryptionObserved; + + /** + * Encryption algorithm observed for the TDE object. + * + * @param encryptionObserved the value to set + * @return this builder + */ + public Builder encryptionObserved(String encryptionObserved) { + this.encryptionObserved = encryptionObserved; + this.__explicitlySet__.add("encryptionObserved"); + return this; + } + /** + * Encryption mode observed for the tablespace. This field is returned when objectType is + * TABLESPACE. + */ + @com.fasterxml.jackson.annotation.JsonProperty("modeObserved") + private String modeObserved; + + /** + * Encryption mode observed for the tablespace. This field is returned when objectType is + * TABLESPACE. + * + * @param modeObserved the value to set + * @return this builder + */ + public Builder modeObserved(String modeObserved) { + this.modeObserved = modeObserved; + this.__explicitlySet__.add("modeObserved"); + return this; + } + /** Tablespace size in gigabytes. This field is returned when objectType is TABLESPACE. */ + @com.fasterxml.jackson.annotation.JsonProperty("sizeInGBs") + private Double sizeInGBs; + + /** + * Tablespace size in gigabytes. This field is returned when objectType is TABLESPACE. + * + * @param sizeInGBs the value to set + * @return this builder + */ + public Builder sizeInGBs(Double sizeInGBs) { + this.sizeInGBs = sizeInGBs; + this.__explicitlySet__.add("sizeInGBs"); + return this; + } + /** Quantum-readiness classification for the observed TDE object encryption. */ + @com.fasterxml.jackson.annotation.JsonProperty("quantumReadiness") + private CryptoQuantumReadiness quantumReadiness; + + /** + * Quantum-readiness classification for the observed TDE object encryption. + * + * @param quantumReadiness the value to set + * @return this builder + */ + public Builder quantumReadiness(CryptoQuantumReadiness quantumReadiness) { + this.quantumReadiness = quantumReadiness; + this.__explicitlySet__.add("quantumReadiness"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CryptoAssessmentTdeObjectSummary build() { + CryptoAssessmentTdeObjectSummary model = + new CryptoAssessmentTdeObjectSummary( + this.assessmentId, + this.timeLastAssessed, + this.targetId, + this.tablespaceName, + this.schemaName, + this.tableName, + this.columnName, + this.encryptionObserved, + this.modeObserved, + this.sizeInGBs, + this.quantumReadiness); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoAssessmentTdeObjectSummary model) { + if (model.wasPropertyExplicitlySet("assessmentId")) { + this.assessmentId(model.getAssessmentId()); + } + if (model.wasPropertyExplicitlySet("timeLastAssessed")) { + this.timeLastAssessed(model.getTimeLastAssessed()); + } + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + if (model.wasPropertyExplicitlySet("tablespaceName")) { + this.tablespaceName(model.getTablespaceName()); + } + if (model.wasPropertyExplicitlySet("schemaName")) { + this.schemaName(model.getSchemaName()); + } + if (model.wasPropertyExplicitlySet("tableName")) { + this.tableName(model.getTableName()); + } + if (model.wasPropertyExplicitlySet("columnName")) { + this.columnName(model.getColumnName()); + } + if (model.wasPropertyExplicitlySet("encryptionObserved")) { + this.encryptionObserved(model.getEncryptionObserved()); + } + if (model.wasPropertyExplicitlySet("modeObserved")) { + this.modeObserved(model.getModeObserved()); + } + if (model.wasPropertyExplicitlySet("sizeInGBs")) { + this.sizeInGBs(model.getSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("quantumReadiness")) { + this.quantumReadiness(model.getQuantumReadiness()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** OCID of the crypto assessment that discovered the TDE object. */ + @com.fasterxml.jackson.annotation.JsonProperty("assessmentId") + private final String assessmentId; + + /** + * OCID of the crypto assessment that discovered the TDE object. + * + * @return the value + */ + public String getAssessmentId() { + return assessmentId; + } + + /** The date and time the associated crypto assessment was last assessed, in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastAssessed") + private final java.util.Date timeLastAssessed; + + /** + * The date and time the associated crypto assessment was last assessed, in RFC3339 format. + * + * @return the value + */ + public java.util.Date getTimeLastAssessed() { + return timeLastAssessed; + } + + /** OCID of the target database associated with the TDE object. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * OCID of the target database associated with the TDE object. + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** Name of the tablespace. This field is returned when objectType is TABLESPACE. */ + @com.fasterxml.jackson.annotation.JsonProperty("tablespaceName") + private final String tablespaceName; + + /** + * Name of the tablespace. This field is returned when objectType is TABLESPACE. + * + * @return the value + */ + public String getTablespaceName() { + return tablespaceName; + } + + /** + * Name of the schema containing the encrypted column. This field is returned when objectType is + * COLUMN. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schemaName") + private final String schemaName; + + /** + * Name of the schema containing the encrypted column. This field is returned when objectType is + * COLUMN. + * + * @return the value + */ + public String getSchemaName() { + return schemaName; + } + + /** + * Name of the table containing the encrypted column. This field is returned when objectType is + * COLUMN. + */ + @com.fasterxml.jackson.annotation.JsonProperty("tableName") + private final String tableName; + + /** + * Name of the table containing the encrypted column. This field is returned when objectType is + * COLUMN. + * + * @return the value + */ + public String getTableName() { + return tableName; + } + + /** Name of the encrypted column. This field is returned when objectType is COLUMN. */ + @com.fasterxml.jackson.annotation.JsonProperty("columnName") + private final String columnName; + + /** + * Name of the encrypted column. This field is returned when objectType is COLUMN. + * + * @return the value + */ + public String getColumnName() { + return columnName; + } + + /** Encryption algorithm observed for the TDE object. */ + @com.fasterxml.jackson.annotation.JsonProperty("encryptionObserved") + private final String encryptionObserved; + + /** + * Encryption algorithm observed for the TDE object. + * + * @return the value + */ + public String getEncryptionObserved() { + return encryptionObserved; + } + + /** + * Encryption mode observed for the tablespace. This field is returned when objectType is + * TABLESPACE. + */ + @com.fasterxml.jackson.annotation.JsonProperty("modeObserved") + private final String modeObserved; + + /** + * Encryption mode observed for the tablespace. This field is returned when objectType is + * TABLESPACE. + * + * @return the value + */ + public String getModeObserved() { + return modeObserved; + } + + /** Tablespace size in gigabytes. This field is returned when objectType is TABLESPACE. */ + @com.fasterxml.jackson.annotation.JsonProperty("sizeInGBs") + private final Double sizeInGBs; + + /** + * Tablespace size in gigabytes. This field is returned when objectType is TABLESPACE. + * + * @return the value + */ + public Double getSizeInGBs() { + return sizeInGBs; + } + + /** Quantum-readiness classification for the observed TDE object encryption. */ + @com.fasterxml.jackson.annotation.JsonProperty("quantumReadiness") + private final CryptoQuantumReadiness quantumReadiness; + + /** + * Quantum-readiness classification for the observed TDE object encryption. + * + * @return the value + */ + public CryptoQuantumReadiness getQuantumReadiness() { + return quantumReadiness; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CryptoAssessmentTdeObjectSummary("); + sb.append("super=").append(super.toString()); + sb.append("assessmentId=").append(String.valueOf(this.assessmentId)); + sb.append(", timeLastAssessed=").append(String.valueOf(this.timeLastAssessed)); + sb.append(", targetId=").append(String.valueOf(this.targetId)); + sb.append(", tablespaceName=").append(String.valueOf(this.tablespaceName)); + sb.append(", schemaName=").append(String.valueOf(this.schemaName)); + sb.append(", tableName=").append(String.valueOf(this.tableName)); + sb.append(", columnName=").append(String.valueOf(this.columnName)); + sb.append(", encryptionObserved=").append(String.valueOf(this.encryptionObserved)); + sb.append(", modeObserved=").append(String.valueOf(this.modeObserved)); + sb.append(", sizeInGBs=").append(String.valueOf(this.sizeInGBs)); + sb.append(", quantumReadiness=").append(String.valueOf(this.quantumReadiness)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CryptoAssessmentTdeObjectSummary)) { + return false; + } + + CryptoAssessmentTdeObjectSummary other = (CryptoAssessmentTdeObjectSummary) o; + return java.util.Objects.equals(this.assessmentId, other.assessmentId) + && java.util.Objects.equals(this.timeLastAssessed, other.timeLastAssessed) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.tablespaceName, other.tablespaceName) + && java.util.Objects.equals(this.schemaName, other.schemaName) + && java.util.Objects.equals(this.tableName, other.tableName) + && java.util.Objects.equals(this.columnName, other.columnName) + && java.util.Objects.equals(this.encryptionObserved, other.encryptionObserved) + && java.util.Objects.equals(this.modeObserved, other.modeObserved) + && java.util.Objects.equals(this.sizeInGBs, other.sizeInGBs) + && java.util.Objects.equals(this.quantumReadiness, other.quantumReadiness) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.assessmentId == null ? 43 : this.assessmentId.hashCode()); + result = + (result * PRIME) + + (this.timeLastAssessed == null ? 43 : this.timeLastAssessed.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = + (result * PRIME) + + (this.tablespaceName == null ? 43 : this.tablespaceName.hashCode()); + result = (result * PRIME) + (this.schemaName == null ? 43 : this.schemaName.hashCode()); + result = (result * PRIME) + (this.tableName == null ? 43 : this.tableName.hashCode()); + result = (result * PRIME) + (this.columnName == null ? 43 : this.columnName.hashCode()); + result = + (result * PRIME) + + (this.encryptionObserved == null + ? 43 + : this.encryptionObserved.hashCode()); + result = (result * PRIME) + (this.modeObserved == null ? 43 : this.modeObserved.hashCode()); + result = (result * PRIME) + (this.sizeInGBs == null ? 43 : this.sizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.quantumReadiness == null ? 43 : this.quantumReadiness.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentWalletCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentWalletCollection.java new file mode 100644 index 00000000000..e5d0046a0fa --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentWalletCollection.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.datasafe.model; + +/** + * Wallet-specific crypto assessment 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: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CryptoAssessmentWalletCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoAssessmentWalletCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public CryptoAssessmentWalletCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Wallet details for the specified crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Wallet details for the specified crypto assessment. + * + * @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 CryptoAssessmentWalletCollection build() { + CryptoAssessmentWalletCollection model = + new CryptoAssessmentWalletCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoAssessmentWalletCollection 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); + } + + /** Wallet details for the specified crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Wallet details for the specified crypto assessment. + * + * @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("CryptoAssessmentWalletCollection("); + 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 CryptoAssessmentWalletCollection)) { + return false; + } + + CryptoAssessmentWalletCollection other = (CryptoAssessmentWalletCollection) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentWalletSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentWalletSummary.java new file mode 100644 index 00000000000..c4a3bc7093d --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentWalletSummary.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.datasafe.model; + +/** + * Wallet details for one crypto feature.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CryptoAssessmentWalletSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoAssessmentWalletSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "assessmentId", + "timeLastAssessed", + "targetId", + "feature", + "walletLocation", + "autoLogin", + "timeCreated", + "walletEncryptionAlgorithm" + }) + public CryptoAssessmentWalletSummary( + String assessmentId, + java.util.Date timeLastAssessed, + String targetId, + Feature feature, + String walletLocation, + AutoLogin autoLogin, + java.util.Date timeCreated, + String walletEncryptionAlgorithm) { + super(); + this.assessmentId = assessmentId; + this.timeLastAssessed = timeLastAssessed; + this.targetId = targetId; + this.feature = feature; + this.walletLocation = walletLocation; + this.autoLogin = autoLogin; + this.timeCreated = timeCreated; + this.walletEncryptionAlgorithm = walletEncryptionAlgorithm; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** OCID of the crypto assessment that discovered the wallet. */ + @com.fasterxml.jackson.annotation.JsonProperty("assessmentId") + private String assessmentId; + + /** + * OCID of the crypto assessment that discovered the wallet. + * + * @param assessmentId the value to set + * @return this builder + */ + public Builder assessmentId(String assessmentId) { + this.assessmentId = assessmentId; + this.__explicitlySet__.add("assessmentId"); + return this; + } + /** + * The date and time the associated crypto assessment was last assessed, in RFC3339 format. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastAssessed") + private java.util.Date timeLastAssessed; + + /** + * The date and time the associated crypto assessment was last assessed, in RFC3339 format. + * + * @param timeLastAssessed the value to set + * @return this builder + */ + public Builder timeLastAssessed(java.util.Date timeLastAssessed) { + this.timeLastAssessed = timeLastAssessed; + this.__explicitlySet__.add("timeLastAssessed"); + return this; + } + /** OCID of the target database associated with the wallet. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * OCID of the target database associated with the wallet. + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + /** Crypto feature for which wallet details are reported. */ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private Feature feature; + + /** + * Crypto feature for which wallet details are reported. + * + * @param feature the value to set + * @return this builder + */ + public Builder feature(Feature feature) { + this.feature = feature; + this.__explicitlySet__.add("feature"); + return this; + } + /** Wallet path for the feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("walletLocation") + private String walletLocation; + + /** + * Wallet path for the feature. + * + * @param walletLocation the value to set + * @return this builder + */ + public Builder walletLocation(String walletLocation) { + this.walletLocation = walletLocation; + this.__explicitlySet__.add("walletLocation"); + return this; + } + /** Whether wallet auto-login is enabled. */ + @com.fasterxml.jackson.annotation.JsonProperty("autoLogin") + private AutoLogin autoLogin; + + /** + * Whether wallet auto-login is enabled. + * + * @param autoLogin the value to set + * @return this builder + */ + public Builder autoLogin(AutoLogin autoLogin) { + this.autoLogin = autoLogin; + this.__explicitlySet__.add("autoLogin"); + return this; + } + /** Wallet creation time in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * Wallet creation time in RFC3339 format. + * + * @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; + } + /** Wallet encryption algorithm. */ + @com.fasterxml.jackson.annotation.JsonProperty("walletEncryptionAlgorithm") + private String walletEncryptionAlgorithm; + + /** + * Wallet encryption algorithm. + * + * @param walletEncryptionAlgorithm the value to set + * @return this builder + */ + public Builder walletEncryptionAlgorithm(String walletEncryptionAlgorithm) { + this.walletEncryptionAlgorithm = walletEncryptionAlgorithm; + this.__explicitlySet__.add("walletEncryptionAlgorithm"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CryptoAssessmentWalletSummary build() { + CryptoAssessmentWalletSummary model = + new CryptoAssessmentWalletSummary( + this.assessmentId, + this.timeLastAssessed, + this.targetId, + this.feature, + this.walletLocation, + this.autoLogin, + this.timeCreated, + this.walletEncryptionAlgorithm); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoAssessmentWalletSummary model) { + if (model.wasPropertyExplicitlySet("assessmentId")) { + this.assessmentId(model.getAssessmentId()); + } + if (model.wasPropertyExplicitlySet("timeLastAssessed")) { + this.timeLastAssessed(model.getTimeLastAssessed()); + } + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + if (model.wasPropertyExplicitlySet("feature")) { + this.feature(model.getFeature()); + } + if (model.wasPropertyExplicitlySet("walletLocation")) { + this.walletLocation(model.getWalletLocation()); + } + if (model.wasPropertyExplicitlySet("autoLogin")) { + this.autoLogin(model.getAutoLogin()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("walletEncryptionAlgorithm")) { + this.walletEncryptionAlgorithm(model.getWalletEncryptionAlgorithm()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** OCID of the crypto assessment that discovered the wallet. */ + @com.fasterxml.jackson.annotation.JsonProperty("assessmentId") + private final String assessmentId; + + /** + * OCID of the crypto assessment that discovered the wallet. + * + * @return the value + */ + public String getAssessmentId() { + return assessmentId; + } + + /** The date and time the associated crypto assessment was last assessed, in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastAssessed") + private final java.util.Date timeLastAssessed; + + /** + * The date and time the associated crypto assessment was last assessed, in RFC3339 format. + * + * @return the value + */ + public java.util.Date getTimeLastAssessed() { + return timeLastAssessed; + } + + /** OCID of the target database associated with the wallet. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * OCID of the target database associated with the wallet. + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** Crypto feature for which wallet details are reported. */ + public enum Feature implements com.oracle.bmc.http.internal.BmcEnum { + Tde("TDE"), + Tls("TLS"), + Nne("NNE"), + Zdlra("ZDLRA"), + + /** + * 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(Feature.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Feature v : Feature.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Feature(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Feature create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Feature', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Crypto feature for which wallet details are reported. */ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private final Feature feature; + + /** + * Crypto feature for which wallet details are reported. + * + * @return the value + */ + public Feature getFeature() { + return feature; + } + + /** Wallet path for the feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("walletLocation") + private final String walletLocation; + + /** + * Wallet path for the feature. + * + * @return the value + */ + public String getWalletLocation() { + return walletLocation; + } + + /** Whether wallet auto-login is enabled. */ + public enum AutoLogin implements com.oracle.bmc.http.internal.BmcEnum { + Enabled("ENABLED"), + Disabled("DISABLED"), + NotApplicable("NOT_APPLICABLE"), + NotSupported("NOT_SUPPORTED"), + + /** + * 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(AutoLogin.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AutoLogin v : AutoLogin.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AutoLogin(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AutoLogin create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AutoLogin', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Whether wallet auto-login is enabled. */ + @com.fasterxml.jackson.annotation.JsonProperty("autoLogin") + private final AutoLogin autoLogin; + + /** + * Whether wallet auto-login is enabled. + * + * @return the value + */ + public AutoLogin getAutoLogin() { + return autoLogin; + } + + /** Wallet creation time in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * Wallet creation time in RFC3339 format. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** Wallet encryption algorithm. */ + @com.fasterxml.jackson.annotation.JsonProperty("walletEncryptionAlgorithm") + private final String walletEncryptionAlgorithm; + + /** + * Wallet encryption algorithm. + * + * @return the value + */ + public String getWalletEncryptionAlgorithm() { + return walletEncryptionAlgorithm; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CryptoAssessmentWalletSummary("); + sb.append("super=").append(super.toString()); + sb.append("assessmentId=").append(String.valueOf(this.assessmentId)); + sb.append(", timeLastAssessed=").append(String.valueOf(this.timeLastAssessed)); + sb.append(", targetId=").append(String.valueOf(this.targetId)); + sb.append(", feature=").append(String.valueOf(this.feature)); + sb.append(", walletLocation=").append(String.valueOf(this.walletLocation)); + sb.append(", autoLogin=").append(String.valueOf(this.autoLogin)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", walletEncryptionAlgorithm=") + .append(String.valueOf(this.walletEncryptionAlgorithm)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CryptoAssessmentWalletSummary)) { + return false; + } + + CryptoAssessmentWalletSummary other = (CryptoAssessmentWalletSummary) o; + return java.util.Objects.equals(this.assessmentId, other.assessmentId) + && java.util.Objects.equals(this.timeLastAssessed, other.timeLastAssessed) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.feature, other.feature) + && java.util.Objects.equals(this.walletLocation, other.walletLocation) + && java.util.Objects.equals(this.autoLogin, other.autoLogin) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals( + this.walletEncryptionAlgorithm, other.walletEncryptionAlgorithm) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.assessmentId == null ? 43 : this.assessmentId.hashCode()); + result = + (result * PRIME) + + (this.timeLastAssessed == null ? 43 : this.timeLastAssessed.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = (result * PRIME) + (this.feature == null ? 43 : this.feature.hashCode()); + result = + (result * PRIME) + + (this.walletLocation == null ? 43 : this.walletLocation.hashCode()); + result = (result * PRIME) + (this.autoLogin == null ? 43 : this.autoLogin.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = + (result * PRIME) + + (this.walletEncryptionAlgorithm == null + ? 43 + : this.walletEncryptionAlgorithm.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoFeature.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoFeature.java new file mode 100644 index 00000000000..8b812f59d3a --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoFeature.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.datasafe.model; + +/** Crypto feature for which details are reported. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public enum CryptoFeature implements com.oracle.bmc.http.internal.BmcEnum { + Tde("TDE"), + Tls("TLS"), + Nne("NNE"), + + /** + * 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(CryptoFeature.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CryptoFeature v : CryptoFeature.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CryptoFeature(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CryptoFeature create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'CryptoFeature', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoFeatureStatus.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoFeatureStatus.java new file mode 100644 index 00000000000..d7b5f3cacc4 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoFeatureStatus.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** The observed status of a crypto feature. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public enum CryptoFeatureStatus implements com.oracle.bmc.http.internal.BmcEnum { + Enabled("ENABLED"), + Disabled("DISABLED"), + NotConfigured("NOT_CONFIGURED"), + NotAvailable("NOT_AVAILABLE"), + NotApplicable("NOT_APPLICABLE"), + NotSupported("NOT_SUPPORTED"), + + /** + * 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(CryptoFeatureStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CryptoFeatureStatus v : CryptoFeatureStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CryptoFeatureStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CryptoFeatureStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'CryptoFeatureStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoFindingCategory.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoFindingCategory.java new file mode 100644 index 00000000000..7dfe6e7c95a --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoFindingCategory.java @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** + * Category key for crypto findings. These are stable values meant for programmatic use; clients can + * map them to user-facing labels. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public enum CryptoFindingCategory implements com.oracle.bmc.http.internal.BmcEnum { + NetworkEncryption("NETWORK_ENCRYPTION"), + DataEncryption("DATA_ENCRYPTION"), + CertificatesAndKeyManagement("CERTIFICATES_AND_KEY_MANAGEMENT"), + BackupAndExportEncryption("BACKUP_AND_EXPORT_ENCRYPTION"), + PostQuantumReadiness("POST_QUANTUM_READINESS"), + NotSupported("NOT_SUPPORTED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CryptoFindingCategory v : CryptoFindingCategory.values()) { + map.put(v.getValue(), v); + } + } + + CryptoFindingCategory(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CryptoFindingCategory create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid CryptoFindingCategory: " + key); + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoFindingStatus.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoFindingStatus.java new file mode 100644 index 00000000000..df80a131b1f --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoFindingStatus.java @@ -0,0 +1,58 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** Status recorded for a crypto finding. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public enum CryptoFindingStatus implements com.oracle.bmc.http.internal.BmcEnum { + Pass("PASS"), + Fail("FAIL"), + Error("ERROR"), + Evaluate("EVALUATE"), + NotAvailable("NOT_AVAILABLE"), + NotApplicable("NOT_APPLICABLE"), + NotSupported("NOT_SUPPORTED"), + + /** + * 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(CryptoFindingStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CryptoFindingStatus v : CryptoFindingStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CryptoFindingStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CryptoFindingStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'CryptoFindingStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoKeyCacheStatus.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoKeyCacheStatus.java new file mode 100644 index 00000000000..acbe06ef73d --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoKeyCacheStatus.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.datasafe.model; + +/** The key cache status observed for TDE keys. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public enum CryptoKeyCacheStatus implements com.oracle.bmc.http.internal.BmcEnum { + Enabled("ENABLED"), + Disabled("DISABLED"), + NotApplicable("NOT_APPLICABLE"), + NotSupported("NOT_SUPPORTED"), + + /** + * 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(CryptoKeyCacheStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CryptoKeyCacheStatus v : CryptoKeyCacheStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CryptoKeyCacheStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CryptoKeyCacheStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'CryptoKeyCacheStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbProtectionMode.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoKeystoreType.java similarity index 57% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbProtectionMode.java rename to bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoKeystoreType.java index f3e04466e2d..6f835802fb5 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbProtectionMode.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoKeystoreType.java @@ -2,14 +2,19 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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"), +package com.oracle.bmc.datasafe.model; + +/** The type of keystore observed on target. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public enum CryptoKeystoreType implements com.oracle.bmc.http.internal.BmcEnum { + File("FILE"), + Okv("OKV"), + Hsm("HSM"), + NotConfigured("NOT_CONFIGURED"), + NotApplicable("NOT_APPLICABLE"), + NotAvailable("NOT_AVAILABLE"), + Unknown("UNKNOWN"), + NotSupported("NOT_SUPPORTED"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -18,21 +23,21 @@ public enum DistributedDbProtectionMode implements com.oracle.bmc.http.internal. UnknownEnumValue(null); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DistributedDbProtectionMode.class); + org.slf4j.LoggerFactory.getLogger(CryptoKeystoreType.class); private final String value; - private static java.util.Map map; + private static java.util.Map map; static { map = new java.util.HashMap<>(); - for (DistributedDbProtectionMode v : DistributedDbProtectionMode.values()) { + for (CryptoKeystoreType v : CryptoKeystoreType.values()) { if (v != UnknownEnumValue) { map.put(v.getValue(), v); } } } - DistributedDbProtectionMode(String value) { + CryptoKeystoreType(String value) { this.value = value; } @@ -42,12 +47,12 @@ public String getValue() { } @com.fasterxml.jackson.annotation.JsonCreator - public static DistributedDbProtectionMode create(String key) { + public static CryptoKeystoreType create(String key) { if (map.containsKey(key)) { return map.get(key); } LOG.warn( - "Received unknown value '{}' for enum 'DistributedDbProtectionMode', returning UnknownEnumValue", + "Received unknown value '{}' for enum 'CryptoKeystoreType', returning UnknownEnumValue", key); return UnknownEnumValue; } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoNnePosture.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoNnePosture.java new file mode 100644 index 00000000000..4c1c3de0f92 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoNnePosture.java @@ -0,0 +1,511 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** + * Native network encryption posture 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: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = CryptoNnePosture.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoNnePosture + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "status", + "areWeakOptionsAllowed", + "encryptionConfigured", + "integrity", + "serverEncryption", + "serverIntegrity", + "keyExchange", + "quantumReadiness", + "fipsModeConfigured" + }) + public CryptoNnePosture( + CryptoFeatureStatus status, + CryptoObservedBooleanValue areWeakOptionsAllowed, + java.util.List encryptionConfigured, + java.util.List integrity, + ServerEncryption serverEncryption, + java.util.List serverIntegrity, + String keyExchange, + CryptoQuantumReadiness quantumReadiness, + CryptoPosture.FipsModeConfigured fipsModeConfigured) { + super(); + this.status = status; + this.areWeakOptionsAllowed = areWeakOptionsAllowed; + this.encryptionConfigured = encryptionConfigured; + this.integrity = integrity; + this.serverEncryption = serverEncryption; + this.serverIntegrity = serverIntegrity; + this.keyExchange = keyExchange; + this.quantumReadiness = quantumReadiness; + this.fipsModeConfigured = fipsModeConfigured; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** NNE enablement status. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private CryptoFeatureStatus status; + + /** + * NNE enablement status. + * + * @param status the value to set + * @return this builder + */ + public Builder status(CryptoFeatureStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** Indicates if weak NNE options are allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("areWeakOptionsAllowed") + private CryptoObservedBooleanValue areWeakOptionsAllowed; + + /** + * Indicates if weak NNE options are allowed. + * + * @param areWeakOptionsAllowed the value to set + * @return this builder + */ + public Builder areWeakOptionsAllowed(CryptoObservedBooleanValue areWeakOptionsAllowed) { + this.areWeakOptionsAllowed = areWeakOptionsAllowed; + this.__explicitlySet__.add("areWeakOptionsAllowed"); + return this; + } + /** Configured network encryption algorithm. */ + @com.fasterxml.jackson.annotation.JsonProperty("encryptionConfigured") + private java.util.List encryptionConfigured; + + /** + * Configured network encryption algorithm. + * + * @param encryptionConfigured the value to set + * @return this builder + */ + public Builder encryptionConfigured(java.util.List encryptionConfigured) { + this.encryptionConfigured = encryptionConfigured; + this.__explicitlySet__.add("encryptionConfigured"); + return this; + } + /** NNE integrity algorithm(s). */ + @com.fasterxml.jackson.annotation.JsonProperty("integrity") + private java.util.List integrity; + + /** + * NNE integrity algorithm(s). + * + * @param integrity the value to set + * @return this builder + */ + public Builder integrity(java.util.List integrity) { + this.integrity = integrity; + this.__explicitlySet__.add("integrity"); + return this; + } + /** Observed server-side encryption requirement. */ + @com.fasterxml.jackson.annotation.JsonProperty("serverEncryption") + private ServerEncryption serverEncryption; + + /** + * Observed server-side encryption requirement. + * + * @param serverEncryption the value to set + * @return this builder + */ + public Builder serverEncryption(ServerEncryption serverEncryption) { + this.serverEncryption = serverEncryption; + this.__explicitlySet__.add("serverEncryption"); + return this; + } + /** NNE server integrity algorithm(s). */ + @com.fasterxml.jackson.annotation.JsonProperty("serverIntegrity") + private java.util.List serverIntegrity; + + /** + * NNE server integrity algorithm(s). + * + * @param serverIntegrity the value to set + * @return this builder + */ + public Builder serverIntegrity(java.util.List serverIntegrity) { + this.serverIntegrity = serverIntegrity; + this.__explicitlySet__.add("serverIntegrity"); + return this; + } + /** Observed NNE key exchange setting. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyExchange") + private String keyExchange; + + /** + * Observed NNE key exchange setting. + * + * @param keyExchange the value to set + * @return this builder + */ + public Builder keyExchange(String keyExchange) { + this.keyExchange = keyExchange; + this.__explicitlySet__.add("keyExchange"); + return this; + } + /** Quantum-readiness classification for NNE posture. */ + @com.fasterxml.jackson.annotation.JsonProperty("quantumReadiness") + private CryptoQuantumReadiness quantumReadiness; + + /** + * Quantum-readiness classification for NNE posture. + * + * @param quantumReadiness the value to set + * @return this builder + */ + public Builder quantumReadiness(CryptoQuantumReadiness quantumReadiness) { + this.quantumReadiness = quantumReadiness; + this.__explicitlySet__.add("quantumReadiness"); + return this; + } + /** + * FIPS mode configured for NNE when the target uses legacy per-feature FIPS configuration. + */ + @com.fasterxml.jackson.annotation.JsonProperty("fipsModeConfigured") + private CryptoPosture.FipsModeConfigured fipsModeConfigured; + + /** + * FIPS mode configured for NNE when the target uses legacy per-feature FIPS configuration. + * + * @param fipsModeConfigured the value to set + * @return this builder + */ + public Builder fipsModeConfigured(CryptoPosture.FipsModeConfigured fipsModeConfigured) { + this.fipsModeConfigured = fipsModeConfigured; + this.__explicitlySet__.add("fipsModeConfigured"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CryptoNnePosture build() { + CryptoNnePosture model = + new CryptoNnePosture( + this.status, + this.areWeakOptionsAllowed, + this.encryptionConfigured, + this.integrity, + this.serverEncryption, + this.serverIntegrity, + this.keyExchange, + this.quantumReadiness, + this.fipsModeConfigured); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoNnePosture model) { + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("areWeakOptionsAllowed")) { + this.areWeakOptionsAllowed(model.getAreWeakOptionsAllowed()); + } + if (model.wasPropertyExplicitlySet("encryptionConfigured")) { + this.encryptionConfigured(model.getEncryptionConfigured()); + } + if (model.wasPropertyExplicitlySet("integrity")) { + this.integrity(model.getIntegrity()); + } + if (model.wasPropertyExplicitlySet("serverEncryption")) { + this.serverEncryption(model.getServerEncryption()); + } + if (model.wasPropertyExplicitlySet("serverIntegrity")) { + this.serverIntegrity(model.getServerIntegrity()); + } + if (model.wasPropertyExplicitlySet("keyExchange")) { + this.keyExchange(model.getKeyExchange()); + } + if (model.wasPropertyExplicitlySet("quantumReadiness")) { + this.quantumReadiness(model.getQuantumReadiness()); + } + if (model.wasPropertyExplicitlySet("fipsModeConfigured")) { + this.fipsModeConfigured(model.getFipsModeConfigured()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** NNE enablement status. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final CryptoFeatureStatus status; + + /** + * NNE enablement status. + * + * @return the value + */ + public CryptoFeatureStatus getStatus() { + return status; + } + + /** Indicates if weak NNE options are allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("areWeakOptionsAllowed") + private final CryptoObservedBooleanValue areWeakOptionsAllowed; + + /** + * Indicates if weak NNE options are allowed. + * + * @return the value + */ + public CryptoObservedBooleanValue getAreWeakOptionsAllowed() { + return areWeakOptionsAllowed; + } + + /** Configured network encryption algorithm. */ + @com.fasterxml.jackson.annotation.JsonProperty("encryptionConfigured") + private final java.util.List encryptionConfigured; + + /** + * Configured network encryption algorithm. + * + * @return the value + */ + public java.util.List getEncryptionConfigured() { + return encryptionConfigured; + } + + /** NNE integrity algorithm(s). */ + @com.fasterxml.jackson.annotation.JsonProperty("integrity") + private final java.util.List integrity; + + /** + * NNE integrity algorithm(s). + * + * @return the value + */ + public java.util.List getIntegrity() { + return integrity; + } + + /** Observed server-side encryption requirement. */ + public enum ServerEncryption implements com.oracle.bmc.http.internal.BmcEnum { + Required("REQUIRED"), + Requested("REQUESTED"), + Accepted("ACCEPTED"), + Rejected("REJECTED"), + NotSupported("NOT_SUPPORTED"), + + /** + * 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(ServerEncryption.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ServerEncryption v : ServerEncryption.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ServerEncryption(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ServerEncryption create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ServerEncryption', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Observed server-side encryption requirement. */ + @com.fasterxml.jackson.annotation.JsonProperty("serverEncryption") + private final ServerEncryption serverEncryption; + + /** + * Observed server-side encryption requirement. + * + * @return the value + */ + public ServerEncryption getServerEncryption() { + return serverEncryption; + } + + /** NNE server integrity algorithm(s). */ + @com.fasterxml.jackson.annotation.JsonProperty("serverIntegrity") + private final java.util.List serverIntegrity; + + /** + * NNE server integrity algorithm(s). + * + * @return the value + */ + public java.util.List getServerIntegrity() { + return serverIntegrity; + } + + /** Observed NNE key exchange setting. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyExchange") + private final String keyExchange; + + /** + * Observed NNE key exchange setting. + * + * @return the value + */ + public String getKeyExchange() { + return keyExchange; + } + + /** Quantum-readiness classification for NNE posture. */ + @com.fasterxml.jackson.annotation.JsonProperty("quantumReadiness") + private final CryptoQuantumReadiness quantumReadiness; + + /** + * Quantum-readiness classification for NNE posture. + * + * @return the value + */ + public CryptoQuantumReadiness getQuantumReadiness() { + return quantumReadiness; + } + + /** FIPS mode configured for NNE when the target uses legacy per-feature FIPS configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("fipsModeConfigured") + private final CryptoPosture.FipsModeConfigured fipsModeConfigured; + + /** + * FIPS mode configured for NNE when the target uses legacy per-feature FIPS configuration. + * + * @return the value + */ + public CryptoPosture.FipsModeConfigured getFipsModeConfigured() { + return fipsModeConfigured; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CryptoNnePosture("); + sb.append("super=").append(super.toString()); + sb.append("status=").append(String.valueOf(this.status)); + sb.append(", areWeakOptionsAllowed=").append(String.valueOf(this.areWeakOptionsAllowed)); + sb.append(", encryptionConfigured=").append(String.valueOf(this.encryptionConfigured)); + sb.append(", integrity=").append(String.valueOf(this.integrity)); + sb.append(", serverEncryption=").append(String.valueOf(this.serverEncryption)); + sb.append(", serverIntegrity=").append(String.valueOf(this.serverIntegrity)); + sb.append(", keyExchange=").append(String.valueOf(this.keyExchange)); + sb.append(", quantumReadiness=").append(String.valueOf(this.quantumReadiness)); + sb.append(", fipsModeConfigured=").append(String.valueOf(this.fipsModeConfigured)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CryptoNnePosture)) { + return false; + } + + CryptoNnePosture other = (CryptoNnePosture) o; + return java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.areWeakOptionsAllowed, other.areWeakOptionsAllowed) + && java.util.Objects.equals(this.encryptionConfigured, other.encryptionConfigured) + && java.util.Objects.equals(this.integrity, other.integrity) + && java.util.Objects.equals(this.serverEncryption, other.serverEncryption) + && java.util.Objects.equals(this.serverIntegrity, other.serverIntegrity) + && java.util.Objects.equals(this.keyExchange, other.keyExchange) + && java.util.Objects.equals(this.quantumReadiness, other.quantumReadiness) + && java.util.Objects.equals(this.fipsModeConfigured, other.fipsModeConfigured) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.areWeakOptionsAllowed == null + ? 43 + : this.areWeakOptionsAllowed.hashCode()); + result = + (result * PRIME) + + (this.encryptionConfigured == null + ? 43 + : this.encryptionConfigured.hashCode()); + result = (result * PRIME) + (this.integrity == null ? 43 : this.integrity.hashCode()); + result = + (result * PRIME) + + (this.serverEncryption == null ? 43 : this.serverEncryption.hashCode()); + result = + (result * PRIME) + + (this.serverIntegrity == null ? 43 : this.serverIntegrity.hashCode()); + result = (result * PRIME) + (this.keyExchange == null ? 43 : this.keyExchange.hashCode()); + result = + (result * PRIME) + + (this.quantumReadiness == null ? 43 : this.quantumReadiness.hashCode()); + result = + (result * PRIME) + + (this.fipsModeConfigured == null + ? 43 + : this.fipsModeConfigured.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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoObservedBooleanValue.java similarity index 51% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbProtectionMode.java rename to bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoObservedBooleanValue.java index d1a9671aa89..6fe8774f059 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbProtectionMode.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoObservedBooleanValue.java @@ -2,18 +2,17 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.datasafe.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. + * Boolean-like value observed during crypto assessment. NOT_SUPPORTED indicates the value could not + * be determined. */ -@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"), +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public enum CryptoObservedBooleanValue implements com.oracle.bmc.http.internal.BmcEnum { + True("TRUE"), + False("FALSE"), + NotSupported("NOT_SUPPORTED"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -22,22 +21,21 @@ public enum DistributedAutonomousDbProtectionMode implements com.oracle.bmc.http UnknownEnumValue(null); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DistributedAutonomousDbProtectionMode.class); + org.slf4j.LoggerFactory.getLogger(CryptoObservedBooleanValue.class); private final String value; - private static java.util.Map map; + private static java.util.Map map; static { map = new java.util.HashMap<>(); - for (DistributedAutonomousDbProtectionMode v : - DistributedAutonomousDbProtectionMode.values()) { + for (CryptoObservedBooleanValue v : CryptoObservedBooleanValue.values()) { if (v != UnknownEnumValue) { map.put(v.getValue(), v); } } } - DistributedAutonomousDbProtectionMode(String value) { + CryptoObservedBooleanValue(String value) { this.value = value; } @@ -47,12 +45,12 @@ public String getValue() { } @com.fasterxml.jackson.annotation.JsonCreator - public static DistributedAutonomousDbProtectionMode create(String key) { + public static CryptoObservedBooleanValue create(String key) { if (map.containsKey(key)) { return map.get(key); } LOG.warn( - "Received unknown value '{}' for enum 'DistributedAutonomousDbProtectionMode', returning UnknownEnumValue", + "Received unknown value '{}' for enum 'CryptoObservedBooleanValue', returning UnknownEnumValue", key); return UnknownEnumValue; } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoPosture.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoPosture.java new file mode 100644 index 00000000000..b3e0d777a2b --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoPosture.java @@ -0,0 +1,485 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** + * Cryptographic posture details captured by the assessment.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = CryptoPosture.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoPosture extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "tls", + "nne", + "tde", + "networkEncryption", + "fipsStatus", + "fipsModeConfigured", + "backupStatus", + "encryptedBackupPiecesCount", + "unencryptedBackupPiecesCount" + }) + public CryptoPosture( + CryptoTlsPosture tls, + CryptoNnePosture nne, + CryptoTdePosture tde, + java.util.List networkEncryption, + CryptoFeatureStatus fipsStatus, + FipsModeConfigured fipsModeConfigured, + String backupStatus, + Integer encryptedBackupPiecesCount, + Integer unencryptedBackupPiecesCount) { + super(); + this.tls = tls; + this.nne = nne; + this.tde = tde; + this.networkEncryption = networkEncryption; + this.fipsStatus = fipsStatus; + this.fipsModeConfigured = fipsModeConfigured; + this.backupStatus = backupStatus; + this.encryptedBackupPiecesCount = encryptedBackupPiecesCount; + this.unencryptedBackupPiecesCount = unencryptedBackupPiecesCount; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("tls") + private CryptoTlsPosture tls; + + public Builder tls(CryptoTlsPosture tls) { + this.tls = tls; + this.__explicitlySet__.add("tls"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("nne") + private CryptoNnePosture nne; + + public Builder nne(CryptoNnePosture nne) { + this.nne = nne; + this.__explicitlySet__.add("nne"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tde") + private CryptoTdePosture tde; + + public Builder tde(CryptoTdePosture tde) { + this.tde = tde; + this.__explicitlySet__.add("tde"); + return this; + } + /** Network encryption details. */ + @com.fasterxml.jackson.annotation.JsonProperty("networkEncryption") + private java.util.List networkEncryption; + + /** + * Network encryption details. + * + * @param networkEncryption the value to set + * @return this builder + */ + public Builder networkEncryption(java.util.List networkEncryption) { + this.networkEncryption = networkEncryption; + this.__explicitlySet__.add("networkEncryption"); + return this; + } + /** + * Overall FIPS status for the assessment when the target uses common FIPS configuration. + */ + @com.fasterxml.jackson.annotation.JsonProperty("fipsStatus") + private CryptoFeatureStatus fipsStatus; + + /** + * Overall FIPS status for the assessment when the target uses common FIPS configuration. + * + * @param fipsStatus the value to set + * @return this builder + */ + public Builder fipsStatus(CryptoFeatureStatus fipsStatus) { + this.fipsStatus = fipsStatus; + this.__explicitlySet__.add("fipsStatus"); + return this; + } + /** + * Common FIPS mode configured for the assessment when the target uses common FIPS + * configuration. + */ + @com.fasterxml.jackson.annotation.JsonProperty("fipsModeConfigured") + private FipsModeConfigured fipsModeConfigured; + + /** + * Common FIPS mode configured for the assessment when the target uses common FIPS + * configuration. + * + * @param fipsModeConfigured the value to set + * @return this builder + */ + public Builder fipsModeConfigured(FipsModeConfigured fipsModeConfigured) { + this.fipsModeConfigured = fipsModeConfigured; + this.__explicitlySet__.add("fipsModeConfigured"); + return this; + } + /** Backup encryption status observed for the assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupStatus") + private String backupStatus; + + /** + * Backup encryption status observed for the assessment. + * + * @param backupStatus the value to set + * @return this builder + */ + public Builder backupStatus(String backupStatus) { + this.backupStatus = backupStatus; + this.__explicitlySet__.add("backupStatus"); + return this; + } + /** Number of encrypted backup pieces. */ + @com.fasterxml.jackson.annotation.JsonProperty("encryptedBackupPiecesCount") + private Integer encryptedBackupPiecesCount; + + /** + * Number of encrypted backup pieces. + * + * @param encryptedBackupPiecesCount the value to set + * @return this builder + */ + public Builder encryptedBackupPiecesCount(Integer encryptedBackupPiecesCount) { + this.encryptedBackupPiecesCount = encryptedBackupPiecesCount; + this.__explicitlySet__.add("encryptedBackupPiecesCount"); + return this; + } + /** Number of unencrypted backup pieces. */ + @com.fasterxml.jackson.annotation.JsonProperty("unencryptedBackupPiecesCount") + private Integer unencryptedBackupPiecesCount; + + /** + * Number of unencrypted backup pieces. + * + * @param unencryptedBackupPiecesCount the value to set + * @return this builder + */ + public Builder unencryptedBackupPiecesCount(Integer unencryptedBackupPiecesCount) { + this.unencryptedBackupPiecesCount = unencryptedBackupPiecesCount; + this.__explicitlySet__.add("unencryptedBackupPiecesCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CryptoPosture build() { + CryptoPosture model = + new CryptoPosture( + this.tls, + this.nne, + this.tde, + this.networkEncryption, + this.fipsStatus, + this.fipsModeConfigured, + this.backupStatus, + this.encryptedBackupPiecesCount, + this.unencryptedBackupPiecesCount); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoPosture model) { + if (model.wasPropertyExplicitlySet("tls")) { + this.tls(model.getTls()); + } + if (model.wasPropertyExplicitlySet("nne")) { + this.nne(model.getNne()); + } + if (model.wasPropertyExplicitlySet("tde")) { + this.tde(model.getTde()); + } + if (model.wasPropertyExplicitlySet("networkEncryption")) { + this.networkEncryption(model.getNetworkEncryption()); + } + if (model.wasPropertyExplicitlySet("fipsStatus")) { + this.fipsStatus(model.getFipsStatus()); + } + if (model.wasPropertyExplicitlySet("fipsModeConfigured")) { + this.fipsModeConfigured(model.getFipsModeConfigured()); + } + if (model.wasPropertyExplicitlySet("backupStatus")) { + this.backupStatus(model.getBackupStatus()); + } + if (model.wasPropertyExplicitlySet("encryptedBackupPiecesCount")) { + this.encryptedBackupPiecesCount(model.getEncryptedBackupPiecesCount()); + } + if (model.wasPropertyExplicitlySet("unencryptedBackupPiecesCount")) { + this.unencryptedBackupPiecesCount(model.getUnencryptedBackupPiecesCount()); + } + 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("tls") + private final CryptoTlsPosture tls; + + public CryptoTlsPosture getTls() { + return tls; + } + + @com.fasterxml.jackson.annotation.JsonProperty("nne") + private final CryptoNnePosture nne; + + public CryptoNnePosture getNne() { + return nne; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tde") + private final CryptoTdePosture tde; + + public CryptoTdePosture getTde() { + return tde; + } + + /** Network encryption details. */ + @com.fasterxml.jackson.annotation.JsonProperty("networkEncryption") + private final java.util.List networkEncryption; + + /** + * Network encryption details. + * + * @return the value + */ + public java.util.List getNetworkEncryption() { + return networkEncryption; + } + + /** Overall FIPS status for the assessment when the target uses common FIPS configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("fipsStatus") + private final CryptoFeatureStatus fipsStatus; + + /** + * Overall FIPS status for the assessment when the target uses common FIPS configuration. + * + * @return the value + */ + public CryptoFeatureStatus getFipsStatus() { + return fipsStatus; + } + + /** + * Common FIPS mode configured for the assessment when the target uses common FIPS + * configuration. + */ + public enum FipsModeConfigured implements com.oracle.bmc.http.internal.BmcEnum { + Fips1402("FIPS_140_2"), + Fips1403("FIPS_140_3"), + NotConfigured("NOT_CONFIGURED"), + NotApplicable("NOT_APPLICABLE"), + NotSupported("NOT_SUPPORTED"), + + /** + * 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(FipsModeConfigured.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (FipsModeConfigured v : FipsModeConfigured.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + FipsModeConfigured(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static FipsModeConfigured create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'FipsModeConfigured', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Common FIPS mode configured for the assessment when the target uses common FIPS + * configuration. + */ + @com.fasterxml.jackson.annotation.JsonProperty("fipsModeConfigured") + private final FipsModeConfigured fipsModeConfigured; + + /** + * Common FIPS mode configured for the assessment when the target uses common FIPS + * configuration. + * + * @return the value + */ + public FipsModeConfigured getFipsModeConfigured() { + return fipsModeConfigured; + } + + /** Backup encryption status observed for the assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupStatus") + private final String backupStatus; + + /** + * Backup encryption status observed for the assessment. + * + * @return the value + */ + public String getBackupStatus() { + return backupStatus; + } + + /** Number of encrypted backup pieces. */ + @com.fasterxml.jackson.annotation.JsonProperty("encryptedBackupPiecesCount") + private final Integer encryptedBackupPiecesCount; + + /** + * Number of encrypted backup pieces. + * + * @return the value + */ + public Integer getEncryptedBackupPiecesCount() { + return encryptedBackupPiecesCount; + } + + /** Number of unencrypted backup pieces. */ + @com.fasterxml.jackson.annotation.JsonProperty("unencryptedBackupPiecesCount") + private final Integer unencryptedBackupPiecesCount; + + /** + * Number of unencrypted backup pieces. + * + * @return the value + */ + public Integer getUnencryptedBackupPiecesCount() { + return unencryptedBackupPiecesCount; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CryptoPosture("); + sb.append("super=").append(super.toString()); + sb.append("tls=").append(String.valueOf(this.tls)); + sb.append(", nne=").append(String.valueOf(this.nne)); + sb.append(", tde=").append(String.valueOf(this.tde)); + sb.append(", networkEncryption=").append(String.valueOf(this.networkEncryption)); + sb.append(", fipsStatus=").append(String.valueOf(this.fipsStatus)); + sb.append(", fipsModeConfigured=").append(String.valueOf(this.fipsModeConfigured)); + sb.append(", backupStatus=").append(String.valueOf(this.backupStatus)); + sb.append(", encryptedBackupPiecesCount=") + .append(String.valueOf(this.encryptedBackupPiecesCount)); + sb.append(", unencryptedBackupPiecesCount=") + .append(String.valueOf(this.unencryptedBackupPiecesCount)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CryptoPosture)) { + return false; + } + + CryptoPosture other = (CryptoPosture) o; + return java.util.Objects.equals(this.tls, other.tls) + && java.util.Objects.equals(this.nne, other.nne) + && java.util.Objects.equals(this.tde, other.tde) + && java.util.Objects.equals(this.networkEncryption, other.networkEncryption) + && java.util.Objects.equals(this.fipsStatus, other.fipsStatus) + && java.util.Objects.equals(this.fipsModeConfigured, other.fipsModeConfigured) + && java.util.Objects.equals(this.backupStatus, other.backupStatus) + && java.util.Objects.equals( + this.encryptedBackupPiecesCount, other.encryptedBackupPiecesCount) + && java.util.Objects.equals( + this.unencryptedBackupPiecesCount, other.unencryptedBackupPiecesCount) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.tls == null ? 43 : this.tls.hashCode()); + result = (result * PRIME) + (this.nne == null ? 43 : this.nne.hashCode()); + result = (result * PRIME) + (this.tde == null ? 43 : this.tde.hashCode()); + result = + (result * PRIME) + + (this.networkEncryption == null ? 43 : this.networkEncryption.hashCode()); + result = (result * PRIME) + (this.fipsStatus == null ? 43 : this.fipsStatus.hashCode()); + result = + (result * PRIME) + + (this.fipsModeConfigured == null + ? 43 + : this.fipsModeConfigured.hashCode()); + result = (result * PRIME) + (this.backupStatus == null ? 43 : this.backupStatus.hashCode()); + result = + (result * PRIME) + + (this.encryptedBackupPiecesCount == null + ? 43 + : this.encryptedBackupPiecesCount.hashCode()); + result = + (result * PRIME) + + (this.unencryptedBackupPiecesCount == null + ? 43 + : this.unencryptedBackupPiecesCount.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoPostureCategory.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoPostureCategory.java new file mode 100644 index 00000000000..4d9df179e57 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoPostureCategory.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.datasafe.model; + +/** Posture category classification for assessed cryptographic posture. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public enum CryptoPostureCategory implements com.oracle.bmc.http.internal.BmcEnum { + QuantumResistant("QUANTUM_RESISTANT"), + QuantumCapable("QUANTUM_CAPABLE"), + UpgradeRecommended("UPGRADE_RECOMMENDED"), + + /** + * 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(CryptoPostureCategory.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CryptoPostureCategory v : CryptoPostureCategory.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CryptoPostureCategory(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CryptoPostureCategory create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'CryptoPostureCategory', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoQuantumReadiness.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoQuantumReadiness.java new file mode 100644 index 00000000000..c6580084133 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoQuantumReadiness.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.datasafe.model; + +/** Quantum-readiness classification for cryptographic configurations. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public enum CryptoQuantumReadiness implements com.oracle.bmc.http.internal.BmcEnum { + Resistant("RESISTANT"), + NotResistant("NOT_RESISTANT"), + NotAvailable("NOT_AVAILABLE"), + NotApplicable("NOT_APPLICABLE"), + NotSupported("NOT_SUPPORTED"), + + /** + * 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(CryptoQuantumReadiness.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CryptoQuantumReadiness v : CryptoQuantumReadiness.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CryptoQuantumReadiness(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CryptoQuantumReadiness create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'CryptoQuantumReadiness', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoSqlnetParameter.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoSqlnetParameter.java new file mode 100644 index 00000000000..163bfc3cbbc --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoSqlnetParameter.java @@ -0,0 +1,198 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** + * One SQLNET parameter and its evaluated quantum readiness.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CryptoSqlnetParameter.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoSqlnetParameter + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "value", "quantumReadiness"}) + public CryptoSqlnetParameter( + String name, + CryptoSqlnetParameterValue value, + CryptoQuantumReadiness quantumReadiness) { + super(); + this.name = name; + this.value = value; + this.quantumReadiness = quantumReadiness; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** SQLNET parameter name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * SQLNET parameter name. + * + * @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("value") + private CryptoSqlnetParameterValue value; + + public Builder value(CryptoSqlnetParameterValue value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + /** Quantum-readiness classification of this parameter. */ + @com.fasterxml.jackson.annotation.JsonProperty("quantumReadiness") + private CryptoQuantumReadiness quantumReadiness; + + /** + * Quantum-readiness classification of this parameter. + * + * @param quantumReadiness the value to set + * @return this builder + */ + public Builder quantumReadiness(CryptoQuantumReadiness quantumReadiness) { + this.quantumReadiness = quantumReadiness; + this.__explicitlySet__.add("quantumReadiness"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CryptoSqlnetParameter build() { + CryptoSqlnetParameter model = + new CryptoSqlnetParameter(this.name, this.value, this.quantumReadiness); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoSqlnetParameter model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + if (model.wasPropertyExplicitlySet("quantumReadiness")) { + this.quantumReadiness(model.getQuantumReadiness()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** SQLNET parameter name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * SQLNET parameter name. + * + * @return the value + */ + public String getName() { + return name; + } + + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final CryptoSqlnetParameterValue value; + + public CryptoSqlnetParameterValue getValue() { + return value; + } + + /** Quantum-readiness classification of this parameter. */ + @com.fasterxml.jackson.annotation.JsonProperty("quantumReadiness") + private final CryptoQuantumReadiness quantumReadiness; + + /** + * Quantum-readiness classification of this parameter. + * + * @return the value + */ + public CryptoQuantumReadiness getQuantumReadiness() { + return quantumReadiness; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CryptoSqlnetParameter("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(", quantumReadiness=").append(String.valueOf(this.quantumReadiness)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CryptoSqlnetParameter)) { + return false; + } + + CryptoSqlnetParameter other = (CryptoSqlnetParameter) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.value, other.value) + && java.util.Objects.equals(this.quantumReadiness, other.quantumReadiness) + && 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.value == null ? 43 : this.value.hashCode()); + result = + (result * PRIME) + + (this.quantumReadiness == null ? 43 : this.quantumReadiness.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoSqlnetParameterSource.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoSqlnetParameterSource.java new file mode 100644 index 00000000000..0732be9314f --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoSqlnetParameterSource.java @@ -0,0 +1,176 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** + * Source details for SQLNET parameter values.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CryptoSqlnetParameterSource.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoSqlnetParameterSource + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"type"}) + public CryptoSqlnetParameterSource(Type type) { + super(); + this.type = type; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Source type of SQLNET parameter data. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * Source type of SQLNET parameter data. + * + * @param type the value to set + * @return this builder + */ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CryptoSqlnetParameterSource build() { + CryptoSqlnetParameterSource model = new CryptoSqlnetParameterSource(this.type); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoSqlnetParameterSource model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Source type of SQLNET parameter data. */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + SqlnetOra("SQLNET_ORA"), + + /** + * 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; + } + }; + /** Source type of SQLNET parameter data. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * Source type of SQLNET parameter data. + * + * @return the value + */ + public Type getType() { + return type; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CryptoSqlnetParameterSource("); + sb.append("super=").append(super.toString()); + sb.append("type=").append(String.valueOf(this.type)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CryptoSqlnetParameterSource)) { + return false; + } + + CryptoSqlnetParameterSource other = (CryptoSqlnetParameterSource) o; + return java.util.Objects.equals(this.type, other.type) && 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) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoSqlnetParameterValue.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoSqlnetParameterValue.java new file mode 100644 index 00000000000..36e13dc0022 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoSqlnetParameterValue.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.datasafe.model; + +/** + * SQLNET parameter value 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: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CryptoSqlnetParameterValue.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoSqlnetParameterValue + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"type", "value"}) + public CryptoSqlnetParameterValue(Type type, Object value) { + super(); + this.type = type; + this.value = value; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Value type of the SQLNET parameter. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * Value type of the SQLNET parameter. + * + * @param type the value to set + * @return this builder + */ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * Parsed SQLNET parameter value. TEXT returns a string, BOOLEAN returns a boolean, and LIST + * returns an array of strings. + */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private Object value; + + /** + * Parsed SQLNET parameter value. TEXT returns a string, BOOLEAN returns a boolean, and LIST + * returns an array of strings. + * + * @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 CryptoSqlnetParameterValue build() { + CryptoSqlnetParameterValue model = + new CryptoSqlnetParameterValue(this.type, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoSqlnetParameterValue model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + 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); + } + + /** Value type of the SQLNET parameter. */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + Text("TEXT"), + Boolean("BOOLEAN"), + List("LIST"), + + /** + * 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; + } + }; + /** Value type of the SQLNET parameter. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * Value type of the SQLNET parameter. + * + * @return the value + */ + public Type getType() { + return type; + } + + /** + * Parsed SQLNET parameter value. TEXT returns a string, BOOLEAN returns a boolean, and LIST + * returns an array of strings. + */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final Object value; + + /** + * Parsed SQLNET parameter value. TEXT returns a string, BOOLEAN returns a boolean, and LIST + * returns an array of strings. + * + * @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("CryptoSqlnetParameterValue("); + sb.append("super=").append(super.toString()); + sb.append("type=").append(String.valueOf(this.type)); + 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 CryptoSqlnetParameterValue)) { + return false; + } + + CryptoSqlnetParameterValue other = (CryptoSqlnetParameterValue) o; + return java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.value, other.value) + && 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.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoTdePosture.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoTdePosture.java new file mode 100644 index 00000000000..9d35aa9f562 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoTdePosture.java @@ -0,0 +1,725 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** + * Transparent data encryption posture 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: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = CryptoTdePosture.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoTdePosture + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "status", + "encryptionConfigured", + "redoEncryptionObserved", + "dbCredentialsEncryptionObserved", + "integrityConfigured", + "encryptedTablespacesCount", + "unencryptedTablespacesCount", + "masterKeyId", + "walletLocation", + "masterKeyEncryptionAlgorithm", + "timeMasterKeyLastRotation", + "keyStoreType", + "keyCacheStatus", + "fipsModeConfigured", + "quantumReadiness" + }) + public CryptoTdePosture( + CryptoFeatureStatus status, + java.util.List encryptionConfigured, + String redoEncryptionObserved, + String dbCredentialsEncryptionObserved, + java.util.List integrityConfigured, + Integer encryptedTablespacesCount, + Integer unencryptedTablespacesCount, + String masterKeyId, + String walletLocation, + String masterKeyEncryptionAlgorithm, + java.util.Date timeMasterKeyLastRotation, + CryptoKeystoreType keyStoreType, + CryptoKeyCacheStatus keyCacheStatus, + CryptoPosture.FipsModeConfigured fipsModeConfigured, + CryptoQuantumReadiness quantumReadiness) { + super(); + this.status = status; + this.encryptionConfigured = encryptionConfigured; + this.redoEncryptionObserved = redoEncryptionObserved; + this.dbCredentialsEncryptionObserved = dbCredentialsEncryptionObserved; + this.integrityConfigured = integrityConfigured; + this.encryptedTablespacesCount = encryptedTablespacesCount; + this.unencryptedTablespacesCount = unencryptedTablespacesCount; + this.masterKeyId = masterKeyId; + this.walletLocation = walletLocation; + this.masterKeyEncryptionAlgorithm = masterKeyEncryptionAlgorithm; + this.timeMasterKeyLastRotation = timeMasterKeyLastRotation; + this.keyStoreType = keyStoreType; + this.keyCacheStatus = keyCacheStatus; + this.fipsModeConfigured = fipsModeConfigured; + this.quantumReadiness = quantumReadiness; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** TDE enablement status. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private CryptoFeatureStatus status; + + /** + * TDE enablement status. + * + * @param status the value to set + * @return this builder + */ + public Builder status(CryptoFeatureStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** Configured TDE encryption algorithm. */ + @com.fasterxml.jackson.annotation.JsonProperty("encryptionConfigured") + private java.util.List encryptionConfigured; + + /** + * Configured TDE encryption algorithm. + * + * @param encryptionConfigured the value to set + * @return this builder + */ + public Builder encryptionConfigured(java.util.List encryptionConfigured) { + this.encryptionConfigured = encryptionConfigured; + this.__explicitlySet__.add("encryptionConfigured"); + return this; + } + /** Observed redo log encryption algorithm. */ + @com.fasterxml.jackson.annotation.JsonProperty("redoEncryptionObserved") + private String redoEncryptionObserved; + + /** + * Observed redo log encryption algorithm. + * + * @param redoEncryptionObserved the value to set + * @return this builder + */ + public Builder redoEncryptionObserved(String redoEncryptionObserved) { + this.redoEncryptionObserved = redoEncryptionObserved; + this.__explicitlySet__.add("redoEncryptionObserved"); + return this; + } + /** Observed DB credentials encryption algorithm. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbCredentialsEncryptionObserved") + private String dbCredentialsEncryptionObserved; + + /** + * Observed DB credentials encryption algorithm. + * + * @param dbCredentialsEncryptionObserved the value to set + * @return this builder + */ + public Builder dbCredentialsEncryptionObserved(String dbCredentialsEncryptionObserved) { + this.dbCredentialsEncryptionObserved = dbCredentialsEncryptionObserved; + this.__explicitlySet__.add("dbCredentialsEncryptionObserved"); + return this; + } + /** Configured TDE integrity-related setting. */ + @com.fasterxml.jackson.annotation.JsonProperty("integrityConfigured") + private java.util.List integrityConfigured; + + /** + * Configured TDE integrity-related setting. + * + * @param integrityConfigured the value to set + * @return this builder + */ + public Builder integrityConfigured(java.util.List integrityConfigured) { + this.integrityConfigured = integrityConfigured; + this.__explicitlySet__.add("integrityConfigured"); + return this; + } + /** Number of encrypted tablespaces detected. */ + @com.fasterxml.jackson.annotation.JsonProperty("encryptedTablespacesCount") + private Integer encryptedTablespacesCount; + + /** + * Number of encrypted tablespaces detected. + * + * @param encryptedTablespacesCount the value to set + * @return this builder + */ + public Builder encryptedTablespacesCount(Integer encryptedTablespacesCount) { + this.encryptedTablespacesCount = encryptedTablespacesCount; + this.__explicitlySet__.add("encryptedTablespacesCount"); + return this; + } + /** Number of unencrypted tablespaces detected. */ + @com.fasterxml.jackson.annotation.JsonProperty("unencryptedTablespacesCount") + private Integer unencryptedTablespacesCount; + + /** + * Number of unencrypted tablespaces detected. + * + * @param unencryptedTablespacesCount the value to set + * @return this builder + */ + public Builder unencryptedTablespacesCount(Integer unencryptedTablespacesCount) { + this.unencryptedTablespacesCount = unencryptedTablespacesCount; + this.__explicitlySet__.add("unencryptedTablespacesCount"); + return this; + } + /** The observed TDE master key identifier. */ + @com.fasterxml.jackson.annotation.JsonProperty("masterKeyId") + private String masterKeyId; + + /** + * The observed TDE master key identifier. + * + * @param masterKeyId the value to set + * @return this builder + */ + public Builder masterKeyId(String masterKeyId) { + this.masterKeyId = masterKeyId; + this.__explicitlySet__.add("masterKeyId"); + return this; + } + /** The observed wallet location for TDE keys. */ + @com.fasterxml.jackson.annotation.JsonProperty("walletLocation") + private String walletLocation; + + /** + * The observed wallet location for TDE keys. + * + * @param walletLocation the value to set + * @return this builder + */ + public Builder walletLocation(String walletLocation) { + this.walletLocation = walletLocation; + this.__explicitlySet__.add("walletLocation"); + return this; + } + /** The observed encryption algorithm used by the master key. */ + @com.fasterxml.jackson.annotation.JsonProperty("masterKeyEncryptionAlgorithm") + private String masterKeyEncryptionAlgorithm; + + /** + * The observed encryption algorithm used by the master key. + * + * @param masterKeyEncryptionAlgorithm the value to set + * @return this builder + */ + public Builder masterKeyEncryptionAlgorithm(String masterKeyEncryptionAlgorithm) { + this.masterKeyEncryptionAlgorithm = masterKeyEncryptionAlgorithm; + this.__explicitlySet__.add("masterKeyEncryptionAlgorithm"); + return this; + } + /** The last observed rotation time for the TDE master key, in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeMasterKeyLastRotation") + private java.util.Date timeMasterKeyLastRotation; + + /** + * The last observed rotation time for the TDE master key, in RFC3339 format. + * + * @param timeMasterKeyLastRotation the value to set + * @return this builder + */ + public Builder timeMasterKeyLastRotation(java.util.Date timeMasterKeyLastRotation) { + this.timeMasterKeyLastRotation = timeMasterKeyLastRotation; + this.__explicitlySet__.add("timeMasterKeyLastRotation"); + return this; + } + /** The observed TDE key store type. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyStoreType") + private CryptoKeystoreType keyStoreType; + + /** + * The observed TDE key store type. + * + * @param keyStoreType the value to set + * @return this builder + */ + public Builder keyStoreType(CryptoKeystoreType keyStoreType) { + this.keyStoreType = keyStoreType; + this.__explicitlySet__.add("keyStoreType"); + return this; + } + /** The observed TDE key cache status. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyCacheStatus") + private CryptoKeyCacheStatus keyCacheStatus; + + /** + * The observed TDE key cache status. + * + * @param keyCacheStatus the value to set + * @return this builder + */ + public Builder keyCacheStatus(CryptoKeyCacheStatus keyCacheStatus) { + this.keyCacheStatus = keyCacheStatus; + this.__explicitlySet__.add("keyCacheStatus"); + return this; + } + /** + * FIPS mode configured for TDE when the target uses legacy per-feature FIPS configuration. + */ + @com.fasterxml.jackson.annotation.JsonProperty("fipsModeConfigured") + private CryptoPosture.FipsModeConfigured fipsModeConfigured; + + /** + * FIPS mode configured for TDE when the target uses legacy per-feature FIPS configuration. + * + * @param fipsModeConfigured the value to set + * @return this builder + */ + public Builder fipsModeConfigured(CryptoPosture.FipsModeConfigured fipsModeConfigured) { + this.fipsModeConfigured = fipsModeConfigured; + this.__explicitlySet__.add("fipsModeConfigured"); + return this; + } + /** Quantum-readiness classification for TDE posture. */ + @com.fasterxml.jackson.annotation.JsonProperty("quantumReadiness") + private CryptoQuantumReadiness quantumReadiness; + + /** + * Quantum-readiness classification for TDE posture. + * + * @param quantumReadiness the value to set + * @return this builder + */ + public Builder quantumReadiness(CryptoQuantumReadiness quantumReadiness) { + this.quantumReadiness = quantumReadiness; + this.__explicitlySet__.add("quantumReadiness"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CryptoTdePosture build() { + CryptoTdePosture model = + new CryptoTdePosture( + this.status, + this.encryptionConfigured, + this.redoEncryptionObserved, + this.dbCredentialsEncryptionObserved, + this.integrityConfigured, + this.encryptedTablespacesCount, + this.unencryptedTablespacesCount, + this.masterKeyId, + this.walletLocation, + this.masterKeyEncryptionAlgorithm, + this.timeMasterKeyLastRotation, + this.keyStoreType, + this.keyCacheStatus, + this.fipsModeConfigured, + this.quantumReadiness); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoTdePosture model) { + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("encryptionConfigured")) { + this.encryptionConfigured(model.getEncryptionConfigured()); + } + if (model.wasPropertyExplicitlySet("redoEncryptionObserved")) { + this.redoEncryptionObserved(model.getRedoEncryptionObserved()); + } + if (model.wasPropertyExplicitlySet("dbCredentialsEncryptionObserved")) { + this.dbCredentialsEncryptionObserved(model.getDbCredentialsEncryptionObserved()); + } + if (model.wasPropertyExplicitlySet("integrityConfigured")) { + this.integrityConfigured(model.getIntegrityConfigured()); + } + if (model.wasPropertyExplicitlySet("encryptedTablespacesCount")) { + this.encryptedTablespacesCount(model.getEncryptedTablespacesCount()); + } + if (model.wasPropertyExplicitlySet("unencryptedTablespacesCount")) { + this.unencryptedTablespacesCount(model.getUnencryptedTablespacesCount()); + } + if (model.wasPropertyExplicitlySet("masterKeyId")) { + this.masterKeyId(model.getMasterKeyId()); + } + if (model.wasPropertyExplicitlySet("walletLocation")) { + this.walletLocation(model.getWalletLocation()); + } + if (model.wasPropertyExplicitlySet("masterKeyEncryptionAlgorithm")) { + this.masterKeyEncryptionAlgorithm(model.getMasterKeyEncryptionAlgorithm()); + } + if (model.wasPropertyExplicitlySet("timeMasterKeyLastRotation")) { + this.timeMasterKeyLastRotation(model.getTimeMasterKeyLastRotation()); + } + if (model.wasPropertyExplicitlySet("keyStoreType")) { + this.keyStoreType(model.getKeyStoreType()); + } + if (model.wasPropertyExplicitlySet("keyCacheStatus")) { + this.keyCacheStatus(model.getKeyCacheStatus()); + } + if (model.wasPropertyExplicitlySet("fipsModeConfigured")) { + this.fipsModeConfigured(model.getFipsModeConfigured()); + } + if (model.wasPropertyExplicitlySet("quantumReadiness")) { + this.quantumReadiness(model.getQuantumReadiness()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** TDE enablement status. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final CryptoFeatureStatus status; + + /** + * TDE enablement status. + * + * @return the value + */ + public CryptoFeatureStatus getStatus() { + return status; + } + + /** Configured TDE encryption algorithm. */ + @com.fasterxml.jackson.annotation.JsonProperty("encryptionConfigured") + private final java.util.List encryptionConfigured; + + /** + * Configured TDE encryption algorithm. + * + * @return the value + */ + public java.util.List getEncryptionConfigured() { + return encryptionConfigured; + } + + /** Observed redo log encryption algorithm. */ + @com.fasterxml.jackson.annotation.JsonProperty("redoEncryptionObserved") + private final String redoEncryptionObserved; + + /** + * Observed redo log encryption algorithm. + * + * @return the value + */ + public String getRedoEncryptionObserved() { + return redoEncryptionObserved; + } + + /** Observed DB credentials encryption algorithm. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbCredentialsEncryptionObserved") + private final String dbCredentialsEncryptionObserved; + + /** + * Observed DB credentials encryption algorithm. + * + * @return the value + */ + public String getDbCredentialsEncryptionObserved() { + return dbCredentialsEncryptionObserved; + } + + /** Configured TDE integrity-related setting. */ + @com.fasterxml.jackson.annotation.JsonProperty("integrityConfigured") + private final java.util.List integrityConfigured; + + /** + * Configured TDE integrity-related setting. + * + * @return the value + */ + public java.util.List getIntegrityConfigured() { + return integrityConfigured; + } + + /** Number of encrypted tablespaces detected. */ + @com.fasterxml.jackson.annotation.JsonProperty("encryptedTablespacesCount") + private final Integer encryptedTablespacesCount; + + /** + * Number of encrypted tablespaces detected. + * + * @return the value + */ + public Integer getEncryptedTablespacesCount() { + return encryptedTablespacesCount; + } + + /** Number of unencrypted tablespaces detected. */ + @com.fasterxml.jackson.annotation.JsonProperty("unencryptedTablespacesCount") + private final Integer unencryptedTablespacesCount; + + /** + * Number of unencrypted tablespaces detected. + * + * @return the value + */ + public Integer getUnencryptedTablespacesCount() { + return unencryptedTablespacesCount; + } + + /** The observed TDE master key identifier. */ + @com.fasterxml.jackson.annotation.JsonProperty("masterKeyId") + private final String masterKeyId; + + /** + * The observed TDE master key identifier. + * + * @return the value + */ + public String getMasterKeyId() { + return masterKeyId; + } + + /** The observed wallet location for TDE keys. */ + @com.fasterxml.jackson.annotation.JsonProperty("walletLocation") + private final String walletLocation; + + /** + * The observed wallet location for TDE keys. + * + * @return the value + */ + public String getWalletLocation() { + return walletLocation; + } + + /** The observed encryption algorithm used by the master key. */ + @com.fasterxml.jackson.annotation.JsonProperty("masterKeyEncryptionAlgorithm") + private final String masterKeyEncryptionAlgorithm; + + /** + * The observed encryption algorithm used by the master key. + * + * @return the value + */ + public String getMasterKeyEncryptionAlgorithm() { + return masterKeyEncryptionAlgorithm; + } + + /** The last observed rotation time for the TDE master key, in RFC3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeMasterKeyLastRotation") + private final java.util.Date timeMasterKeyLastRotation; + + /** + * The last observed rotation time for the TDE master key, in RFC3339 format. + * + * @return the value + */ + public java.util.Date getTimeMasterKeyLastRotation() { + return timeMasterKeyLastRotation; + } + + /** The observed TDE key store type. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyStoreType") + private final CryptoKeystoreType keyStoreType; + + /** + * The observed TDE key store type. + * + * @return the value + */ + public CryptoKeystoreType getKeyStoreType() { + return keyStoreType; + } + + /** The observed TDE key cache status. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyCacheStatus") + private final CryptoKeyCacheStatus keyCacheStatus; + + /** + * The observed TDE key cache status. + * + * @return the value + */ + public CryptoKeyCacheStatus getKeyCacheStatus() { + return keyCacheStatus; + } + + /** FIPS mode configured for TDE when the target uses legacy per-feature FIPS configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("fipsModeConfigured") + private final CryptoPosture.FipsModeConfigured fipsModeConfigured; + + /** + * FIPS mode configured for TDE when the target uses legacy per-feature FIPS configuration. + * + * @return the value + */ + public CryptoPosture.FipsModeConfigured getFipsModeConfigured() { + return fipsModeConfigured; + } + + /** Quantum-readiness classification for TDE posture. */ + @com.fasterxml.jackson.annotation.JsonProperty("quantumReadiness") + private final CryptoQuantumReadiness quantumReadiness; + + /** + * Quantum-readiness classification for TDE posture. + * + * @return the value + */ + public CryptoQuantumReadiness getQuantumReadiness() { + return quantumReadiness; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CryptoTdePosture("); + sb.append("super=").append(super.toString()); + sb.append("status=").append(String.valueOf(this.status)); + sb.append(", encryptionConfigured=").append(String.valueOf(this.encryptionConfigured)); + sb.append(", redoEncryptionObserved=").append(String.valueOf(this.redoEncryptionObserved)); + sb.append(", dbCredentialsEncryptionObserved=") + .append(String.valueOf(this.dbCredentialsEncryptionObserved)); + sb.append(", integrityConfigured=").append(String.valueOf(this.integrityConfigured)); + sb.append(", encryptedTablespacesCount=") + .append(String.valueOf(this.encryptedTablespacesCount)); + sb.append(", unencryptedTablespacesCount=") + .append(String.valueOf(this.unencryptedTablespacesCount)); + sb.append(", masterKeyId=").append(String.valueOf(this.masterKeyId)); + sb.append(", walletLocation=").append(String.valueOf(this.walletLocation)); + sb.append(", masterKeyEncryptionAlgorithm=") + .append(String.valueOf(this.masterKeyEncryptionAlgorithm)); + sb.append(", timeMasterKeyLastRotation=") + .append(String.valueOf(this.timeMasterKeyLastRotation)); + sb.append(", keyStoreType=").append(String.valueOf(this.keyStoreType)); + sb.append(", keyCacheStatus=").append(String.valueOf(this.keyCacheStatus)); + sb.append(", fipsModeConfigured=").append(String.valueOf(this.fipsModeConfigured)); + sb.append(", quantumReadiness=").append(String.valueOf(this.quantumReadiness)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CryptoTdePosture)) { + return false; + } + + CryptoTdePosture other = (CryptoTdePosture) o; + return java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.encryptionConfigured, other.encryptionConfigured) + && java.util.Objects.equals( + this.redoEncryptionObserved, other.redoEncryptionObserved) + && java.util.Objects.equals( + this.dbCredentialsEncryptionObserved, other.dbCredentialsEncryptionObserved) + && java.util.Objects.equals(this.integrityConfigured, other.integrityConfigured) + && java.util.Objects.equals( + this.encryptedTablespacesCount, other.encryptedTablespacesCount) + && java.util.Objects.equals( + this.unencryptedTablespacesCount, other.unencryptedTablespacesCount) + && java.util.Objects.equals(this.masterKeyId, other.masterKeyId) + && java.util.Objects.equals(this.walletLocation, other.walletLocation) + && java.util.Objects.equals( + this.masterKeyEncryptionAlgorithm, other.masterKeyEncryptionAlgorithm) + && java.util.Objects.equals( + this.timeMasterKeyLastRotation, other.timeMasterKeyLastRotation) + && java.util.Objects.equals(this.keyStoreType, other.keyStoreType) + && java.util.Objects.equals(this.keyCacheStatus, other.keyCacheStatus) + && java.util.Objects.equals(this.fipsModeConfigured, other.fipsModeConfigured) + && java.util.Objects.equals(this.quantumReadiness, other.quantumReadiness) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.encryptionConfigured == null + ? 43 + : this.encryptionConfigured.hashCode()); + result = + (result * PRIME) + + (this.redoEncryptionObserved == null + ? 43 + : this.redoEncryptionObserved.hashCode()); + result = + (result * PRIME) + + (this.dbCredentialsEncryptionObserved == null + ? 43 + : this.dbCredentialsEncryptionObserved.hashCode()); + result = + (result * PRIME) + + (this.integrityConfigured == null + ? 43 + : this.integrityConfigured.hashCode()); + result = + (result * PRIME) + + (this.encryptedTablespacesCount == null + ? 43 + : this.encryptedTablespacesCount.hashCode()); + result = + (result * PRIME) + + (this.unencryptedTablespacesCount == null + ? 43 + : this.unencryptedTablespacesCount.hashCode()); + result = (result * PRIME) + (this.masterKeyId == null ? 43 : this.masterKeyId.hashCode()); + result = + (result * PRIME) + + (this.walletLocation == null ? 43 : this.walletLocation.hashCode()); + result = + (result * PRIME) + + (this.masterKeyEncryptionAlgorithm == null + ? 43 + : this.masterKeyEncryptionAlgorithm.hashCode()); + result = + (result * PRIME) + + (this.timeMasterKeyLastRotation == null + ? 43 + : this.timeMasterKeyLastRotation.hashCode()); + result = (result * PRIME) + (this.keyStoreType == null ? 43 : this.keyStoreType.hashCode()); + result = + (result * PRIME) + + (this.keyCacheStatus == null ? 43 : this.keyCacheStatus.hashCode()); + result = + (result * PRIME) + + (this.fipsModeConfigured == null + ? 43 + : this.fipsModeConfigured.hashCode()); + result = + (result * PRIME) + + (this.quantumReadiness == null ? 43 : this.quantumReadiness.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoTlsPosture.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoTlsPosture.java new file mode 100644 index 00000000000..52d390dac92 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoTlsPosture.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.datasafe.model; + +/** + * TLS posture 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: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = CryptoTlsPosture.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CryptoTlsPosture + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "status", + "versions", + "cipherSuitesConfigured", + "areWeakCipherSuitesAllowed", + "isMtlsConfigured", + "revocationMode", + "fipsModeConfigured", + "walletLocation", + "quantumReadiness" + }) + public CryptoTlsPosture( + CryptoFeatureStatus status, + java.util.List versions, + java.util.List cipherSuitesConfigured, + CryptoObservedBooleanValue areWeakCipherSuitesAllowed, + CryptoObservedBooleanValue isMtlsConfigured, + String revocationMode, + CryptoPosture.FipsModeConfigured fipsModeConfigured, + String walletLocation, + CryptoQuantumReadiness quantumReadiness) { + super(); + this.status = status; + this.versions = versions; + this.cipherSuitesConfigured = cipherSuitesConfigured; + this.areWeakCipherSuitesAllowed = areWeakCipherSuitesAllowed; + this.isMtlsConfigured = isMtlsConfigured; + this.revocationMode = revocationMode; + this.fipsModeConfigured = fipsModeConfigured; + this.walletLocation = walletLocation; + this.quantumReadiness = quantumReadiness; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** TLS enablement status. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private CryptoFeatureStatus status; + + /** + * TLS enablement status. + * + * @param status the value to set + * @return this builder + */ + public Builder status(CryptoFeatureStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** TLS versions configured on target. */ + @com.fasterxml.jackson.annotation.JsonProperty("versions") + private java.util.List versions; + + /** + * TLS versions configured on target. + * + * @param versions the value to set + * @return this builder + */ + public Builder versions(java.util.List versions) { + this.versions = versions; + this.__explicitlySet__.add("versions"); + return this; + } + /** TLS cipher suites configured on target. */ + @com.fasterxml.jackson.annotation.JsonProperty("cipherSuitesConfigured") + private java.util.List cipherSuitesConfigured; + + /** + * TLS cipher suites configured on target. + * + * @param cipherSuitesConfigured the value to set + * @return this builder + */ + public Builder cipherSuitesConfigured(java.util.List cipherSuitesConfigured) { + this.cipherSuitesConfigured = cipherSuitesConfigured; + this.__explicitlySet__.add("cipherSuitesConfigured"); + return this; + } + /** Indicates if weak TLS cipher suites are allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("areWeakCipherSuitesAllowed") + private CryptoObservedBooleanValue areWeakCipherSuitesAllowed; + + /** + * Indicates if weak TLS cipher suites are allowed. + * + * @param areWeakCipherSuitesAllowed the value to set + * @return this builder + */ + public Builder areWeakCipherSuitesAllowed( + CryptoObservedBooleanValue areWeakCipherSuitesAllowed) { + this.areWeakCipherSuitesAllowed = areWeakCipherSuitesAllowed; + this.__explicitlySet__.add("areWeakCipherSuitesAllowed"); + return this; + } + /** Whether TLS client authentication is configured. */ + @com.fasterxml.jackson.annotation.JsonProperty("isMtlsConfigured") + private CryptoObservedBooleanValue isMtlsConfigured; + + /** + * Whether TLS client authentication is configured. + * + * @param isMtlsConfigured the value to set + * @return this builder + */ + public Builder isMtlsConfigured(CryptoObservedBooleanValue isMtlsConfigured) { + this.isMtlsConfigured = isMtlsConfigured; + this.__explicitlySet__.add("isMtlsConfigured"); + return this; + } + /** Certificate revocation checking mode. */ + @com.fasterxml.jackson.annotation.JsonProperty("revocationMode") + private String revocationMode; + + /** + * Certificate revocation checking mode. + * + * @param revocationMode the value to set + * @return this builder + */ + public Builder revocationMode(String revocationMode) { + this.revocationMode = revocationMode; + this.__explicitlySet__.add("revocationMode"); + return this; + } + /** + * FIPS mode configured for TLS when the target uses legacy per-feature FIPS configuration. + */ + @com.fasterxml.jackson.annotation.JsonProperty("fipsModeConfigured") + private CryptoPosture.FipsModeConfigured fipsModeConfigured; + + /** + * FIPS mode configured for TLS when the target uses legacy per-feature FIPS configuration. + * + * @param fipsModeConfigured the value to set + * @return this builder + */ + public Builder fipsModeConfigured(CryptoPosture.FipsModeConfigured fipsModeConfigured) { + this.fipsModeConfigured = fipsModeConfigured; + this.__explicitlySet__.add("fipsModeConfigured"); + return this; + } + /** TLS wallet location observed on target. */ + @com.fasterxml.jackson.annotation.JsonProperty("walletLocation") + private String walletLocation; + + /** + * TLS wallet location observed on target. + * + * @param walletLocation the value to set + * @return this builder + */ + public Builder walletLocation(String walletLocation) { + this.walletLocation = walletLocation; + this.__explicitlySet__.add("walletLocation"); + return this; + } + /** Quantum-readiness classification for TLS posture. */ + @com.fasterxml.jackson.annotation.JsonProperty("quantumReadiness") + private CryptoQuantumReadiness quantumReadiness; + + /** + * Quantum-readiness classification for TLS posture. + * + * @param quantumReadiness the value to set + * @return this builder + */ + public Builder quantumReadiness(CryptoQuantumReadiness quantumReadiness) { + this.quantumReadiness = quantumReadiness; + this.__explicitlySet__.add("quantumReadiness"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CryptoTlsPosture build() { + CryptoTlsPosture model = + new CryptoTlsPosture( + this.status, + this.versions, + this.cipherSuitesConfigured, + this.areWeakCipherSuitesAllowed, + this.isMtlsConfigured, + this.revocationMode, + this.fipsModeConfigured, + this.walletLocation, + this.quantumReadiness); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoTlsPosture model) { + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("versions")) { + this.versions(model.getVersions()); + } + if (model.wasPropertyExplicitlySet("cipherSuitesConfigured")) { + this.cipherSuitesConfigured(model.getCipherSuitesConfigured()); + } + if (model.wasPropertyExplicitlySet("areWeakCipherSuitesAllowed")) { + this.areWeakCipherSuitesAllowed(model.getAreWeakCipherSuitesAllowed()); + } + if (model.wasPropertyExplicitlySet("isMtlsConfigured")) { + this.isMtlsConfigured(model.getIsMtlsConfigured()); + } + if (model.wasPropertyExplicitlySet("revocationMode")) { + this.revocationMode(model.getRevocationMode()); + } + if (model.wasPropertyExplicitlySet("fipsModeConfigured")) { + this.fipsModeConfigured(model.getFipsModeConfigured()); + } + if (model.wasPropertyExplicitlySet("walletLocation")) { + this.walletLocation(model.getWalletLocation()); + } + if (model.wasPropertyExplicitlySet("quantumReadiness")) { + this.quantumReadiness(model.getQuantumReadiness()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** TLS enablement status. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final CryptoFeatureStatus status; + + /** + * TLS enablement status. + * + * @return the value + */ + public CryptoFeatureStatus getStatus() { + return status; + } + + /** TLS versions configured on target. */ + @com.fasterxml.jackson.annotation.JsonProperty("versions") + private final java.util.List versions; + + /** + * TLS versions configured on target. + * + * @return the value + */ + public java.util.List getVersions() { + return versions; + } + + /** TLS cipher suites configured on target. */ + @com.fasterxml.jackson.annotation.JsonProperty("cipherSuitesConfigured") + private final java.util.List cipherSuitesConfigured; + + /** + * TLS cipher suites configured on target. + * + * @return the value + */ + public java.util.List getCipherSuitesConfigured() { + return cipherSuitesConfigured; + } + + /** Indicates if weak TLS cipher suites are allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("areWeakCipherSuitesAllowed") + private final CryptoObservedBooleanValue areWeakCipherSuitesAllowed; + + /** + * Indicates if weak TLS cipher suites are allowed. + * + * @return the value + */ + public CryptoObservedBooleanValue getAreWeakCipherSuitesAllowed() { + return areWeakCipherSuitesAllowed; + } + + /** Whether TLS client authentication is configured. */ + @com.fasterxml.jackson.annotation.JsonProperty("isMtlsConfigured") + private final CryptoObservedBooleanValue isMtlsConfigured; + + /** + * Whether TLS client authentication is configured. + * + * @return the value + */ + public CryptoObservedBooleanValue getIsMtlsConfigured() { + return isMtlsConfigured; + } + + /** Certificate revocation checking mode. */ + @com.fasterxml.jackson.annotation.JsonProperty("revocationMode") + private final String revocationMode; + + /** + * Certificate revocation checking mode. + * + * @return the value + */ + public String getRevocationMode() { + return revocationMode; + } + + /** FIPS mode configured for TLS when the target uses legacy per-feature FIPS configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("fipsModeConfigured") + private final CryptoPosture.FipsModeConfigured fipsModeConfigured; + + /** + * FIPS mode configured for TLS when the target uses legacy per-feature FIPS configuration. + * + * @return the value + */ + public CryptoPosture.FipsModeConfigured getFipsModeConfigured() { + return fipsModeConfigured; + } + + /** TLS wallet location observed on target. */ + @com.fasterxml.jackson.annotation.JsonProperty("walletLocation") + private final String walletLocation; + + /** + * TLS wallet location observed on target. + * + * @return the value + */ + public String getWalletLocation() { + return walletLocation; + } + + /** Quantum-readiness classification for TLS posture. */ + @com.fasterxml.jackson.annotation.JsonProperty("quantumReadiness") + private final CryptoQuantumReadiness quantumReadiness; + + /** + * Quantum-readiness classification for TLS posture. + * + * @return the value + */ + public CryptoQuantumReadiness getQuantumReadiness() { + return quantumReadiness; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CryptoTlsPosture("); + sb.append("super=").append(super.toString()); + sb.append("status=").append(String.valueOf(this.status)); + sb.append(", versions=").append(String.valueOf(this.versions)); + sb.append(", cipherSuitesConfigured=").append(String.valueOf(this.cipherSuitesConfigured)); + sb.append(", areWeakCipherSuitesAllowed=") + .append(String.valueOf(this.areWeakCipherSuitesAllowed)); + sb.append(", isMtlsConfigured=").append(String.valueOf(this.isMtlsConfigured)); + sb.append(", revocationMode=").append(String.valueOf(this.revocationMode)); + sb.append(", fipsModeConfigured=").append(String.valueOf(this.fipsModeConfigured)); + sb.append(", walletLocation=").append(String.valueOf(this.walletLocation)); + sb.append(", quantumReadiness=").append(String.valueOf(this.quantumReadiness)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CryptoTlsPosture)) { + return false; + } + + CryptoTlsPosture other = (CryptoTlsPosture) o; + return java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.versions, other.versions) + && java.util.Objects.equals( + this.cipherSuitesConfigured, other.cipherSuitesConfigured) + && java.util.Objects.equals( + this.areWeakCipherSuitesAllowed, other.areWeakCipherSuitesAllowed) + && java.util.Objects.equals(this.isMtlsConfigured, other.isMtlsConfigured) + && java.util.Objects.equals(this.revocationMode, other.revocationMode) + && java.util.Objects.equals(this.fipsModeConfigured, other.fipsModeConfigured) + && java.util.Objects.equals(this.walletLocation, other.walletLocation) + && java.util.Objects.equals(this.quantumReadiness, other.quantumReadiness) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.versions == null ? 43 : this.versions.hashCode()); + result = + (result * PRIME) + + (this.cipherSuitesConfigured == null + ? 43 + : this.cipherSuitesConfigured.hashCode()); + result = + (result * PRIME) + + (this.areWeakCipherSuitesAllowed == null + ? 43 + : this.areWeakCipherSuitesAllowed.hashCode()); + result = + (result * PRIME) + + (this.isMtlsConfigured == null ? 43 : this.isMtlsConfigured.hashCode()); + result = + (result * PRIME) + + (this.revocationMode == null ? 43 : this.revocationMode.hashCode()); + result = + (result * PRIME) + + (this.fipsModeConfigured == null + ? 43 + : this.fipsModeConfigured.hashCode()); + result = + (result * PRIME) + + (this.walletLocation == null ? 43 : this.walletLocation.hashCode()); + result = + (result * PRIME) + + (this.quantumReadiness == null ? 43 : this.quantumReadiness.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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadCryptoAssessmentReportDetails.java similarity index 53% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbMetadata.java rename to bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadCryptoAssessmentReportDetails.java index 3abd79fe3c2..89edc2f6da7 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbMetadata.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadCryptoAssessmentReportDetails.java @@ -2,10 +2,10 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.datasafe.model; /** - * Additional metadata related to Globally distributed autonomous database resources.
+ * The details used to download a crypto assessment report.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,43 +15,44 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedAutonomousDbMetadata.Builder.class) + builder = DownloadCryptoAssessmentReportDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class DistributedAutonomousDbMetadata +public final class DownloadCryptoAssessmentReportDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"map"}) - public DistributedAutonomousDbMetadata(java.util.Map map) { + @java.beans.ConstructorProperties({"format"}) + public DownloadCryptoAssessmentReportDetails(Format format) { super(); - this.map = map; + this.format = format; } @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; + /** Format of the crypto assessment report. */ + @com.fasterxml.jackson.annotation.JsonProperty("format") + private Format format; /** - * The map containing key-value pair of additional metadata. + * Format of the crypto assessment report. * - * @param map the value to set + * @param format the value to set * @return this builder */ - public Builder map(java.util.Map map) { - this.map = map; - this.__explicitlySet__.add("map"); + public Builder format(Format format) { + this.format = format; + this.__explicitlySet__.add("format"); 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); + public DownloadCryptoAssessmentReportDetails build() { + DownloadCryptoAssessmentReportDetails model = + new DownloadCryptoAssessmentReportDetails(this.format); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -59,9 +60,9 @@ public DistributedAutonomousDbMetadata build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedAutonomousDbMetadata model) { - if (model.wasPropertyExplicitlySet("map")) { - this.map(model.getMap()); + public Builder copy(DownloadCryptoAssessmentReportDetails model) { + if (model.wasPropertyExplicitlySet("format")) { + this.format(model.getFormat()); } return this; } @@ -76,17 +77,50 @@ 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; + /** Format of the crypto assessment report. */ + public enum Format implements com.oracle.bmc.http.internal.BmcEnum { + Pdf("PDF"), + Xls("XLS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Format v : Format.values()) { + map.put(v.getValue(), v); + } + } + + Format(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Format create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Format: " + key); + } + }; + /** Format of the crypto assessment report. */ + @com.fasterxml.jackson.annotation.JsonProperty("format") + private final Format format; /** - * The map containing key-value pair of additional metadata. + * Format of the crypto assessment report. * * @return the value */ - public java.util.Map getMap() { - return map; + public Format getFormat() { + return format; } @Override @@ -102,9 +136,9 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedAutonomousDbMetadata("); + sb.append("DownloadCryptoAssessmentReportDetails("); sb.append("super=").append(super.toString()); - sb.append("map=").append(String.valueOf(this.map)); + sb.append("format=").append(String.valueOf(this.format)); sb.append(")"); return sb.toString(); } @@ -114,19 +148,19 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DistributedAutonomousDbMetadata)) { + if (!(o instanceof DownloadCryptoAssessmentReportDetails)) { return false; } - DistributedAutonomousDbMetadata other = (DistributedAutonomousDbMetadata) o; - return java.util.Objects.equals(this.map, other.map) && super.equals(other); + DownloadCryptoAssessmentReportDetails other = (DownloadCryptoAssessmentReportDetails) o; + return java.util.Objects.equals(this.format, other.format) && 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) + (this.format == null ? 43 : this.format.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateCryptoAssessmentReportDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateCryptoAssessmentReportDetails.java new file mode 100644 index 00000000000..b5919d6d09f --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateCryptoAssessmentReportDetails.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.datasafe.model; + +/** + * The details used to generate a new crypto assessment report.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = GenerateCryptoAssessmentReportDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class GenerateCryptoAssessmentReportDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"format"}) + public GenerateCryptoAssessmentReportDetails(Format format) { + super(); + this.format = format; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Format of the crypto assessment report. */ + @com.fasterxml.jackson.annotation.JsonProperty("format") + private Format format; + + /** + * Format of the crypto assessment report. + * + * @param format the value to set + * @return this builder + */ + public Builder format(Format format) { + this.format = format; + this.__explicitlySet__.add("format"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GenerateCryptoAssessmentReportDetails build() { + GenerateCryptoAssessmentReportDetails model = + new GenerateCryptoAssessmentReportDetails(this.format); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GenerateCryptoAssessmentReportDetails model) { + if (model.wasPropertyExplicitlySet("format")) { + this.format(model.getFormat()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Format of the crypto assessment report. */ + public enum Format implements com.oracle.bmc.http.internal.BmcEnum { + Pdf("PDF"), + Xls("XLS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Format v : Format.values()) { + map.put(v.getValue(), v); + } + } + + Format(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Format create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Format: " + key); + } + }; + /** Format of the crypto assessment report. */ + @com.fasterxml.jackson.annotation.JsonProperty("format") + private final Format format; + + /** + * Format of the crypto assessment report. + * + * @return the value + */ + public Format getFormat() { + return format; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("GenerateCryptoAssessmentReportDetails("); + sb.append("super=").append(super.toString()); + sb.append("format=").append(String.valueOf(this.format)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateCryptoAssessmentReportDetails)) { + return false; + } + + GenerateCryptoAssessmentReportDetails other = (GenerateCryptoAssessmentReportDetails) o; + return java.util.Objects.equals(this.format, other.format) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.format == null ? 43 : this.format.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateOnPremConnectorConfigurationDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateOnPremConnectorConfigurationDetails.java index eb36237c878..8f7bc810204 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateOnPremConnectorConfigurationDetails.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateOnPremConnectorConfigurationDetails.java @@ -33,7 +33,7 @@ public GenerateOnPremConnectorConfigurationDetails(String password) { public static class Builder { /** * The password to encrypt the keys inside the wallet included as part of the configuration. - * The password must be between 12 and 30 characters long and must contain atleast 1 + * The password must be between 15 and 30 characters long and must contain atleast 1 * uppercase, 1 lowercase, 1 numeric, and 1 special character. */ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -41,7 +41,7 @@ public static class Builder { /** * The password to encrypt the keys inside the wallet included as part of the configuration. - * The password must be between 12 and 30 characters long and must contain atleast 1 + * The password must be between 15 and 30 characters long and must contain atleast 1 * uppercase, 1 lowercase, 1 numeric, and 1 special character. * * @param password the value to set @@ -85,7 +85,7 @@ public Builder toBuilder() { /** * The password to encrypt the keys inside the wallet included as part of the configuration. The - * password must be between 12 and 30 characters long and must contain atleast 1 uppercase, 1 + * password must be between 15 and 30 characters long and must contain atleast 1 uppercase, 1 * lowercase, 1 numeric, and 1 special character. */ @com.fasterxml.jackson.annotation.JsonProperty("password") @@ -93,7 +93,7 @@ public Builder toBuilder() { /** * The password to encrypt the keys inside the wallet included as part of the configuration. The - * password must be between 12 and 30 characters long and must contain atleast 1 uppercase, 1 + * password must be between 15 and 30 characters long and must contain atleast 1 uppercase, 1 * lowercase, 1 numeric, and 1 special character. * * @return the value diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ReportDefinition.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ReportDefinition.java index ca960d0c211..ce079c4df57 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ReportDefinition.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ReportDefinition.java @@ -858,6 +858,7 @@ public enum Category implements com.oracle.bmc.http.internal.BmcEnum { Summary("SUMMARY"), ActivityAuditing("ACTIVITY_AUDITING"), SecurityAssessment("SECURITY_ASSESSMENT"), + CryptoAssessment("CRYPTO_ASSESSMENT"), FirewallViolations("FIREWALL_VIOLATIONS"), AllowedSql("ALLOWED_SQL"), diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ReportDefinitionDataSource.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ReportDefinitionDataSource.java index 152b0c074ce..d0a467c2c24 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ReportDefinitionDataSource.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ReportDefinitionDataSource.java @@ -12,6 +12,7 @@ public enum ReportDefinitionDataSource implements com.oracle.bmc.http.internal.B Events("EVENTS"), Alerts("ALERTS"), SecurityAssessment("SECURITY_ASSESSMENT"), + CryptoAssessment("CRYPTO_ASSESSMENT"), Violations("VIOLATIONS"), AllowedSql("ALLOWED_SQL"), diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ReportDefinitionSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ReportDefinitionSummary.java index a53151a2f20..c273ef031d0 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ReportDefinitionSummary.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ReportDefinitionSummary.java @@ -478,6 +478,7 @@ public enum Category implements com.oracle.bmc.http.internal.BmcEnum { Summary("SUMMARY"), ActivityAuditing("ACTIVITY_AUDITING"), SecurityAssessment("SECURITY_ASSESSMENT"), + CryptoAssessment("CRYPTO_ASSESSMENT"), FirewallViolations("FIREWALL_VIOLATIONS"), AllowedSql("ALLOWED_SQL"), diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabasePrivateEndpointDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RunCryptoAssessmentDetails.java similarity index 62% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabasePrivateEndpointDetails.java rename to bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RunCryptoAssessmentDetails.java index c8856482843..24b872cd3c9 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabasePrivateEndpointDetails.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RunCryptoAssessmentDetails.java @@ -2,10 +2,10 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.datasafe.model; /** - * Details required for private endpoint creation.
+ * The details required to create an on-demand saved crypto assessment.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,49 +15,43 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateDistributedDatabasePrivateEndpointDetails.Builder.class) + builder = RunCryptoAssessmentDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CreateDistributedDatabasePrivateEndpointDetails +public final class RunCryptoAssessmentDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ "compartmentId", - "subnetId", "displayName", "description", - "vcnNsgIds", "freeformTags", "definedTags" }) - public CreateDistributedDatabasePrivateEndpointDetails( + public RunCryptoAssessmentDetails( 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. */ + /** This field is ignored when refreshing a crypto assessment. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * Identifier of the compartment where private endpoint is to be created. + * This field is ignored when refreshing a crypto assessment. * * @param compartmentId the value to set * @return this builder @@ -67,27 +61,12 @@ public Builder compartmentId(String 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. */ + /** The display name of the crypto assessment. */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private String displayName; /** - * Private endpoint display name. + * The display name of the crypto assessment. * * @param displayName the value to set * @return this builder @@ -97,12 +76,12 @@ public Builder displayName(String displayName) { this.__explicitlySet__.add("displayName"); return this; } - /** DistributedDatabasePrivateEndpoint description. */ + /** The description of the crypto assessment. */ @com.fasterxml.jackson.annotation.JsonProperty("description") private String description; /** - * DistributedDatabasePrivateEndpoint description. + * The description of the crypto assessment. * * @param description the value to set * @return this builder @@ -113,34 +92,21 @@ public Builder description(String 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. + * 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) * - * @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"}} + *

Example: {@code {"Department": "Finance"}} */ @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"}} + * 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 @@ -151,15 +117,19 @@ public Builder freeformTags(java.util.Map freeformTags) { return this; } /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * 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. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * 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 @@ -174,14 +144,12 @@ public Builder definedTags( @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public CreateDistributedDatabasePrivateEndpointDetails build() { - CreateDistributedDatabasePrivateEndpointDetails model = - new CreateDistributedDatabasePrivateEndpointDetails( + public RunCryptoAssessmentDetails build() { + RunCryptoAssessmentDetails model = + new RunCryptoAssessmentDetails( this.compartmentId, - this.subnetId, this.displayName, this.description, - this.vcnNsgIds, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -191,22 +159,16 @@ public CreateDistributedDatabasePrivateEndpointDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateDistributedDatabasePrivateEndpointDetails model) { + public Builder copy(RunCryptoAssessmentDetails 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()); } @@ -226,12 +188,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Identifier of the compartment where private endpoint is to be created. */ + /** This field is ignored when refreshing a crypto assessment. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * Identifier of the compartment where private endpoint is to be created. + * This field is ignored when refreshing a crypto assessment. * * @return the value */ @@ -239,25 +201,12 @@ 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. */ + /** The display name of the crypto assessment. */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * Private endpoint display name. + * The display name of the crypto assessment. * * @return the value */ @@ -265,12 +214,12 @@ public String getDisplayName() { return displayName; } - /** DistributedDatabasePrivateEndpoint description. */ + /** The description of the crypto assessment. */ @com.fasterxml.jackson.annotation.JsonProperty("description") private final String description; /** - * DistributedDatabasePrivateEndpoint description. + * The description of the crypto assessment. * * @return the value */ @@ -279,30 +228,21 @@ public String getDescription() { } /** - * 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. + * 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) * - * @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"}} + *

Example: {@code {"Department": "Finance"}} */ @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"}} + * 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 */ @@ -311,15 +251,19 @@ public java.util.Map getFreeformTags() { } /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: - * {@code {"foo-namespace": {"bar-key": "value"}}} + * 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. Example: - * {@code {"foo-namespace": {"bar-key": "value"}}} + * 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 */ @@ -340,13 +284,11 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedDatabasePrivateEndpointDetails("); + sb.append("RunCryptoAssessmentDetails("); 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(")"); @@ -358,17 +300,14 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateDistributedDatabasePrivateEndpointDetails)) { + if (!(o instanceof RunCryptoAssessmentDetails)) { return false; } - CreateDistributedDatabasePrivateEndpointDetails other = - (CreateDistributedDatabasePrivateEndpointDetails) o; + RunCryptoAssessmentDetails other = (RunCryptoAssessmentDetails) 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); @@ -381,10 +320,8 @@ public int 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.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(); diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RunSecurityAssessmentDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RunSecurityAssessmentDetails.java index 2e50f435f00..056f120cfd8 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RunSecurityAssessmentDetails.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RunSecurityAssessmentDetails.java @@ -43,12 +43,12 @@ public RunSecurityAssessmentDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The OCID of the compartment that contains the security assessment. */ + /** This field is ignored when refreshing a security assessment. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * The OCID of the compartment that contains the security assessment. + * This field is ignored when refreshing a security assessment. * * @param compartmentId the value to set * @return this builder @@ -166,12 +166,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The OCID of the compartment that contains the security assessment. */ + /** This field is ignored when refreshing a security assessment. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * The OCID of the compartment that contains the security assessment. + * This field is ignored when refreshing a security assessment. * * @return the value */ diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RunUserAssessmentDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RunUserAssessmentDetails.java index 9bbc5c96af7..32833f7a1ee 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RunUserAssessmentDetails.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RunUserAssessmentDetails.java @@ -46,12 +46,12 @@ public RunUserAssessmentDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The OCID of the compartment that contains the user assessment. */ + /** This field is ignored when refreshing a user assessment. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * The OCID of the compartment that contains the user assessment. + * This field is ignored when refreshing a user assessment. * * @param compartmentId the value to set * @return this builder @@ -188,12 +188,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The OCID of the compartment that contains the user assessment. */ + /** This field is ignored when refreshing a user assessment. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * The OCID of the compartment that contains the user assessment. + * This field is ignored when refreshing a user assessment. * * @return the value */ diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateCryptoAssessmentDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateCryptoAssessmentDetails.java new file mode 100644 index 00000000000..2b801284b7e --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateCryptoAssessmentDetails.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.datasafe.model; + +/** + * Updates one or more attributes of the specified crypto assessment.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateCryptoAssessmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateCryptoAssessmentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "schedule", + "isAssessmentScheduled", + "freeformTags", + "definedTags" + }) + public UpdateCryptoAssessmentDetails( + String displayName, + String schedule, + Boolean isAssessmentScheduled, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.schedule = schedule; + this.isAssessmentScheduled = isAssessmentScheduled; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The display name of the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the crypto assessment. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Updates the schedule associated with this latest crypto assessment. The schedule uses the + * format: ; + * + *

For v1, the version-specific schedule format is: + * + * + *

Specify either day-of-week for weekly schedules or day-of-month for monthly schedules. + * Do not specify both. For monthly schedules, day-of-month must be between 1 and 28. If the + * service generates a default monthly schedule for an assessment created on day 29, 30, or + * 31 of a month, it uses day 28. Schedule updates are supported only for assessments of + * type LATEST. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedule") + private String schedule; + + /** + * Updates the schedule associated with this latest crypto assessment. The schedule uses the + * format: ; + * + *

For v1, the version-specific schedule format is: + * + * + *

Specify either day-of-week for weekly schedules or day-of-month for monthly schedules. + * Do not specify both. For monthly schedules, day-of-month must be between 1 and 28. If the + * service generates a default monthly schedule for an assessment created on day 29, 30, or + * 31 of a month, it uses day 28. Schedule updates are supported only for assessments of + * type LATEST. + * + * @param schedule the value to set + * @return this builder + */ + public Builder schedule(String schedule) { + this.schedule = schedule; + this.__explicitlySet__.add("schedule"); + return this; + } + /** + * Indicates whether scheduled execution is active for this latest crypto assessment. When + * set to true, the existing schedule is used unless a new schedule is provided. When set to + * false, the schedule value is retained but scheduled execution is paused. Schedule state + * updates are supported only for assessments of type LATEST. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAssessmentScheduled") + private Boolean isAssessmentScheduled; + + /** + * Indicates whether scheduled execution is active for this latest crypto assessment. When + * set to true, the existing schedule is used unless a new schedule is provided. When set to + * false, the schedule value is retained but scheduled execution is paused. Schedule state + * updates are supported only for assessments of type LATEST. + * + * @param isAssessmentScheduled the value to set + * @return this builder + */ + public Builder isAssessmentScheduled(Boolean isAssessmentScheduled) { + this.isAssessmentScheduled = isAssessmentScheduled; + this.__explicitlySet__.add("isAssessmentScheduled"); + 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 UpdateCryptoAssessmentDetails build() { + UpdateCryptoAssessmentDetails model = + new UpdateCryptoAssessmentDetails( + this.displayName, + this.schedule, + this.isAssessmentScheduled, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateCryptoAssessmentDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("schedule")) { + this.schedule(model.getSchedule()); + } + if (model.wasPropertyExplicitlySet("isAssessmentScheduled")) { + this.isAssessmentScheduled(model.getIsAssessmentScheduled()); + } + 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 display name of the crypto assessment. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the crypto assessment. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * Updates the schedule associated with this latest crypto assessment. The schedule uses the + * format: ; + * + *

For v1, the version-specific schedule format is: + * + * + *

Specify either day-of-week for weekly schedules or day-of-month for monthly schedules. Do + * not specify both. For monthly schedules, day-of-month must be between 1 and 28. If the + * service generates a default monthly schedule for an assessment created on day 29, 30, or 31 + * of a month, it uses day 28. Schedule updates are supported only for assessments of type + * LATEST. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedule") + private final String schedule; + + /** + * Updates the schedule associated with this latest crypto assessment. The schedule uses the + * format: ; + * + *

For v1, the version-specific schedule format is: + * + * + *

Specify either day-of-week for weekly schedules or day-of-month for monthly schedules. Do + * not specify both. For monthly schedules, day-of-month must be between 1 and 28. If the + * service generates a default monthly schedule for an assessment created on day 29, 30, or 31 + * of a month, it uses day 28. Schedule updates are supported only for assessments of type + * LATEST. + * + * @return the value + */ + public String getSchedule() { + return schedule; + } + + /** + * Indicates whether scheduled execution is active for this latest crypto assessment. When set + * to true, the existing schedule is used unless a new schedule is provided. When set to false, + * the schedule value is retained but scheduled execution is paused. Schedule state updates are + * supported only for assessments of type LATEST. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAssessmentScheduled") + private final Boolean isAssessmentScheduled; + + /** + * Indicates whether scheduled execution is active for this latest crypto assessment. When set + * to true, the existing schedule is used unless a new schedule is provided. When set to false, + * the schedule value is retained but scheduled execution is paused. Schedule state updates are + * supported only for assessments of type LATEST. + * + * @return the value + */ + public Boolean getIsAssessmentScheduled() { + return isAssessmentScheduled; + } + + /** + * 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("UpdateCryptoAssessmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", schedule=").append(String.valueOf(this.schedule)); + sb.append(", isAssessmentScheduled=").append(String.valueOf(this.isAssessmentScheduled)); + 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 UpdateCryptoAssessmentDetails)) { + return false; + } + + UpdateCryptoAssessmentDetails other = (UpdateCryptoAssessmentDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.schedule, other.schedule) + && java.util.Objects.equals(this.isAssessmentScheduled, other.isAssessmentScheduled) + && 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.schedule == null ? 43 : this.schedule.hashCode()); + result = + (result * PRIME) + + (this.isAssessmentScheduled == null + ? 43 + : this.isAssessmentScheduled.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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequest.java index 9591364d2ef..18c61f97b9d 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequest.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequest.java @@ -283,6 +283,7 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { UpdateTargetDatabase("UPDATE_TARGET_DATABASE"), ActivateTargetDatabase("ACTIVATE_TARGET_DATABASE"), DeactivateTargetDatabase("DEACTIVATE_TARGET_DATABASE"), + UpdateTargetDatabasePrivilege("UPDATE_TARGET_DATABASE_PRIVILEGE"), DeleteTargetDatabase("DELETE_TARGET_DATABASE"), ChangeTargetDatabaseCompartment("CHANGE_TARGET_DATABASE_COMPARTMENT"), CreatePeerTargetDatabase("CREATE_PEER_TARGET_DATABASE"), @@ -323,6 +324,13 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { SetSecurityAssessmentBaseline("SET_SECURITY_ASSESSMENT_BASELINE"), UnsetSecurityAssessmentBaseline("UNSET_SECURITY_ASSESSMENT_BASELINE"), GenerateSecurityAssessmentReport("GENERATE_SECURITY_ASSESSMENT_REPORT"), + UpdateCryptoAssessment("UPDATE_CRYPTO_ASSESSMENT"), + CreateCryptoAssessment("CREATE_CRYPTO_ASSESSMENT"), + RefreshCryptoAssessment("REFRESH_CRYPTO_ASSESSMENT"), + GenerateCryptoAssessmentReport("GENERATE_CRYPTO_ASSESSMENT_REPORT"), + DownloadCryptoAssessmentReport("DOWNLOAD_CRYPTO_ASSESSMENT_REPORT"), + ChangeCryptoAssessmentCompartment("CHANGE_CRYPTO_ASSESSMENT_COMPARTMENT"), + DeleteCryptoAssessment("DELETE_CRYPTO_ASSESSMENT"), DeleteSqlFirewallAllowedSql("DELETE_SQL_FIREWALL_ALLOWED_SQL"), BulkCreateSqlFirewallAllowedSql("BULK_CREATE_SQL_FIREWALL_ALLOWED_SQL"), BulkDeleteSqlFirewallAllowedSql("BULK_DELETE_SQL_FIREWALL_ALLOWED_SQL"), diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequestResource.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequestResource.java index deb1e2cc95f..ccf60772e87 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequestResource.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequestResource.java @@ -53,18 +53,20 @@ public Builder entityType(String entityType) { } /** * The way in which this resource was affected by the operation that spawned 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. + * request. A resource being created, updated, deleted, or tracked by a nested operation + * will remain in the IN_PROGRESS state until work is complete for that resource at which + * point it will transition to CREATED, UPDATED, DELETED, SUCCEEDED, FAILED, or CANCELED as + * appropriate. */ @com.fasterxml.jackson.annotation.JsonProperty("actionType") private ActionType actionType; /** * The way in which this resource was affected by the operation that spawned 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. + * request. A resource being created, updated, deleted, or tracked by a nested operation + * will remain in the IN_PROGRESS state until work is complete for that resource at which + * point it will transition to CREATED, UPDATED, DELETED, SUCCEEDED, FAILED, or CANCELED as + * appropriate. * * @param actionType the value to set * @return this builder @@ -160,16 +162,18 @@ public String getEntityType() { /** * The way in which this resource was affected by the operation that spawned 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. + * resource being created, updated, deleted, or tracked by a nested operation will remain in the + * IN_PROGRESS state until work is complete for that resource at which point it will transition + * to CREATED, UPDATED, DELETED, SUCCEEDED, FAILED, or CANCELED as appropriate. */ public enum ActionType implements com.oracle.bmc.http.internal.BmcEnum { Created("CREATED"), Updated("UPDATED"), Deleted("DELETED"), InProgress("IN_PROGRESS"), + Succeeded("SUCCEEDED"), Failed("FAILED"), + Canceled("CANCELED"), /** * This value is used if a service returns a value for this enum that is not recognized by @@ -214,18 +218,18 @@ public static ActionType create(String key) { }; /** * The way in which this resource was affected by the operation that spawned 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. + * resource being created, updated, deleted, or tracked by a nested operation will remain in the + * IN_PROGRESS state until work is complete for that resource at which point it will transition + * to CREATED, UPDATED, DELETED, SUCCEEDED, FAILED, or CANCELED as appropriate. */ @com.fasterxml.jackson.annotation.JsonProperty("actionType") private final ActionType actionType; /** * The way in which this resource was affected by the operation that spawned 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. + * resource being created, updated, deleted, or tracked by a nested operation will remain in the + * IN_PROGRESS state until work is complete for that resource at which point it will transition + * to CREATED, UPDATED, DELETED, SUCCEEDED, FAILED, or CANCELED as appropriate. * * @return the value */ diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequestSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequestSummary.java index 1391971bce2..272b64250a9 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequestSummary.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequestSummary.java @@ -289,6 +289,7 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { UpdateTargetDatabase("UPDATE_TARGET_DATABASE"), ActivateTargetDatabase("ACTIVATE_TARGET_DATABASE"), DeactivateTargetDatabase("DEACTIVATE_TARGET_DATABASE"), + UpdateTargetDatabasePrivilege("UPDATE_TARGET_DATABASE_PRIVILEGE"), DeleteTargetDatabase("DELETE_TARGET_DATABASE"), ChangeTargetDatabaseCompartment("CHANGE_TARGET_DATABASE_COMPARTMENT"), CreatePeerTargetDatabase("CREATE_PEER_TARGET_DATABASE"), @@ -322,6 +323,13 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { PatchChecks("PATCH_CHECKS"), UpdateFindingSeverity("UPDATE_FINDING_SEVERITY"), ApplyTemplate("APPLY_TEMPLATE"), + UpdateCryptoAssessment("UPDATE_CRYPTO_ASSESSMENT"), + CreateCryptoAssessment("CREATE_CRYPTO_ASSESSMENT"), + RefreshCryptoAssessment("REFRESH_CRYPTO_ASSESSMENT"), + GenerateCryptoAssessmentReport("GENERATE_CRYPTO_ASSESSMENT_REPORT"), + DownloadCryptoAssessmentReport("DOWNLOAD_CRYPTO_ASSESSMENT_REPORT"), + ChangeCryptoAssessmentCompartment("CHANGE_CRYPTO_ASSESSMENT_COMPARTMENT"), + DeleteCryptoAssessment("DELETE_CRYPTO_ASSESSMENT"), DeleteSqlFirewallAllowedSql("DELETE_SQL_FIREWALL_ALLOWED_SQL"), BulkCreateSqlFirewallAllowedSql("BULK_CREATE_SQL_FIREWALL_ALLOWED_SQL"), BulkDeleteSqlFirewallAllowedSql("BULK_DELETE_SQL_FIREWALL_ALLOWED_SQL"), diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ActivateTargetDatabaseRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ActivateTargetDatabaseRequest.java index 371cdec88bf..d917be184eb 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ActivateTargetDatabaseRequest.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ActivateTargetDatabaseRequest.java @@ -16,6 +16,13 @@ public class ActivateTargetDatabaseRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.datasafe.model.ActivateTargetDatabaseDetails> { + /** The OCID of the Data Safe target database. */ + private String targetDatabaseId; + + /** The OCID of the Data Safe target database. */ + public String getTargetDatabaseId() { + return targetDatabaseId; + } /** The details used to reactivate a target database in Data Safe. */ private com.oracle.bmc.datasafe.model.ActivateTargetDatabaseDetails activateTargetDatabaseDetails; @@ -25,13 +32,6 @@ public class ActivateTargetDatabaseRequest getActivateTargetDatabaseDetails() { return activateTargetDatabaseDetails; } - /** The OCID of the Data Safe target database. */ - private String targetDatabaseId; - - /** The OCID of the Data Safe target database. */ - public String getTargetDatabaseId() { - return targetDatabaseId; - } /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 @@ -94,6 +94,20 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + /** The OCID of the Data Safe target database. */ + private String targetDatabaseId = null; + + /** + * The OCID of the Data Safe target database. + * + * @param targetDatabaseId the value to set + * @return this builder instance + */ + public Builder targetDatabaseId(String targetDatabaseId) { + this.targetDatabaseId = targetDatabaseId; + return this; + } + /** The details used to reactivate a target database in Data Safe. */ private com.oracle.bmc.datasafe.model.ActivateTargetDatabaseDetails activateTargetDatabaseDetails = null; @@ -111,20 +125,6 @@ public Builder activateTargetDatabaseDetails( return this; } - /** The OCID of the Data Safe target database. */ - private String targetDatabaseId = null; - - /** - * The OCID of the Data Safe target database. - * - * @param targetDatabaseId the value to set - * @return this builder instance - */ - public Builder targetDatabaseId(String targetDatabaseId) { - this.targetDatabaseId = targetDatabaseId; - 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 @@ -215,8 +215,8 @@ public Builder retryConfiguration( * @return this builder instance */ public Builder copy(ActivateTargetDatabaseRequest o) { - activateTargetDatabaseDetails(o.getActivateTargetDatabaseDetails()); targetDatabaseId(o.getTargetDatabaseId()); + activateTargetDatabaseDetails(o.getActivateTargetDatabaseDetails()); opcRetryToken(o.getOpcRetryToken()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); @@ -266,13 +266,13 @@ public ActivateTargetDatabaseRequest build() { */ public ActivateTargetDatabaseRequest buildWithoutInvocationCallback() { ActivateTargetDatabaseRequest request = new ActivateTargetDatabaseRequest(); - request.activateTargetDatabaseDetails = activateTargetDatabaseDetails; request.targetDatabaseId = targetDatabaseId; + request.activateTargetDatabaseDetails = activateTargetDatabaseDetails; request.opcRetryToken = opcRetryToken; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; return request; - // new ActivateTargetDatabaseRequest(activateTargetDatabaseDetails, targetDatabaseId, + // new ActivateTargetDatabaseRequest(targetDatabaseId, activateTargetDatabaseDetails, // opcRetryToken, ifMatch, opcRequestId); } } @@ -284,8 +284,8 @@ public ActivateTargetDatabaseRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() - .activateTargetDatabaseDetails(activateTargetDatabaseDetails) .targetDatabaseId(targetDatabaseId) + .activateTargetDatabaseDetails(activateTargetDatabaseDetails) .opcRetryToken(opcRetryToken) .ifMatch(ifMatch) .opcRequestId(opcRequestId); @@ -305,9 +305,9 @@ public String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("("); sb.append("super=").append(super.toString()); + sb.append(",targetDatabaseId=").append(String.valueOf(this.targetDatabaseId)); sb.append(",activateTargetDatabaseDetails=") .append(String.valueOf(this.activateTargetDatabaseDetails)); - sb.append(",targetDatabaseId=").append(String.valueOf(this.targetDatabaseId)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); @@ -326,9 +326,9 @@ public boolean equals(Object o) { ActivateTargetDatabaseRequest other = (ActivateTargetDatabaseRequest) o; return super.equals(o) + && java.util.Objects.equals(this.targetDatabaseId, other.targetDatabaseId) && java.util.Objects.equals( this.activateTargetDatabaseDetails, other.activateTargetDatabaseDetails) - && java.util.Objects.equals(this.targetDatabaseId, other.targetDatabaseId) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); @@ -338,14 +338,14 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.targetDatabaseId == null ? 43 : this.targetDatabaseId.hashCode()); result = (result * PRIME) + (this.activateTargetDatabaseDetails == null ? 43 : this.activateTargetDatabaseDetails.hashCode()); - result = - (result * PRIME) - + (this.targetDatabaseId == null ? 43 : this.targetDatabaseId.hashCode()); result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GenerateDistributedDatabaseWalletRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ChangeCryptoAssessmentCompartmentRequest.java similarity index 61% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GenerateDistributedDatabaseWalletRequest.java rename to bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ChangeCryptoAssessmentCompartmentRequest.java index a7ef7acfa13..2253a2b9024 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GenerateDistributedDatabaseWalletRequest.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ChangeCryptoAssessmentCompartmentRequest.java @@ -2,55 +2,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.requests; +package com.oracle.bmc.datasafe.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.datasafe.model.*; /** * Example: Click here to see how to use - * GenerateDistributedDatabaseWalletRequest. + * ChangeCryptoAssessmentCompartmentRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GenerateDistributedDatabaseWalletRequest +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ChangeCryptoAssessmentCompartmentRequest extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model - .GenerateDistributedDatabaseWalletDetails> { + com.oracle.bmc.datasafe.model.ChangeCryptoAssessmentCompartmentDetails> { - /** Globally distributed database identifier. */ - private String distributedDatabaseId; + /** The OCID of the crypto assessment. */ + private String cryptoAssessmentId; - /** Globally distributed database identifier. */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; + /** The OCID of the crypto assessment. */ + public String getCryptoAssessmentId() { + return cryptoAssessmentId; } - /** Details for generating Globally distributed database wallet. */ - private com.oracle.bmc.distributeddatabasev26.model.GenerateDistributedDatabaseWalletDetails - generateDistributedDatabaseWalletDetails; + /** The details used to change the compartment of a crypto assessment. */ + private com.oracle.bmc.datasafe.model.ChangeCryptoAssessmentCompartmentDetails + changeCryptoAssessmentCompartmentDetails; - /** Details for generating Globally distributed database wallet. */ - public com.oracle.bmc.distributeddatabasev26.model.GenerateDistributedDatabaseWalletDetails - getGenerateDistributedDatabaseWalletDetails() { - return generateDistributedDatabaseWalletDetails; + /** The details used to change the compartment of a crypto assessment. */ + public com.oracle.bmc.datasafe.model.ChangeCryptoAssessmentCompartmentDetails + getChangeCryptoAssessmentCompartmentDetails() { + return changeCryptoAssessmentCompartmentDetails; } - /** The client request ID for tracing. */ + /** Unique identifier for the request. */ private String opcRequestId; - /** The client request ID for tracing. */ + /** Unique identifier for the request. */ 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 + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * if-match parameter to the value of the etag from a previous GET or POST 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 + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * if-match parameter to the value of the etag from a previous GET or POST response for that * resource. The resource will be updated or deleted only if the etag you provide matches the * resource's current etag value. */ @@ -84,56 +83,54 @@ public String getOpcRetryToken() { */ @Override @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model.GenerateDistributedDatabaseWalletDetails - getBody$() { - return generateDistributedDatabaseWalletDetails; + public com.oracle.bmc.datasafe.model.ChangeCryptoAssessmentCompartmentDetails getBody$() { + return changeCryptoAssessmentCompartmentDetails; } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - GenerateDistributedDatabaseWalletRequest, - com.oracle.bmc.distributeddatabasev26.model - .GenerateDistributedDatabaseWalletDetails> { + ChangeCryptoAssessmentCompartmentRequest, + com.oracle.bmc.datasafe.model.ChangeCryptoAssessmentCompartmentDetails> { 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; + /** The OCID of the crypto assessment. */ + private String cryptoAssessmentId = null; /** - * Globally distributed database identifier. + * The OCID of the crypto assessment. * - * @param distributedDatabaseId the value to set + * @param cryptoAssessmentId the value to set * @return this builder instance */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; + public Builder cryptoAssessmentId(String cryptoAssessmentId) { + this.cryptoAssessmentId = cryptoAssessmentId; return this; } - /** Details for generating Globally distributed database wallet. */ - private com.oracle.bmc.distributeddatabasev26.model.GenerateDistributedDatabaseWalletDetails - generateDistributedDatabaseWalletDetails = null; + /** The details used to change the compartment of a crypto assessment. */ + private com.oracle.bmc.datasafe.model.ChangeCryptoAssessmentCompartmentDetails + changeCryptoAssessmentCompartmentDetails = null; /** - * Details for generating Globally distributed database wallet. + * The details used to change the compartment of a crypto assessment. * - * @param generateDistributedDatabaseWalletDetails the value to set + * @param changeCryptoAssessmentCompartmentDetails the value to set * @return this builder instance */ - public Builder generateDistributedDatabaseWalletDetails( - com.oracle.bmc.distributeddatabasev26.model.GenerateDistributedDatabaseWalletDetails - generateDistributedDatabaseWalletDetails) { - this.generateDistributedDatabaseWalletDetails = - generateDistributedDatabaseWalletDetails; + public Builder changeCryptoAssessmentCompartmentDetails( + com.oracle.bmc.datasafe.model.ChangeCryptoAssessmentCompartmentDetails + changeCryptoAssessmentCompartmentDetails) { + this.changeCryptoAssessmentCompartmentDetails = + changeCryptoAssessmentCompartmentDetails; return this; } - /** The client request ID for tracing. */ + /** Unique identifier for the request. */ private String opcRequestId = null; /** - * The client request ID for tracing. + * Unique identifier for the request. * * @param opcRequestId the value to set * @return this builder instance @@ -145,17 +142,17 @@ public Builder opcRequestId(String 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. + * if-match parameter to the value of the etag from a previous GET or POST 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. + * if-match parameter to the value of the etag from a previous GET or POST 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 @@ -218,10 +215,10 @@ public Builder retryConfiguration( * * @return this builder instance */ - public Builder copy(GenerateDistributedDatabaseWalletRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - generateDistributedDatabaseWalletDetails( - o.getGenerateDistributedDatabaseWalletDetails()); + public Builder copy(ChangeCryptoAssessmentCompartmentRequest o) { + cryptoAssessmentId(o.getCryptoAssessmentId()); + changeCryptoAssessmentCompartmentDetails( + o.getChangeCryptoAssessmentCompartmentDetails()); opcRequestId(o.getOpcRequestId()); ifMatch(o.getIfMatch()); opcRetryToken(o.getOpcRetryToken()); @@ -231,7 +228,7 @@ public Builder copy(GenerateDistributedDatabaseWalletRequest o) { } /** - * Build the instance of GenerateDistributedDatabaseWalletRequest as configured by this + * Build the instance of ChangeCryptoAssessmentCompartmentRequest as configured by this * builder * *

Note that this method takes calls to {@link @@ -240,10 +237,10 @@ public Builder copy(GenerateDistributedDatabaseWalletRequest o) { * *

This is the preferred method to build an instance. * - * @return instance of GenerateDistributedDatabaseWalletRequest + * @return instance of ChangeCryptoAssessmentCompartmentRequest */ - public GenerateDistributedDatabaseWalletRequest build() { - GenerateDistributedDatabaseWalletRequest request = buildWithoutInvocationCallback(); + public ChangeCryptoAssessmentCompartmentRequest build() { + ChangeCryptoAssessmentCompartmentRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; @@ -257,34 +254,33 @@ public GenerateDistributedDatabaseWalletRequest build() { */ @com.oracle.bmc.InternalSdk public Builder body$( - com.oracle.bmc.distributeddatabasev26.model.GenerateDistributedDatabaseWalletDetails - body) { - generateDistributedDatabaseWalletDetails(body); + com.oracle.bmc.datasafe.model.ChangeCryptoAssessmentCompartmentDetails body) { + changeCryptoAssessmentCompartmentDetails(body); return this; } /** - * Build the instance of GenerateDistributedDatabaseWalletRequest as configured by this + * Build the instance of ChangeCryptoAssessmentCompartmentRequest 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 + * @return instance of ChangeCryptoAssessmentCompartmentRequest */ - public GenerateDistributedDatabaseWalletRequest buildWithoutInvocationCallback() { - GenerateDistributedDatabaseWalletRequest request = - new GenerateDistributedDatabaseWalletRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.generateDistributedDatabaseWalletDetails = - generateDistributedDatabaseWalletDetails; + public ChangeCryptoAssessmentCompartmentRequest buildWithoutInvocationCallback() { + ChangeCryptoAssessmentCompartmentRequest request = + new ChangeCryptoAssessmentCompartmentRequest(); + request.cryptoAssessmentId = cryptoAssessmentId; + request.changeCryptoAssessmentCompartmentDetails = + changeCryptoAssessmentCompartmentDetails; request.opcRequestId = opcRequestId; request.ifMatch = ifMatch; request.opcRetryToken = opcRetryToken; return request; - // new GenerateDistributedDatabaseWalletRequest(distributedDatabaseId, - // generateDistributedDatabaseWalletDetails, opcRequestId, ifMatch, opcRetryToken); + // new ChangeCryptoAssessmentCompartmentRequest(cryptoAssessmentId, + // changeCryptoAssessmentCompartmentDetails, opcRequestId, ifMatch, opcRetryToken); } } @@ -295,8 +291,8 @@ public GenerateDistributedDatabaseWalletRequest buildWithoutInvocationCallback() */ public Builder toBuilder() { return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .generateDistributedDatabaseWalletDetails(generateDistributedDatabaseWalletDetails) + .cryptoAssessmentId(cryptoAssessmentId) + .changeCryptoAssessmentCompartmentDetails(changeCryptoAssessmentCompartmentDetails) .opcRequestId(opcRequestId) .ifMatch(ifMatch) .opcRetryToken(opcRetryToken); @@ -316,9 +312,9 @@ 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(",cryptoAssessmentId=").append(String.valueOf(this.cryptoAssessmentId)); + sb.append(",changeCryptoAssessmentCompartmentDetails=") + .append(String.valueOf(this.changeCryptoAssessmentCompartmentDetails)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); @@ -331,17 +327,17 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof GenerateDistributedDatabaseWalletRequest)) { + if (!(o instanceof ChangeCryptoAssessmentCompartmentRequest)) { return false; } - GenerateDistributedDatabaseWalletRequest other = - (GenerateDistributedDatabaseWalletRequest) o; + ChangeCryptoAssessmentCompartmentRequest other = + (ChangeCryptoAssessmentCompartmentRequest) o; return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && java.util.Objects.equals(this.cryptoAssessmentId, other.cryptoAssessmentId) && java.util.Objects.equals( - this.generateDistributedDatabaseWalletDetails, - other.generateDistributedDatabaseWalletDetails) + this.changeCryptoAssessmentCompartmentDetails, + other.changeCryptoAssessmentCompartmentDetails) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); @@ -353,14 +349,14 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.distributedDatabaseId == null + + (this.cryptoAssessmentId == null ? 43 - : this.distributedDatabaseId.hashCode()); + : this.cryptoAssessmentId.hashCode()); result = (result * PRIME) - + (this.generateDistributedDatabaseWalletDetails == null + + (this.changeCryptoAssessmentCompartmentDetails == null ? 43 - : this.generateDistributedDatabaseWalletDetails.hashCode()); + : this.changeCryptoAssessmentCompartmentDetails.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); result = diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteCryptoAssessmentRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteCryptoAssessmentRequest.java new file mode 100644 index 00000000000..2aa8d73fe11 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteCryptoAssessmentRequest.java @@ -0,0 +1,243 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use + * DeleteCryptoAssessmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class DeleteCryptoAssessmentRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the crypto assessment. */ + private String cryptoAssessmentId; + + /** The OCID of the crypto assessment. */ + public String getCryptoAssessmentId() { + return cryptoAssessmentId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * if-match parameter to the value of the etag from a previous GET or POST 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteCryptoAssessmentRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the crypto assessment. */ + private String cryptoAssessmentId = null; + + /** + * The OCID of the crypto assessment. + * + * @param cryptoAssessmentId the value to set + * @return this builder instance + */ + public Builder cryptoAssessmentId(String cryptoAssessmentId) { + this.cryptoAssessmentId = cryptoAssessmentId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * if-match parameter to the value of the etag from a previous GET or POST 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 + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches + * the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteCryptoAssessmentRequest o) { + cryptoAssessmentId(o.getCryptoAssessmentId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteCryptoAssessmentRequest 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 DeleteCryptoAssessmentRequest + */ + public DeleteCryptoAssessmentRequest build() { + DeleteCryptoAssessmentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteCryptoAssessmentRequest 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 DeleteCryptoAssessmentRequest + */ + public DeleteCryptoAssessmentRequest buildWithoutInvocationCallback() { + DeleteCryptoAssessmentRequest request = new DeleteCryptoAssessmentRequest(); + request.cryptoAssessmentId = cryptoAssessmentId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteCryptoAssessmentRequest(cryptoAssessmentId, 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() + .cryptoAssessmentId(cryptoAssessmentId) + .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(",cryptoAssessmentId=").append(String.valueOf(this.cryptoAssessmentId)); + 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 DeleteCryptoAssessmentRequest)) { + return false; + } + + DeleteCryptoAssessmentRequest other = (DeleteCryptoAssessmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.cryptoAssessmentId, other.cryptoAssessmentId) + && 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.cryptoAssessmentId == null + ? 43 + : this.cryptoAssessmentId.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedDatabaseRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DownloadCryptoAssessmentReportRequest.java similarity index 62% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedDatabaseRequest.java rename to bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DownloadCryptoAssessmentReportRequest.java index f3d5f43152b..f508df5f043 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedDatabaseRequest.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DownloadCryptoAssessmentReportRequest.java @@ -2,47 +2,47 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.datasafe.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.datasafe.model.*; /** * Example: Click here to see how to use - * PatchDistributedDatabaseRequest. + * DownloadCryptoAssessmentReportRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class PatchDistributedDatabaseRequest +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class DownloadCryptoAssessmentReportRequest extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails> { + com.oracle.bmc.datasafe.model.DownloadCryptoAssessmentReportDetails> { - /** Globally distributed database identifier. */ - private String distributedDatabaseId; + /** The OCID of the crypto assessment. */ + private String cryptoAssessmentId; - /** Globally distributed database identifier. */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; + /** The OCID of the crypto assessment. */ + public String getCryptoAssessmentId() { + return cryptoAssessmentId; } - /** The payload containing instructions to patch the Globally distributed database. */ - private com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails - patchDistributedDatabaseDetails; + /** Details of the report. */ + private com.oracle.bmc.datasafe.model.DownloadCryptoAssessmentReportDetails + downloadCryptoAssessmentReportDetails; - /** The payload containing instructions to patch the Globally distributed database. */ - public com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails - getPatchDistributedDatabaseDetails() { - return patchDistributedDatabaseDetails; + /** Details of the report. */ + public com.oracle.bmc.datasafe.model.DownloadCryptoAssessmentReportDetails + getDownloadCryptoAssessmentReportDetails() { + return downloadCryptoAssessmentReportDetails; } /** - * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code - * if-match} parameter to the value of the etag from a previous GET or POST response for that + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * if-match parameter to the value of the etag from a previous GET or POST 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 + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * if-match parameter to the value of the etag from a previous GET or POST response for that * resource. The resource will be updated or deleted only if the etag you provide matches the * resource's current etag value. */ @@ -68,10 +68,10 @@ public String getIfMatch() { public String getOpcRetryToken() { return opcRetryToken; } - /** The client request ID for tracing. */ + /** Unique identifier for the request. */ private String opcRequestId; - /** The client request ID for tracing. */ + /** Unique identifier for the request. */ public String getOpcRequestId() { return opcRequestId; } @@ -83,61 +83,61 @@ public String getOpcRequestId() { */ @Override @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails getBody$() { - return patchDistributedDatabaseDetails; + public com.oracle.bmc.datasafe.model.DownloadCryptoAssessmentReportDetails getBody$() { + return downloadCryptoAssessmentReportDetails; } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - PatchDistributedDatabaseRequest, - com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails> { + DownloadCryptoAssessmentReportRequest, + com.oracle.bmc.datasafe.model.DownloadCryptoAssessmentReportDetails> { 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; + /** The OCID of the crypto assessment. */ + private String cryptoAssessmentId = null; /** - * Globally distributed database identifier. + * The OCID of the crypto assessment. * - * @param distributedDatabaseId the value to set + * @param cryptoAssessmentId the value to set * @return this builder instance */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; + public Builder cryptoAssessmentId(String cryptoAssessmentId) { + this.cryptoAssessmentId = cryptoAssessmentId; return this; } - /** The payload containing instructions to patch the Globally distributed database. */ - private com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails - patchDistributedDatabaseDetails = null; + /** Details of the report. */ + private com.oracle.bmc.datasafe.model.DownloadCryptoAssessmentReportDetails + downloadCryptoAssessmentReportDetails = null; /** - * The payload containing instructions to patch the Globally distributed database. + * Details of the report. * - * @param patchDistributedDatabaseDetails the value to set + * @param downloadCryptoAssessmentReportDetails the value to set * @return this builder instance */ - public Builder patchDistributedDatabaseDetails( - com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails - patchDistributedDatabaseDetails) { - this.patchDistributedDatabaseDetails = patchDistributedDatabaseDetails; + public Builder downloadCryptoAssessmentReportDetails( + com.oracle.bmc.datasafe.model.DownloadCryptoAssessmentReportDetails + downloadCryptoAssessmentReportDetails) { + this.downloadCryptoAssessmentReportDetails = downloadCryptoAssessmentReportDetails; 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. + * if-match parameter to the value of the etag from a previous GET or POST 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. + * if-match parameter to the value of the etag from a previous GET or POST 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 @@ -171,11 +171,11 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } - /** The client request ID for tracing. */ + /** Unique identifier for the request. */ private String opcRequestId = null; /** - * The client request ID for tracing. + * Unique identifier for the request. * * @param opcRequestId the value to set * @return this builder instance @@ -214,9 +214,9 @@ public Builder retryConfiguration( * * @return this builder instance */ - public Builder copy(PatchDistributedDatabaseRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - patchDistributedDatabaseDetails(o.getPatchDistributedDatabaseDetails()); + public Builder copy(DownloadCryptoAssessmentReportRequest o) { + cryptoAssessmentId(o.getCryptoAssessmentId()); + downloadCryptoAssessmentReportDetails(o.getDownloadCryptoAssessmentReportDetails()); ifMatch(o.getIfMatch()); opcRetryToken(o.getOpcRetryToken()); opcRequestId(o.getOpcRequestId()); @@ -226,7 +226,7 @@ public Builder copy(PatchDistributedDatabaseRequest o) { } /** - * Build the instance of PatchDistributedDatabaseRequest as configured by this builder + * Build the instance of DownloadCryptoAssessmentReportRequest as configured by this builder * *

Note that this method takes calls to {@link * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, @@ -234,10 +234,10 @@ public Builder copy(PatchDistributedDatabaseRequest o) { * *

This is the preferred method to build an instance. * - * @return instance of PatchDistributedDatabaseRequest + * @return instance of DownloadCryptoAssessmentReportRequest */ - public PatchDistributedDatabaseRequest build() { - PatchDistributedDatabaseRequest request = buildWithoutInvocationCallback(); + public DownloadCryptoAssessmentReportRequest build() { + DownloadCryptoAssessmentReportRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; @@ -251,30 +251,31 @@ public PatchDistributedDatabaseRequest build() { */ @com.oracle.bmc.InternalSdk public Builder body$( - com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails body) { - patchDistributedDatabaseDetails(body); + com.oracle.bmc.datasafe.model.DownloadCryptoAssessmentReportDetails body) { + downloadCryptoAssessmentReportDetails(body); return this; } /** - * Build the instance of PatchDistributedDatabaseRequest as configured by this builder + * Build the instance of DownloadCryptoAssessmentReportRequest 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 + * @return instance of DownloadCryptoAssessmentReportRequest */ - public PatchDistributedDatabaseRequest buildWithoutInvocationCallback() { - PatchDistributedDatabaseRequest request = new PatchDistributedDatabaseRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.patchDistributedDatabaseDetails = patchDistributedDatabaseDetails; + public DownloadCryptoAssessmentReportRequest buildWithoutInvocationCallback() { + DownloadCryptoAssessmentReportRequest request = + new DownloadCryptoAssessmentReportRequest(); + request.cryptoAssessmentId = cryptoAssessmentId; + request.downloadCryptoAssessmentReportDetails = downloadCryptoAssessmentReportDetails; request.ifMatch = ifMatch; request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; return request; - // new PatchDistributedDatabaseRequest(distributedDatabaseId, - // patchDistributedDatabaseDetails, ifMatch, opcRetryToken, opcRequestId); + // new DownloadCryptoAssessmentReportRequest(cryptoAssessmentId, + // downloadCryptoAssessmentReportDetails, ifMatch, opcRetryToken, opcRequestId); } } @@ -285,8 +286,8 @@ public PatchDistributedDatabaseRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .patchDistributedDatabaseDetails(patchDistributedDatabaseDetails) + .cryptoAssessmentId(cryptoAssessmentId) + .downloadCryptoAssessmentReportDetails(downloadCryptoAssessmentReportDetails) .ifMatch(ifMatch) .opcRetryToken(opcRetryToken) .opcRequestId(opcRequestId); @@ -306,9 +307,9 @@ 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(",cryptoAssessmentId=").append(String.valueOf(this.cryptoAssessmentId)); + sb.append(",downloadCryptoAssessmentReportDetails=") + .append(String.valueOf(this.downloadCryptoAssessmentReportDetails)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); @@ -321,15 +322,16 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof PatchDistributedDatabaseRequest)) { + if (!(o instanceof DownloadCryptoAssessmentReportRequest)) { return false; } - PatchDistributedDatabaseRequest other = (PatchDistributedDatabaseRequest) o; + DownloadCryptoAssessmentReportRequest other = (DownloadCryptoAssessmentReportRequest) o; return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && java.util.Objects.equals(this.cryptoAssessmentId, other.cryptoAssessmentId) && java.util.Objects.equals( - this.patchDistributedDatabaseDetails, other.patchDistributedDatabaseDetails) + this.downloadCryptoAssessmentReportDetails, + other.downloadCryptoAssessmentReportDetails) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); @@ -341,14 +343,14 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.distributedDatabaseId == null + + (this.cryptoAssessmentId == null ? 43 - : this.distributedDatabaseId.hashCode()); + : this.cryptoAssessmentId.hashCode()); result = (result * PRIME) - + (this.patchDistributedDatabaseDetails == null + + (this.downloadCryptoAssessmentReportDetails == null ? 43 - : this.patchDistributedDatabaseDetails.hashCode()); + : this.downloadCryptoAssessmentReportDetails.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); result = (result * PRIME) diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDbBackupConfigRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GenerateCryptoAssessmentReportRequest.java similarity index 60% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDbBackupConfigRequest.java rename to bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GenerateCryptoAssessmentReportRequest.java index 17a548ea25a..1e075e647f2 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDbBackupConfigRequest.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GenerateCryptoAssessmentReportRequest.java @@ -2,55 +2,47 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.datasafe.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.datasafe.model.*; /** * Example: Click here to see how to use - * ChangeDistributedDbBackupConfigRequest. + * GenerateCryptoAssessmentReportRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ChangeDistributedDbBackupConfigRequest +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GenerateCryptoAssessmentReportRequest extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model - .ChangeDistributedDbBackupConfigDetails> { + com.oracle.bmc.datasafe.model.GenerateCryptoAssessmentReportDetails> { - /** Globally distributed database identifier. */ - private String distributedDatabaseId; + /** The OCID of the crypto assessment. */ + private String cryptoAssessmentId; - /** Globally distributed database identifier. */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; + /** The OCID of the crypto assessment. */ + public String getCryptoAssessmentId() { + return cryptoAssessmentId; } - /** Details of the DistributedDbBackupConfig for the Globally distributed database. */ - private com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDbBackupConfigDetails - changeDistributedDbBackupConfigDetails; + /** Details of the report. */ + private com.oracle.bmc.datasafe.model.GenerateCryptoAssessmentReportDetails + generateCryptoAssessmentReportDetails; - /** 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; + /** Details of the report. */ + public com.oracle.bmc.datasafe.model.GenerateCryptoAssessmentReportDetails + getGenerateCryptoAssessmentReportDetails() { + return generateCryptoAssessmentReportDetails; } /** - * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code - * if-match} parameter to the value of the etag from a previous GET or POST response for that + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * if-match parameter to the value of the etag from a previous GET or POST 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 + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * if-match parameter to the value of the etag from a previous GET or POST response for that * resource. The resource will be updated or deleted only if the etag you provide matches the * resource's current etag value. */ @@ -76,6 +68,13 @@ public String getIfMatch() { public String getOpcRetryToken() { return opcRetryToken; } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } /** * Alternative accessor for the body parameter. @@ -84,77 +83,61 @@ public String getOpcRetryToken() { */ @Override @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDbBackupConfigDetails - getBody$() { - return changeDistributedDbBackupConfigDetails; + public com.oracle.bmc.datasafe.model.GenerateCryptoAssessmentReportDetails getBody$() { + return generateCryptoAssessmentReportDetails; } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - ChangeDistributedDbBackupConfigRequest, - com.oracle.bmc.distributeddatabasev26.model - .ChangeDistributedDbBackupConfigDetails> { + GenerateCryptoAssessmentReportRequest, + com.oracle.bmc.datasafe.model.GenerateCryptoAssessmentReportDetails> { 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; + /** The OCID of the crypto assessment. */ + private String cryptoAssessmentId = null; /** - * Globally distributed database identifier. + * The OCID of the crypto assessment. * - * @param distributedDatabaseId the value to set + * @param cryptoAssessmentId the value to set * @return this builder instance */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; + public Builder cryptoAssessmentId(String cryptoAssessmentId) { + this.cryptoAssessmentId = cryptoAssessmentId; return this; } - /** Details of the DistributedDbBackupConfig for the Globally distributed database. */ - private com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDbBackupConfigDetails - changeDistributedDbBackupConfigDetails = null; + /** Details of the report. */ + private com.oracle.bmc.datasafe.model.GenerateCryptoAssessmentReportDetails + generateCryptoAssessmentReportDetails = null; /** - * Details of the DistributedDbBackupConfig for the Globally distributed database. + * Details of the report. * - * @param changeDistributedDbBackupConfigDetails the value to set + * @param generateCryptoAssessmentReportDetails 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; + public Builder generateCryptoAssessmentReportDetails( + com.oracle.bmc.datasafe.model.GenerateCryptoAssessmentReportDetails + generateCryptoAssessmentReportDetails) { + this.generateCryptoAssessmentReportDetails = generateCryptoAssessmentReportDetails; 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. + * if-match parameter to the value of the etag from a previous GET or POST 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. + * if-match parameter to the value of the etag from a previous GET or POST 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 @@ -188,6 +171,20 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -217,20 +214,19 @@ public Builder retryConfiguration( * * @return this builder instance */ - public Builder copy(ChangeDistributedDbBackupConfigRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - changeDistributedDbBackupConfigDetails(o.getChangeDistributedDbBackupConfigDetails()); - opcRequestId(o.getOpcRequestId()); + public Builder copy(GenerateCryptoAssessmentReportRequest o) { + cryptoAssessmentId(o.getCryptoAssessmentId()); + generateCryptoAssessmentReportDetails(o.getGenerateCryptoAssessmentReportDetails()); ifMatch(o.getIfMatch()); opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; } /** - * Build the instance of ChangeDistributedDbBackupConfigRequest as configured by this - * builder + * Build the instance of GenerateCryptoAssessmentReportRequest as configured by this builder * *

Note that this method takes calls to {@link * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, @@ -238,10 +234,10 @@ public Builder copy(ChangeDistributedDbBackupConfigRequest o) { * *

This is the preferred method to build an instance. * - * @return instance of ChangeDistributedDbBackupConfigRequest + * @return instance of GenerateCryptoAssessmentReportRequest */ - public ChangeDistributedDbBackupConfigRequest build() { - ChangeDistributedDbBackupConfigRequest request = buildWithoutInvocationCallback(); + public GenerateCryptoAssessmentReportRequest build() { + GenerateCryptoAssessmentReportRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; @@ -255,33 +251,31 @@ public ChangeDistributedDbBackupConfigRequest build() { */ @com.oracle.bmc.InternalSdk public Builder body$( - com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDbBackupConfigDetails - body) { - changeDistributedDbBackupConfigDetails(body); + com.oracle.bmc.datasafe.model.GenerateCryptoAssessmentReportDetails body) { + generateCryptoAssessmentReportDetails(body); return this; } /** - * Build the instance of ChangeDistributedDbBackupConfigRequest as configured by this - * builder + * Build the instance of GenerateCryptoAssessmentReportRequest 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 + * @return instance of GenerateCryptoAssessmentReportRequest */ - public ChangeDistributedDbBackupConfigRequest buildWithoutInvocationCallback() { - ChangeDistributedDbBackupConfigRequest request = - new ChangeDistributedDbBackupConfigRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.changeDistributedDbBackupConfigDetails = changeDistributedDbBackupConfigDetails; - request.opcRequestId = opcRequestId; + public GenerateCryptoAssessmentReportRequest buildWithoutInvocationCallback() { + GenerateCryptoAssessmentReportRequest request = + new GenerateCryptoAssessmentReportRequest(); + request.cryptoAssessmentId = cryptoAssessmentId; + request.generateCryptoAssessmentReportDetails = generateCryptoAssessmentReportDetails; request.ifMatch = ifMatch; request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; return request; - // new ChangeDistributedDbBackupConfigRequest(distributedDatabaseId, - // changeDistributedDbBackupConfigDetails, opcRequestId, ifMatch, opcRetryToken); + // new GenerateCryptoAssessmentReportRequest(cryptoAssessmentId, + // generateCryptoAssessmentReportDetails, ifMatch, opcRetryToken, opcRequestId); } } @@ -292,11 +286,11 @@ public ChangeDistributedDbBackupConfigRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .changeDistributedDbBackupConfigDetails(changeDistributedDbBackupConfigDetails) - .opcRequestId(opcRequestId) + .cryptoAssessmentId(cryptoAssessmentId) + .generateCryptoAssessmentReportDetails(generateCryptoAssessmentReportDetails) .ifMatch(ifMatch) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); } /** @@ -313,12 +307,12 @@ 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(",cryptoAssessmentId=").append(String.valueOf(this.cryptoAssessmentId)); + sb.append(",generateCryptoAssessmentReportDetails=") + .append(String.valueOf(this.generateCryptoAssessmentReportDetails)); 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(); } @@ -328,19 +322,19 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ChangeDistributedDbBackupConfigRequest)) { + if (!(o instanceof GenerateCryptoAssessmentReportRequest)) { return false; } - ChangeDistributedDbBackupConfigRequest other = (ChangeDistributedDbBackupConfigRequest) o; + GenerateCryptoAssessmentReportRequest other = (GenerateCryptoAssessmentReportRequest) o; return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && java.util.Objects.equals(this.cryptoAssessmentId, other.cryptoAssessmentId) && java.util.Objects.equals( - this.changeDistributedDbBackupConfigDetails, - other.changeDistributedDbBackupConfigDetails) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + this.generateCryptoAssessmentReportDetails, + other.generateCryptoAssessmentReportDetails) && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @Override @@ -349,19 +343,19 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.distributedDatabaseId == null + + (this.cryptoAssessmentId == null ? 43 - : this.distributedDatabaseId.hashCode()); + : this.cryptoAssessmentId.hashCode()); result = (result * PRIME) - + (this.changeDistributedDbBackupConfigDetails == null + + (this.generateCryptoAssessmentReportDetails == null ? 43 - : this.changeDistributedDbBackupConfigDetails.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + : this.generateCryptoAssessmentReportDetails.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-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetCryptoAssessmentRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetCryptoAssessmentRequest.java new file mode 100644 index 00000000000..bac9fe9c735 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetCryptoAssessmentRequest.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.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use GetCryptoAssessmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GetCryptoAssessmentRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the crypto assessment. */ + private String cryptoAssessmentId; + + /** The OCID of the crypto assessment. */ + public String getCryptoAssessmentId() { + return cryptoAssessmentId; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetCryptoAssessmentRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the crypto assessment. */ + private String cryptoAssessmentId = null; + + /** + * The OCID of the crypto assessment. + * + * @param cryptoAssessmentId the value to set + * @return this builder instance + */ + public Builder cryptoAssessmentId(String cryptoAssessmentId) { + this.cryptoAssessmentId = cryptoAssessmentId; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetCryptoAssessmentRequest o) { + cryptoAssessmentId(o.getCryptoAssessmentId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetCryptoAssessmentRequest 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 GetCryptoAssessmentRequest + */ + public GetCryptoAssessmentRequest build() { + GetCryptoAssessmentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetCryptoAssessmentRequest 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 GetCryptoAssessmentRequest + */ + public GetCryptoAssessmentRequest buildWithoutInvocationCallback() { + GetCryptoAssessmentRequest request = new GetCryptoAssessmentRequest(); + request.cryptoAssessmentId = cryptoAssessmentId; + request.opcRequestId = opcRequestId; + return request; + // new GetCryptoAssessmentRequest(cryptoAssessmentId, 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().cryptoAssessmentId(cryptoAssessmentId).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(",cryptoAssessmentId=").append(String.valueOf(this.cryptoAssessmentId)); + 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 GetCryptoAssessmentRequest)) { + return false; + } + + GetCryptoAssessmentRequest other = (GetCryptoAssessmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.cryptoAssessmentId, other.cryptoAssessmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.cryptoAssessmentId == null + ? 43 + : this.cryptoAssessmentId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetCryptoAssessmentSqlnetParametersRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetCryptoAssessmentSqlnetParametersRequest.java new file mode 100644 index 00000000000..91b9ce591e6 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetCryptoAssessmentSqlnetParametersRequest.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.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use + * GetCryptoAssessmentSqlnetParametersRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GetCryptoAssessmentSqlnetParametersRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the crypto assessment. */ + private String cryptoAssessmentId; + + /** The OCID of the crypto assessment. */ + public String getCryptoAssessmentId() { + return cryptoAssessmentId; + } + /** A filter to return only the SQLNET parameter with the specified name. */ + private String parameter; + + /** A filter to return only the SQLNET parameter with the specified name. */ + public String getParameter() { + return parameter; + } + /** Filters SQLNET parameters by quantum-readiness category. */ + private com.oracle.bmc.datasafe.model.CryptoQuantumReadiness quantumReadiness; + + /** Filters SQLNET parameters by quantum-readiness category. */ + public com.oracle.bmc.datasafe.model.CryptoQuantumReadiness getQuantumReadiness() { + return quantumReadiness; + } + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetCryptoAssessmentSqlnetParametersRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the crypto assessment. */ + private String cryptoAssessmentId = null; + + /** + * The OCID of the crypto assessment. + * + * @param cryptoAssessmentId the value to set + * @return this builder instance + */ + public Builder cryptoAssessmentId(String cryptoAssessmentId) { + this.cryptoAssessmentId = cryptoAssessmentId; + return this; + } + + /** A filter to return only the SQLNET parameter with the specified name. */ + private String parameter = null; + + /** + * A filter to return only the SQLNET parameter with the specified name. + * + * @param parameter the value to set + * @return this builder instance + */ + public Builder parameter(String parameter) { + this.parameter = parameter; + return this; + } + + /** Filters SQLNET parameters by quantum-readiness category. */ + private com.oracle.bmc.datasafe.model.CryptoQuantumReadiness quantumReadiness = null; + + /** + * Filters SQLNET parameters by quantum-readiness category. + * + * @param quantumReadiness the value to set + * @return this builder instance + */ + public Builder quantumReadiness( + com.oracle.bmc.datasafe.model.CryptoQuantumReadiness quantumReadiness) { + this.quantumReadiness = quantumReadiness; + return this; + } + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/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 page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetCryptoAssessmentSqlnetParametersRequest o) { + cryptoAssessmentId(o.getCryptoAssessmentId()); + parameter(o.getParameter()); + quantumReadiness(o.getQuantumReadiness()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetCryptoAssessmentSqlnetParametersRequest 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 GetCryptoAssessmentSqlnetParametersRequest + */ + public GetCryptoAssessmentSqlnetParametersRequest build() { + GetCryptoAssessmentSqlnetParametersRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetCryptoAssessmentSqlnetParametersRequest 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 GetCryptoAssessmentSqlnetParametersRequest + */ + public GetCryptoAssessmentSqlnetParametersRequest buildWithoutInvocationCallback() { + GetCryptoAssessmentSqlnetParametersRequest request = + new GetCryptoAssessmentSqlnetParametersRequest(); + request.cryptoAssessmentId = cryptoAssessmentId; + request.parameter = parameter; + request.quantumReadiness = quantumReadiness; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + return request; + // new GetCryptoAssessmentSqlnetParametersRequest(cryptoAssessmentId, parameter, + // quantumReadiness, limit, page, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .cryptoAssessmentId(cryptoAssessmentId) + .parameter(parameter) + .quantumReadiness(quantumReadiness) + .limit(limit) + .page(page) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",cryptoAssessmentId=").append(String.valueOf(this.cryptoAssessmentId)); + sb.append(",parameter=").append(String.valueOf(this.parameter)); + sb.append(",quantumReadiness=").append(String.valueOf(this.quantumReadiness)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetCryptoAssessmentSqlnetParametersRequest)) { + return false; + } + + GetCryptoAssessmentSqlnetParametersRequest other = + (GetCryptoAssessmentSqlnetParametersRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.cryptoAssessmentId, other.cryptoAssessmentId) + && java.util.Objects.equals(this.parameter, other.parameter) + && java.util.Objects.equals(this.quantumReadiness, other.quantumReadiness) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.cryptoAssessmentId == null + ? 43 + : this.cryptoAssessmentId.hashCode()); + result = (result * PRIME) + (this.parameter == null ? 43 : this.parameter.hashCode()); + result = + (result * PRIME) + + (this.quantumReadiness == null ? 43 : this.quantumReadiness.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListAlertAnalyticsRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListAlertAnalyticsRequest.java index 6655696180c..728a629d26b 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListAlertAnalyticsRequest.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListAlertAnalyticsRequest.java @@ -289,11 +289,11 @@ public AccessLevel getAccessLevel() { * date and time values using ISO-8601 format. (Numeric and boolean values should not be * quoted.) * - *

*Example:** | query=(timeCreated ge "2021-06-04T01:00:26.000Z") and (targetNames eq - * "target_1") query=(featureDetails.userName eq "user") and (targetNames eq "target_1") - * Supported fields: severity status alertType targetIds targetNames operationTime - * lifecycleState displayName timeCreated timeUpdated featureDetails.* (* can be any field in - * nestedStrMap in Feature Attributes in Alert Summary. For example - + *

*Example:** | (timeCreated ge "2021-06-04T01:00:26.000Z") and (targetNames eq "target_1") + * (featureDetails.userName eq "user") and (targetNames eq "target_1") Supported fields: + * severity status alertType targetIds targetNames operationTime lifecycleState displayName + * timeCreated timeUpdated featureDetails.* (* can be any field in nestedStrMap in Feature + * Attributes in Alert Summary. For example - * userName,object,clientHostname,osUserName,clientIPs,clientId,commandText,commandParam,clientProgram,objectType,targetOwner) */ private String scimQuery; @@ -306,11 +306,11 @@ public AccessLevel getAccessLevel() { * date and time values using ISO-8601 format. (Numeric and boolean values should not be * quoted.) * - *

*Example:** | query=(timeCreated ge "2021-06-04T01:00:26.000Z") and (targetNames eq - * "target_1") query=(featureDetails.userName eq "user") and (targetNames eq "target_1") - * Supported fields: severity status alertType targetIds targetNames operationTime - * lifecycleState displayName timeCreated timeUpdated featureDetails.* (* can be any field in - * nestedStrMap in Feature Attributes in Alert Summary. For example - + *

*Example:** | (timeCreated ge "2021-06-04T01:00:26.000Z") and (targetNames eq "target_1") + * (featureDetails.userName eq "user") and (targetNames eq "target_1") Supported fields: + * severity status alertType targetIds targetNames operationTime lifecycleState displayName + * timeCreated timeUpdated featureDetails.* (* can be any field in nestedStrMap in Feature + * Attributes in Alert Summary. For example - * userName,object,clientHostname,osUserName,clientIPs,clientId,commandText,commandParam,clientProgram,objectType,targetOwner) */ public String getScimQuery() { @@ -687,11 +687,11 @@ public Builder accessLevel(AccessLevel accessLevel) { * marks, with date and time values using ISO-8601 format. (Numeric and boolean values * should not be quoted.) * - *

*Example:** | query=(timeCreated ge "2021-06-04T01:00:26.000Z") and (targetNames eq - * "target_1") query=(featureDetails.userName eq "user") and (targetNames eq "target_1") - * Supported fields: severity status alertType targetIds targetNames operationTime - * lifecycleState displayName timeCreated timeUpdated featureDetails.* (* can be any field - * in nestedStrMap in Feature Attributes in Alert Summary. For example - + *

*Example:** | (timeCreated ge "2021-06-04T01:00:26.000Z") and (targetNames eq + * "target_1") (featureDetails.userName eq "user") and (targetNames eq "target_1") Supported + * fields: severity status alertType targetIds targetNames operationTime lifecycleState + * displayName timeCreated timeUpdated featureDetails.* (* can be any field in nestedStrMap + * in Feature Attributes in Alert Summary. For example - * userName,object,clientHostname,osUserName,clientIPs,clientId,commandText,commandParam,clientProgram,objectType,targetOwner) */ private String scimQuery = null; @@ -704,11 +704,11 @@ public Builder accessLevel(AccessLevel accessLevel) { * marks, with date and time values using ISO-8601 format. (Numeric and boolean values * should not be quoted.) * - *

*Example:** | query=(timeCreated ge "2021-06-04T01:00:26.000Z") and (targetNames eq - * "target_1") query=(featureDetails.userName eq "user") and (targetNames eq "target_1") - * Supported fields: severity status alertType targetIds targetNames operationTime - * lifecycleState displayName timeCreated timeUpdated featureDetails.* (* can be any field - * in nestedStrMap in Feature Attributes in Alert Summary. For example - + *

*Example:** | (timeCreated ge "2021-06-04T01:00:26.000Z") and (targetNames eq + * "target_1") (featureDetails.userName eq "user") and (targetNames eq "target_1") Supported + * fields: severity status alertType targetIds targetNames operationTime lifecycleState + * displayName timeCreated timeUpdated featureDetails.* (* can be any field in nestedStrMap + * in Feature Attributes in Alert Summary. For example - * userName,object,clientHostname,osUserName,clientIPs,clientId,commandText,commandParam,clientProgram,objectType,targetOwner) * * @param scimQuery the value to set diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListAlertsRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListAlertsRequest.java index 538d268c1b7..fc125ddd546 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListAlertsRequest.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListAlertsRequest.java @@ -236,11 +236,11 @@ public SortBy getSortBy() { * date and time values using ISO-8601 format. (Numeric and boolean values should not be * quoted.) * - *

*Example:** | query=(timeCreated ge "2021-06-04T01:00:26.000Z") and (targetNames eq - * "target_1") query=(featureDetails.userName eq "user") and (targetNames eq "target_1") - * Supported fields: severity status alertType targetIds targetNames operationTime - * lifecycleState displayName timeCreated timeUpdated featureDetails.* (* can be any field in - * nestedStrMap in Feature Attributes in Alert Summary. For example - + *

*Example:** | (timeCreated ge "2021-06-04T01:00:26.000Z") and (targetNames eq "target_1") + * (featureDetails.userName eq "user") and (targetNames eq "target_1") Supported fields: + * severity status alertType targetIds targetNames operationTime lifecycleState displayName + * timeCreated timeUpdated featureDetails.* (* can be any field in nestedStrMap in Feature + * Attributes in Alert Summary. For example - * userName,object,clientHostname,osUserName,clientIPs,clientId,commandText,commandParam,clientProgram,objectType,targetOwner) */ private String scimQuery; @@ -253,11 +253,11 @@ public SortBy getSortBy() { * date and time values using ISO-8601 format. (Numeric and boolean values should not be * quoted.) * - *

*Example:** | query=(timeCreated ge "2021-06-04T01:00:26.000Z") and (targetNames eq - * "target_1") query=(featureDetails.userName eq "user") and (targetNames eq "target_1") - * Supported fields: severity status alertType targetIds targetNames operationTime - * lifecycleState displayName timeCreated timeUpdated featureDetails.* (* can be any field in - * nestedStrMap in Feature Attributes in Alert Summary. For example - + *

*Example:** | (timeCreated ge "2021-06-04T01:00:26.000Z") and (targetNames eq "target_1") + * (featureDetails.userName eq "user") and (targetNames eq "target_1") Supported fields: + * severity status alertType targetIds targetNames operationTime lifecycleState displayName + * timeCreated timeUpdated featureDetails.* (* can be any field in nestedStrMap in Feature + * Attributes in Alert Summary. For example - * userName,object,clientHostname,osUserName,clientIPs,clientId,commandText,commandParam,clientProgram,objectType,targetOwner) */ public String getScimQuery() { @@ -489,11 +489,11 @@ public Builder sortBy(SortBy sortBy) { * marks, with date and time values using ISO-8601 format. (Numeric and boolean values * should not be quoted.) * - *

*Example:** | query=(timeCreated ge "2021-06-04T01:00:26.000Z") and (targetNames eq - * "target_1") query=(featureDetails.userName eq "user") and (targetNames eq "target_1") - * Supported fields: severity status alertType targetIds targetNames operationTime - * lifecycleState displayName timeCreated timeUpdated featureDetails.* (* can be any field - * in nestedStrMap in Feature Attributes in Alert Summary. For example - + *

*Example:** | (timeCreated ge "2021-06-04T01:00:26.000Z") and (targetNames eq + * "target_1") (featureDetails.userName eq "user") and (targetNames eq "target_1") Supported + * fields: severity status alertType targetIds targetNames operationTime lifecycleState + * displayName timeCreated timeUpdated featureDetails.* (* can be any field in nestedStrMap + * in Feature Attributes in Alert Summary. For example - * userName,object,clientHostname,osUserName,clientIPs,clientId,commandText,commandParam,clientProgram,objectType,targetOwner) */ private String scimQuery = null; @@ -506,11 +506,11 @@ public Builder sortBy(SortBy sortBy) { * marks, with date and time values using ISO-8601 format. (Numeric and boolean values * should not be quoted.) * - *

*Example:** | query=(timeCreated ge "2021-06-04T01:00:26.000Z") and (targetNames eq - * "target_1") query=(featureDetails.userName eq "user") and (targetNames eq "target_1") - * Supported fields: severity status alertType targetIds targetNames operationTime - * lifecycleState displayName timeCreated timeUpdated featureDetails.* (* can be any field - * in nestedStrMap in Feature Attributes in Alert Summary. For example - + *

*Example:** | (timeCreated ge "2021-06-04T01:00:26.000Z") and (targetNames eq + * "target_1") (featureDetails.userName eq "user") and (targetNames eq "target_1") Supported + * fields: severity status alertType targetIds targetNames operationTime lifecycleState + * displayName timeCreated timeUpdated featureDetails.* (* can be any field in nestedStrMap + * in Feature Attributes in Alert Summary. For example - * userName,object,clientHostname,osUserName,clientIPs,clientId,commandText,commandParam,clientProgram,objectType,targetOwner) * * @param scimQuery the value to set diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentBackupSetsRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentBackupSetsRequest.java new file mode 100644 index 00000000000..af0be5aac64 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentBackupSetsRequest.java @@ -0,0 +1,717 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use + * ListCryptoAssessmentBackupSetsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentBackupSetsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** A filter to return only resources that match the specified compartment OCID. */ + private String compartmentId; + + /** A filter to return only resources that match the specified compartment OCID. */ + public String getCompartmentId() { + return compartmentId; + } + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + private Boolean compartmentIdInSubtree; + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + public Boolean getCompartmentIdInSubtree() { + return compartmentIdInSubtree; + } + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + private AccessLevel accessLevel; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + public enum AccessLevel implements com.oracle.bmc.http.internal.BmcEnum { + Restricted("RESTRICTED"), + Accessible("ACCESSIBLE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AccessLevel v : AccessLevel.values()) { + map.put(v.getValue(), v); + } + } + + AccessLevel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AccessLevel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid AccessLevel: " + key); + } + }; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + public AccessLevel getAccessLevel() { + return accessLevel; + } + /** A filter to return only resources associated with the specified crypto assessment OCID. */ + private String assessmentId; + + /** A filter to return only resources associated with the specified crypto assessment OCID. */ + public String getAssessmentId() { + return assessmentId; + } + /** A filter to return targets from assessments of the specified type. */ + private com.oracle.bmc.datasafe.model.CryptoAssessment.Type assessmentType; + + /** A filter to return targets from assessments of the specified type. */ + public com.oracle.bmc.datasafe.model.CryptoAssessment.Type getAssessmentType() { + return assessmentType; + } + /** A filter to return only inventory rows associated with the specified target OCID. */ + private String targetId; + + /** A filter to return only inventory rows associated with the specified target OCID. */ + public String getTargetId() { + return targetId; + } + /** A filter to return only resources associated with any of the specified target OCIDs. */ + private java.util.List targetIds; + + /** A filter to return only resources associated with any of the specified target OCIDs. */ + public java.util.List getTargetIds() { + return targetIds; + } + /** Filters backup set summary rows to an exact matching backupSetKey. */ + private String backupSetKey; + + /** Filters backup set summary rows to an exact matching backupSetKey. */ + public String getBackupSetKey() { + return backupSetKey; + } + /** Filters backup set summary rows by whether the backup set is encrypted. */ + private Boolean isEncrypted; + + /** Filters backup set summary rows by whether the backup set is encrypted. */ + public Boolean getIsEncrypted() { + return isEncrypted; + } + /** The field used to sort backup set results. */ + private SortBy sortBy; + + /** The field used to sort backup set results. */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + SetStamp("setStamp"), + BackupSetKey("backupSetKey"), + SizeInGBs("sizeInGBs"), + 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 used to sort backup set results. */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either ascending (ASC) or descending (DESC). */ + private SortOrder sortOrder; + + /** The sort order to use, either ascending (ASC) or descending (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, either ascending (ASC) or descending (DESC). */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListCryptoAssessmentBackupSetsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** A filter to return only resources that match the specified compartment OCID. */ + private String compartmentId = null; + + /** + * A filter to return only resources that match the specified compartment OCID. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the + * 'accessLevel' setting. + */ + private Boolean compartmentIdInSubtree = null; + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the + * 'accessLevel' setting. + * + * @param compartmentIdInSubtree the value to set + * @return this builder instance + */ + public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { + this.compartmentIdInSubtree = compartmentIdInSubtree; + return this; + } + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to + * ACCESSIBLE returns only those compartments for which the user has INSPECT permissions + * directly or indirectly (permissions can be on a resource in a subcompartment). When set + * to RESTRICTED permissions are checked and no partial results are displayed. + */ + private AccessLevel accessLevel = null; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to + * ACCESSIBLE returns only those compartments for which the user has INSPECT permissions + * directly or indirectly (permissions can be on a resource in a subcompartment). When set + * to RESTRICTED permissions are checked and no partial results are displayed. + * + * @param accessLevel the value to set + * @return this builder instance + */ + public Builder accessLevel(AccessLevel accessLevel) { + this.accessLevel = accessLevel; + return this; + } + + /** + * A filter to return only resources associated with the specified crypto assessment OCID. + */ + private String assessmentId = null; + + /** + * A filter to return only resources associated with the specified crypto assessment OCID. + * + * @param assessmentId the value to set + * @return this builder instance + */ + public Builder assessmentId(String assessmentId) { + this.assessmentId = assessmentId; + return this; + } + + /** A filter to return targets from assessments of the specified type. */ + private com.oracle.bmc.datasafe.model.CryptoAssessment.Type assessmentType = null; + + /** + * A filter to return targets from assessments of the specified type. + * + * @param assessmentType the value to set + * @return this builder instance + */ + public Builder assessmentType( + com.oracle.bmc.datasafe.model.CryptoAssessment.Type assessmentType) { + this.assessmentType = assessmentType; + return this; + } + + /** A filter to return only inventory rows associated with the specified target OCID. */ + private String targetId = null; + + /** + * A filter to return only inventory rows associated with the specified target OCID. + * + * @param targetId the value to set + * @return this builder instance + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + return this; + } + + /** A filter to return only resources associated with any of the specified target OCIDs. */ + private java.util.List targetIds = null; + + /** + * A filter to return only resources associated with any of the specified target OCIDs. + * + * @param targetIds the value to set + * @return this builder instance + */ + public Builder targetIds(java.util.List targetIds) { + this.targetIds = targetIds; + return this; + } + + /** + * Singular setter. A filter to return only resources associated with any of the specified + * target OCIDs. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder targetIds(String singularValue) { + return this.targetIds(java.util.Arrays.asList(singularValue)); + } + + /** Filters backup set summary rows to an exact matching backupSetKey. */ + private String backupSetKey = null; + + /** + * Filters backup set summary rows to an exact matching backupSetKey. + * + * @param backupSetKey the value to set + * @return this builder instance + */ + public Builder backupSetKey(String backupSetKey) { + this.backupSetKey = backupSetKey; + return this; + } + + /** Filters backup set summary rows by whether the backup set is encrypted. */ + private Boolean isEncrypted = null; + + /** + * Filters backup set summary rows by whether the backup set is encrypted. + * + * @param isEncrypted the value to set + * @return this builder instance + */ + public Builder isEncrypted(Boolean isEncrypted) { + this.isEncrypted = isEncrypted; + return this; + } + + /** The field used to sort backup set results. */ + private SortBy sortBy = null; + + /** + * The field used to sort backup set results. + * + * @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 (ASC) or descending (DESC). */ + private SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending (ASC) or descending (DESC). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/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 page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/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; + } + + /** + * 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(ListCryptoAssessmentBackupSetsRequest o) { + compartmentId(o.getCompartmentId()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); + accessLevel(o.getAccessLevel()); + assessmentId(o.getAssessmentId()); + assessmentType(o.getAssessmentType()); + targetId(o.getTargetId()); + targetIds(o.getTargetIds()); + backupSetKey(o.getBackupSetKey()); + isEncrypted(o.getIsEncrypted()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListCryptoAssessmentBackupSetsRequest 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 ListCryptoAssessmentBackupSetsRequest + */ + public ListCryptoAssessmentBackupSetsRequest build() { + ListCryptoAssessmentBackupSetsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListCryptoAssessmentBackupSetsRequest 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 ListCryptoAssessmentBackupSetsRequest + */ + public ListCryptoAssessmentBackupSetsRequest buildWithoutInvocationCallback() { + ListCryptoAssessmentBackupSetsRequest request = + new ListCryptoAssessmentBackupSetsRequest(); + request.compartmentId = compartmentId; + request.compartmentIdInSubtree = compartmentIdInSubtree; + request.accessLevel = accessLevel; + request.assessmentId = assessmentId; + request.assessmentType = assessmentType; + request.targetId = targetId; + request.targetIds = targetIds; + request.backupSetKey = backupSetKey; + request.isEncrypted = isEncrypted; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + return request; + // new ListCryptoAssessmentBackupSetsRequest(compartmentId, compartmentIdInSubtree, + // accessLevel, assessmentId, assessmentType, targetId, targetIds, backupSetKey, + // isEncrypted, sortBy, sortOrder, opcRequestId, limit, page); + } + } + + /** + * 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) + .accessLevel(accessLevel) + .assessmentId(assessmentId) + .assessmentType(assessmentType) + .targetId(targetId) + .targetIds(targetIds) + .backupSetKey(backupSetKey) + .isEncrypted(isEncrypted) + .sortBy(sortBy) + .sortOrder(sortOrder) + .opcRequestId(opcRequestId) + .limit(limit) + .page(page); + } + + /** + * 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(",accessLevel=").append(String.valueOf(this.accessLevel)); + sb.append(",assessmentId=").append(String.valueOf(this.assessmentId)); + sb.append(",assessmentType=").append(String.valueOf(this.assessmentType)); + sb.append(",targetId=").append(String.valueOf(this.targetId)); + sb.append(",targetIds=").append(String.valueOf(this.targetIds)); + sb.append(",backupSetKey=").append(String.valueOf(this.backupSetKey)); + sb.append(",isEncrypted=").append(String.valueOf(this.isEncrypted)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCryptoAssessmentBackupSetsRequest)) { + return false; + } + + ListCryptoAssessmentBackupSetsRequest other = (ListCryptoAssessmentBackupSetsRequest) 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.accessLevel, other.accessLevel) + && java.util.Objects.equals(this.assessmentId, other.assessmentId) + && java.util.Objects.equals(this.assessmentType, other.assessmentType) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.targetIds, other.targetIds) + && java.util.Objects.equals(this.backupSetKey, other.backupSetKey) + && java.util.Objects.equals(this.isEncrypted, other.isEncrypted) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page); + } + + @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.accessLevel == null ? 43 : this.accessLevel.hashCode()); + result = (result * PRIME) + (this.assessmentId == null ? 43 : this.assessmentId.hashCode()); + result = + (result * PRIME) + + (this.assessmentType == null ? 43 : this.assessmentType.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = (result * PRIME) + (this.targetIds == null ? 43 : this.targetIds.hashCode()); + result = (result * PRIME) + (this.backupSetKey == null ? 43 : this.backupSetKey.hashCode()); + result = (result * PRIME) + (this.isEncrypted == null ? 43 : this.isEncrypted.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentCbomItemsRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentCbomItemsRequest.java new file mode 100644 index 00000000000..378f1709493 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentCbomItemsRequest.java @@ -0,0 +1,197 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use + * ListCryptoAssessmentCbomItemsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentCbomItemsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the crypto assessment. */ + private String cryptoAssessmentId; + + /** The OCID of the crypto assessment. */ + public String getCryptoAssessmentId() { + return cryptoAssessmentId; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListCryptoAssessmentCbomItemsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the crypto assessment. */ + private String cryptoAssessmentId = null; + + /** + * The OCID of the crypto assessment. + * + * @param cryptoAssessmentId the value to set + * @return this builder instance + */ + public Builder cryptoAssessmentId(String cryptoAssessmentId) { + this.cryptoAssessmentId = cryptoAssessmentId; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListCryptoAssessmentCbomItemsRequest o) { + cryptoAssessmentId(o.getCryptoAssessmentId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListCryptoAssessmentCbomItemsRequest 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 ListCryptoAssessmentCbomItemsRequest + */ + public ListCryptoAssessmentCbomItemsRequest build() { + ListCryptoAssessmentCbomItemsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListCryptoAssessmentCbomItemsRequest 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 ListCryptoAssessmentCbomItemsRequest + */ + public ListCryptoAssessmentCbomItemsRequest buildWithoutInvocationCallback() { + ListCryptoAssessmentCbomItemsRequest request = + new ListCryptoAssessmentCbomItemsRequest(); + request.cryptoAssessmentId = cryptoAssessmentId; + request.opcRequestId = opcRequestId; + return request; + // new ListCryptoAssessmentCbomItemsRequest(cryptoAssessmentId, 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().cryptoAssessmentId(cryptoAssessmentId).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(",cryptoAssessmentId=").append(String.valueOf(this.cryptoAssessmentId)); + 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 ListCryptoAssessmentCbomItemsRequest)) { + return false; + } + + ListCryptoAssessmentCbomItemsRequest other = (ListCryptoAssessmentCbomItemsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.cryptoAssessmentId, other.cryptoAssessmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.cryptoAssessmentId == null + ? 43 + : this.cryptoAssessmentId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentCertificatesRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentCertificatesRequest.java new file mode 100644 index 00000000000..55a324a0a87 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentCertificatesRequest.java @@ -0,0 +1,946 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use + * ListCryptoAssessmentCertificatesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentCertificatesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** A filter to return only resources that match the specified compartment OCID. */ + private String compartmentId; + + /** A filter to return only resources that match the specified compartment OCID. */ + public String getCompartmentId() { + return compartmentId; + } + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + private Boolean compartmentIdInSubtree; + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + public Boolean getCompartmentIdInSubtree() { + return compartmentIdInSubtree; + } + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + private AccessLevel accessLevel; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + public enum AccessLevel implements com.oracle.bmc.http.internal.BmcEnum { + Restricted("RESTRICTED"), + Accessible("ACCESSIBLE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AccessLevel v : AccessLevel.values()) { + map.put(v.getValue(), v); + } + } + + AccessLevel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AccessLevel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid AccessLevel: " + key); + } + }; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + public AccessLevel getAccessLevel() { + return accessLevel; + } + /** A filter to return only resources associated with the specified crypto assessment OCID. */ + private String assessmentId; + + /** A filter to return only resources associated with the specified crypto assessment OCID. */ + public String getAssessmentId() { + return assessmentId; + } + /** A filter to return targets from assessments of the specified type. */ + private com.oracle.bmc.datasafe.model.CryptoAssessment.Type assessmentType; + + /** A filter to return targets from assessments of the specified type. */ + public com.oracle.bmc.datasafe.model.CryptoAssessment.Type getAssessmentType() { + return assessmentType; + } + /** A filter to return only inventory rows associated with the specified target OCID. */ + private String targetId; + + /** A filter to return only inventory rows associated with the specified target OCID. */ + public String getTargetId() { + return targetId; + } + /** A filter to return only resources associated with any of the specified target OCIDs. */ + private java.util.List targetIds; + + /** A filter to return only resources associated with any of the specified target OCIDs. */ + public java.util.List getTargetIds() { + return targetIds; + } + /** A filter to return only certificates of any of the specified types. */ + private java.util.List< + com.oracle.bmc.datasafe.model.CryptoAssessmentCertificateSummary + .CertificateType> + certificateType; + + /** A filter to return only certificates of any of the specified types. */ + public java.util.List< + com.oracle.bmc.datasafe.model.CryptoAssessmentCertificateSummary + .CertificateType> + getCertificateType() { + return certificateType; + } + /** A filter to return only certificates with any of the specified statuses. */ + private java.util.List + status; + + /** A filter to return only certificates with any of the specified statuses. */ + public java.util.List + getStatus() { + return status; + } + /** + * A filter to return only certificates with any of the specified public key types. Stored + * values are normalized forms such as RSA2048, RSA4096, or EC256. + */ + private java.util.List publicKeyType; + + /** + * A filter to return only certificates with any of the specified public key types. Stored + * values are normalized forms such as RSA2048, RSA4096, or EC256. + */ + public java.util.List getPublicKeyType() { + return publicKeyType; + } + /** + * A filter to return only certificates whose signature algorithm contains any of the specified + * values. For example, use SHA1 to match SHA1-based certificate signatures. + */ + private java.util.List signatureAlgorithm; + + /** + * A filter to return only certificates whose signature algorithm contains any of the specified + * values. For example, use SHA1 to match SHA1-based certificate signatures. + */ + public java.util.List getSignatureAlgorithm() { + return signatureAlgorithm; + } + /** + * A filter to return only certificates in the specified expiry bucket. Supported values are + * 0_15, 15_30, 30_60, 60_90, and 90_PLUS. + */ + private String expiryBucket; + + /** + * A filter to return only certificates in the specified expiry bucket. Supported values are + * 0_15, 15_30, 30_60, 60_90, and 90_PLUS. + */ + public String getExpiryBucket() { + return expiryBucket; + } + /** + * A filter to return certificates whose validTill timestamp is on or before the current time + * plus the specified number of days. Negative values are allowed and filter certificates that + * expired on or before that many days ago. + */ + private Integer daysToExpiry; + + /** + * A filter to return certificates whose validTill timestamp is on or before the current time + * plus the specified number of days. Negative values are allowed and filter certificates that + * expired on or before that many days ago. + */ + public Integer getDaysToExpiry() { + return daysToExpiry; + } + /** The field used to sort certificate results. */ + private SortBy sortBy; + + /** The field used to sort certificate results. */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeValidUntil("timeValidUntil"), + Subject("subject"), + ; + + 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 used to sort certificate results. */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either ascending (ASC) or descending (DESC). */ + private SortOrder sortOrder; + + /** The sort order to use, either ascending (ASC) or descending (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, either ascending (ASC) or descending (DESC). */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListCryptoAssessmentCertificatesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** A filter to return only resources that match the specified compartment OCID. */ + private String compartmentId = null; + + /** + * A filter to return only resources that match the specified compartment OCID. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the + * 'accessLevel' setting. + */ + private Boolean compartmentIdInSubtree = null; + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the + * 'accessLevel' setting. + * + * @param compartmentIdInSubtree the value to set + * @return this builder instance + */ + public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { + this.compartmentIdInSubtree = compartmentIdInSubtree; + return this; + } + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to + * ACCESSIBLE returns only those compartments for which the user has INSPECT permissions + * directly or indirectly (permissions can be on a resource in a subcompartment). When set + * to RESTRICTED permissions are checked and no partial results are displayed. + */ + private AccessLevel accessLevel = null; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to + * ACCESSIBLE returns only those compartments for which the user has INSPECT permissions + * directly or indirectly (permissions can be on a resource in a subcompartment). When set + * to RESTRICTED permissions are checked and no partial results are displayed. + * + * @param accessLevel the value to set + * @return this builder instance + */ + public Builder accessLevel(AccessLevel accessLevel) { + this.accessLevel = accessLevel; + return this; + } + + /** + * A filter to return only resources associated with the specified crypto assessment OCID. + */ + private String assessmentId = null; + + /** + * A filter to return only resources associated with the specified crypto assessment OCID. + * + * @param assessmentId the value to set + * @return this builder instance + */ + public Builder assessmentId(String assessmentId) { + this.assessmentId = assessmentId; + return this; + } + + /** A filter to return targets from assessments of the specified type. */ + private com.oracle.bmc.datasafe.model.CryptoAssessment.Type assessmentType = null; + + /** + * A filter to return targets from assessments of the specified type. + * + * @param assessmentType the value to set + * @return this builder instance + */ + public Builder assessmentType( + com.oracle.bmc.datasafe.model.CryptoAssessment.Type assessmentType) { + this.assessmentType = assessmentType; + return this; + } + + /** A filter to return only inventory rows associated with the specified target OCID. */ + private String targetId = null; + + /** + * A filter to return only inventory rows associated with the specified target OCID. + * + * @param targetId the value to set + * @return this builder instance + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + return this; + } + + /** A filter to return only resources associated with any of the specified target OCIDs. */ + private java.util.List targetIds = null; + + /** + * A filter to return only resources associated with any of the specified target OCIDs. + * + * @param targetIds the value to set + * @return this builder instance + */ + public Builder targetIds(java.util.List targetIds) { + this.targetIds = targetIds; + return this; + } + + /** + * Singular setter. A filter to return only resources associated with any of the specified + * target OCIDs. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder targetIds(String singularValue) { + return this.targetIds(java.util.Arrays.asList(singularValue)); + } + + /** A filter to return only certificates of any of the specified types. */ + private java.util.List< + com.oracle.bmc.datasafe.model.CryptoAssessmentCertificateSummary + .CertificateType> + certificateType = null; + + /** + * A filter to return only certificates of any of the specified types. + * + * @param certificateType the value to set + * @return this builder instance + */ + public Builder certificateType( + java.util.List< + com.oracle.bmc.datasafe.model.CryptoAssessmentCertificateSummary + .CertificateType> + certificateType) { + this.certificateType = certificateType; + return this; + } + + /** + * Singular setter. A filter to return only certificates of any of the specified types. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder certificateType( + com.oracle.bmc.datasafe.model.CryptoAssessmentCertificateSummary.CertificateType + singularValue) { + return this.certificateType(java.util.Arrays.asList(singularValue)); + } + + /** A filter to return only certificates with any of the specified statuses. */ + private java.util.List< + com.oracle.bmc.datasafe.model.CryptoAssessmentCertificateSummary.Status> + status = null; + + /** + * A filter to return only certificates with any of the specified statuses. + * + * @param status the value to set + * @return this builder instance + */ + public Builder status( + java.util.List< + com.oracle.bmc.datasafe.model.CryptoAssessmentCertificateSummary + .Status> + status) { + this.status = status; + return this; + } + + /** + * Singular setter. A filter to return only certificates with any of the specified statuses. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder status( + com.oracle.bmc.datasafe.model.CryptoAssessmentCertificateSummary.Status + singularValue) { + return this.status(java.util.Arrays.asList(singularValue)); + } + + /** + * A filter to return only certificates with any of the specified public key types. Stored + * values are normalized forms such as RSA2048, RSA4096, or EC256. + */ + private java.util.List publicKeyType = null; + + /** + * A filter to return only certificates with any of the specified public key types. Stored + * values are normalized forms such as RSA2048, RSA4096, or EC256. + * + * @param publicKeyType the value to set + * @return this builder instance + */ + public Builder publicKeyType(java.util.List publicKeyType) { + this.publicKeyType = publicKeyType; + return this; + } + + /** + * Singular setter. A filter to return only certificates with any of the specified public + * key types. Stored values are normalized forms such as RSA2048, RSA4096, or EC256. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder publicKeyType(String singularValue) { + return this.publicKeyType(java.util.Arrays.asList(singularValue)); + } + + /** + * A filter to return only certificates whose signature algorithm contains any of the + * specified values. For example, use SHA1 to match SHA1-based certificate signatures. + */ + private java.util.List signatureAlgorithm = null; + + /** + * A filter to return only certificates whose signature algorithm contains any of the + * specified values. For example, use SHA1 to match SHA1-based certificate signatures. + * + * @param signatureAlgorithm the value to set + * @return this builder instance + */ + public Builder signatureAlgorithm(java.util.List signatureAlgorithm) { + this.signatureAlgorithm = signatureAlgorithm; + return this; + } + + /** + * Singular setter. A filter to return only certificates whose signature algorithm contains + * any of the specified values. For example, use SHA1 to match SHA1-based certificate + * signatures. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder signatureAlgorithm(String singularValue) { + return this.signatureAlgorithm(java.util.Arrays.asList(singularValue)); + } + + /** + * A filter to return only certificates in the specified expiry bucket. Supported values are + * 0_15, 15_30, 30_60, 60_90, and 90_PLUS. + */ + private String expiryBucket = null; + + /** + * A filter to return only certificates in the specified expiry bucket. Supported values are + * 0_15, 15_30, 30_60, 60_90, and 90_PLUS. + * + * @param expiryBucket the value to set + * @return this builder instance + */ + public Builder expiryBucket(String expiryBucket) { + this.expiryBucket = expiryBucket; + return this; + } + + /** + * A filter to return certificates whose validTill timestamp is on or before the current + * time plus the specified number of days. Negative values are allowed and filter + * certificates that expired on or before that many days ago. + */ + private Integer daysToExpiry = null; + + /** + * A filter to return certificates whose validTill timestamp is on or before the current + * time plus the specified number of days. Negative values are allowed and filter + * certificates that expired on or before that many days ago. + * + * @param daysToExpiry the value to set + * @return this builder instance + */ + public Builder daysToExpiry(Integer daysToExpiry) { + this.daysToExpiry = daysToExpiry; + return this; + } + + /** The field used to sort certificate results. */ + private SortBy sortBy = null; + + /** + * The field used to sort certificate results. + * + * @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 (ASC) or descending (DESC). */ + private SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending (ASC) or descending (DESC). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/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 page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/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; + } + + /** + * 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(ListCryptoAssessmentCertificatesRequest o) { + compartmentId(o.getCompartmentId()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); + accessLevel(o.getAccessLevel()); + assessmentId(o.getAssessmentId()); + assessmentType(o.getAssessmentType()); + targetId(o.getTargetId()); + targetIds(o.getTargetIds()); + certificateType(o.getCertificateType()); + status(o.getStatus()); + publicKeyType(o.getPublicKeyType()); + signatureAlgorithm(o.getSignatureAlgorithm()); + expiryBucket(o.getExpiryBucket()); + daysToExpiry(o.getDaysToExpiry()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListCryptoAssessmentCertificatesRequest 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 ListCryptoAssessmentCertificatesRequest + */ + public ListCryptoAssessmentCertificatesRequest build() { + ListCryptoAssessmentCertificatesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListCryptoAssessmentCertificatesRequest 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 ListCryptoAssessmentCertificatesRequest + */ + public ListCryptoAssessmentCertificatesRequest buildWithoutInvocationCallback() { + ListCryptoAssessmentCertificatesRequest request = + new ListCryptoAssessmentCertificatesRequest(); + request.compartmentId = compartmentId; + request.compartmentIdInSubtree = compartmentIdInSubtree; + request.accessLevel = accessLevel; + request.assessmentId = assessmentId; + request.assessmentType = assessmentType; + request.targetId = targetId; + request.targetIds = targetIds; + request.certificateType = certificateType; + request.status = status; + request.publicKeyType = publicKeyType; + request.signatureAlgorithm = signatureAlgorithm; + request.expiryBucket = expiryBucket; + request.daysToExpiry = daysToExpiry; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + return request; + // new ListCryptoAssessmentCertificatesRequest(compartmentId, compartmentIdInSubtree, + // accessLevel, assessmentId, assessmentType, targetId, targetIds, certificateType, + // status, publicKeyType, signatureAlgorithm, expiryBucket, daysToExpiry, sortBy, + // sortOrder, opcRequestId, limit, page); + } + } + + /** + * 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) + .accessLevel(accessLevel) + .assessmentId(assessmentId) + .assessmentType(assessmentType) + .targetId(targetId) + .targetIds(targetIds) + .certificateType(certificateType) + .status(status) + .publicKeyType(publicKeyType) + .signatureAlgorithm(signatureAlgorithm) + .expiryBucket(expiryBucket) + .daysToExpiry(daysToExpiry) + .sortBy(sortBy) + .sortOrder(sortOrder) + .opcRequestId(opcRequestId) + .limit(limit) + .page(page); + } + + /** + * 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(",accessLevel=").append(String.valueOf(this.accessLevel)); + sb.append(",assessmentId=").append(String.valueOf(this.assessmentId)); + sb.append(",assessmentType=").append(String.valueOf(this.assessmentType)); + sb.append(",targetId=").append(String.valueOf(this.targetId)); + sb.append(",targetIds=").append(String.valueOf(this.targetIds)); + sb.append(",certificateType=").append(String.valueOf(this.certificateType)); + sb.append(",status=").append(String.valueOf(this.status)); + sb.append(",publicKeyType=").append(String.valueOf(this.publicKeyType)); + sb.append(",signatureAlgorithm=").append(String.valueOf(this.signatureAlgorithm)); + sb.append(",expiryBucket=").append(String.valueOf(this.expiryBucket)); + sb.append(",daysToExpiry=").append(String.valueOf(this.daysToExpiry)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCryptoAssessmentCertificatesRequest)) { + return false; + } + + ListCryptoAssessmentCertificatesRequest other = (ListCryptoAssessmentCertificatesRequest) 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.accessLevel, other.accessLevel) + && java.util.Objects.equals(this.assessmentId, other.assessmentId) + && java.util.Objects.equals(this.assessmentType, other.assessmentType) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.targetIds, other.targetIds) + && java.util.Objects.equals(this.certificateType, other.certificateType) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.publicKeyType, other.publicKeyType) + && java.util.Objects.equals(this.signatureAlgorithm, other.signatureAlgorithm) + && java.util.Objects.equals(this.expiryBucket, other.expiryBucket) + && java.util.Objects.equals(this.daysToExpiry, other.daysToExpiry) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page); + } + + @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.accessLevel == null ? 43 : this.accessLevel.hashCode()); + result = (result * PRIME) + (this.assessmentId == null ? 43 : this.assessmentId.hashCode()); + result = + (result * PRIME) + + (this.assessmentType == null ? 43 : this.assessmentType.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = (result * PRIME) + (this.targetIds == null ? 43 : this.targetIds.hashCode()); + result = + (result * PRIME) + + (this.certificateType == null ? 43 : this.certificateType.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.publicKeyType == null ? 43 : this.publicKeyType.hashCode()); + result = + (result * PRIME) + + (this.signatureAlgorithm == null + ? 43 + : this.signatureAlgorithm.hashCode()); + result = (result * PRIME) + (this.expiryBucket == null ? 43 : this.expiryBucket.hashCode()); + result = (result * PRIME) + (this.daysToExpiry == null ? 43 : this.daysToExpiry.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentFindingAnalyticsRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentFindingAnalyticsRequest.java new file mode 100644 index 00000000000..2785296c8e0 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentFindingAnalyticsRequest.java @@ -0,0 +1,638 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use + * ListCryptoAssessmentFindingAnalyticsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentFindingAnalyticsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** A filter to return only resources that match the specified compartment OCID. */ + private String compartmentId; + + /** A filter to return only resources that match the specified compartment OCID. */ + public String getCompartmentId() { + return compartmentId; + } + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + private Boolean compartmentIdInSubtree; + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + public Boolean getCompartmentIdInSubtree() { + return compartmentIdInSubtree; + } + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + private AccessLevel accessLevel; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + public enum AccessLevel implements com.oracle.bmc.http.internal.BmcEnum { + Restricted("RESTRICTED"), + Accessible("ACCESSIBLE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AccessLevel v : AccessLevel.values()) { + map.put(v.getValue(), v); + } + } + + AccessLevel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AccessLevel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid AccessLevel: " + key); + } + }; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + public AccessLevel getAccessLevel() { + return accessLevel; + } + /** A filter to return only findings in the specified category key. */ + private com.oracle.bmc.datasafe.model.CryptoFindingCategory category; + + /** A filter to return only findings in the specified category key. */ + public com.oracle.bmc.datasafe.model.CryptoFindingCategory getCategory() { + return category; + } + /** A filter to return only findings with any of the specified finding keys. */ + private java.util.List findingKey; + + /** A filter to return only findings with any of the specified finding keys. */ + public java.util.List getFindingKey() { + return findingKey; + } + /** A filter to return only findings that are or are not part of quantum-readiness checks. */ + private Boolean isQuantumReadinessCheck; + + /** A filter to return only findings that are or are not part of quantum-readiness checks. */ + public Boolean getIsQuantumReadinessCheck() { + return isQuantumReadinessCheck; + } + /** The field used to sort finding analytics results. */ + private SortBy sortBy; + + /** The field used to sort finding analytics results. */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TargetCount("targetCount"), + Priority("priority"), + ; + + 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 used to sort finding analytics results. */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either ascending (ASC) or descending (DESC). */ + private SortOrder sortOrder; + + /** The sort order to use, either ascending (ASC) or descending (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, either ascending (ASC) or descending (DESC). */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListCryptoAssessmentFindingAnalyticsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** A filter to return only resources that match the specified compartment OCID. */ + private String compartmentId = null; + + /** + * A filter to return only resources that match the specified compartment OCID. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the + * 'accessLevel' setting. + */ + private Boolean compartmentIdInSubtree = null; + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the + * 'accessLevel' setting. + * + * @param compartmentIdInSubtree the value to set + * @return this builder instance + */ + public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { + this.compartmentIdInSubtree = compartmentIdInSubtree; + return this; + } + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to + * ACCESSIBLE returns only those compartments for which the user has INSPECT permissions + * directly or indirectly (permissions can be on a resource in a subcompartment). When set + * to RESTRICTED permissions are checked and no partial results are displayed. + */ + private AccessLevel accessLevel = null; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to + * ACCESSIBLE returns only those compartments for which the user has INSPECT permissions + * directly or indirectly (permissions can be on a resource in a subcompartment). When set + * to RESTRICTED permissions are checked and no partial results are displayed. + * + * @param accessLevel the value to set + * @return this builder instance + */ + public Builder accessLevel(AccessLevel accessLevel) { + this.accessLevel = accessLevel; + return this; + } + + /** A filter to return only findings in the specified category key. */ + private com.oracle.bmc.datasafe.model.CryptoFindingCategory category = null; + + /** + * A filter to return only findings in the specified category key. + * + * @param category the value to set + * @return this builder instance + */ + public Builder category(com.oracle.bmc.datasafe.model.CryptoFindingCategory category) { + this.category = category; + return this; + } + + /** A filter to return only findings with any of the specified finding keys. */ + private java.util.List findingKey = null; + + /** + * A filter to return only findings with any of the specified finding keys. + * + * @param findingKey the value to set + * @return this builder instance + */ + public Builder findingKey(java.util.List findingKey) { + this.findingKey = findingKey; + return this; + } + + /** + * Singular setter. A filter to return only findings with any of the specified finding keys. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder findingKey(String singularValue) { + return this.findingKey(java.util.Arrays.asList(singularValue)); + } + + /** + * A filter to return only findings that are or are not part of quantum-readiness checks. + */ + private Boolean isQuantumReadinessCheck = null; + + /** + * A filter to return only findings that are or are not part of quantum-readiness checks. + * + * @param isQuantumReadinessCheck the value to set + * @return this builder instance + */ + public Builder isQuantumReadinessCheck(Boolean isQuantumReadinessCheck) { + this.isQuantumReadinessCheck = isQuantumReadinessCheck; + return this; + } + + /** The field used to sort finding analytics results. */ + private SortBy sortBy = null; + + /** + * The field used to sort finding analytics results. + * + * @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 (ASC) or descending (DESC). */ + private SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending (ASC) or descending (DESC). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/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 page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/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; + } + + /** + * 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(ListCryptoAssessmentFindingAnalyticsRequest o) { + compartmentId(o.getCompartmentId()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); + accessLevel(o.getAccessLevel()); + category(o.getCategory()); + findingKey(o.getFindingKey()); + isQuantumReadinessCheck(o.getIsQuantumReadinessCheck()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListCryptoAssessmentFindingAnalyticsRequest 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 ListCryptoAssessmentFindingAnalyticsRequest + */ + public ListCryptoAssessmentFindingAnalyticsRequest build() { + ListCryptoAssessmentFindingAnalyticsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListCryptoAssessmentFindingAnalyticsRequest 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 ListCryptoAssessmentFindingAnalyticsRequest + */ + public ListCryptoAssessmentFindingAnalyticsRequest buildWithoutInvocationCallback() { + ListCryptoAssessmentFindingAnalyticsRequest request = + new ListCryptoAssessmentFindingAnalyticsRequest(); + request.compartmentId = compartmentId; + request.compartmentIdInSubtree = compartmentIdInSubtree; + request.accessLevel = accessLevel; + request.category = category; + request.findingKey = findingKey; + request.isQuantumReadinessCheck = isQuantumReadinessCheck; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + return request; + // new ListCryptoAssessmentFindingAnalyticsRequest(compartmentId, + // compartmentIdInSubtree, accessLevel, category, findingKey, isQuantumReadinessCheck, + // sortBy, sortOrder, opcRequestId, limit, page); + } + } + + /** + * 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) + .accessLevel(accessLevel) + .category(category) + .findingKey(findingKey) + .isQuantumReadinessCheck(isQuantumReadinessCheck) + .sortBy(sortBy) + .sortOrder(sortOrder) + .opcRequestId(opcRequestId) + .limit(limit) + .page(page); + } + + /** + * 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(",accessLevel=").append(String.valueOf(this.accessLevel)); + sb.append(",category=").append(String.valueOf(this.category)); + sb.append(",findingKey=").append(String.valueOf(this.findingKey)); + sb.append(",isQuantumReadinessCheck=").append(String.valueOf(this.isQuantumReadinessCheck)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCryptoAssessmentFindingAnalyticsRequest)) { + return false; + } + + ListCryptoAssessmentFindingAnalyticsRequest other = + (ListCryptoAssessmentFindingAnalyticsRequest) 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.accessLevel, other.accessLevel) + && java.util.Objects.equals(this.category, other.category) + && java.util.Objects.equals(this.findingKey, other.findingKey) + && java.util.Objects.equals( + this.isQuantumReadinessCheck, other.isQuantumReadinessCheck) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page); + } + + @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.accessLevel == null ? 43 : this.accessLevel.hashCode()); + result = (result * PRIME) + (this.category == null ? 43 : this.category.hashCode()); + result = (result * PRIME) + (this.findingKey == null ? 43 : this.findingKey.hashCode()); + result = + (result * PRIME) + + (this.isQuantumReadinessCheck == null + ? 43 + : this.isQuantumReadinessCheck.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentFindingTargetsRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentFindingTargetsRequest.java new file mode 100644 index 00000000000..7ff796491e6 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentFindingTargetsRequest.java @@ -0,0 +1,733 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use + * ListCryptoAssessmentFindingTargetsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentFindingTargetsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** A filter to return only resources that match the specified compartment OCID. */ + private String compartmentId; + + /** A filter to return only resources that match the specified compartment OCID. */ + public String getCompartmentId() { + return compartmentId; + } + /** The finding keys for which target occurrences are listed. */ + private java.util.List findingKey; + + /** The finding keys for which target occurrences are listed. */ + public java.util.List getFindingKey() { + return findingKey; + } + /** A filter to return targets from assessments of the specified type. */ + private com.oracle.bmc.datasafe.model.CryptoAssessment.Type assessmentType; + + /** A filter to return targets from assessments of the specified type. */ + public com.oracle.bmc.datasafe.model.CryptoAssessment.Type getAssessmentType() { + return assessmentType; + } + /** Filters results to targets with an exact matching target OCID. */ + private String targetId; + + /** Filters results to targets with an exact matching target OCID. */ + public String getTargetId() { + return targetId; + } + /** A filter to return only resources associated with any of the specified target OCIDs. */ + private java.util.List targetIds; + + /** A filter to return only resources associated with any of the specified target OCIDs. */ + public java.util.List getTargetIds() { + return targetIds; + } + /** A filter to return only finding target rows with the specified status. */ + private com.oracle.bmc.datasafe.model.CryptoFindingStatus status; + + /** A filter to return only finding target rows with the specified status. */ + public com.oracle.bmc.datasafe.model.CryptoFindingStatus getStatus() { + return status; + } + /** A filter to return only findings that are or are not part of quantum-readiness checks. */ + private Boolean isQuantumReadinessCheck; + + /** A filter to return only findings that are or are not part of quantum-readiness checks. */ + public Boolean getIsQuantumReadinessCheck() { + return isQuantumReadinessCheck; + } + /** The field used to sort finding target results. */ + private SortBy sortBy; + + /** The field used to sort finding target results. */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TargetId("targetId"), + DatabaseVersion("databaseVersion"), + ; + + 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 used to sort finding target results. */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either ascending (ASC) or descending (DESC). */ + private SortOrder sortOrder; + + /** The sort order to use, either ascending (ASC) or descending (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, either ascending (ASC) or descending (DESC). */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + private Boolean compartmentIdInSubtree; + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + public Boolean getCompartmentIdInSubtree() { + return compartmentIdInSubtree; + } + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + private AccessLevel accessLevel; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + public enum AccessLevel implements com.oracle.bmc.http.internal.BmcEnum { + Restricted("RESTRICTED"), + Accessible("ACCESSIBLE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AccessLevel v : AccessLevel.values()) { + map.put(v.getValue(), v); + } + } + + AccessLevel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AccessLevel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid AccessLevel: " + key); + } + }; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + public AccessLevel getAccessLevel() { + return accessLevel; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListCryptoAssessmentFindingTargetsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** A filter to return only resources that match the specified compartment OCID. */ + private String compartmentId = null; + + /** + * A filter to return only resources that match the specified compartment OCID. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** The finding keys for which target occurrences are listed. */ + private java.util.List findingKey = null; + + /** + * The finding keys for which target occurrences are listed. + * + * @param findingKey the value to set + * @return this builder instance + */ + public Builder findingKey(java.util.List findingKey) { + this.findingKey = findingKey; + return this; + } + + /** + * Singular setter. The finding keys for which target occurrences are listed. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder findingKey(String singularValue) { + return this.findingKey(java.util.Arrays.asList(singularValue)); + } + + /** A filter to return targets from assessments of the specified type. */ + private com.oracle.bmc.datasafe.model.CryptoAssessment.Type assessmentType = null; + + /** + * A filter to return targets from assessments of the specified type. + * + * @param assessmentType the value to set + * @return this builder instance + */ + public Builder assessmentType( + com.oracle.bmc.datasafe.model.CryptoAssessment.Type assessmentType) { + this.assessmentType = assessmentType; + return this; + } + + /** Filters results to targets with an exact matching target OCID. */ + private String targetId = null; + + /** + * Filters results to targets with an exact matching target OCID. + * + * @param targetId the value to set + * @return this builder instance + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + return this; + } + + /** A filter to return only resources associated with any of the specified target OCIDs. */ + private java.util.List targetIds = null; + + /** + * A filter to return only resources associated with any of the specified target OCIDs. + * + * @param targetIds the value to set + * @return this builder instance + */ + public Builder targetIds(java.util.List targetIds) { + this.targetIds = targetIds; + return this; + } + + /** + * Singular setter. A filter to return only resources associated with any of the specified + * target OCIDs. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder targetIds(String singularValue) { + return this.targetIds(java.util.Arrays.asList(singularValue)); + } + + /** A filter to return only finding target rows with the specified status. */ + private com.oracle.bmc.datasafe.model.CryptoFindingStatus status = null; + + /** + * A filter to return only finding target rows with the specified status. + * + * @param status the value to set + * @return this builder instance + */ + public Builder status(com.oracle.bmc.datasafe.model.CryptoFindingStatus status) { + this.status = status; + return this; + } + + /** + * A filter to return only findings that are or are not part of quantum-readiness checks. + */ + private Boolean isQuantumReadinessCheck = null; + + /** + * A filter to return only findings that are or are not part of quantum-readiness checks. + * + * @param isQuantumReadinessCheck the value to set + * @return this builder instance + */ + public Builder isQuantumReadinessCheck(Boolean isQuantumReadinessCheck) { + this.isQuantumReadinessCheck = isQuantumReadinessCheck; + return this; + } + + /** The field used to sort finding target results. */ + private SortBy sortBy = null; + + /** + * The field used to sort finding target results. + * + * @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 (ASC) or descending (DESC). */ + private SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending (ASC) or descending (DESC). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the + * 'accessLevel' setting. + */ + private Boolean compartmentIdInSubtree = null; + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the + * 'accessLevel' setting. + * + * @param compartmentIdInSubtree the value to set + * @return this builder instance + */ + public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { + this.compartmentIdInSubtree = compartmentIdInSubtree; + return this; + } + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to + * ACCESSIBLE returns only those compartments for which the user has INSPECT permissions + * directly or indirectly (permissions can be on a resource in a subcompartment). When set + * to RESTRICTED permissions are checked and no partial results are displayed. + */ + private AccessLevel accessLevel = null; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to + * ACCESSIBLE returns only those compartments for which the user has INSPECT permissions + * directly or indirectly (permissions can be on a resource in a subcompartment). When set + * to RESTRICTED permissions are checked and no partial results are displayed. + * + * @param accessLevel the value to set + * @return this builder instance + */ + public Builder accessLevel(AccessLevel accessLevel) { + this.accessLevel = accessLevel; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/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 page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/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; + } + + /** + * 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(ListCryptoAssessmentFindingTargetsRequest o) { + compartmentId(o.getCompartmentId()); + findingKey(o.getFindingKey()); + assessmentType(o.getAssessmentType()); + targetId(o.getTargetId()); + targetIds(o.getTargetIds()); + status(o.getStatus()); + isQuantumReadinessCheck(o.getIsQuantumReadinessCheck()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); + accessLevel(o.getAccessLevel()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListCryptoAssessmentFindingTargetsRequest 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 ListCryptoAssessmentFindingTargetsRequest + */ + public ListCryptoAssessmentFindingTargetsRequest build() { + ListCryptoAssessmentFindingTargetsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListCryptoAssessmentFindingTargetsRequest 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 ListCryptoAssessmentFindingTargetsRequest + */ + public ListCryptoAssessmentFindingTargetsRequest buildWithoutInvocationCallback() { + ListCryptoAssessmentFindingTargetsRequest request = + new ListCryptoAssessmentFindingTargetsRequest(); + request.compartmentId = compartmentId; + request.findingKey = findingKey; + request.assessmentType = assessmentType; + request.targetId = targetId; + request.targetIds = targetIds; + request.status = status; + request.isQuantumReadinessCheck = isQuantumReadinessCheck; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.compartmentIdInSubtree = compartmentIdInSubtree; + request.accessLevel = accessLevel; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + return request; + // new ListCryptoAssessmentFindingTargetsRequest(compartmentId, findingKey, + // assessmentType, targetId, targetIds, status, isQuantumReadinessCheck, sortBy, + // sortOrder, compartmentIdInSubtree, accessLevel, opcRequestId, limit, page); + } + } + + /** + * 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) + .findingKey(findingKey) + .assessmentType(assessmentType) + .targetId(targetId) + .targetIds(targetIds) + .status(status) + .isQuantumReadinessCheck(isQuantumReadinessCheck) + .sortBy(sortBy) + .sortOrder(sortOrder) + .compartmentIdInSubtree(compartmentIdInSubtree) + .accessLevel(accessLevel) + .opcRequestId(opcRequestId) + .limit(limit) + .page(page); + } + + /** + * 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(",findingKey=").append(String.valueOf(this.findingKey)); + sb.append(",assessmentType=").append(String.valueOf(this.assessmentType)); + sb.append(",targetId=").append(String.valueOf(this.targetId)); + sb.append(",targetIds=").append(String.valueOf(this.targetIds)); + sb.append(",status=").append(String.valueOf(this.status)); + sb.append(",isQuantumReadinessCheck=").append(String.valueOf(this.isQuantumReadinessCheck)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",compartmentIdInSubtree=").append(String.valueOf(this.compartmentIdInSubtree)); + sb.append(",accessLevel=").append(String.valueOf(this.accessLevel)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCryptoAssessmentFindingTargetsRequest)) { + return false; + } + + ListCryptoAssessmentFindingTargetsRequest other = + (ListCryptoAssessmentFindingTargetsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.findingKey, other.findingKey) + && java.util.Objects.equals(this.assessmentType, other.assessmentType) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.targetIds, other.targetIds) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals( + this.isQuantumReadinessCheck, other.isQuantumReadinessCheck) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals( + this.compartmentIdInSubtree, other.compartmentIdInSubtree) + && java.util.Objects.equals(this.accessLevel, other.accessLevel) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page); + } + + @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.findingKey == null ? 43 : this.findingKey.hashCode()); + result = + (result * PRIME) + + (this.assessmentType == null ? 43 : this.assessmentType.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = (result * PRIME) + (this.targetIds == null ? 43 : this.targetIds.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.isQuantumReadinessCheck == null + ? 43 + : this.isQuantumReadinessCheck.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = + (result * PRIME) + + (this.compartmentIdInSubtree == null + ? 43 + : this.compartmentIdInSubtree.hashCode()); + result = (result * PRIME) + (this.accessLevel == null ? 43 : this.accessLevel.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentFindingsRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentFindingsRequest.java new file mode 100644 index 00000000000..c8e0042a977 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentFindingsRequest.java @@ -0,0 +1,427 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use + * ListCryptoAssessmentFindingsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentFindingsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the crypto assessment. */ + private String cryptoAssessmentId; + + /** The OCID of the crypto assessment. */ + public String getCryptoAssessmentId() { + return cryptoAssessmentId; + } + /** A filter to return only findings with the specified finding key. */ + private String findingKey; + + /** A filter to return only findings with the specified finding key. */ + public String getFindingKey() { + return findingKey; + } + /** A filter to return only findings with the specified title. */ + private String title; + + /** A filter to return only findings with the specified title. */ + public String getTitle() { + return title; + } + /** A filter to return only findings in the specified category key. */ + private com.oracle.bmc.datasafe.model.CryptoFindingCategory category; + + /** A filter to return only findings in the specified category key. */ + public com.oracle.bmc.datasafe.model.CryptoFindingCategory getCategory() { + return category; + } + /** A filter to return only findings with the specified status. */ + private com.oracle.bmc.datasafe.model.CryptoFindingStatus status; + + /** A filter to return only findings with the specified status. */ + public com.oracle.bmc.datasafe.model.CryptoFindingStatus getStatus() { + return status; + } + /** A filter to return only findings that are or are not part of quantum-readiness checks. */ + private Boolean isQuantumReadinessCheck; + + /** A filter to return only findings that are or are not part of quantum-readiness checks. */ + public Boolean getIsQuantumReadinessCheck() { + return isQuantumReadinessCheck; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListCryptoAssessmentFindingsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the crypto assessment. */ + private String cryptoAssessmentId = null; + + /** + * The OCID of the crypto assessment. + * + * @param cryptoAssessmentId the value to set + * @return this builder instance + */ + public Builder cryptoAssessmentId(String cryptoAssessmentId) { + this.cryptoAssessmentId = cryptoAssessmentId; + return this; + } + + /** A filter to return only findings with the specified finding key. */ + private String findingKey = null; + + /** + * A filter to return only findings with the specified finding key. + * + * @param findingKey the value to set + * @return this builder instance + */ + public Builder findingKey(String findingKey) { + this.findingKey = findingKey; + return this; + } + + /** A filter to return only findings with the specified title. */ + private String title = null; + + /** + * A filter to return only findings with the specified title. + * + * @param title the value to set + * @return this builder instance + */ + public Builder title(String title) { + this.title = title; + return this; + } + + /** A filter to return only findings in the specified category key. */ + private com.oracle.bmc.datasafe.model.CryptoFindingCategory category = null; + + /** + * A filter to return only findings in the specified category key. + * + * @param category the value to set + * @return this builder instance + */ + public Builder category(com.oracle.bmc.datasafe.model.CryptoFindingCategory category) { + this.category = category; + return this; + } + + /** A filter to return only findings with the specified status. */ + private com.oracle.bmc.datasafe.model.CryptoFindingStatus status = null; + + /** + * A filter to return only findings with the specified status. + * + * @param status the value to set + * @return this builder instance + */ + public Builder status(com.oracle.bmc.datasafe.model.CryptoFindingStatus status) { + this.status = status; + return this; + } + + /** + * A filter to return only findings that are or are not part of quantum-readiness checks. + */ + private Boolean isQuantumReadinessCheck = null; + + /** + * A filter to return only findings that are or are not part of quantum-readiness checks. + * + * @param isQuantumReadinessCheck the value to set + * @return this builder instance + */ + public Builder isQuantumReadinessCheck(Boolean isQuantumReadinessCheck) { + this.isQuantumReadinessCheck = isQuantumReadinessCheck; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/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 page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/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; + } + + /** + * 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(ListCryptoAssessmentFindingsRequest o) { + cryptoAssessmentId(o.getCryptoAssessmentId()); + findingKey(o.getFindingKey()); + title(o.getTitle()); + category(o.getCategory()); + status(o.getStatus()); + isQuantumReadinessCheck(o.getIsQuantumReadinessCheck()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListCryptoAssessmentFindingsRequest 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 ListCryptoAssessmentFindingsRequest + */ + public ListCryptoAssessmentFindingsRequest build() { + ListCryptoAssessmentFindingsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListCryptoAssessmentFindingsRequest 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 ListCryptoAssessmentFindingsRequest + */ + public ListCryptoAssessmentFindingsRequest buildWithoutInvocationCallback() { + ListCryptoAssessmentFindingsRequest request = new ListCryptoAssessmentFindingsRequest(); + request.cryptoAssessmentId = cryptoAssessmentId; + request.findingKey = findingKey; + request.title = title; + request.category = category; + request.status = status; + request.isQuantumReadinessCheck = isQuantumReadinessCheck; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + return request; + // new ListCryptoAssessmentFindingsRequest(cryptoAssessmentId, findingKey, title, + // category, status, isQuantumReadinessCheck, opcRequestId, limit, page); + } + } + + /** + * 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() + .cryptoAssessmentId(cryptoAssessmentId) + .findingKey(findingKey) + .title(title) + .category(category) + .status(status) + .isQuantumReadinessCheck(isQuantumReadinessCheck) + .opcRequestId(opcRequestId) + .limit(limit) + .page(page); + } + + /** + * 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(",cryptoAssessmentId=").append(String.valueOf(this.cryptoAssessmentId)); + sb.append(",findingKey=").append(String.valueOf(this.findingKey)); + sb.append(",title=").append(String.valueOf(this.title)); + sb.append(",category=").append(String.valueOf(this.category)); + sb.append(",status=").append(String.valueOf(this.status)); + sb.append(",isQuantumReadinessCheck=").append(String.valueOf(this.isQuantumReadinessCheck)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCryptoAssessmentFindingsRequest)) { + return false; + } + + ListCryptoAssessmentFindingsRequest other = (ListCryptoAssessmentFindingsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.cryptoAssessmentId, other.cryptoAssessmentId) + && java.util.Objects.equals(this.findingKey, other.findingKey) + && java.util.Objects.equals(this.title, other.title) + && java.util.Objects.equals(this.category, other.category) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals( + this.isQuantumReadinessCheck, other.isQuantumReadinessCheck) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.cryptoAssessmentId == null + ? 43 + : this.cryptoAssessmentId.hashCode()); + result = (result * PRIME) + (this.findingKey == null ? 43 : this.findingKey.hashCode()); + result = (result * PRIME) + (this.title == null ? 43 : this.title.hashCode()); + result = (result * PRIME) + (this.category == null ? 43 : this.category.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.isQuantumReadinessCheck == null + ? 43 + : this.isQuantumReadinessCheck.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentKeysRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentKeysRequest.java new file mode 100644 index 00000000000..5a859f44412 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentKeysRequest.java @@ -0,0 +1,793 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use + * ListCryptoAssessmentKeysRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentKeysRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** A filter to return only resources that match the specified compartment OCID. */ + private String compartmentId; + + /** A filter to return only resources that match the specified compartment OCID. */ + public String getCompartmentId() { + return compartmentId; + } + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + private Boolean compartmentIdInSubtree; + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + public Boolean getCompartmentIdInSubtree() { + return compartmentIdInSubtree; + } + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + private AccessLevel accessLevel; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + public enum AccessLevel implements com.oracle.bmc.http.internal.BmcEnum { + Restricted("RESTRICTED"), + Accessible("ACCESSIBLE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AccessLevel v : AccessLevel.values()) { + map.put(v.getValue(), v); + } + } + + AccessLevel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AccessLevel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid AccessLevel: " + key); + } + }; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + public AccessLevel getAccessLevel() { + return accessLevel; + } + /** A filter to return only resources associated with the specified crypto assessment OCID. */ + private String assessmentId; + + /** A filter to return only resources associated with the specified crypto assessment OCID. */ + public String getAssessmentId() { + return assessmentId; + } + /** A filter to return targets from assessments of the specified type. */ + private com.oracle.bmc.datasafe.model.CryptoAssessment.Type assessmentType; + + /** A filter to return targets from assessments of the specified type. */ + public com.oracle.bmc.datasafe.model.CryptoAssessment.Type getAssessmentType() { + return assessmentType; + } + /** A filter to return only inventory rows associated with the specified target OCID. */ + private String targetId; + + /** A filter to return only inventory rows associated with the specified target OCID. */ + public String getTargetId() { + return targetId; + } + /** A filter to return only resources associated with any of the specified target OCIDs. */ + private java.util.List targetIds; + + /** A filter to return only resources associated with any of the specified target OCIDs. */ + public java.util.List getTargetIds() { + return targetIds; + } + /** A filter to return only records for the specified feature. */ + private com.oracle.bmc.datasafe.model.CryptoFeature feature; + + /** A filter to return only records for the specified feature. */ + public com.oracle.bmc.datasafe.model.CryptoFeature getFeature() { + return feature; + } + /** Filters key results to rows with an exact matching keyId. */ + private String keyId; + + /** Filters key results to rows with an exact matching keyId. */ + public String getKeyId() { + return keyId; + } + /** Filters key results to rows with the specified key type. */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentKeySummary.KeyType keyType; + + /** Filters key results to rows with the specified key type. */ + public com.oracle.bmc.datasafe.model.CryptoAssessmentKeySummary.KeyType getKeyType() { + return keyType; + } + /** + * Filters key results to rows whose primary or secondary keystore type matches any of the + * specified key manager types. + */ + private java.util.List keyManagerType; + + /** + * Filters key results to rows whose primary or secondary keystore type matches any of the + * specified key manager types. + */ + public java.util.List getKeyManagerType() { + return keyManagerType; + } + /** The field used to sort key results. */ + private SortBy sortBy; + + /** The field used to sort key results. */ + 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 used to sort key results. */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either ascending (ASC) or descending (DESC). */ + private SortOrder sortOrder; + + /** The sort order to use, either ascending (ASC) or descending (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, either ascending (ASC) or descending (DESC). */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListCryptoAssessmentKeysRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** A filter to return only resources that match the specified compartment OCID. */ + private String compartmentId = null; + + /** + * A filter to return only resources that match the specified compartment OCID. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the + * 'accessLevel' setting. + */ + private Boolean compartmentIdInSubtree = null; + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the + * 'accessLevel' setting. + * + * @param compartmentIdInSubtree the value to set + * @return this builder instance + */ + public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { + this.compartmentIdInSubtree = compartmentIdInSubtree; + return this; + } + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to + * ACCESSIBLE returns only those compartments for which the user has INSPECT permissions + * directly or indirectly (permissions can be on a resource in a subcompartment). When set + * to RESTRICTED permissions are checked and no partial results are displayed. + */ + private AccessLevel accessLevel = null; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to + * ACCESSIBLE returns only those compartments for which the user has INSPECT permissions + * directly or indirectly (permissions can be on a resource in a subcompartment). When set + * to RESTRICTED permissions are checked and no partial results are displayed. + * + * @param accessLevel the value to set + * @return this builder instance + */ + public Builder accessLevel(AccessLevel accessLevel) { + this.accessLevel = accessLevel; + return this; + } + + /** + * A filter to return only resources associated with the specified crypto assessment OCID. + */ + private String assessmentId = null; + + /** + * A filter to return only resources associated with the specified crypto assessment OCID. + * + * @param assessmentId the value to set + * @return this builder instance + */ + public Builder assessmentId(String assessmentId) { + this.assessmentId = assessmentId; + return this; + } + + /** A filter to return targets from assessments of the specified type. */ + private com.oracle.bmc.datasafe.model.CryptoAssessment.Type assessmentType = null; + + /** + * A filter to return targets from assessments of the specified type. + * + * @param assessmentType the value to set + * @return this builder instance + */ + public Builder assessmentType( + com.oracle.bmc.datasafe.model.CryptoAssessment.Type assessmentType) { + this.assessmentType = assessmentType; + return this; + } + + /** A filter to return only inventory rows associated with the specified target OCID. */ + private String targetId = null; + + /** + * A filter to return only inventory rows associated with the specified target OCID. + * + * @param targetId the value to set + * @return this builder instance + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + return this; + } + + /** A filter to return only resources associated with any of the specified target OCIDs. */ + private java.util.List targetIds = null; + + /** + * A filter to return only resources associated with any of the specified target OCIDs. + * + * @param targetIds the value to set + * @return this builder instance + */ + public Builder targetIds(java.util.List targetIds) { + this.targetIds = targetIds; + return this; + } + + /** + * Singular setter. A filter to return only resources associated with any of the specified + * target OCIDs. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder targetIds(String singularValue) { + return this.targetIds(java.util.Arrays.asList(singularValue)); + } + + /** A filter to return only records for the specified feature. */ + private com.oracle.bmc.datasafe.model.CryptoFeature feature = null; + + /** + * A filter to return only records for the specified feature. + * + * @param feature the value to set + * @return this builder instance + */ + public Builder feature(com.oracle.bmc.datasafe.model.CryptoFeature feature) { + this.feature = feature; + return this; + } + + /** Filters key results to rows with an exact matching keyId. */ + private String keyId = null; + + /** + * Filters key results to rows with an exact matching keyId. + * + * @param keyId the value to set + * @return this builder instance + */ + public Builder keyId(String keyId) { + this.keyId = keyId; + return this; + } + + /** Filters key results to rows with the specified key type. */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentKeySummary.KeyType keyType = null; + + /** + * Filters key results to rows with the specified key type. + * + * @param keyType the value to set + * @return this builder instance + */ + public Builder keyType( + com.oracle.bmc.datasafe.model.CryptoAssessmentKeySummary.KeyType keyType) { + this.keyType = keyType; + return this; + } + + /** + * Filters key results to rows whose primary or secondary keystore type matches any of the + * specified key manager types. + */ + private java.util.List keyManagerType = + null; + + /** + * Filters key results to rows whose primary or secondary keystore type matches any of the + * specified key manager types. + * + * @param keyManagerType the value to set + * @return this builder instance + */ + public Builder keyManagerType( + java.util.List keyManagerType) { + this.keyManagerType = keyManagerType; + return this; + } + + /** + * Singular setter. Filters key results to rows whose primary or secondary keystore type + * matches any of the specified key manager types. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder keyManagerType(CryptoKeystoreType singularValue) { + return this.keyManagerType(java.util.Arrays.asList(singularValue)); + } + + /** The field used to sort key results. */ + private SortBy sortBy = null; + + /** + * The field used to sort key results. + * + * @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 (ASC) or descending (DESC). */ + private SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending (ASC) or descending (DESC). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/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 page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/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; + } + + /** + * 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(ListCryptoAssessmentKeysRequest o) { + compartmentId(o.getCompartmentId()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); + accessLevel(o.getAccessLevel()); + assessmentId(o.getAssessmentId()); + assessmentType(o.getAssessmentType()); + targetId(o.getTargetId()); + targetIds(o.getTargetIds()); + feature(o.getFeature()); + keyId(o.getKeyId()); + keyType(o.getKeyType()); + keyManagerType(o.getKeyManagerType()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListCryptoAssessmentKeysRequest 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 ListCryptoAssessmentKeysRequest + */ + public ListCryptoAssessmentKeysRequest build() { + ListCryptoAssessmentKeysRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListCryptoAssessmentKeysRequest 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 ListCryptoAssessmentKeysRequest + */ + public ListCryptoAssessmentKeysRequest buildWithoutInvocationCallback() { + ListCryptoAssessmentKeysRequest request = new ListCryptoAssessmentKeysRequest(); + request.compartmentId = compartmentId; + request.compartmentIdInSubtree = compartmentIdInSubtree; + request.accessLevel = accessLevel; + request.assessmentId = assessmentId; + request.assessmentType = assessmentType; + request.targetId = targetId; + request.targetIds = targetIds; + request.feature = feature; + request.keyId = keyId; + request.keyType = keyType; + request.keyManagerType = keyManagerType; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + return request; + // new ListCryptoAssessmentKeysRequest(compartmentId, compartmentIdInSubtree, + // accessLevel, assessmentId, assessmentType, targetId, targetIds, feature, keyId, + // keyType, keyManagerType, sortBy, sortOrder, opcRequestId, limit, page); + } + } + + /** + * 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) + .accessLevel(accessLevel) + .assessmentId(assessmentId) + .assessmentType(assessmentType) + .targetId(targetId) + .targetIds(targetIds) + .feature(feature) + .keyId(keyId) + .keyType(keyType) + .keyManagerType(keyManagerType) + .sortBy(sortBy) + .sortOrder(sortOrder) + .opcRequestId(opcRequestId) + .limit(limit) + .page(page); + } + + /** + * 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(",accessLevel=").append(String.valueOf(this.accessLevel)); + sb.append(",assessmentId=").append(String.valueOf(this.assessmentId)); + sb.append(",assessmentType=").append(String.valueOf(this.assessmentType)); + sb.append(",targetId=").append(String.valueOf(this.targetId)); + sb.append(",targetIds=").append(String.valueOf(this.targetIds)); + sb.append(",feature=").append(String.valueOf(this.feature)); + sb.append(",keyId=").append(String.valueOf(this.keyId)); + sb.append(",keyType=").append(String.valueOf(this.keyType)); + sb.append(",keyManagerType=").append(String.valueOf(this.keyManagerType)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCryptoAssessmentKeysRequest)) { + return false; + } + + ListCryptoAssessmentKeysRequest other = (ListCryptoAssessmentKeysRequest) 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.accessLevel, other.accessLevel) + && java.util.Objects.equals(this.assessmentId, other.assessmentId) + && java.util.Objects.equals(this.assessmentType, other.assessmentType) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.targetIds, other.targetIds) + && java.util.Objects.equals(this.feature, other.feature) + && java.util.Objects.equals(this.keyId, other.keyId) + && java.util.Objects.equals(this.keyType, other.keyType) + && java.util.Objects.equals(this.keyManagerType, other.keyManagerType) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page); + } + + @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.accessLevel == null ? 43 : this.accessLevel.hashCode()); + result = (result * PRIME) + (this.assessmentId == null ? 43 : this.assessmentId.hashCode()); + result = + (result * PRIME) + + (this.assessmentType == null ? 43 : this.assessmentType.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = (result * PRIME) + (this.targetIds == null ? 43 : this.targetIds.hashCode()); + result = (result * PRIME) + (this.feature == null ? 43 : this.feature.hashCode()); + result = (result * PRIME) + (this.keyId == null ? 43 : this.keyId.hashCode()); + result = (result * PRIME) + (this.keyType == null ? 43 : this.keyType.hashCode()); + result = + (result * PRIME) + + (this.keyManagerType == null ? 43 : this.keyManagerType.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentTdeObjectsRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentTdeObjectsRequest.java new file mode 100644 index 00000000000..7d4ffffe16a --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentTdeObjectsRequest.java @@ -0,0 +1,885 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use + * ListCryptoAssessmentTdeObjectsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentTdeObjectsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** A filter to return only resources that match the specified compartment OCID. */ + private String compartmentId; + + /** A filter to return only resources that match the specified compartment OCID. */ + public String getCompartmentId() { + return compartmentId; + } + /** A required filter to return only TDE objects of the specified type. */ + private ObjectType objectType; + + /** A required filter to return only TDE objects of the specified type. */ + public enum ObjectType implements com.oracle.bmc.http.internal.BmcEnum { + Tablespace("TABLESPACE"), + Column("COLUMN"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ObjectType v : ObjectType.values()) { + map.put(v.getValue(), v); + } + } + + ObjectType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ObjectType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ObjectType: " + key); + } + }; + + /** A required filter to return only TDE objects of the specified type. */ + public ObjectType getObjectType() { + return objectType; + } + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + private Boolean compartmentIdInSubtree; + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + public Boolean getCompartmentIdInSubtree() { + return compartmentIdInSubtree; + } + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + private AccessLevel accessLevel; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + public enum AccessLevel implements com.oracle.bmc.http.internal.BmcEnum { + Restricted("RESTRICTED"), + Accessible("ACCESSIBLE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AccessLevel v : AccessLevel.values()) { + map.put(v.getValue(), v); + } + } + + AccessLevel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AccessLevel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid AccessLevel: " + key); + } + }; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + public AccessLevel getAccessLevel() { + return accessLevel; + } + /** A filter to return only resources associated with the specified crypto assessment OCID. */ + private String assessmentId; + + /** A filter to return only resources associated with the specified crypto assessment OCID. */ + public String getAssessmentId() { + return assessmentId; + } + /** A filter to return targets from assessments of the specified type. */ + private com.oracle.bmc.datasafe.model.CryptoAssessment.Type assessmentType; + + /** A filter to return targets from assessments of the specified type. */ + public com.oracle.bmc.datasafe.model.CryptoAssessment.Type getAssessmentType() { + return assessmentType; + } + /** A filter to return only inventory rows associated with the specified target OCID. */ + private String targetId; + + /** A filter to return only inventory rows associated with the specified target OCID. */ + public String getTargetId() { + return targetId; + } + /** A filter to return only resources associated with any of the specified target OCIDs. */ + private java.util.List targetIds; + + /** A filter to return only resources associated with any of the specified target OCIDs. */ + public java.util.List getTargetIds() { + return targetIds; + } + /** Filters TDE object summary rows by quantum-readiness category. */ + private com.oracle.bmc.datasafe.model.CryptoQuantumReadiness quantumReadiness; + + /** Filters TDE object summary rows by quantum-readiness category. */ + public com.oracle.bmc.datasafe.model.CryptoQuantumReadiness getQuantumReadiness() { + return quantumReadiness; + } + /** Filters TDE object summary rows by any of the specified observed encryption algorithms. */ + private java.util.List encryptionObserved; + + /** Filters TDE object summary rows by any of the specified observed encryption algorithms. */ + public java.util.List getEncryptionObserved() { + return encryptionObserved; + } + /** + * Filters TDE object summary rows by derived encryption status. NOT_SUPPORTED maps to rows + * where encryptionObserved is NOT_SUPPORTED, UNENCRYPTED maps to rows where encryptionObserved + * is null or NONE, and ENCRYPTED maps to rows where the observed encryption algorithm is any + * other value. + */ + private EncryptionStatus encryptionStatus; + + /** + * Filters TDE object summary rows by derived encryption status. NOT_SUPPORTED maps to rows + * where encryptionObserved is NOT_SUPPORTED, UNENCRYPTED maps to rows where encryptionObserved + * is null or NONE, and ENCRYPTED maps to rows where the observed encryption algorithm is any + * other value. + */ + public enum EncryptionStatus implements com.oracle.bmc.http.internal.BmcEnum { + Encrypted("ENCRYPTED"), + Unencrypted("UNENCRYPTED"), + NotSupported("NOT_SUPPORTED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (EncryptionStatus v : EncryptionStatus.values()) { + map.put(v.getValue(), v); + } + } + + EncryptionStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static EncryptionStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid EncryptionStatus: " + key); + } + }; + + /** + * Filters TDE object summary rows by derived encryption status. NOT_SUPPORTED maps to rows + * where encryptionObserved is NOT_SUPPORTED, UNENCRYPTED maps to rows where encryptionObserved + * is null or NONE, and ENCRYPTED maps to rows where the observed encryption algorithm is any + * other value. + */ + public EncryptionStatus getEncryptionStatus() { + return encryptionStatus; + } + /** The field used to sort TDE object summary results. */ + private SortBy sortBy; + + /** The field used to sort TDE object summary results. */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TablespaceName("tablespaceName"), + ColumnName("columnName"), + QuantumReadiness("quantumReadiness"), + ; + + 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 used to sort TDE object summary results. */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either ascending (ASC) or descending (DESC). */ + private SortOrder sortOrder; + + /** The sort order to use, either ascending (ASC) or descending (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, either ascending (ASC) or descending (DESC). */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListCryptoAssessmentTdeObjectsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** A filter to return only resources that match the specified compartment OCID. */ + private String compartmentId = null; + + /** + * A filter to return only resources that match the specified compartment OCID. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** A required filter to return only TDE objects of the specified type. */ + private ObjectType objectType = null; + + /** + * A required filter to return only TDE objects of the specified type. + * + * @param objectType the value to set + * @return this builder instance + */ + public Builder objectType(ObjectType objectType) { + this.objectType = objectType; + return this; + } + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the + * 'accessLevel' setting. + */ + private Boolean compartmentIdInSubtree = null; + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the + * 'accessLevel' setting. + * + * @param compartmentIdInSubtree the value to set + * @return this builder instance + */ + public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { + this.compartmentIdInSubtree = compartmentIdInSubtree; + return this; + } + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to + * ACCESSIBLE returns only those compartments for which the user has INSPECT permissions + * directly or indirectly (permissions can be on a resource in a subcompartment). When set + * to RESTRICTED permissions are checked and no partial results are displayed. + */ + private AccessLevel accessLevel = null; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to + * ACCESSIBLE returns only those compartments for which the user has INSPECT permissions + * directly or indirectly (permissions can be on a resource in a subcompartment). When set + * to RESTRICTED permissions are checked and no partial results are displayed. + * + * @param accessLevel the value to set + * @return this builder instance + */ + public Builder accessLevel(AccessLevel accessLevel) { + this.accessLevel = accessLevel; + return this; + } + + /** + * A filter to return only resources associated with the specified crypto assessment OCID. + */ + private String assessmentId = null; + + /** + * A filter to return only resources associated with the specified crypto assessment OCID. + * + * @param assessmentId the value to set + * @return this builder instance + */ + public Builder assessmentId(String assessmentId) { + this.assessmentId = assessmentId; + return this; + } + + /** A filter to return targets from assessments of the specified type. */ + private com.oracle.bmc.datasafe.model.CryptoAssessment.Type assessmentType = null; + + /** + * A filter to return targets from assessments of the specified type. + * + * @param assessmentType the value to set + * @return this builder instance + */ + public Builder assessmentType( + com.oracle.bmc.datasafe.model.CryptoAssessment.Type assessmentType) { + this.assessmentType = assessmentType; + return this; + } + + /** A filter to return only inventory rows associated with the specified target OCID. */ + private String targetId = null; + + /** + * A filter to return only inventory rows associated with the specified target OCID. + * + * @param targetId the value to set + * @return this builder instance + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + return this; + } + + /** A filter to return only resources associated with any of the specified target OCIDs. */ + private java.util.List targetIds = null; + + /** + * A filter to return only resources associated with any of the specified target OCIDs. + * + * @param targetIds the value to set + * @return this builder instance + */ + public Builder targetIds(java.util.List targetIds) { + this.targetIds = targetIds; + return this; + } + + /** + * Singular setter. A filter to return only resources associated with any of the specified + * target OCIDs. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder targetIds(String singularValue) { + return this.targetIds(java.util.Arrays.asList(singularValue)); + } + + /** Filters TDE object summary rows by quantum-readiness category. */ + private com.oracle.bmc.datasafe.model.CryptoQuantumReadiness quantumReadiness = null; + + /** + * Filters TDE object summary rows by quantum-readiness category. + * + * @param quantumReadiness the value to set + * @return this builder instance + */ + public Builder quantumReadiness( + com.oracle.bmc.datasafe.model.CryptoQuantumReadiness quantumReadiness) { + this.quantumReadiness = quantumReadiness; + return this; + } + + /** + * Filters TDE object summary rows by any of the specified observed encryption algorithms. + */ + private java.util.List encryptionObserved = null; + + /** + * Filters TDE object summary rows by any of the specified observed encryption algorithms. + * + * @param encryptionObserved the value to set + * @return this builder instance + */ + public Builder encryptionObserved(java.util.List encryptionObserved) { + this.encryptionObserved = encryptionObserved; + return this; + } + + /** + * Singular setter. Filters TDE object summary rows by any of the specified observed + * encryption algorithms. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder encryptionObserved(String singularValue) { + return this.encryptionObserved(java.util.Arrays.asList(singularValue)); + } + + /** + * Filters TDE object summary rows by derived encryption status. NOT_SUPPORTED maps to rows + * where encryptionObserved is NOT_SUPPORTED, UNENCRYPTED maps to rows where + * encryptionObserved is null or NONE, and ENCRYPTED maps to rows where the observed + * encryption algorithm is any other value. + */ + private EncryptionStatus encryptionStatus = null; + + /** + * Filters TDE object summary rows by derived encryption status. NOT_SUPPORTED maps to rows + * where encryptionObserved is NOT_SUPPORTED, UNENCRYPTED maps to rows where + * encryptionObserved is null or NONE, and ENCRYPTED maps to rows where the observed + * encryption algorithm is any other value. + * + * @param encryptionStatus the value to set + * @return this builder instance + */ + public Builder encryptionStatus(EncryptionStatus encryptionStatus) { + this.encryptionStatus = encryptionStatus; + return this; + } + + /** The field used to sort TDE object summary results. */ + private SortBy sortBy = null; + + /** + * The field used to sort TDE object summary results. + * + * @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 (ASC) or descending (DESC). */ + private SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending (ASC) or descending (DESC). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/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 page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/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; + } + + /** + * 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(ListCryptoAssessmentTdeObjectsRequest o) { + compartmentId(o.getCompartmentId()); + objectType(o.getObjectType()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); + accessLevel(o.getAccessLevel()); + assessmentId(o.getAssessmentId()); + assessmentType(o.getAssessmentType()); + targetId(o.getTargetId()); + targetIds(o.getTargetIds()); + quantumReadiness(o.getQuantumReadiness()); + encryptionObserved(o.getEncryptionObserved()); + encryptionStatus(o.getEncryptionStatus()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListCryptoAssessmentTdeObjectsRequest 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 ListCryptoAssessmentTdeObjectsRequest + */ + public ListCryptoAssessmentTdeObjectsRequest build() { + ListCryptoAssessmentTdeObjectsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListCryptoAssessmentTdeObjectsRequest 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 ListCryptoAssessmentTdeObjectsRequest + */ + public ListCryptoAssessmentTdeObjectsRequest buildWithoutInvocationCallback() { + ListCryptoAssessmentTdeObjectsRequest request = + new ListCryptoAssessmentTdeObjectsRequest(); + request.compartmentId = compartmentId; + request.objectType = objectType; + request.compartmentIdInSubtree = compartmentIdInSubtree; + request.accessLevel = accessLevel; + request.assessmentId = assessmentId; + request.assessmentType = assessmentType; + request.targetId = targetId; + request.targetIds = targetIds; + request.quantumReadiness = quantumReadiness; + request.encryptionObserved = encryptionObserved; + request.encryptionStatus = encryptionStatus; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + return request; + // new ListCryptoAssessmentTdeObjectsRequest(compartmentId, objectType, + // compartmentIdInSubtree, accessLevel, assessmentId, assessmentType, targetId, + // targetIds, quantumReadiness, encryptionObserved, encryptionStatus, sortBy, sortOrder, + // opcRequestId, limit, page); + } + } + + /** + * 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) + .objectType(objectType) + .compartmentIdInSubtree(compartmentIdInSubtree) + .accessLevel(accessLevel) + .assessmentId(assessmentId) + .assessmentType(assessmentType) + .targetId(targetId) + .targetIds(targetIds) + .quantumReadiness(quantumReadiness) + .encryptionObserved(encryptionObserved) + .encryptionStatus(encryptionStatus) + .sortBy(sortBy) + .sortOrder(sortOrder) + .opcRequestId(opcRequestId) + .limit(limit) + .page(page); + } + + /** + * 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(",objectType=").append(String.valueOf(this.objectType)); + sb.append(",compartmentIdInSubtree=").append(String.valueOf(this.compartmentIdInSubtree)); + sb.append(",accessLevel=").append(String.valueOf(this.accessLevel)); + sb.append(",assessmentId=").append(String.valueOf(this.assessmentId)); + sb.append(",assessmentType=").append(String.valueOf(this.assessmentType)); + sb.append(",targetId=").append(String.valueOf(this.targetId)); + sb.append(",targetIds=").append(String.valueOf(this.targetIds)); + sb.append(",quantumReadiness=").append(String.valueOf(this.quantumReadiness)); + sb.append(",encryptionObserved=").append(String.valueOf(this.encryptionObserved)); + sb.append(",encryptionStatus=").append(String.valueOf(this.encryptionStatus)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCryptoAssessmentTdeObjectsRequest)) { + return false; + } + + ListCryptoAssessmentTdeObjectsRequest other = (ListCryptoAssessmentTdeObjectsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.objectType, other.objectType) + && java.util.Objects.equals( + this.compartmentIdInSubtree, other.compartmentIdInSubtree) + && java.util.Objects.equals(this.accessLevel, other.accessLevel) + && java.util.Objects.equals(this.assessmentId, other.assessmentId) + && java.util.Objects.equals(this.assessmentType, other.assessmentType) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.targetIds, other.targetIds) + && java.util.Objects.equals(this.quantumReadiness, other.quantumReadiness) + && java.util.Objects.equals(this.encryptionObserved, other.encryptionObserved) + && java.util.Objects.equals(this.encryptionStatus, other.encryptionStatus) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page); + } + + @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.objectType == null ? 43 : this.objectType.hashCode()); + result = + (result * PRIME) + + (this.compartmentIdInSubtree == null + ? 43 + : this.compartmentIdInSubtree.hashCode()); + result = (result * PRIME) + (this.accessLevel == null ? 43 : this.accessLevel.hashCode()); + result = (result * PRIME) + (this.assessmentId == null ? 43 : this.assessmentId.hashCode()); + result = + (result * PRIME) + + (this.assessmentType == null ? 43 : this.assessmentType.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = (result * PRIME) + (this.targetIds == null ? 43 : this.targetIds.hashCode()); + result = + (result * PRIME) + + (this.quantumReadiness == null ? 43 : this.quantumReadiness.hashCode()); + result = + (result * PRIME) + + (this.encryptionObserved == null + ? 43 + : this.encryptionObserved.hashCode()); + result = + (result * PRIME) + + (this.encryptionStatus == null ? 43 : this.encryptionStatus.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentWalletsRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentWalletsRequest.java new file mode 100644 index 00000000000..557098523c0 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentWalletsRequest.java @@ -0,0 +1,742 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use + * ListCryptoAssessmentWalletsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentWalletsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** A filter to return only resources that match the specified compartment OCID. */ + private String compartmentId; + + /** A filter to return only resources that match the specified compartment OCID. */ + public String getCompartmentId() { + return compartmentId; + } + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + private Boolean compartmentIdInSubtree; + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + public Boolean getCompartmentIdInSubtree() { + return compartmentIdInSubtree; + } + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + private AccessLevel accessLevel; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + public enum AccessLevel implements com.oracle.bmc.http.internal.BmcEnum { + Restricted("RESTRICTED"), + Accessible("ACCESSIBLE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AccessLevel v : AccessLevel.values()) { + map.put(v.getValue(), v); + } + } + + AccessLevel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AccessLevel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid AccessLevel: " + key); + } + }; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + public AccessLevel getAccessLevel() { + return accessLevel; + } + /** A filter to return only resources associated with the specified crypto assessment OCID. */ + private String assessmentId; + + /** A filter to return only resources associated with the specified crypto assessment OCID. */ + public String getAssessmentId() { + return assessmentId; + } + /** A filter to return targets from assessments of the specified type. */ + private com.oracle.bmc.datasafe.model.CryptoAssessment.Type assessmentType; + + /** A filter to return targets from assessments of the specified type. */ + public com.oracle.bmc.datasafe.model.CryptoAssessment.Type getAssessmentType() { + return assessmentType; + } + /** A filter to return only inventory rows associated with the specified target OCID. */ + private String targetId; + + /** A filter to return only inventory rows associated with the specified target OCID. */ + public String getTargetId() { + return targetId; + } + /** A filter to return only resources associated with any of the specified target OCIDs. */ + private java.util.List targetIds; + + /** A filter to return only resources associated with any of the specified target OCIDs. */ + public java.util.List getTargetIds() { + return targetIds; + } + /** A filter to return only wallets for the specified feature. */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentWalletSummary.Feature feature; + + /** A filter to return only wallets for the specified feature. */ + public com.oracle.bmc.datasafe.model.CryptoAssessmentWalletSummary.Feature getFeature() { + return feature; + } + /** + * A filter to return only wallets whose encryption algorithm exactly matches any of the + * specified values, case-insensitively. + */ + private java.util.List walletEncryptionAlgorithm; + + /** + * A filter to return only wallets whose encryption algorithm exactly matches any of the + * specified values, case-insensitively. + */ + public java.util.List getWalletEncryptionAlgorithm() { + return walletEncryptionAlgorithm; + } + /** The field used to sort wallet results. */ + private SortBy sortBy; + + /** The field used to sort wallet results. */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Feature("feature"), + 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 used to sort wallet results. */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either ascending (ASC) or descending (DESC). */ + private SortOrder sortOrder; + + /** The sort order to use, either ascending (ASC) or descending (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, either ascending (ASC) or descending (DESC). */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListCryptoAssessmentWalletsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** A filter to return only resources that match the specified compartment OCID. */ + private String compartmentId = null; + + /** + * A filter to return only resources that match the specified compartment OCID. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the + * 'accessLevel' setting. + */ + private Boolean compartmentIdInSubtree = null; + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the + * 'accessLevel' setting. + * + * @param compartmentIdInSubtree the value to set + * @return this builder instance + */ + public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { + this.compartmentIdInSubtree = compartmentIdInSubtree; + return this; + } + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to + * ACCESSIBLE returns only those compartments for which the user has INSPECT permissions + * directly or indirectly (permissions can be on a resource in a subcompartment). When set + * to RESTRICTED permissions are checked and no partial results are displayed. + */ + private AccessLevel accessLevel = null; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to + * ACCESSIBLE returns only those compartments for which the user has INSPECT permissions + * directly or indirectly (permissions can be on a resource in a subcompartment). When set + * to RESTRICTED permissions are checked and no partial results are displayed. + * + * @param accessLevel the value to set + * @return this builder instance + */ + public Builder accessLevel(AccessLevel accessLevel) { + this.accessLevel = accessLevel; + return this; + } + + /** + * A filter to return only resources associated with the specified crypto assessment OCID. + */ + private String assessmentId = null; + + /** + * A filter to return only resources associated with the specified crypto assessment OCID. + * + * @param assessmentId the value to set + * @return this builder instance + */ + public Builder assessmentId(String assessmentId) { + this.assessmentId = assessmentId; + return this; + } + + /** A filter to return targets from assessments of the specified type. */ + private com.oracle.bmc.datasafe.model.CryptoAssessment.Type assessmentType = null; + + /** + * A filter to return targets from assessments of the specified type. + * + * @param assessmentType the value to set + * @return this builder instance + */ + public Builder assessmentType( + com.oracle.bmc.datasafe.model.CryptoAssessment.Type assessmentType) { + this.assessmentType = assessmentType; + return this; + } + + /** A filter to return only inventory rows associated with the specified target OCID. */ + private String targetId = null; + + /** + * A filter to return only inventory rows associated with the specified target OCID. + * + * @param targetId the value to set + * @return this builder instance + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + return this; + } + + /** A filter to return only resources associated with any of the specified target OCIDs. */ + private java.util.List targetIds = null; + + /** + * A filter to return only resources associated with any of the specified target OCIDs. + * + * @param targetIds the value to set + * @return this builder instance + */ + public Builder targetIds(java.util.List targetIds) { + this.targetIds = targetIds; + return this; + } + + /** + * Singular setter. A filter to return only resources associated with any of the specified + * target OCIDs. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder targetIds(String singularValue) { + return this.targetIds(java.util.Arrays.asList(singularValue)); + } + + /** A filter to return only wallets for the specified feature. */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentWalletSummary.Feature feature = null; + + /** + * A filter to return only wallets for the specified feature. + * + * @param feature the value to set + * @return this builder instance + */ + public Builder feature( + com.oracle.bmc.datasafe.model.CryptoAssessmentWalletSummary.Feature feature) { + this.feature = feature; + return this; + } + + /** + * A filter to return only wallets whose encryption algorithm exactly matches any of the + * specified values, case-insensitively. + */ + private java.util.List walletEncryptionAlgorithm = null; + + /** + * A filter to return only wallets whose encryption algorithm exactly matches any of the + * specified values, case-insensitively. + * + * @param walletEncryptionAlgorithm the value to set + * @return this builder instance + */ + public Builder walletEncryptionAlgorithm(java.util.List walletEncryptionAlgorithm) { + this.walletEncryptionAlgorithm = walletEncryptionAlgorithm; + return this; + } + + /** + * Singular setter. A filter to return only wallets whose encryption algorithm exactly + * matches any of the specified values, case-insensitively. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder walletEncryptionAlgorithm(String singularValue) { + return this.walletEncryptionAlgorithm(java.util.Arrays.asList(singularValue)); + } + + /** The field used to sort wallet results. */ + private SortBy sortBy = null; + + /** + * The field used to sort wallet results. + * + * @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 (ASC) or descending (DESC). */ + private SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending (ASC) or descending (DESC). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/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 page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/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; + } + + /** + * 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(ListCryptoAssessmentWalletsRequest o) { + compartmentId(o.getCompartmentId()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); + accessLevel(o.getAccessLevel()); + assessmentId(o.getAssessmentId()); + assessmentType(o.getAssessmentType()); + targetId(o.getTargetId()); + targetIds(o.getTargetIds()); + feature(o.getFeature()); + walletEncryptionAlgorithm(o.getWalletEncryptionAlgorithm()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListCryptoAssessmentWalletsRequest 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 ListCryptoAssessmentWalletsRequest + */ + public ListCryptoAssessmentWalletsRequest build() { + ListCryptoAssessmentWalletsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListCryptoAssessmentWalletsRequest 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 ListCryptoAssessmentWalletsRequest + */ + public ListCryptoAssessmentWalletsRequest buildWithoutInvocationCallback() { + ListCryptoAssessmentWalletsRequest request = new ListCryptoAssessmentWalletsRequest(); + request.compartmentId = compartmentId; + request.compartmentIdInSubtree = compartmentIdInSubtree; + request.accessLevel = accessLevel; + request.assessmentId = assessmentId; + request.assessmentType = assessmentType; + request.targetId = targetId; + request.targetIds = targetIds; + request.feature = feature; + request.walletEncryptionAlgorithm = walletEncryptionAlgorithm; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + return request; + // new ListCryptoAssessmentWalletsRequest(compartmentId, compartmentIdInSubtree, + // accessLevel, assessmentId, assessmentType, targetId, targetIds, feature, + // walletEncryptionAlgorithm, sortBy, sortOrder, opcRequestId, limit, page); + } + } + + /** + * 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) + .accessLevel(accessLevel) + .assessmentId(assessmentId) + .assessmentType(assessmentType) + .targetId(targetId) + .targetIds(targetIds) + .feature(feature) + .walletEncryptionAlgorithm(walletEncryptionAlgorithm) + .sortBy(sortBy) + .sortOrder(sortOrder) + .opcRequestId(opcRequestId) + .limit(limit) + .page(page); + } + + /** + * 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(",accessLevel=").append(String.valueOf(this.accessLevel)); + sb.append(",assessmentId=").append(String.valueOf(this.assessmentId)); + sb.append(",assessmentType=").append(String.valueOf(this.assessmentType)); + sb.append(",targetId=").append(String.valueOf(this.targetId)); + sb.append(",targetIds=").append(String.valueOf(this.targetIds)); + sb.append(",feature=").append(String.valueOf(this.feature)); + sb.append(",walletEncryptionAlgorithm=") + .append(String.valueOf(this.walletEncryptionAlgorithm)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCryptoAssessmentWalletsRequest)) { + return false; + } + + ListCryptoAssessmentWalletsRequest other = (ListCryptoAssessmentWalletsRequest) 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.accessLevel, other.accessLevel) + && java.util.Objects.equals(this.assessmentId, other.assessmentId) + && java.util.Objects.equals(this.assessmentType, other.assessmentType) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.targetIds, other.targetIds) + && java.util.Objects.equals(this.feature, other.feature) + && java.util.Objects.equals( + this.walletEncryptionAlgorithm, other.walletEncryptionAlgorithm) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page); + } + + @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.accessLevel == null ? 43 : this.accessLevel.hashCode()); + result = (result * PRIME) + (this.assessmentId == null ? 43 : this.assessmentId.hashCode()); + result = + (result * PRIME) + + (this.assessmentType == null ? 43 : this.assessmentType.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = (result * PRIME) + (this.targetIds == null ? 43 : this.targetIds.hashCode()); + result = (result * PRIME) + (this.feature == null ? 43 : this.feature.hashCode()); + result = + (result * PRIME) + + (this.walletEncryptionAlgorithm == null + ? 43 + : this.walletEncryptionAlgorithm.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentsRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentsRequest.java new file mode 100644 index 00000000000..d1764c75e47 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentsRequest.java @@ -0,0 +1,904 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use + * ListCryptoAssessmentsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** A filter to return only resources that match the specified compartment OCID. */ + private String compartmentId; + + /** A filter to return only resources that match the specified compartment OCID. */ + public String getCompartmentId() { + return compartmentId; + } + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + private Boolean compartmentIdInSubtree; + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + public Boolean getCompartmentIdInSubtree() { + return compartmentIdInSubtree; + } + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + private AccessLevel accessLevel; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + public enum AccessLevel implements com.oracle.bmc.http.internal.BmcEnum { + Restricted("RESTRICTED"), + Accessible("ACCESSIBLE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AccessLevel v : AccessLevel.values()) { + map.put(v.getValue(), v); + } + } + + AccessLevel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AccessLevel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid AccessLevel: " + key); + } + }; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + public AccessLevel getAccessLevel() { + return accessLevel; + } + /** A filter to return only resources that match the specified display name. */ + private String displayName; + + /** A filter to return only resources that match the specified display name. */ + public String getDisplayName() { + return displayName; + } + /** A filter to return only crypto assessments that match the specified type. */ + private com.oracle.bmc.datasafe.model.CryptoAssessment.Type type; + + /** A filter to return only crypto assessments that match the specified type. */ + public com.oracle.bmc.datasafe.model.CryptoAssessment.Type getType() { + return type; + } + /** A filter to return only resources associated with the specified crypto assessment OCID. */ + private String assessmentId; + + /** A filter to return only resources associated with the specified crypto assessment OCID. */ + public String getAssessmentId() { + return assessmentId; + } + /** + * A filter to return only crypto assessments associated with the specified target OCID. When + * provided, targetType must also be specified. + */ + private String targetId; + + /** + * A filter to return only crypto assessments associated with the specified target OCID. When + * provided, targetType must also be specified. + */ + public String getTargetId() { + return targetId; + } + /** A filter to return only resources associated with any of the specified target OCIDs. */ + private java.util.List targetIds; + + /** A filter to return only resources associated with any of the specified target OCIDs. */ + public java.util.List getTargetIds() { + return targetIds; + } + /** A filter to return the target database group that matches the specified OCID. */ + private String targetDatabaseGroupId; + + /** A filter to return the target database group that matches the specified OCID. */ + public String getTargetDatabaseGroupId() { + return targetDatabaseGroupId; + } + /** + * A filter to return crypto assessments belonging to the specified target type. {@code + * ListCryptoAssessments} returns assessment rows; use {@code targetDatabaseGroupId} to list the + * underlying target database assessments for a group. + */ + private com.oracle.bmc.datasafe.model.CryptoAssessment.TargetType targetType; + + /** + * A filter to return crypto assessments belonging to the specified target type. {@code + * ListCryptoAssessments} returns assessment rows; use {@code targetDatabaseGroupId} to list the + * underlying target database assessments for a group. + */ + public com.oracle.bmc.datasafe.model.CryptoAssessment.TargetType getTargetType() { + return targetType; + } + /** + * A filter to return only crypto assessments that match any of the specified posture + * categories. + */ + private java.util.List postureCategory; + + /** + * A filter to return only crypto assessments that match any of the specified posture + * categories. + */ + public java.util.List + getPostureCategory() { + return postureCategory; + } + /** + * A filter to return only crypto assessments whose scheduled execution state matches the + * specified value. + */ + private Boolean isAssessmentScheduled; + + /** + * A filter to return only crypto assessments whose scheduled execution state matches the + * specified value. + */ + public Boolean getIsAssessmentScheduled() { + return isAssessmentScheduled; + } + /** A filter to return only resources that match the specified lifecycle state. */ + private com.oracle.bmc.datasafe.model.CryptoAssessment.LifecycleState lifecycleState; + + /** A filter to return only resources that match the specified lifecycle state. */ + public com.oracle.bmc.datasafe.model.CryptoAssessment.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** + * The field used to sort crypto assessments. You can specify only one sort order (sortOrder). + */ + private SortBy sortBy; + + /** + * The field used to sort crypto assessments. You can specify only one sort order (sortOrder). + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + IssueCount("issueCount"), + 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 used to sort crypto assessments. You can specify only one sort order (sortOrder). + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either ascending (ASC) or descending (DESC). */ + private SortOrder sortOrder; + + /** The sort order to use, either ascending (ASC) or descending (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, either ascending (ASC) or descending (DESC). */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListCryptoAssessmentsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** A filter to return only resources that match the specified compartment OCID. */ + private String compartmentId = null; + + /** + * A filter to return only resources that match the specified compartment OCID. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the + * 'accessLevel' setting. + */ + private Boolean compartmentIdInSubtree = null; + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the + * 'accessLevel' setting. + * + * @param compartmentIdInSubtree the value to set + * @return this builder instance + */ + public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { + this.compartmentIdInSubtree = compartmentIdInSubtree; + return this; + } + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to + * ACCESSIBLE returns only those compartments for which the user has INSPECT permissions + * directly or indirectly (permissions can be on a resource in a subcompartment). When set + * to RESTRICTED permissions are checked and no partial results are displayed. + */ + private AccessLevel accessLevel = null; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to + * ACCESSIBLE returns only those compartments for which the user has INSPECT permissions + * directly or indirectly (permissions can be on a resource in a subcompartment). When set + * to RESTRICTED permissions are checked and no partial results are displayed. + * + * @param accessLevel the value to set + * @return this builder instance + */ + public Builder accessLevel(AccessLevel accessLevel) { + this.accessLevel = accessLevel; + return this; + } + + /** A filter to return only resources that match the specified display name. */ + private String displayName = null; + + /** + * A filter to return only resources that match the specified display name. + * + * @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 crypto assessments that match the specified type. */ + private com.oracle.bmc.datasafe.model.CryptoAssessment.Type type = null; + + /** + * A filter to return only crypto assessments that match the specified type. + * + * @param type the value to set + * @return this builder instance + */ + public Builder type(com.oracle.bmc.datasafe.model.CryptoAssessment.Type type) { + this.type = type; + return this; + } + + /** + * A filter to return only resources associated with the specified crypto assessment OCID. + */ + private String assessmentId = null; + + /** + * A filter to return only resources associated with the specified crypto assessment OCID. + * + * @param assessmentId the value to set + * @return this builder instance + */ + public Builder assessmentId(String assessmentId) { + this.assessmentId = assessmentId; + return this; + } + + /** + * A filter to return only crypto assessments associated with the specified target OCID. + * When provided, targetType must also be specified. + */ + private String targetId = null; + + /** + * A filter to return only crypto assessments associated with the specified target OCID. + * When provided, targetType must also be specified. + * + * @param targetId the value to set + * @return this builder instance + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + return this; + } + + /** A filter to return only resources associated with any of the specified target OCIDs. */ + private java.util.List targetIds = null; + + /** + * A filter to return only resources associated with any of the specified target OCIDs. + * + * @param targetIds the value to set + * @return this builder instance + */ + public Builder targetIds(java.util.List targetIds) { + this.targetIds = targetIds; + return this; + } + + /** + * Singular setter. A filter to return only resources associated with any of the specified + * target OCIDs. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder targetIds(String singularValue) { + return this.targetIds(java.util.Arrays.asList(singularValue)); + } + + /** A filter to return the target database group that matches the specified OCID. */ + private String targetDatabaseGroupId = null; + + /** + * A filter to return the target database group that matches the specified OCID. + * + * @param targetDatabaseGroupId the value to set + * @return this builder instance + */ + public Builder targetDatabaseGroupId(String targetDatabaseGroupId) { + this.targetDatabaseGroupId = targetDatabaseGroupId; + return this; + } + + /** + * A filter to return crypto assessments belonging to the specified target type. {@code + * ListCryptoAssessments} returns assessment rows; use {@code targetDatabaseGroupId} to list + * the underlying target database assessments for a group. + */ + private com.oracle.bmc.datasafe.model.CryptoAssessment.TargetType targetType = null; + + /** + * A filter to return crypto assessments belonging to the specified target type. {@code + * ListCryptoAssessments} returns assessment rows; use {@code targetDatabaseGroupId} to list + * the underlying target database assessments for a group. + * + * @param targetType the value to set + * @return this builder instance + */ + public Builder targetType( + com.oracle.bmc.datasafe.model.CryptoAssessment.TargetType targetType) { + this.targetType = targetType; + return this; + } + + /** + * A filter to return only crypto assessments that match any of the specified posture + * categories. + */ + private java.util.List + postureCategory = null; + + /** + * A filter to return only crypto assessments that match any of the specified posture + * categories. + * + * @param postureCategory the value to set + * @return this builder instance + */ + public Builder postureCategory( + java.util.List + postureCategory) { + this.postureCategory = postureCategory; + return this; + } + + /** + * Singular setter. A filter to return only crypto assessments that match any of the + * specified posture categories. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder postureCategory(CryptoPostureCategory singularValue) { + return this.postureCategory(java.util.Arrays.asList(singularValue)); + } + + /** + * A filter to return only crypto assessments whose scheduled execution state matches the + * specified value. + */ + private Boolean isAssessmentScheduled = null; + + /** + * A filter to return only crypto assessments whose scheduled execution state matches the + * specified value. + * + * @param isAssessmentScheduled the value to set + * @return this builder instance + */ + public Builder isAssessmentScheduled(Boolean isAssessmentScheduled) { + this.isAssessmentScheduled = isAssessmentScheduled; + return this; + } + + /** A filter to return only resources that match the specified lifecycle state. */ + private com.oracle.bmc.datasafe.model.CryptoAssessment.LifecycleState lifecycleState = null; + + /** + * A filter to return only resources that match the specified lifecycle state. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.datasafe.model.CryptoAssessment.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * The field used to sort crypto assessments. You can specify only one sort order + * (sortOrder). + */ + private SortBy sortBy = null; + + /** + * The field used to sort crypto assessments. You can specify only one sort order + * (sortOrder). + * + * @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 (ASC) or descending (DESC). */ + private SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending (ASC) or descending (DESC). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of items to return per page in a paginated "List" + * call. For details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/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 page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * For list pagination. The page token representing the page at which to start retrieving + * results. It is usually retrieved from a previous "List" call. For details about how + * pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/en-us/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; + } + + /** + * 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(ListCryptoAssessmentsRequest o) { + compartmentId(o.getCompartmentId()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); + accessLevel(o.getAccessLevel()); + displayName(o.getDisplayName()); + type(o.getType()); + assessmentId(o.getAssessmentId()); + targetId(o.getTargetId()); + targetIds(o.getTargetIds()); + targetDatabaseGroupId(o.getTargetDatabaseGroupId()); + targetType(o.getTargetType()); + postureCategory(o.getPostureCategory()); + isAssessmentScheduled(o.getIsAssessmentScheduled()); + lifecycleState(o.getLifecycleState()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListCryptoAssessmentsRequest 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 ListCryptoAssessmentsRequest + */ + public ListCryptoAssessmentsRequest build() { + ListCryptoAssessmentsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListCryptoAssessmentsRequest 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 ListCryptoAssessmentsRequest + */ + public ListCryptoAssessmentsRequest buildWithoutInvocationCallback() { + ListCryptoAssessmentsRequest request = new ListCryptoAssessmentsRequest(); + request.compartmentId = compartmentId; + request.compartmentIdInSubtree = compartmentIdInSubtree; + request.accessLevel = accessLevel; + request.displayName = displayName; + request.type = type; + request.assessmentId = assessmentId; + request.targetId = targetId; + request.targetIds = targetIds; + request.targetDatabaseGroupId = targetDatabaseGroupId; + request.targetType = targetType; + request.postureCategory = postureCategory; + request.isAssessmentScheduled = isAssessmentScheduled; + request.lifecycleState = lifecycleState; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + return request; + // new ListCryptoAssessmentsRequest(compartmentId, compartmentIdInSubtree, accessLevel, + // displayName, type, assessmentId, targetId, targetIds, targetDatabaseGroupId, + // targetType, postureCategory, isAssessmentScheduled, lifecycleState, sortBy, + // sortOrder, opcRequestId, limit, page); + } + } + + /** + * 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) + .accessLevel(accessLevel) + .displayName(displayName) + .type(type) + .assessmentId(assessmentId) + .targetId(targetId) + .targetIds(targetIds) + .targetDatabaseGroupId(targetDatabaseGroupId) + .targetType(targetType) + .postureCategory(postureCategory) + .isAssessmentScheduled(isAssessmentScheduled) + .lifecycleState(lifecycleState) + .sortBy(sortBy) + .sortOrder(sortOrder) + .opcRequestId(opcRequestId) + .limit(limit) + .page(page); + } + + /** + * 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(",accessLevel=").append(String.valueOf(this.accessLevel)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",type=").append(String.valueOf(this.type)); + sb.append(",assessmentId=").append(String.valueOf(this.assessmentId)); + sb.append(",targetId=").append(String.valueOf(this.targetId)); + sb.append(",targetIds=").append(String.valueOf(this.targetIds)); + sb.append(",targetDatabaseGroupId=").append(String.valueOf(this.targetDatabaseGroupId)); + sb.append(",targetType=").append(String.valueOf(this.targetType)); + sb.append(",postureCategory=").append(String.valueOf(this.postureCategory)); + sb.append(",isAssessmentScheduled=").append(String.valueOf(this.isAssessmentScheduled)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCryptoAssessmentsRequest)) { + return false; + } + + ListCryptoAssessmentsRequest other = (ListCryptoAssessmentsRequest) 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.accessLevel, other.accessLevel) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.assessmentId, other.assessmentId) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.targetIds, other.targetIds) + && java.util.Objects.equals(this.targetDatabaseGroupId, other.targetDatabaseGroupId) + && java.util.Objects.equals(this.targetType, other.targetType) + && java.util.Objects.equals(this.postureCategory, other.postureCategory) + && java.util.Objects.equals(this.isAssessmentScheduled, other.isAssessmentScheduled) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page); + } + + @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.accessLevel == null ? 43 : this.accessLevel.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.assessmentId == null ? 43 : this.assessmentId.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = (result * PRIME) + (this.targetIds == null ? 43 : this.targetIds.hashCode()); + result = + (result * PRIME) + + (this.targetDatabaseGroupId == null + ? 43 + : this.targetDatabaseGroupId.hashCode()); + result = (result * PRIME) + (this.targetType == null ? 43 : this.targetType.hashCode()); + result = + (result * PRIME) + + (this.postureCategory == null ? 43 : this.postureCategory.hashCode()); + result = + (result * PRIME) + + (this.isAssessmentScheduled == null + ? 43 + : this.isAssessmentScheduled.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListReportDefinitionsRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListReportDefinitionsRequest.java index 42aab7de30b..65d170e6d1e 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListReportDefinitionsRequest.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListReportDefinitionsRequest.java @@ -275,6 +275,7 @@ public enum Category implements com.oracle.bmc.http.internal.BmcEnum { CustomReports("CUSTOM_REPORTS"), Summary("SUMMARY"), ActivityAuditing("ACTIVITY_AUDITING"), + CryptoAssessment("CRYPTO_ASSESSMENT"), ; private final String value; diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseShardingRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/RefreshCryptoAssessmentRequest.java similarity index 61% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseShardingRequest.java rename to bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/RefreshCryptoAssessmentRequest.java index d70249f817d..2a382375e00 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseShardingRequest.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/RefreshCryptoAssessmentRequest.java @@ -2,38 +2,34 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.datasafe.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.datasafe.model.*; /** * Example: Click here to see how to use - * ConfigureDistributedDatabaseShardingRequest. + * RefreshCryptoAssessmentRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ConfigureDistributedDatabaseShardingRequest - extends com.oracle.bmc.requests.BmcRequest { +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class RefreshCryptoAssessmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datasafe.model.RunCryptoAssessmentDetails> { - /** Globally distributed database identifier. */ - private String distributedDatabaseId; + /** The OCID of the crypto assessment. */ + private String cryptoAssessmentId; - /** Globally distributed database identifier. */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; + /** The OCID of the crypto assessment. */ + public String getCryptoAssessmentId() { + return cryptoAssessmentId; } - /** - * 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 details required to create an on-demand saved crypto assessment. */ + private com.oracle.bmc.datasafe.model.RunCryptoAssessmentDetails runCryptoAssessmentDetails; - /** - * 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 details required to create an on-demand saved crypto assessment. */ + public com.oracle.bmc.datasafe.model.RunCryptoAssessmentDetails + getRunCryptoAssessmentDetails() { + return runCryptoAssessmentDetails; } /** * A token that uniquely identifies a request so it can be retried in case of a timeout or @@ -54,24 +50,24 @@ public Boolean getIsRebalanceRequired() { public String getOpcRetryToken() { return opcRetryToken; } - /** The client request ID for tracing. */ + /** Unique identifier for the request. */ private String opcRequestId; - /** The client request ID for tracing. */ + /** Unique identifier for the request. */ 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 + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * if-match parameter to the value of the etag from a previous GET or POST 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 + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * if-match parameter to the value of the etag from a previous GET or POST response for that * resource. The resource will be updated or deleted only if the etag you provide matches the * resource's current etag value. */ @@ -79,41 +75,52 @@ public String getIfMatch() { return ifMatch; } + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datasafe.model.RunCryptoAssessmentDetails getBody$() { + return runCryptoAssessmentDetails; + } + public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - ConfigureDistributedDatabaseShardingRequest, java.lang.Void> { + RefreshCryptoAssessmentRequest, + com.oracle.bmc.datasafe.model.RunCryptoAssessmentDetails> { 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; + /** The OCID of the crypto assessment. */ + private String cryptoAssessmentId = null; /** - * Globally distributed database identifier. + * The OCID of the crypto assessment. * - * @param distributedDatabaseId the value to set + * @param cryptoAssessmentId the value to set * @return this builder instance */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; + public Builder cryptoAssessmentId(String cryptoAssessmentId) { + this.cryptoAssessmentId = cryptoAssessmentId; 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 details required to create an on-demand saved crypto assessment. */ + private com.oracle.bmc.datasafe.model.RunCryptoAssessmentDetails + runCryptoAssessmentDetails = null; /** - * The flag to indicate whether chunks need to be re-balanced. This flag is not applicable - * for USER-defined sharding type. + * The details required to create an on-demand saved crypto assessment. * - * @param isRebalanceRequired the value to set + * @param runCryptoAssessmentDetails the value to set * @return this builder instance */ - public Builder isRebalanceRequired(Boolean isRebalanceRequired) { - this.isRebalanceRequired = isRebalanceRequired; + public Builder runCryptoAssessmentDetails( + com.oracle.bmc.datasafe.model.RunCryptoAssessmentDetails + runCryptoAssessmentDetails) { + this.runCryptoAssessmentDetails = runCryptoAssessmentDetails; return this; } @@ -141,11 +148,11 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } - /** The client request ID for tracing. */ + /** Unique identifier for the request. */ private String opcRequestId = null; /** - * The client request ID for tracing. + * Unique identifier for the request. * * @param opcRequestId the value to set * @return this builder instance @@ -157,17 +164,17 @@ public Builder opcRequestId(String 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. + * if-match parameter to the value of the etag from a previous GET or POST 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. + * if-match parameter to the value of the etag from a previous GET or POST 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 @@ -206,9 +213,9 @@ public Builder retryConfiguration( * * @return this builder instance */ - public Builder copy(ConfigureDistributedDatabaseShardingRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - isRebalanceRequired(o.getIsRebalanceRequired()); + public Builder copy(RefreshCryptoAssessmentRequest o) { + cryptoAssessmentId(o.getCryptoAssessmentId()); + runCryptoAssessmentDetails(o.getRunCryptoAssessmentDetails()); opcRetryToken(o.getOpcRetryToken()); opcRequestId(o.getOpcRequestId()); ifMatch(o.getIfMatch()); @@ -218,8 +225,7 @@ public Builder copy(ConfigureDistributedDatabaseShardingRequest o) { } /** - * Build the instance of ConfigureDistributedDatabaseShardingRequest as configured by this - * builder + * Build the instance of RefreshCryptoAssessmentRequest as configured by this builder * *

Note that this method takes calls to {@link * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, @@ -227,36 +233,46 @@ public Builder copy(ConfigureDistributedDatabaseShardingRequest o) { * *

This is the preferred method to build an instance. * - * @return instance of ConfigureDistributedDatabaseShardingRequest + * @return instance of RefreshCryptoAssessmentRequest */ - public ConfigureDistributedDatabaseShardingRequest build() { - ConfigureDistributedDatabaseShardingRequest request = buildWithoutInvocationCallback(); + public RefreshCryptoAssessmentRequest build() { + RefreshCryptoAssessmentRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of ConfigureDistributedDatabaseShardingRequest as configured by this - * builder + * 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.datasafe.model.RunCryptoAssessmentDetails body) { + runCryptoAssessmentDetails(body); + return this; + } + + /** + * Build the instance of RefreshCryptoAssessmentRequest 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 + * @return instance of RefreshCryptoAssessmentRequest */ - public ConfigureDistributedDatabaseShardingRequest buildWithoutInvocationCallback() { - ConfigureDistributedDatabaseShardingRequest request = - new ConfigureDistributedDatabaseShardingRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.isRebalanceRequired = isRebalanceRequired; + public RefreshCryptoAssessmentRequest buildWithoutInvocationCallback() { + RefreshCryptoAssessmentRequest request = new RefreshCryptoAssessmentRequest(); + request.cryptoAssessmentId = cryptoAssessmentId; + request.runCryptoAssessmentDetails = runCryptoAssessmentDetails; request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; request.ifMatch = ifMatch; return request; - // new ConfigureDistributedDatabaseShardingRequest(distributedDatabaseId, - // isRebalanceRequired, opcRetryToken, opcRequestId, ifMatch); + // new RefreshCryptoAssessmentRequest(cryptoAssessmentId, runCryptoAssessmentDetails, + // opcRetryToken, opcRequestId, ifMatch); } } @@ -267,8 +283,8 @@ public ConfigureDistributedDatabaseShardingRequest buildWithoutInvocationCallbac */ public Builder toBuilder() { return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .isRebalanceRequired(isRebalanceRequired) + .cryptoAssessmentId(cryptoAssessmentId) + .runCryptoAssessmentDetails(runCryptoAssessmentDetails) .opcRetryToken(opcRetryToken) .opcRequestId(opcRequestId) .ifMatch(ifMatch); @@ -288,8 +304,9 @@ 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(",cryptoAssessmentId=").append(String.valueOf(this.cryptoAssessmentId)); + sb.append(",runCryptoAssessmentDetails=") + .append(String.valueOf(this.runCryptoAssessmentDetails)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); @@ -302,15 +319,15 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ConfigureDistributedDatabaseShardingRequest)) { + if (!(o instanceof RefreshCryptoAssessmentRequest)) { return false; } - ConfigureDistributedDatabaseShardingRequest other = - (ConfigureDistributedDatabaseShardingRequest) o; + RefreshCryptoAssessmentRequest other = (RefreshCryptoAssessmentRequest) 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.cryptoAssessmentId, other.cryptoAssessmentId) + && java.util.Objects.equals( + this.runCryptoAssessmentDetails, other.runCryptoAssessmentDetails) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.ifMatch, other.ifMatch); @@ -322,14 +339,14 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.distributedDatabaseId == null + + (this.cryptoAssessmentId == null ? 43 - : this.distributedDatabaseId.hashCode()); + : this.cryptoAssessmentId.hashCode()); result = (result * PRIME) - + (this.isRebalanceRequired == null + + (this.runCryptoAssessmentDetails == null ? 43 - : this.isRebalanceRequired.hashCode()); + : this.runCryptoAssessmentDetails.hashCode()); result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/UpdateCryptoAssessmentRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/UpdateCryptoAssessmentRequest.java new file mode 100644 index 00000000000..cbe0ab6041f --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/UpdateCryptoAssessmentRequest.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.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use + * UpdateCryptoAssessmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class UpdateCryptoAssessmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datasafe.model.UpdateCryptoAssessmentDetails> { + + /** The OCID of the crypto assessment. */ + private String cryptoAssessmentId; + + /** The OCID of the crypto assessment. */ + public String getCryptoAssessmentId() { + return cryptoAssessmentId; + } + /** The information to be updated. */ + private com.oracle.bmc.datasafe.model.UpdateCryptoAssessmentDetails + updateCryptoAssessmentDetails; + + /** The information to be updated. */ + public com.oracle.bmc.datasafe.model.UpdateCryptoAssessmentDetails + getUpdateCryptoAssessmentDetails() { + return updateCryptoAssessmentDetails; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * if-match parameter to the value of the etag from a previous GET or POST 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 + * if-match parameter to the value of the etag from a previous GET or POST 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.datasafe.model.UpdateCryptoAssessmentDetails getBody$() { + return updateCryptoAssessmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateCryptoAssessmentRequest, + com.oracle.bmc.datasafe.model.UpdateCryptoAssessmentDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the crypto assessment. */ + private String cryptoAssessmentId = null; + + /** + * The OCID of the crypto assessment. + * + * @param cryptoAssessmentId the value to set + * @return this builder instance + */ + public Builder cryptoAssessmentId(String cryptoAssessmentId) { + this.cryptoAssessmentId = cryptoAssessmentId; + return this; + } + + /** The information to be updated. */ + private com.oracle.bmc.datasafe.model.UpdateCryptoAssessmentDetails + updateCryptoAssessmentDetails = null; + + /** + * The information to be updated. + * + * @param updateCryptoAssessmentDetails the value to set + * @return this builder instance + */ + public Builder updateCryptoAssessmentDetails( + com.oracle.bmc.datasafe.model.UpdateCryptoAssessmentDetails + updateCryptoAssessmentDetails) { + this.updateCryptoAssessmentDetails = updateCryptoAssessmentDetails; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * if-match parameter to the value of the etag from a previous GET or POST 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 + * if-match parameter to the value of the etag from a previous GET or POST 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(UpdateCryptoAssessmentRequest o) { + cryptoAssessmentId(o.getCryptoAssessmentId()); + updateCryptoAssessmentDetails(o.getUpdateCryptoAssessmentDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateCryptoAssessmentRequest 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 UpdateCryptoAssessmentRequest + */ + public UpdateCryptoAssessmentRequest build() { + UpdateCryptoAssessmentRequest 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.datasafe.model.UpdateCryptoAssessmentDetails body) { + updateCryptoAssessmentDetails(body); + return this; + } + + /** + * Build the instance of UpdateCryptoAssessmentRequest 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 UpdateCryptoAssessmentRequest + */ + public UpdateCryptoAssessmentRequest buildWithoutInvocationCallback() { + UpdateCryptoAssessmentRequest request = new UpdateCryptoAssessmentRequest(); + request.cryptoAssessmentId = cryptoAssessmentId; + request.updateCryptoAssessmentDetails = updateCryptoAssessmentDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new UpdateCryptoAssessmentRequest(cryptoAssessmentId, updateCryptoAssessmentDetails, + // 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() + .cryptoAssessmentId(cryptoAssessmentId) + .updateCryptoAssessmentDetails(updateCryptoAssessmentDetails) + .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(",cryptoAssessmentId=").append(String.valueOf(this.cryptoAssessmentId)); + sb.append(",updateCryptoAssessmentDetails=") + .append(String.valueOf(this.updateCryptoAssessmentDetails)); + 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 UpdateCryptoAssessmentRequest)) { + return false; + } + + UpdateCryptoAssessmentRequest other = (UpdateCryptoAssessmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.cryptoAssessmentId, other.cryptoAssessmentId) + && java.util.Objects.equals( + this.updateCryptoAssessmentDetails, other.updateCryptoAssessmentDetails) + && 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.cryptoAssessmentId == null + ? 43 + : this.cryptoAssessmentId.hashCode()); + result = + (result * PRIME) + + (this.updateCryptoAssessmentDetails == null + ? 43 + : this.updateCryptoAssessmentDetails.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/responses/StopDistributedAutonomousDatabaseResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ChangeCryptoAssessmentCompartmentResponse.java similarity index 79% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StopDistributedAutonomousDatabaseResponse.java rename to bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ChangeCryptoAssessmentCompartmentResponse.java index b613d802ef5..af3fe0c6e02 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StopDistributedAutonomousDatabaseResponse.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ChangeCryptoAssessmentCompartmentResponse.java @@ -2,22 +2,22 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.datasafe.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.datasafe.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class StopDistributedAutonomousDatabaseResponse +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ChangeCryptoAssessmentCompartmentResponse extends com.oracle.bmc.responses.BmcResponse { /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its - * status. + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. */ private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its - * status. + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. * * @return the value */ @@ -47,7 +47,7 @@ public String getOpcRequestId() { "opcWorkRequestId", "opcRequestId" }) - private StopDistributedAutonomousDatabaseResponse( + private ChangeCryptoAssessmentCompartmentResponse( int __httpStatusCode__, java.util.Map> headers, String opcWorkRequestId, @@ -59,7 +59,7 @@ private StopDistributedAutonomousDatabaseResponse( public static class Builder implements com.oracle.bmc.responses.BmcResponse.Builder< - StopDistributedAutonomousDatabaseResponse> { + ChangeCryptoAssessmentCompartmentResponse> { private int __httpStatusCode__; @Override @@ -77,14 +77,14 @@ public Builder headers(java.util.Map> headers) { } /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query - * its status. + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. */ private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query - * its status. + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. * * @param opcWorkRequestId the value to set * @return this builder @@ -118,7 +118,7 @@ public Builder opcRequestId(String opcRequestId) { * @return this builder instance */ @Override - public Builder copy(StopDistributedAutonomousDatabaseResponse o) { + public Builder copy(ChangeCryptoAssessmentCompartmentResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcWorkRequestId(o.getOpcWorkRequestId()); @@ -133,8 +133,8 @@ public Builder copy(StopDistributedAutonomousDatabaseResponse o) { * @return the response object */ @Override - public StopDistributedAutonomousDatabaseResponse build() { - return new StopDistributedAutonomousDatabaseResponse( + public ChangeCryptoAssessmentCompartmentResponse build() { + return new ChangeCryptoAssessmentCompartmentResponse( __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); } } @@ -164,12 +164,12 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof StopDistributedAutonomousDatabaseResponse)) { + if (!(o instanceof ChangeCryptoAssessmentCompartmentResponse)) { return false; } - StopDistributedAutonomousDatabaseResponse other = - (StopDistributedAutonomousDatabaseResponse) o; + ChangeCryptoAssessmentCompartmentResponse other = + (ChangeCryptoAssessmentCompartmentResponse) o; return super.equals(o) && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDbBackupConfigResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteCryptoAssessmentResponse.java similarity index 79% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDbBackupConfigResponse.java rename to bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteCryptoAssessmentResponse.java index 0ee4cfab230..0526b69b3fc 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDbBackupConfigResponse.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteCryptoAssessmentResponse.java @@ -2,21 +2,21 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.datasafe.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.datasafe.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ChangeDistributedDbBackupConfigResponse extends com.oracle.bmc.responses.BmcResponse { +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class DeleteCryptoAssessmentResponse extends com.oracle.bmc.responses.BmcResponse { /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its - * status. + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. */ private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its - * status. + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. * * @return the value */ @@ -46,7 +46,7 @@ public String getOpcRequestId() { "opcWorkRequestId", "opcRequestId" }) - private ChangeDistributedDbBackupConfigResponse( + private DeleteCryptoAssessmentResponse( int __httpStatusCode__, java.util.Map> headers, String opcWorkRequestId, @@ -58,7 +58,7 @@ private ChangeDistributedDbBackupConfigResponse( public static class Builder implements com.oracle.bmc.responses.BmcResponse.Builder< - ChangeDistributedDbBackupConfigResponse> { + DeleteCryptoAssessmentResponse> { private int __httpStatusCode__; @Override @@ -76,14 +76,14 @@ public Builder headers(java.util.Map> headers) { } /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query - * its status. + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. */ private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query - * its status. + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. * * @param opcWorkRequestId the value to set * @return this builder @@ -117,7 +117,7 @@ public Builder opcRequestId(String opcRequestId) { * @return this builder instance */ @Override - public Builder copy(ChangeDistributedDbBackupConfigResponse o) { + public Builder copy(DeleteCryptoAssessmentResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcWorkRequestId(o.getOpcWorkRequestId()); @@ -132,8 +132,8 @@ public Builder copy(ChangeDistributedDbBackupConfigResponse o) { * @return the response object */ @Override - public ChangeDistributedDbBackupConfigResponse build() { - return new ChangeDistributedDbBackupConfigResponse( + public DeleteCryptoAssessmentResponse build() { + return new DeleteCryptoAssessmentResponse( __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); } } @@ -163,11 +163,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ChangeDistributedDbBackupConfigResponse)) { + if (!(o instanceof DeleteCryptoAssessmentResponse)) { return false; } - ChangeDistributedDbBackupConfigResponse other = (ChangeDistributedDbBackupConfigResponse) o; + DeleteCryptoAssessmentResponse other = (DeleteCryptoAssessmentResponse) o; return super.equals(o) && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GenerateDistributedDatabaseWalletResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DownloadCryptoAssessmentReportResponse.java similarity index 74% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GenerateDistributedDatabaseWalletResponse.java rename to bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DownloadCryptoAssessmentReportResponse.java index bb51dbd0a5d..64c1c6766aa 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GenerateDistributedDatabaseWalletResponse.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DownloadCryptoAssessmentReportResponse.java @@ -2,13 +2,12 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.datasafe.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.datasafe.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GenerateDistributedDatabaseWalletResponse - extends com.oracle.bmc.responses.BmcResponse { +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class DownloadCryptoAssessmentReportResponse 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. @@ -25,11 +24,15 @@ public String getOpcRequestId() { return opcRequestId; } - /** For optimistic concurrency control. See {@code if-match}. */ + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ private String etag; /** - * For optimistic concurrency control. See {@code if-match}. + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) * * @return the value */ @@ -49,18 +52,6 @@ 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; @@ -79,28 +70,25 @@ public java.io.InputStream getInputStream() { "opcRequestId", "etag", "contentLength", - "lastModified", "inputStream" }) - private GenerateDistributedDatabaseWalletResponse( + private DownloadCryptoAssessmentReportResponse( 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> { + DownloadCryptoAssessmentReportResponse> { private int __httpStatusCode__; @Override @@ -135,11 +123,17 @@ public Builder opcRequestId(String opcRequestId) { return this; } - /** For optimistic concurrency control. See {@code if-match}. */ + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ private String etag; /** - * For optimistic concurrency control. See {@code if-match}. + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) * * @param etag the value to set * @return this builder @@ -163,20 +157,6 @@ public Builder contentLength(Long 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; @@ -197,13 +177,12 @@ public Builder inputStream(java.io.InputStream inputStream) { * @return this builder instance */ @Override - public Builder copy(GenerateDistributedDatabaseWalletResponse o) { + public Builder copy(DownloadCryptoAssessmentReportResponse 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; @@ -215,15 +194,9 @@ public Builder copy(GenerateDistributedDatabaseWalletResponse o) { * @return the response object */ @Override - public GenerateDistributedDatabaseWalletResponse build() { - return new GenerateDistributedDatabaseWalletResponse( - __httpStatusCode__, - headers, - opcRequestId, - etag, - contentLength, - lastModified, - inputStream); + public DownloadCryptoAssessmentReportResponse build() { + return new DownloadCryptoAssessmentReportResponse( + __httpStatusCode__, headers, opcRequestId, etag, contentLength, inputStream); } } @@ -244,7 +217,6 @@ public String 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(); @@ -255,17 +227,15 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof GenerateDistributedDatabaseWalletResponse)) { + if (!(o instanceof DownloadCryptoAssessmentReportResponse)) { return false; } - GenerateDistributedDatabaseWalletResponse other = - (GenerateDistributedDatabaseWalletResponse) o; + DownloadCryptoAssessmentReportResponse other = (DownloadCryptoAssessmentReportResponse) 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); } @@ -278,7 +248,6 @@ public int 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/ChangeDistributedAutonomousDbBackupConfigResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GenerateCryptoAssessmentReportResponse.java similarity index 78% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedAutonomousDbBackupConfigResponse.java rename to bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GenerateCryptoAssessmentReportResponse.java index ef7a3c619e9..8248a3f94c7 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedAutonomousDbBackupConfigResponse.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GenerateCryptoAssessmentReportResponse.java @@ -2,22 +2,21 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.datasafe.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.datasafe.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ChangeDistributedAutonomousDbBackupConfigResponse - extends com.oracle.bmc.responses.BmcResponse { +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GenerateCryptoAssessmentReportResponse extends com.oracle.bmc.responses.BmcResponse { /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its - * status. + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. */ private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its - * status. + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. * * @return the value */ @@ -47,7 +46,7 @@ public String getOpcRequestId() { "opcWorkRequestId", "opcRequestId" }) - private ChangeDistributedAutonomousDbBackupConfigResponse( + private GenerateCryptoAssessmentReportResponse( int __httpStatusCode__, java.util.Map> headers, String opcWorkRequestId, @@ -59,7 +58,7 @@ private ChangeDistributedAutonomousDbBackupConfigResponse( public static class Builder implements com.oracle.bmc.responses.BmcResponse.Builder< - ChangeDistributedAutonomousDbBackupConfigResponse> { + GenerateCryptoAssessmentReportResponse> { private int __httpStatusCode__; @Override @@ -77,14 +76,14 @@ public Builder headers(java.util.Map> headers) { } /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query - * its status. + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. */ private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query - * its status. + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. * * @param opcWorkRequestId the value to set * @return this builder @@ -118,7 +117,7 @@ public Builder opcRequestId(String opcRequestId) { * @return this builder instance */ @Override - public Builder copy(ChangeDistributedAutonomousDbBackupConfigResponse o) { + public Builder copy(GenerateCryptoAssessmentReportResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcWorkRequestId(o.getOpcWorkRequestId()); @@ -133,8 +132,8 @@ public Builder copy(ChangeDistributedAutonomousDbBackupConfigResponse o) { * @return the response object */ @Override - public ChangeDistributedAutonomousDbBackupConfigResponse build() { - return new ChangeDistributedAutonomousDbBackupConfigResponse( + public GenerateCryptoAssessmentReportResponse build() { + return new GenerateCryptoAssessmentReportResponse( __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); } } @@ -164,12 +163,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ChangeDistributedAutonomousDbBackupConfigResponse)) { + if (!(o instanceof GenerateCryptoAssessmentReportResponse)) { return false; } - ChangeDistributedAutonomousDbBackupConfigResponse other = - (ChangeDistributedAutonomousDbBackupConfigResponse) o; + GenerateCryptoAssessmentReportResponse other = (GenerateCryptoAssessmentReportResponse) o; return super.equals(o) && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetCryptoAssessmentResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetCryptoAssessmentResponse.java new file mode 100644 index 00000000000..58d3bad0a46 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetCryptoAssessmentResponse.java @@ -0,0 +1,221 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GetCryptoAssessmentResponse 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. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The returned {@code CryptoAssessment} instance. */ + private com.oracle.bmc.datasafe.model.CryptoAssessment cryptoAssessment; + + /** + * The returned {@code CryptoAssessment} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.CryptoAssessment getCryptoAssessment() { + return cryptoAssessment; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "cryptoAssessment" + }) + private GetCryptoAssessmentResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.datasafe.model.CryptoAssessment cryptoAssessment) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.cryptoAssessment = cryptoAssessment; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + */ + private String etag; + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The returned {@code CryptoAssessment} instance. */ + private com.oracle.bmc.datasafe.model.CryptoAssessment cryptoAssessment; + + /** + * The returned {@code CryptoAssessment} instance. + * + * @param cryptoAssessment the value to set + * @return this builder + */ + public Builder cryptoAssessment( + com.oracle.bmc.datasafe.model.CryptoAssessment cryptoAssessment) { + this.cryptoAssessment = cryptoAssessment; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetCryptoAssessmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + cryptoAssessment(o.getCryptoAssessment()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetCryptoAssessmentResponse build() { + return new GetCryptoAssessmentResponse( + __httpStatusCode__, headers, opcRequestId, etag, cryptoAssessment); + } + } + + /** + * 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(",cryptoAssessment=").append(String.valueOf(cryptoAssessment)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetCryptoAssessmentResponse)) { + return false; + } + + GetCryptoAssessmentResponse other = (GetCryptoAssessmentResponse) 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.cryptoAssessment, other.cryptoAssessment); + } + + @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.cryptoAssessment == null ? 43 : this.cryptoAssessment.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetCryptoAssessmentSqlnetParametersResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetCryptoAssessmentSqlnetParametersResponse.java new file mode 100644 index 00000000000..5e32dc7e50a --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetCryptoAssessmentSqlnetParametersResponse.java @@ -0,0 +1,290 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GetCryptoAssessmentSqlnetParametersResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. Include opc-next-page value as the page parameter for the subsequent GET request to + * get the next batch of items. For 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. Include opc-next-page value as the page parameter for the subsequent GET request to + * get the next batch of items. For 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; + } + + /** + * 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 previous batch of items. + */ + private String opcPrevPage; + + /** + * 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 previous batch of items. + * + * @return the value + */ + public String getOpcPrevPage() { + return opcPrevPage; + } + + /** + * 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 CryptoAssessmentSqlnetParameters} instance. */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentSqlnetParameters + cryptoAssessmentSqlnetParameters; + + /** + * The returned {@code CryptoAssessmentSqlnetParameters} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.CryptoAssessmentSqlnetParameters + getCryptoAssessmentSqlnetParameters() { + return cryptoAssessmentSqlnetParameters; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcPrevPage", + "opcRequestId", + "cryptoAssessmentSqlnetParameters" + }) + private GetCryptoAssessmentSqlnetParametersResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcNextPage, + String opcPrevPage, + String opcRequestId, + com.oracle.bmc.datasafe.model.CryptoAssessmentSqlnetParameters + cryptoAssessmentSqlnetParameters) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.opcRequestId = opcRequestId; + this.cryptoAssessmentSqlnetParameters = cryptoAssessmentSqlnetParameters; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetCryptoAssessmentSqlnetParametersResponse> { + 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. Include opc-next-page value as the page parameter for the subsequent GET + * request to get the next batch of items. For 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. Include opc-next-page value as the page parameter for the subsequent GET + * request to get the next batch of items. For 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; + } + + /** + * 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 previous batch of items. + */ + private String opcPrevPage; + + /** + * 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 previous batch of items. + * + * @param opcPrevPage the value to set + * @return this builder + */ + public Builder opcPrevPage(String opcPrevPage) { + this.opcPrevPage = opcPrevPage; + 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 CryptoAssessmentSqlnetParameters} instance. */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentSqlnetParameters + cryptoAssessmentSqlnetParameters; + + /** + * The returned {@code CryptoAssessmentSqlnetParameters} instance. + * + * @param cryptoAssessmentSqlnetParameters the value to set + * @return this builder + */ + public Builder cryptoAssessmentSqlnetParameters( + com.oracle.bmc.datasafe.model.CryptoAssessmentSqlnetParameters + cryptoAssessmentSqlnetParameters) { + this.cryptoAssessmentSqlnetParameters = cryptoAssessmentSqlnetParameters; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetCryptoAssessmentSqlnetParametersResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + opcRequestId(o.getOpcRequestId()); + cryptoAssessmentSqlnetParameters(o.getCryptoAssessmentSqlnetParameters()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetCryptoAssessmentSqlnetParametersResponse build() { + return new GetCryptoAssessmentSqlnetParametersResponse( + __httpStatusCode__, + headers, + opcNextPage, + opcPrevPage, + opcRequestId, + cryptoAssessmentSqlnetParameters); + } + } + + /** + * 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(",opcPrevPage=").append(String.valueOf(opcPrevPage)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",cryptoAssessmentSqlnetParameters=") + .append(String.valueOf(cryptoAssessmentSqlnetParameters)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetCryptoAssessmentSqlnetParametersResponse)) { + return false; + } + + GetCryptoAssessmentSqlnetParametersResponse other = + (GetCryptoAssessmentSqlnetParametersResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcPrevPage, other.opcPrevPage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.cryptoAssessmentSqlnetParameters, + other.cryptoAssessmentSqlnetParameters); + } + + @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.opcPrevPage == null ? 43 : this.opcPrevPage.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.cryptoAssessmentSqlnetParameters == null + ? 43 + : this.cryptoAssessmentSqlnetParameters.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentBackupSetsResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentBackupSetsResponse.java new file mode 100644 index 00000000000..f32e4992668 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentBackupSetsResponse.java @@ -0,0 +1,288 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentBackupSetsResponse 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. Include opc-next-page value as the page parameter for the subsequent GET request to + * get the next batch of items. For 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. Include opc-next-page value as the page parameter for the subsequent GET request to + * get the next batch of items. For 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; + } + + /** + * 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 previous batch of items. + */ + private String opcPrevPage; + + /** + * 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 previous batch of items. + * + * @return the value + */ + public String getOpcPrevPage() { + return opcPrevPage; + } + + /** The returned {@code CryptoAssessmentBackupSetCollection} instance. */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentBackupSetCollection + cryptoAssessmentBackupSetCollection; + + /** + * The returned {@code CryptoAssessmentBackupSetCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.CryptoAssessmentBackupSetCollection + getCryptoAssessmentBackupSetCollection() { + return cryptoAssessmentBackupSetCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "cryptoAssessmentBackupSetCollection" + }) + private ListCryptoAssessmentBackupSetsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.datasafe.model.CryptoAssessmentBackupSetCollection + cryptoAssessmentBackupSetCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.cryptoAssessmentBackupSetCollection = cryptoAssessmentBackupSetCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListCryptoAssessmentBackupSetsResponse> { + 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. Include opc-next-page value as the page parameter for the subsequent GET + * request to get the next batch of items. For 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. Include opc-next-page value as the page parameter for the subsequent GET + * request to get the next batch of items. For 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; + } + + /** + * 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 previous batch of items. + */ + private String opcPrevPage; + + /** + * 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 previous batch of items. + * + * @param opcPrevPage the value to set + * @return this builder + */ + public Builder opcPrevPage(String opcPrevPage) { + this.opcPrevPage = opcPrevPage; + return this; + } + + /** The returned {@code CryptoAssessmentBackupSetCollection} instance. */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentBackupSetCollection + cryptoAssessmentBackupSetCollection; + + /** + * The returned {@code CryptoAssessmentBackupSetCollection} instance. + * + * @param cryptoAssessmentBackupSetCollection the value to set + * @return this builder + */ + public Builder cryptoAssessmentBackupSetCollection( + com.oracle.bmc.datasafe.model.CryptoAssessmentBackupSetCollection + cryptoAssessmentBackupSetCollection) { + this.cryptoAssessmentBackupSetCollection = cryptoAssessmentBackupSetCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListCryptoAssessmentBackupSetsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + cryptoAssessmentBackupSetCollection(o.getCryptoAssessmentBackupSetCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListCryptoAssessmentBackupSetsResponse build() { + return new ListCryptoAssessmentBackupSetsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + cryptoAssessmentBackupSetCollection); + } + } + + /** + * 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(",opcPrevPage=").append(String.valueOf(opcPrevPage)); + sb.append(",cryptoAssessmentBackupSetCollection=") + .append(String.valueOf(cryptoAssessmentBackupSetCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCryptoAssessmentBackupSetsResponse)) { + return false; + } + + ListCryptoAssessmentBackupSetsResponse other = (ListCryptoAssessmentBackupSetsResponse) 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.opcPrevPage, other.opcPrevPage) + && java.util.Objects.equals( + this.cryptoAssessmentBackupSetCollection, + other.cryptoAssessmentBackupSetCollection); + } + + @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.opcPrevPage == null ? 43 : this.opcPrevPage.hashCode()); + result = + (result * PRIME) + + (this.cryptoAssessmentBackupSetCollection == null + ? 43 + : this.cryptoAssessmentBackupSetCollection.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseRaftMetricResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentCbomItemsResponse.java similarity index 61% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseRaftMetricResponse.java rename to bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentCbomItemsResponse.java index b50ab68f357..37d0b1a45d8 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseRaftMetricResponse.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentCbomItemsResponse.java @@ -2,12 +2,12 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.datasafe.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.datasafe.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedDatabaseRaftMetricResponse extends com.oracle.bmc.responses.BmcResponse { +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentCbomItemsResponse 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. @@ -24,40 +24,40 @@ public String getOpcRequestId() { return opcRequestId; } - /** The returned {@code DistributedDatabaseRaftMetric} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRaftMetric - distributedDatabaseRaftMetric; + /** The returned {@code CryptoAssessmentCbomItemCollection} instance. */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentCbomItemCollection + cryptoAssessmentCbomItemCollection; /** - * The returned {@code DistributedDatabaseRaftMetric} instance. + * The returned {@code CryptoAssessmentCbomItemCollection} instance. * * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRaftMetric - getDistributedDatabaseRaftMetric() { - return distributedDatabaseRaftMetric; + public com.oracle.bmc.datasafe.model.CryptoAssessmentCbomItemCollection + getCryptoAssessmentCbomItemCollection() { + return cryptoAssessmentCbomItemCollection; } @java.beans.ConstructorProperties({ "__httpStatusCode__", "headers", "opcRequestId", - "distributedDatabaseRaftMetric" + "cryptoAssessmentCbomItemCollection" }) - private GetDistributedDatabaseRaftMetricResponse( + private ListCryptoAssessmentCbomItemsResponse( int __httpStatusCode__, java.util.Map> headers, String opcRequestId, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRaftMetric - distributedDatabaseRaftMetric) { + com.oracle.bmc.datasafe.model.CryptoAssessmentCbomItemCollection + cryptoAssessmentCbomItemCollection) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; - this.distributedDatabaseRaftMetric = distributedDatabaseRaftMetric; + this.cryptoAssessmentCbomItemCollection = cryptoAssessmentCbomItemCollection; } public static class Builder implements com.oracle.bmc.responses.BmcResponse.Builder< - GetDistributedDatabaseRaftMetricResponse> { + ListCryptoAssessmentCbomItemsResponse> { private int __httpStatusCode__; @Override @@ -92,20 +92,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } - /** The returned {@code DistributedDatabaseRaftMetric} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRaftMetric - distributedDatabaseRaftMetric; + /** The returned {@code CryptoAssessmentCbomItemCollection} instance. */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentCbomItemCollection + cryptoAssessmentCbomItemCollection; /** - * The returned {@code DistributedDatabaseRaftMetric} instance. + * The returned {@code CryptoAssessmentCbomItemCollection} instance. * - * @param distributedDatabaseRaftMetric the value to set + * @param cryptoAssessmentCbomItemCollection the value to set * @return this builder */ - public Builder distributedDatabaseRaftMetric( - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRaftMetric - distributedDatabaseRaftMetric) { - this.distributedDatabaseRaftMetric = distributedDatabaseRaftMetric; + public Builder cryptoAssessmentCbomItemCollection( + com.oracle.bmc.datasafe.model.CryptoAssessmentCbomItemCollection + cryptoAssessmentCbomItemCollection) { + this.cryptoAssessmentCbomItemCollection = cryptoAssessmentCbomItemCollection; return this; } @@ -115,11 +115,11 @@ public Builder distributedDatabaseRaftMetric( * @return this builder instance */ @Override - public Builder copy(GetDistributedDatabaseRaftMetricResponse o) { + public Builder copy(ListCryptoAssessmentCbomItemsResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); - distributedDatabaseRaftMetric(o.getDistributedDatabaseRaftMetric()); + cryptoAssessmentCbomItemCollection(o.getCryptoAssessmentCbomItemCollection()); return this; } @@ -130,9 +130,9 @@ public Builder copy(GetDistributedDatabaseRaftMetricResponse o) { * @return the response object */ @Override - public GetDistributedDatabaseRaftMetricResponse build() { - return new GetDistributedDatabaseRaftMetricResponse( - __httpStatusCode__, headers, opcRequestId, distributedDatabaseRaftMetric); + public ListCryptoAssessmentCbomItemsResponse build() { + return new ListCryptoAssessmentCbomItemsResponse( + __httpStatusCode__, headers, opcRequestId, cryptoAssessmentCbomItemCollection); } } @@ -151,8 +151,8 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(",distributedDatabaseRaftMetric=") - .append(String.valueOf(distributedDatabaseRaftMetric)); + sb.append(",cryptoAssessmentCbomItemCollection=") + .append(String.valueOf(cryptoAssessmentCbomItemCollection)); sb.append(")"); return sb.toString(); } @@ -162,16 +162,16 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof GetDistributedDatabaseRaftMetricResponse)) { + if (!(o instanceof ListCryptoAssessmentCbomItemsResponse)) { return false; } - GetDistributedDatabaseRaftMetricResponse other = - (GetDistributedDatabaseRaftMetricResponse) o; + ListCryptoAssessmentCbomItemsResponse other = (ListCryptoAssessmentCbomItemsResponse) o; return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals( - this.distributedDatabaseRaftMetric, other.distributedDatabaseRaftMetric); + this.cryptoAssessmentCbomItemCollection, + other.cryptoAssessmentCbomItemCollection); } @Override @@ -181,9 +181,9 @@ public int hashCode() { result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) - + (this.distributedDatabaseRaftMetric == null + + (this.cryptoAssessmentCbomItemCollection == null ? 43 - : this.distributedDatabaseRaftMetric.hashCode()); + : this.cryptoAssessmentCbomItemCollection.hashCode()); return result; } } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentCertificatesResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentCertificatesResponse.java new file mode 100644 index 00000000000..e5819fc4de7 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentCertificatesResponse.java @@ -0,0 +1,289 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentCertificatesResponse 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. Include opc-next-page value as the page parameter for the subsequent GET request to + * get the next batch of items. For 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. Include opc-next-page value as the page parameter for the subsequent GET request to + * get the next batch of items. For 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; + } + + /** + * 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 previous batch of items. + */ + private String opcPrevPage; + + /** + * 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 previous batch of items. + * + * @return the value + */ + public String getOpcPrevPage() { + return opcPrevPage; + } + + /** The returned {@code CryptoAssessmentCertificateCollection} instance. */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentCertificateCollection + cryptoAssessmentCertificateCollection; + + /** + * The returned {@code CryptoAssessmentCertificateCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.CryptoAssessmentCertificateCollection + getCryptoAssessmentCertificateCollection() { + return cryptoAssessmentCertificateCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "cryptoAssessmentCertificateCollection" + }) + private ListCryptoAssessmentCertificatesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.datasafe.model.CryptoAssessmentCertificateCollection + cryptoAssessmentCertificateCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.cryptoAssessmentCertificateCollection = cryptoAssessmentCertificateCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListCryptoAssessmentCertificatesResponse> { + 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. Include opc-next-page value as the page parameter for the subsequent GET + * request to get the next batch of items. For 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. Include opc-next-page value as the page parameter for the subsequent GET + * request to get the next batch of items. For 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; + } + + /** + * 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 previous batch of items. + */ + private String opcPrevPage; + + /** + * 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 previous batch of items. + * + * @param opcPrevPage the value to set + * @return this builder + */ + public Builder opcPrevPage(String opcPrevPage) { + this.opcPrevPage = opcPrevPage; + return this; + } + + /** The returned {@code CryptoAssessmentCertificateCollection} instance. */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentCertificateCollection + cryptoAssessmentCertificateCollection; + + /** + * The returned {@code CryptoAssessmentCertificateCollection} instance. + * + * @param cryptoAssessmentCertificateCollection the value to set + * @return this builder + */ + public Builder cryptoAssessmentCertificateCollection( + com.oracle.bmc.datasafe.model.CryptoAssessmentCertificateCollection + cryptoAssessmentCertificateCollection) { + this.cryptoAssessmentCertificateCollection = cryptoAssessmentCertificateCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListCryptoAssessmentCertificatesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + cryptoAssessmentCertificateCollection(o.getCryptoAssessmentCertificateCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListCryptoAssessmentCertificatesResponse build() { + return new ListCryptoAssessmentCertificatesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + cryptoAssessmentCertificateCollection); + } + } + + /** + * 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(",opcPrevPage=").append(String.valueOf(opcPrevPage)); + sb.append(",cryptoAssessmentCertificateCollection=") + .append(String.valueOf(cryptoAssessmentCertificateCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCryptoAssessmentCertificatesResponse)) { + return false; + } + + ListCryptoAssessmentCertificatesResponse other = + (ListCryptoAssessmentCertificatesResponse) 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.opcPrevPage, other.opcPrevPage) + && java.util.Objects.equals( + this.cryptoAssessmentCertificateCollection, + other.cryptoAssessmentCertificateCollection); + } + + @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.opcPrevPage == null ? 43 : this.opcPrevPage.hashCode()); + result = + (result * PRIME) + + (this.cryptoAssessmentCertificateCollection == null + ? 43 + : this.cryptoAssessmentCertificateCollection.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentFindingAnalyticsResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentFindingAnalyticsResponse.java new file mode 100644 index 00000000000..b1ef7aed762 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentFindingAnalyticsResponse.java @@ -0,0 +1,293 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentFindingAnalyticsResponse + 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. Include opc-next-page value as the page parameter for the subsequent GET request to + * get the next batch of items. For 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. Include opc-next-page value as the page parameter for the subsequent GET request to + * get the next batch of items. For 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; + } + + /** + * 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 previous batch of items. + */ + private String opcPrevPage; + + /** + * 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 previous batch of items. + * + * @return the value + */ + public String getOpcPrevPage() { + return opcPrevPage; + } + + /** The returned {@code CryptoAssessmentFindingAnalyticsCollection} instance. */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentFindingAnalyticsCollection + cryptoAssessmentFindingAnalyticsCollection; + + /** + * The returned {@code CryptoAssessmentFindingAnalyticsCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.CryptoAssessmentFindingAnalyticsCollection + getCryptoAssessmentFindingAnalyticsCollection() { + return cryptoAssessmentFindingAnalyticsCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "cryptoAssessmentFindingAnalyticsCollection" + }) + private ListCryptoAssessmentFindingAnalyticsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.datasafe.model.CryptoAssessmentFindingAnalyticsCollection + cryptoAssessmentFindingAnalyticsCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.cryptoAssessmentFindingAnalyticsCollection = + cryptoAssessmentFindingAnalyticsCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListCryptoAssessmentFindingAnalyticsResponse> { + 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. Include opc-next-page value as the page parameter for the subsequent GET + * request to get the next batch of items. For 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. Include opc-next-page value as the page parameter for the subsequent GET + * request to get the next batch of items. For 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; + } + + /** + * 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 previous batch of items. + */ + private String opcPrevPage; + + /** + * 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 previous batch of items. + * + * @param opcPrevPage the value to set + * @return this builder + */ + public Builder opcPrevPage(String opcPrevPage) { + this.opcPrevPage = opcPrevPage; + return this; + } + + /** The returned {@code CryptoAssessmentFindingAnalyticsCollection} instance. */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentFindingAnalyticsCollection + cryptoAssessmentFindingAnalyticsCollection; + + /** + * The returned {@code CryptoAssessmentFindingAnalyticsCollection} instance. + * + * @param cryptoAssessmentFindingAnalyticsCollection the value to set + * @return this builder + */ + public Builder cryptoAssessmentFindingAnalyticsCollection( + com.oracle.bmc.datasafe.model.CryptoAssessmentFindingAnalyticsCollection + cryptoAssessmentFindingAnalyticsCollection) { + this.cryptoAssessmentFindingAnalyticsCollection = + cryptoAssessmentFindingAnalyticsCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListCryptoAssessmentFindingAnalyticsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + cryptoAssessmentFindingAnalyticsCollection( + o.getCryptoAssessmentFindingAnalyticsCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListCryptoAssessmentFindingAnalyticsResponse build() { + return new ListCryptoAssessmentFindingAnalyticsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + cryptoAssessmentFindingAnalyticsCollection); + } + } + + /** + * 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(",opcPrevPage=").append(String.valueOf(opcPrevPage)); + sb.append(",cryptoAssessmentFindingAnalyticsCollection=") + .append(String.valueOf(cryptoAssessmentFindingAnalyticsCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCryptoAssessmentFindingAnalyticsResponse)) { + return false; + } + + ListCryptoAssessmentFindingAnalyticsResponse other = + (ListCryptoAssessmentFindingAnalyticsResponse) 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.opcPrevPage, other.opcPrevPage) + && java.util.Objects.equals( + this.cryptoAssessmentFindingAnalyticsCollection, + other.cryptoAssessmentFindingAnalyticsCollection); + } + + @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.opcPrevPage == null ? 43 : this.opcPrevPage.hashCode()); + result = + (result * PRIME) + + (this.cryptoAssessmentFindingAnalyticsCollection == null + ? 43 + : this.cryptoAssessmentFindingAnalyticsCollection.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentFindingTargetsResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentFindingTargetsResponse.java new file mode 100644 index 00000000000..0489abd8457 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentFindingTargetsResponse.java @@ -0,0 +1,290 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentFindingTargetsResponse + 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. Include opc-next-page value as the page parameter for the subsequent GET request to + * get the next batch of items. For 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. Include opc-next-page value as the page parameter for the subsequent GET request to + * get the next batch of items. For 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; + } + + /** + * 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 previous batch of items. + */ + private String opcPrevPage; + + /** + * 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 previous batch of items. + * + * @return the value + */ + public String getOpcPrevPage() { + return opcPrevPage; + } + + /** The returned {@code CryptoAssessmentFindingTargetCollection} instance. */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentFindingTargetCollection + cryptoAssessmentFindingTargetCollection; + + /** + * The returned {@code CryptoAssessmentFindingTargetCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.CryptoAssessmentFindingTargetCollection + getCryptoAssessmentFindingTargetCollection() { + return cryptoAssessmentFindingTargetCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "cryptoAssessmentFindingTargetCollection" + }) + private ListCryptoAssessmentFindingTargetsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.datasafe.model.CryptoAssessmentFindingTargetCollection + cryptoAssessmentFindingTargetCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.cryptoAssessmentFindingTargetCollection = cryptoAssessmentFindingTargetCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListCryptoAssessmentFindingTargetsResponse> { + 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. Include opc-next-page value as the page parameter for the subsequent GET + * request to get the next batch of items. For 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. Include opc-next-page value as the page parameter for the subsequent GET + * request to get the next batch of items. For 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; + } + + /** + * 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 previous batch of items. + */ + private String opcPrevPage; + + /** + * 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 previous batch of items. + * + * @param opcPrevPage the value to set + * @return this builder + */ + public Builder opcPrevPage(String opcPrevPage) { + this.opcPrevPage = opcPrevPage; + return this; + } + + /** The returned {@code CryptoAssessmentFindingTargetCollection} instance. */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentFindingTargetCollection + cryptoAssessmentFindingTargetCollection; + + /** + * The returned {@code CryptoAssessmentFindingTargetCollection} instance. + * + * @param cryptoAssessmentFindingTargetCollection the value to set + * @return this builder + */ + public Builder cryptoAssessmentFindingTargetCollection( + com.oracle.bmc.datasafe.model.CryptoAssessmentFindingTargetCollection + cryptoAssessmentFindingTargetCollection) { + this.cryptoAssessmentFindingTargetCollection = cryptoAssessmentFindingTargetCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListCryptoAssessmentFindingTargetsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + cryptoAssessmentFindingTargetCollection(o.getCryptoAssessmentFindingTargetCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListCryptoAssessmentFindingTargetsResponse build() { + return new ListCryptoAssessmentFindingTargetsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + cryptoAssessmentFindingTargetCollection); + } + } + + /** + * 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(",opcPrevPage=").append(String.valueOf(opcPrevPage)); + sb.append(",cryptoAssessmentFindingTargetCollection=") + .append(String.valueOf(cryptoAssessmentFindingTargetCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCryptoAssessmentFindingTargetsResponse)) { + return false; + } + + ListCryptoAssessmentFindingTargetsResponse other = + (ListCryptoAssessmentFindingTargetsResponse) 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.opcPrevPage, other.opcPrevPage) + && java.util.Objects.equals( + this.cryptoAssessmentFindingTargetCollection, + other.cryptoAssessmentFindingTargetCollection); + } + + @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.opcPrevPage == null ? 43 : this.opcPrevPage.hashCode()); + result = + (result * PRIME) + + (this.cryptoAssessmentFindingTargetCollection == null + ? 43 + : this.cryptoAssessmentFindingTargetCollection.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentFindingsResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentFindingsResponse.java new file mode 100644 index 00000000000..8ec6789f41b --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentFindingsResponse.java @@ -0,0 +1,242 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentFindingsResponse 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. Include opc-next-page value as the page parameter for the subsequent GET request to + * get the next batch of items. For 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. Include opc-next-page value as the page parameter for the subsequent GET request to + * get the next batch of items. For 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 CryptoAssessmentFindingCollection} instance. */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentFindingCollection + cryptoAssessmentFindingCollection; + + /** + * The returned {@code CryptoAssessmentFindingCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.CryptoAssessmentFindingCollection + getCryptoAssessmentFindingCollection() { + return cryptoAssessmentFindingCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "cryptoAssessmentFindingCollection" + }) + private ListCryptoAssessmentFindingsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.datasafe.model.CryptoAssessmentFindingCollection + cryptoAssessmentFindingCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.cryptoAssessmentFindingCollection = cryptoAssessmentFindingCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListCryptoAssessmentFindingsResponse> { + 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. Include opc-next-page value as the page parameter for the subsequent GET + * request to get the next batch of items. For 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. Include opc-next-page value as the page parameter for the subsequent GET + * request to get the next batch of items. For 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 CryptoAssessmentFindingCollection} instance. */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentFindingCollection + cryptoAssessmentFindingCollection; + + /** + * The returned {@code CryptoAssessmentFindingCollection} instance. + * + * @param cryptoAssessmentFindingCollection the value to set + * @return this builder + */ + public Builder cryptoAssessmentFindingCollection( + com.oracle.bmc.datasafe.model.CryptoAssessmentFindingCollection + cryptoAssessmentFindingCollection) { + this.cryptoAssessmentFindingCollection = cryptoAssessmentFindingCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListCryptoAssessmentFindingsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + cryptoAssessmentFindingCollection(o.getCryptoAssessmentFindingCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListCryptoAssessmentFindingsResponse build() { + return new ListCryptoAssessmentFindingsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + cryptoAssessmentFindingCollection); + } + } + + /** + * 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(",cryptoAssessmentFindingCollection=") + .append(String.valueOf(cryptoAssessmentFindingCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCryptoAssessmentFindingsResponse)) { + return false; + } + + ListCryptoAssessmentFindingsResponse other = (ListCryptoAssessmentFindingsResponse) 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.cryptoAssessmentFindingCollection, + other.cryptoAssessmentFindingCollection); + } + + @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.cryptoAssessmentFindingCollection == null + ? 43 + : this.cryptoAssessmentFindingCollection.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentKeysResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentKeysResponse.java new file mode 100644 index 00000000000..b2557ae0e28 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentKeysResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentKeysResponse 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. Include opc-next-page value as the page parameter for the subsequent GET request to + * get the next batch of items. For 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. Include opc-next-page value as the page parameter for the subsequent GET request to + * get the next batch of items. For 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; + } + + /** + * 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 previous batch of items. + */ + private String opcPrevPage; + + /** + * 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 previous batch of items. + * + * @return the value + */ + public String getOpcPrevPage() { + return opcPrevPage; + } + + /** The returned {@code CryptoAssessmentKeyCollection} instance. */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentKeyCollection + cryptoAssessmentKeyCollection; + + /** + * The returned {@code CryptoAssessmentKeyCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.CryptoAssessmentKeyCollection + getCryptoAssessmentKeyCollection() { + return cryptoAssessmentKeyCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "cryptoAssessmentKeyCollection" + }) + private ListCryptoAssessmentKeysResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.datasafe.model.CryptoAssessmentKeyCollection + cryptoAssessmentKeyCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.cryptoAssessmentKeyCollection = cryptoAssessmentKeyCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListCryptoAssessmentKeysResponse> { + 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. Include opc-next-page value as the page parameter for the subsequent GET + * request to get the next batch of items. For 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. Include opc-next-page value as the page parameter for the subsequent GET + * request to get the next batch of items. For 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; + } + + /** + * 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 previous batch of items. + */ + private String opcPrevPage; + + /** + * 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 previous batch of items. + * + * @param opcPrevPage the value to set + * @return this builder + */ + public Builder opcPrevPage(String opcPrevPage) { + this.opcPrevPage = opcPrevPage; + return this; + } + + /** The returned {@code CryptoAssessmentKeyCollection} instance. */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentKeyCollection + cryptoAssessmentKeyCollection; + + /** + * The returned {@code CryptoAssessmentKeyCollection} instance. + * + * @param cryptoAssessmentKeyCollection the value to set + * @return this builder + */ + public Builder cryptoAssessmentKeyCollection( + com.oracle.bmc.datasafe.model.CryptoAssessmentKeyCollection + cryptoAssessmentKeyCollection) { + this.cryptoAssessmentKeyCollection = cryptoAssessmentKeyCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListCryptoAssessmentKeysResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + cryptoAssessmentKeyCollection(o.getCryptoAssessmentKeyCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListCryptoAssessmentKeysResponse build() { + return new ListCryptoAssessmentKeysResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + cryptoAssessmentKeyCollection); + } + } + + /** + * 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(",opcPrevPage=").append(String.valueOf(opcPrevPage)); + sb.append(",cryptoAssessmentKeyCollection=") + .append(String.valueOf(cryptoAssessmentKeyCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCryptoAssessmentKeysResponse)) { + return false; + } + + ListCryptoAssessmentKeysResponse other = (ListCryptoAssessmentKeysResponse) 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.opcPrevPage, other.opcPrevPage) + && java.util.Objects.equals( + this.cryptoAssessmentKeyCollection, other.cryptoAssessmentKeyCollection); + } + + @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.opcPrevPage == null ? 43 : this.opcPrevPage.hashCode()); + result = + (result * PRIME) + + (this.cryptoAssessmentKeyCollection == null + ? 43 + : this.cryptoAssessmentKeyCollection.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentTdeObjectsResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentTdeObjectsResponse.java new file mode 100644 index 00000000000..178202ea53b --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentTdeObjectsResponse.java @@ -0,0 +1,288 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentTdeObjectsResponse 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. Include opc-next-page value as the page parameter for the subsequent GET request to + * get the next batch of items. For 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. Include opc-next-page value as the page parameter for the subsequent GET request to + * get the next batch of items. For 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; + } + + /** + * 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 previous batch of items. + */ + private String opcPrevPage; + + /** + * 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 previous batch of items. + * + * @return the value + */ + public String getOpcPrevPage() { + return opcPrevPage; + } + + /** The returned {@code CryptoAssessmentTdeObjectCollection} instance. */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentTdeObjectCollection + cryptoAssessmentTdeObjectCollection; + + /** + * The returned {@code CryptoAssessmentTdeObjectCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.CryptoAssessmentTdeObjectCollection + getCryptoAssessmentTdeObjectCollection() { + return cryptoAssessmentTdeObjectCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "cryptoAssessmentTdeObjectCollection" + }) + private ListCryptoAssessmentTdeObjectsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.datasafe.model.CryptoAssessmentTdeObjectCollection + cryptoAssessmentTdeObjectCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.cryptoAssessmentTdeObjectCollection = cryptoAssessmentTdeObjectCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListCryptoAssessmentTdeObjectsResponse> { + 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. Include opc-next-page value as the page parameter for the subsequent GET + * request to get the next batch of items. For 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. Include opc-next-page value as the page parameter for the subsequent GET + * request to get the next batch of items. For 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; + } + + /** + * 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 previous batch of items. + */ + private String opcPrevPage; + + /** + * 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 previous batch of items. + * + * @param opcPrevPage the value to set + * @return this builder + */ + public Builder opcPrevPage(String opcPrevPage) { + this.opcPrevPage = opcPrevPage; + return this; + } + + /** The returned {@code CryptoAssessmentTdeObjectCollection} instance. */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentTdeObjectCollection + cryptoAssessmentTdeObjectCollection; + + /** + * The returned {@code CryptoAssessmentTdeObjectCollection} instance. + * + * @param cryptoAssessmentTdeObjectCollection the value to set + * @return this builder + */ + public Builder cryptoAssessmentTdeObjectCollection( + com.oracle.bmc.datasafe.model.CryptoAssessmentTdeObjectCollection + cryptoAssessmentTdeObjectCollection) { + this.cryptoAssessmentTdeObjectCollection = cryptoAssessmentTdeObjectCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListCryptoAssessmentTdeObjectsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + cryptoAssessmentTdeObjectCollection(o.getCryptoAssessmentTdeObjectCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListCryptoAssessmentTdeObjectsResponse build() { + return new ListCryptoAssessmentTdeObjectsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + cryptoAssessmentTdeObjectCollection); + } + } + + /** + * 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(",opcPrevPage=").append(String.valueOf(opcPrevPage)); + sb.append(",cryptoAssessmentTdeObjectCollection=") + .append(String.valueOf(cryptoAssessmentTdeObjectCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCryptoAssessmentTdeObjectsResponse)) { + return false; + } + + ListCryptoAssessmentTdeObjectsResponse other = (ListCryptoAssessmentTdeObjectsResponse) 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.opcPrevPage, other.opcPrevPage) + && java.util.Objects.equals( + this.cryptoAssessmentTdeObjectCollection, + other.cryptoAssessmentTdeObjectCollection); + } + + @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.opcPrevPage == null ? 43 : this.opcPrevPage.hashCode()); + result = + (result * PRIME) + + (this.cryptoAssessmentTdeObjectCollection == null + ? 43 + : this.cryptoAssessmentTdeObjectCollection.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentWalletsResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentWalletsResponse.java new file mode 100644 index 00000000000..742acf075eb --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentWalletsResponse.java @@ -0,0 +1,288 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentWalletsResponse 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. Include opc-next-page value as the page parameter for the subsequent GET request to + * get the next batch of items. For 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. Include opc-next-page value as the page parameter for the subsequent GET request to + * get the next batch of items. For 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; + } + + /** + * 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 previous batch of items. + */ + private String opcPrevPage; + + /** + * 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 previous batch of items. + * + * @return the value + */ + public String getOpcPrevPage() { + return opcPrevPage; + } + + /** The returned {@code CryptoAssessmentWalletCollection} instance. */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentWalletCollection + cryptoAssessmentWalletCollection; + + /** + * The returned {@code CryptoAssessmentWalletCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.CryptoAssessmentWalletCollection + getCryptoAssessmentWalletCollection() { + return cryptoAssessmentWalletCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "cryptoAssessmentWalletCollection" + }) + private ListCryptoAssessmentWalletsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.datasafe.model.CryptoAssessmentWalletCollection + cryptoAssessmentWalletCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.cryptoAssessmentWalletCollection = cryptoAssessmentWalletCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListCryptoAssessmentWalletsResponse> { + 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. Include opc-next-page value as the page parameter for the subsequent GET + * request to get the next batch of items. For 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. Include opc-next-page value as the page parameter for the subsequent GET + * request to get the next batch of items. For 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; + } + + /** + * 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 previous batch of items. + */ + private String opcPrevPage; + + /** + * 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 previous batch of items. + * + * @param opcPrevPage the value to set + * @return this builder + */ + public Builder opcPrevPage(String opcPrevPage) { + this.opcPrevPage = opcPrevPage; + return this; + } + + /** The returned {@code CryptoAssessmentWalletCollection} instance. */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentWalletCollection + cryptoAssessmentWalletCollection; + + /** + * The returned {@code CryptoAssessmentWalletCollection} instance. + * + * @param cryptoAssessmentWalletCollection the value to set + * @return this builder + */ + public Builder cryptoAssessmentWalletCollection( + com.oracle.bmc.datasafe.model.CryptoAssessmentWalletCollection + cryptoAssessmentWalletCollection) { + this.cryptoAssessmentWalletCollection = cryptoAssessmentWalletCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListCryptoAssessmentWalletsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + cryptoAssessmentWalletCollection(o.getCryptoAssessmentWalletCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListCryptoAssessmentWalletsResponse build() { + return new ListCryptoAssessmentWalletsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + cryptoAssessmentWalletCollection); + } + } + + /** + * 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(",opcPrevPage=").append(String.valueOf(opcPrevPage)); + sb.append(",cryptoAssessmentWalletCollection=") + .append(String.valueOf(cryptoAssessmentWalletCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCryptoAssessmentWalletsResponse)) { + return false; + } + + ListCryptoAssessmentWalletsResponse other = (ListCryptoAssessmentWalletsResponse) 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.opcPrevPage, other.opcPrevPage) + && java.util.Objects.equals( + this.cryptoAssessmentWalletCollection, + other.cryptoAssessmentWalletCollection); + } + + @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.opcPrevPage == null ? 43 : this.opcPrevPage.hashCode()); + result = + (result * PRIME) + + (this.cryptoAssessmentWalletCollection == null + ? 43 + : this.cryptoAssessmentWalletCollection.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentsResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentsResponse.java new file mode 100644 index 00000000000..57c30afb550 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentsResponse.java @@ -0,0 +1,283 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentsResponse 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. Include opc-next-page value as the page parameter for the subsequent GET request to + * get the next batch of items. For 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. Include opc-next-page value as the page parameter for the subsequent GET request to + * get the next batch of items. For 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; + } + + /** + * 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 previous batch of items. + */ + private String opcPrevPage; + + /** + * 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 previous batch of items. + * + * @return the value + */ + public String getOpcPrevPage() { + return opcPrevPage; + } + + /** The returned {@code CryptoAssessmentCollection} instance. */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentCollection cryptoAssessmentCollection; + + /** + * The returned {@code CryptoAssessmentCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.CryptoAssessmentCollection + getCryptoAssessmentCollection() { + return cryptoAssessmentCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "cryptoAssessmentCollection" + }) + private ListCryptoAssessmentsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.datasafe.model.CryptoAssessmentCollection cryptoAssessmentCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.cryptoAssessmentCollection = cryptoAssessmentCollection; + } + + 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. Include opc-next-page value as the page parameter for the subsequent GET + * request to get the next batch of items. For 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. Include opc-next-page value as the page parameter for the subsequent GET + * request to get the next batch of items. For 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; + } + + /** + * 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 previous batch of items. + */ + private String opcPrevPage; + + /** + * 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 previous batch of items. + * + * @param opcPrevPage the value to set + * @return this builder + */ + public Builder opcPrevPage(String opcPrevPage) { + this.opcPrevPage = opcPrevPage; + return this; + } + + /** The returned {@code CryptoAssessmentCollection} instance. */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentCollection cryptoAssessmentCollection; + + /** + * The returned {@code CryptoAssessmentCollection} instance. + * + * @param cryptoAssessmentCollection the value to set + * @return this builder + */ + public Builder cryptoAssessmentCollection( + com.oracle.bmc.datasafe.model.CryptoAssessmentCollection + cryptoAssessmentCollection) { + this.cryptoAssessmentCollection = cryptoAssessmentCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListCryptoAssessmentsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + cryptoAssessmentCollection(o.getCryptoAssessmentCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListCryptoAssessmentsResponse build() { + return new ListCryptoAssessmentsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + cryptoAssessmentCollection); + } + } + + /** + * 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(",opcPrevPage=").append(String.valueOf(opcPrevPage)); + sb.append(",cryptoAssessmentCollection=") + .append(String.valueOf(cryptoAssessmentCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCryptoAssessmentsResponse)) { + return false; + } + + ListCryptoAssessmentsResponse other = (ListCryptoAssessmentsResponse) 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.opcPrevPage, other.opcPrevPage) + && java.util.Objects.equals( + this.cryptoAssessmentCollection, other.cryptoAssessmentCollection); + } + + @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.opcPrevPage == null ? 43 : this.opcPrevPage.hashCode()); + result = + (result * PRIME) + + (this.cryptoAssessmentCollection == null + ? 43 + : this.cryptoAssessmentCollection.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StopDistributedDatabaseResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/RefreshCryptoAssessmentResponse.java similarity index 80% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StopDistributedDatabaseResponse.java rename to bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/RefreshCryptoAssessmentResponse.java index dba957994cd..88f74b0016a 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StopDistributedDatabaseResponse.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/RefreshCryptoAssessmentResponse.java @@ -2,21 +2,21 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.datasafe.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.datasafe.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class StopDistributedDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class RefreshCryptoAssessmentResponse extends com.oracle.bmc.responses.BmcResponse { /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its - * status. + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. */ private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its - * status. + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. * * @return the value */ @@ -46,7 +46,7 @@ public String getOpcRequestId() { "opcWorkRequestId", "opcRequestId" }) - private StopDistributedDatabaseResponse( + private RefreshCryptoAssessmentResponse( int __httpStatusCode__, java.util.Map> headers, String opcWorkRequestId, @@ -58,7 +58,7 @@ private StopDistributedDatabaseResponse( public static class Builder implements com.oracle.bmc.responses.BmcResponse.Builder< - StopDistributedDatabaseResponse> { + RefreshCryptoAssessmentResponse> { private int __httpStatusCode__; @Override @@ -76,14 +76,14 @@ public Builder headers(java.util.Map> headers) { } /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query - * its status. + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. */ private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query - * its status. + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. * * @param opcWorkRequestId the value to set * @return this builder @@ -117,7 +117,7 @@ public Builder opcRequestId(String opcRequestId) { * @return this builder instance */ @Override - public Builder copy(StopDistributedDatabaseResponse o) { + public Builder copy(RefreshCryptoAssessmentResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcWorkRequestId(o.getOpcWorkRequestId()); @@ -132,8 +132,8 @@ public Builder copy(StopDistributedDatabaseResponse o) { * @return the response object */ @Override - public StopDistributedDatabaseResponse build() { - return new StopDistributedDatabaseResponse( + public RefreshCryptoAssessmentResponse build() { + return new RefreshCryptoAssessmentResponse( __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); } } @@ -163,11 +163,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof StopDistributedDatabaseResponse)) { + if (!(o instanceof RefreshCryptoAssessmentResponse)) { return false; } - StopDistributedDatabaseResponse other = (StopDistributedDatabaseResponse) o; + RefreshCryptoAssessmentResponse other = (RefreshCryptoAssessmentResponse) o; return super.equals(o) && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseGsmsResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UpdateCryptoAssessmentResponse.java similarity index 79% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseGsmsResponse.java rename to bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UpdateCryptoAssessmentResponse.java index bc21b09b611..19ace49fdbb 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseGsmsResponse.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UpdateCryptoAssessmentResponse.java @@ -2,21 +2,21 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.datasafe.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.datasafe.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ConfigureDistributedDatabaseGsmsResponse extends com.oracle.bmc.responses.BmcResponse { +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class UpdateCryptoAssessmentResponse extends com.oracle.bmc.responses.BmcResponse { /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its - * status. + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. */ private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its - * status. + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. * * @return the value */ @@ -46,7 +46,7 @@ public String getOpcRequestId() { "opcWorkRequestId", "opcRequestId" }) - private ConfigureDistributedDatabaseGsmsResponse( + private UpdateCryptoAssessmentResponse( int __httpStatusCode__, java.util.Map> headers, String opcWorkRequestId, @@ -58,7 +58,7 @@ private ConfigureDistributedDatabaseGsmsResponse( public static class Builder implements com.oracle.bmc.responses.BmcResponse.Builder< - ConfigureDistributedDatabaseGsmsResponse> { + UpdateCryptoAssessmentResponse> { private int __httpStatusCode__; @Override @@ -76,14 +76,14 @@ public Builder headers(java.util.Map> headers) { } /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query - * its status. + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. */ private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query - * its status. + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this OCID to track the status of the request. * * @param opcWorkRequestId the value to set * @return this builder @@ -117,7 +117,7 @@ public Builder opcRequestId(String opcRequestId) { * @return this builder instance */ @Override - public Builder copy(ConfigureDistributedDatabaseGsmsResponse o) { + public Builder copy(UpdateCryptoAssessmentResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcWorkRequestId(o.getOpcWorkRequestId()); @@ -132,8 +132,8 @@ public Builder copy(ConfigureDistributedDatabaseGsmsResponse o) { * @return the response object */ @Override - public ConfigureDistributedDatabaseGsmsResponse build() { - return new ConfigureDistributedDatabaseGsmsResponse( + public UpdateCryptoAssessmentResponse build() { + return new UpdateCryptoAssessmentResponse( __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); } } @@ -163,12 +163,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ConfigureDistributedDatabaseGsmsResponse)) { + if (!(o instanceof UpdateCryptoAssessmentResponse)) { return false; } - ConfigureDistributedDatabaseGsmsResponse other = - (ConfigureDistributedDatabaseGsmsResponse) o; + UpdateCryptoAssessmentResponse other = (UpdateCryptoAssessmentResponse) o; return super.equals(o) && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); diff --git a/bmc-datasafe/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datasafe/reflect-config.json b/bmc-datasafe/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datasafe/reflect-config.json index 2302c10ce6b..502e354094e 100644 --- a/bmc-datasafe/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datasafe/reflect-config.json +++ b/bmc-datasafe/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datasafe/reflect-config.json @@ -1127,6 +1127,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.ChangeCryptoAssessmentCompartmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.ChangeCryptoAssessmentCompartmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.ChangeDataSafePrivateEndpointCompartmentDetails", @@ -1670,675 +1684,1277 @@ }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.ColumnSummary", + "name": "com.oracle.bmc.datasafe.model.ColumnSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.ColumnSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.ColumnsInfo", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.ColumnsInfo$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.ColumnsInfo$ObjectType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CompareSecurityAssessmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CompareSecurityAssessmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CompareToTemplateBaselineDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CompareToTemplateBaselineDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CompareUserAssessmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CompareUserAssessmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.Compartments", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.Compartments$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CompatibleFormatsForDataTypes", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CompatibleFormatsForDataTypes$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CompatibleFormatsForSensitiveTypes", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CompatibleFormatsForSensitiveTypes$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.ConfidenceLevelEnum", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.ConnectionOption", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.ConnectionOption$ConnectionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateAlertPolicyDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateAlertPolicyDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateAlertPolicyRuleDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateAlertPolicyRuleDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateAttributeSetDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateAttributeSetDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateAuditArchiveRetrievalDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateAuditArchiveRetrievalDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateAuditProfileDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateAuditProfileDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateColumnSourceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateColumnSourceDetails$ColumnSource", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateColumnSourceFromSdmDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateColumnSourceFromSdmDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateColumnSourceFromTargetDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateColumnSourceFromTargetDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateDataSafePrivateEndpointDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateDataSafePrivateEndpointDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateDiscoveryJobDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateDiscoveryJobDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateLibraryMaskingFormatDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateLibraryMaskingFormatDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateMaskingColumnDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateMaskingColumnDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateMaskingPolicyDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateMaskingPolicyDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateOnPremConnectorDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateOnPremConnectorDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreatePeerTargetDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreatePeerTargetDatabaseDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateReferentialRelationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateReferentialRelationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateReferentialRelationDetails$RelationType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateReportDefinitionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateReportDefinitionDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSdmMaskingPolicyDifferenceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSdmMaskingPolicyDifferenceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSecurityAssessmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSecurityAssessmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSecurityAssessmentDetails$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSecurityPolicyConfigDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSecurityPolicyConfigDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSecurityPolicyDeploymentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSecurityPolicyDeploymentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSecurityPolicyDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSecurityPolicyDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSensitiveCategoryDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSensitiveCategoryDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSensitiveColumnDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSensitiveColumnDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSensitiveColumnDetails$ObjectType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSensitiveColumnDetails$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSensitiveColumnDetails$RelationType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSensitiveDataModelDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSensitiveDataModelDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSensitiveTypeDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSensitiveTypeGroupDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSensitiveTypeGroupDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSensitiveTypePatternDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSensitiveTypePatternDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSensitiveTypesExportDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSensitiveTypesExportDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSqlCollectionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSqlCollectionDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSqlCollectionDetails$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateSqlCollectionDetails$SqlLevel", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CreateTargetAlertPolicyAssociationDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.ColumnSummary$Builder", + "name": "com.oracle.bmc.datasafe.model.CreateTargetAlertPolicyAssociationDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.ColumnsInfo", + "name": "com.oracle.bmc.datasafe.model.CreateTargetDatabaseDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.ColumnsInfo$Builder", + "name": "com.oracle.bmc.datasafe.model.CreateTargetDatabaseDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.ColumnsInfo$ObjectType", - "allDeclaredFields": true, - "allDeclaredMethods": true - }, - { - "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CompareSecurityAssessmentDetails", + "name": "com.oracle.bmc.datasafe.model.CreateTargetDatabaseGroupDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CompareSecurityAssessmentDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CreateTargetDatabaseGroupDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CompareToTemplateBaselineDetails", + "name": "com.oracle.bmc.datasafe.model.CreateUnifiedAuditPolicyDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CompareToTemplateBaselineDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CreateUnifiedAuditPolicyDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CompareUserAssessmentDetails", + "name": "com.oracle.bmc.datasafe.model.CreateUserAssessmentDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CompareUserAssessmentDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CreateUserAssessmentDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.Compartments", + "name": "com.oracle.bmc.datasafe.model.Credentials", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.Compartments$Builder", + "name": "com.oracle.bmc.datasafe.model.Credentials$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CompatibleFormatsForDataTypes", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessment", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CompatibleFormatsForDataTypes$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessment$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CompatibleFormatsForSensitiveTypes", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessment$LifecycleState", "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CompatibleFormatsForSensitiveTypes$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessment$Type", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.ConfidenceLevelEnum", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessment$TriggeredBy", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.ConnectionOption", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessment$TargetType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentBackupSetCollection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.ConnectionOption$ConnectionType", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentBackupSetCollection$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateAlertPolicyDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentBackupSetSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateAlertPolicyDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentBackupSetSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateAlertPolicyRuleDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentBackupSetSummary$BackupType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentBackupSetSummary$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentCbomItemCollection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateAlertPolicyRuleDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentCbomItemCollection$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateAttributeSetDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentCbomItemSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateAttributeSetDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentCbomItemSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateAuditArchiveRetrievalDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentCertificateCollection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateAuditArchiveRetrievalDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentCertificateCollection$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateAuditProfileDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentCertificateSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateAuditProfileDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentCertificateSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateColumnSourceDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentCertificateSummary$CertificateType", "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateColumnSourceDetails$ColumnSource", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentCertificateSummary$Status", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateColumnSourceFromSdmDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentCollection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateColumnSourceFromSdmDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentCollection$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateColumnSourceFromTargetDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentFindingAnalyticsCollection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateColumnSourceFromTargetDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentFindingAnalyticsCollection$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateDataSafePrivateEndpointDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentFindingAnalyticsSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateDataSafePrivateEndpointDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentFindingAnalyticsSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateDiscoveryJobDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentFindingAnalyticsSummary$Category", "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateDiscoveryJobDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentFindingAnalyticsSummary$Severity", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateLibraryMaskingFormatDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentFindingCategorySummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateLibraryMaskingFormatDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentFindingCategorySummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateMaskingColumnDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentFindingCollection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateMaskingColumnDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentFindingCollection$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateMaskingPolicyDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentFindingSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateMaskingPolicyDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentFindingSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateOnPremConnectorDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentFindingSummary$Severity", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentFindingSummaryMetrics", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateOnPremConnectorDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentFindingSummaryMetrics$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreatePeerTargetDatabaseDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentFindingTargetCollection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreatePeerTargetDatabaseDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentFindingTargetCollection$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateReferentialRelationDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentFindingTargetSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateReferentialRelationDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentFindingTargetSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateReferentialRelationDetails$RelationType", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentFindingTargetSummary$Severity", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateReportDefinitionDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentKeyCollection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateReportDefinitionDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentKeyCollection$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSdmMaskingPolicyDifferenceDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentKeySummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSdmMaskingPolicyDifferenceDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentKeySummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSecurityAssessmentDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentKeySummary$KeyType", "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSecurityAssessmentDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentSqlnetParameters", "allDeclaredFields": true, "allDeclaredMethods": true, - "allDeclaredConstructors": true + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSecurityAssessmentDetails$Type", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentSqlnetParameters$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSecurityPolicyConfigDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSecurityPolicyConfigDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSecurityPolicyDeploymentDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentTdeObjectCollection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSecurityPolicyDeploymentDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentTdeObjectCollection$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSecurityPolicyDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentTdeObjectSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSecurityPolicyDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentTdeObjectSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSensitiveCategoryDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentWalletCollection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSensitiveCategoryDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentWalletCollection$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSensitiveColumnDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentWalletSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSensitiveColumnDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentWalletSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSensitiveColumnDetails$ObjectType", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentWalletSummary$Feature", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSensitiveColumnDetails$Status", + "name": "com.oracle.bmc.datasafe.model.CryptoAssessmentWalletSummary$AutoLogin", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSensitiveColumnDetails$RelationType", + "name": "com.oracle.bmc.datasafe.model.CryptoFeature", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSensitiveDataModelDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoFeatureStatus", "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSensitiveDataModelDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoFindingCategory", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSensitiveTypeDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoFindingStatus", "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSensitiveTypeGroupDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoKeyCacheStatus", "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSensitiveTypeGroupDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoKeystoreType", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSensitiveTypePatternDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoNnePosture", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSensitiveTypePatternDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoNnePosture$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSensitiveTypesExportDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoNnePosture$ServerEncryption", "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSensitiveTypesExportDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoObservedBooleanValue", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSqlCollectionDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoPosture", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSqlCollectionDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoPosture$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSqlCollectionDetails$Status", + "name": "com.oracle.bmc.datasafe.model.CryptoPosture$FipsModeConfigured", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateSqlCollectionDetails$SqlLevel", + "name": "com.oracle.bmc.datasafe.model.CryptoPostureCategory", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateTargetAlertPolicyAssociationDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoQuantumReadiness", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.CryptoSqlnetParameter", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateTargetAlertPolicyAssociationDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoSqlnetParameter$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateTargetDatabaseDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoSqlnetParameterSource", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateTargetDatabaseDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoSqlnetParameterSource$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateTargetDatabaseGroupDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoSqlnetParameterSource$Type", "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateTargetDatabaseGroupDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoSqlnetParameterValue", "allDeclaredFields": true, "allDeclaredMethods": true, - "allDeclaredConstructors": true + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateUnifiedAuditPolicyDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoSqlnetParameterValue$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateUnifiedAuditPolicyDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoSqlnetParameterValue$Type", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateUserAssessmentDetails", + "name": "com.oracle.bmc.datasafe.model.CryptoTdePosture", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.CreateUserAssessmentDetails$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoTdePosture$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.Credentials", + "name": "com.oracle.bmc.datasafe.model.CryptoTlsPosture", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.datasafe.model.Credentials$Builder", + "name": "com.oracle.bmc.datasafe.model.CryptoTlsPosture$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true @@ -2852,6 +3468,26 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.DownloadCryptoAssessmentReportDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.DownloadCryptoAssessmentReportDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.DownloadCryptoAssessmentReportDetails$Format", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.DownloadDiscoveryReportDetails", @@ -3356,6 +3992,26 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.GenerateCryptoAssessmentReportDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.GenerateCryptoAssessmentReportDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.GenerateCryptoAssessmentReportDetails$Format", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.GenerateDiscoveryReportForDownloadDetails", @@ -5171,6 +5827,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.RunCryptoAssessmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.RunCryptoAssessmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.RunSecurityAssessmentDetails", @@ -7736,6 +8406,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.UpdateCryptoAssessmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.UpdateCryptoAssessmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.UpdateDataSafePrivateEndpointDetails", diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml index 3214f22e75f..93f09154261 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-datascience @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/InstanceConfiguration.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/InstanceConfiguration.java index 99d5f773d9e..5985672f36f 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/InstanceConfiguration.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/InstanceConfiguration.java @@ -28,20 +28,23 @@ public final class InstanceConfiguration "modelDeploymentInstanceShapeConfigDetails", "subnetId", "privateEndpointId", - "networkAccessType" + "networkAccessType", + "capacityReservationIds" }) public InstanceConfiguration( String instanceShapeName, ModelDeploymentInstanceShapeConfigDetails modelDeploymentInstanceShapeConfigDetails, String subnetId, String privateEndpointId, - NetworkAccessType networkAccessType) { + NetworkAccessType networkAccessType, + java.util.List capacityReservationIds) { super(); this.instanceShapeName = instanceShapeName; this.modelDeploymentInstanceShapeConfigDetails = modelDeploymentInstanceShapeConfigDetails; this.subnetId = subnetId; this.privateEndpointId = privateEndpointId; this.networkAccessType = networkAccessType; + this.capacityReservationIds = capacityReservationIds; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -132,6 +135,29 @@ public Builder networkAccessType(NetworkAccessType networkAccessType) { this.__explicitlySet__.add("networkAccessType"); return this; } + /** + * This specifies the list of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed capacity reservation to be used for launching model deployment + * instances. + */ + @com.fasterxml.jackson.annotation.JsonProperty("capacityReservationIds") + private java.util.List capacityReservationIds; + + /** + * This specifies the list of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed capacity reservation to be used for launching model deployment + * instances. + * + * @param capacityReservationIds the value to set + * @return this builder + */ + public Builder capacityReservationIds(java.util.List capacityReservationIds) { + this.capacityReservationIds = capacityReservationIds; + this.__explicitlySet__.add("capacityReservationIds"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -143,7 +169,8 @@ public InstanceConfiguration build() { this.modelDeploymentInstanceShapeConfigDetails, this.subnetId, this.privateEndpointId, - this.networkAccessType); + this.networkAccessType, + this.capacityReservationIds); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -168,6 +195,9 @@ public Builder copy(InstanceConfiguration model) { if (model.wasPropertyExplicitlySet("networkAccessType")) { this.networkAccessType(model.getNetworkAccessType()); } + if (model.wasPropertyExplicitlySet("capacityReservationIds")) { + this.capacityReservationIds(model.getCapacityReservationIds()); + } return this; } } @@ -301,6 +331,25 @@ public NetworkAccessType getNetworkAccessType() { return networkAccessType; } + /** + * This specifies the list of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed capacity reservation to be used for launching model deployment instances. + */ + @com.fasterxml.jackson.annotation.JsonProperty("capacityReservationIds") + private final java.util.List capacityReservationIds; + + /** + * This specifies the list of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed capacity reservation to be used for launching model deployment instances. + * + * @return the value + */ + public java.util.List getCapacityReservationIds() { + return capacityReservationIds; + } + @Override public String toString() { return this.toString(true); @@ -322,6 +371,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", privateEndpointId=").append(String.valueOf(this.privateEndpointId)); sb.append(", networkAccessType=").append(String.valueOf(this.networkAccessType)); + sb.append(", capacityReservationIds=").append(String.valueOf(this.capacityReservationIds)); sb.append(")"); return sb.toString(); } @@ -343,6 +393,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.privateEndpointId, other.privateEndpointId) && java.util.Objects.equals(this.networkAccessType, other.networkAccessType) + && java.util.Objects.equals( + this.capacityReservationIds, other.capacityReservationIds) && super.equals(other); } @@ -365,6 +417,11 @@ public int hashCode() { result = (result * PRIME) + (this.networkAccessType == null ? 43 : this.networkAccessType.hashCode()); + result = + (result * PRIME) + + (this.capacityReservationIds == null + ? 43 + : this.capacityReservationIds.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterInstanceConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterInstanceConfigurationDetails.java index bede2c3fcab..0fbe833a4fc 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterInstanceConfigurationDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedComputeClusterInstanceConfigurationDetails.java @@ -26,15 +26,18 @@ public final class ManagedComputeClusterInstanceConfigurationDetails @Deprecated @java.beans.ConstructorProperties({ "instanceShape", + "capacityReservationIds", "bootVolumeSizeInGBs", "instanceShapeDetails" }) public ManagedComputeClusterInstanceConfigurationDetails( String instanceShape, + java.util.List capacityReservationIds, Integer bootVolumeSizeInGBs, ManagedComputeClusterInstanceShapeDetails instanceShapeDetails) { super(); this.instanceShape = instanceShape; + this.capacityReservationIds = capacityReservationIds; this.bootVolumeSizeInGBs = bootVolumeSizeInGBs; this.instanceShapeDetails = instanceShapeDetails; } @@ -60,6 +63,25 @@ public Builder instanceShape(String instanceShape) { this.__explicitlySet__.add("instanceShape"); return this; } + /** + * The list of [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compute capacity reservation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("capacityReservationIds") + private java.util.List capacityReservationIds; + + /** + * The list of [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compute capacity reservation. + * + * @param capacityReservationIds the value to set + * @return this builder + */ + public Builder capacityReservationIds(java.util.List capacityReservationIds) { + this.capacityReservationIds = capacityReservationIds; + this.__explicitlySet__.add("capacityReservationIds"); + return this; + } /** The size of the boot volume to attach to the instance. */ @com.fasterxml.jackson.annotation.JsonProperty("bootVolumeSizeInGBs") private Integer bootVolumeSizeInGBs; @@ -93,6 +115,7 @@ public ManagedComputeClusterInstanceConfigurationDetails build() { ManagedComputeClusterInstanceConfigurationDetails model = new ManagedComputeClusterInstanceConfigurationDetails( this.instanceShape, + this.capacityReservationIds, this.bootVolumeSizeInGBs, this.instanceShapeDetails); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -106,6 +129,9 @@ public Builder copy(ManagedComputeClusterInstanceConfigurationDetails model) { if (model.wasPropertyExplicitlySet("instanceShape")) { this.instanceShape(model.getInstanceShape()); } + if (model.wasPropertyExplicitlySet("capacityReservationIds")) { + this.capacityReservationIds(model.getCapacityReservationIds()); + } if (model.wasPropertyExplicitlySet("bootVolumeSizeInGBs")) { this.bootVolumeSizeInGBs(model.getBootVolumeSizeInGBs()); } @@ -142,6 +168,23 @@ public String getInstanceShape() { return instanceShape; } + /** + * The list of [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compute capacity reservation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("capacityReservationIds") + private final java.util.List capacityReservationIds; + + /** + * The list of [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compute capacity reservation. + * + * @return the value + */ + public java.util.List getCapacityReservationIds() { + return capacityReservationIds; + } + /** The size of the boot volume to attach to the instance. */ @com.fasterxml.jackson.annotation.JsonProperty("bootVolumeSizeInGBs") private final Integer bootVolumeSizeInGBs; @@ -178,6 +221,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("ManagedComputeClusterInstanceConfigurationDetails("); sb.append("super=").append(super.toString()); sb.append("instanceShape=").append(String.valueOf(this.instanceShape)); + sb.append(", capacityReservationIds=").append(String.valueOf(this.capacityReservationIds)); sb.append(", bootVolumeSizeInGBs=").append(String.valueOf(this.bootVolumeSizeInGBs)); sb.append(", instanceShapeDetails=").append(String.valueOf(this.instanceShapeDetails)); sb.append(")"); @@ -196,6 +240,8 @@ public boolean equals(Object o) { ManagedComputeClusterInstanceConfigurationDetails other = (ManagedComputeClusterInstanceConfigurationDetails) o; return java.util.Objects.equals(this.instanceShape, other.instanceShape) + && java.util.Objects.equals( + this.capacityReservationIds, other.capacityReservationIds) && java.util.Objects.equals(this.bootVolumeSizeInGBs, other.bootVolumeSizeInGBs) && java.util.Objects.equals(this.instanceShapeDetails, other.instanceShapeDetails) && super.equals(other); @@ -208,6 +254,11 @@ public int hashCode() { result = (result * PRIME) + (this.instanceShape == null ? 43 : this.instanceShape.hashCode()); + result = + (result * PRIME) + + (this.capacityReservationIds == null + ? 43 + : this.capacityReservationIds.hashCode()); result = (result * PRIME) + (this.bootVolumeSizeInGBs == null diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedEgressStandaloneJobInfrastructureConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedEgressStandaloneJobInfrastructureConfigurationDetails.java index 1895f3d2018..06fd5ff639b 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedEgressStandaloneJobInfrastructureConfigurationDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ManagedEgressStandaloneJobInfrastructureConfigurationDetails.java @@ -59,6 +59,27 @@ public Builder blockStorageSizeInGBs(Integer blockStorageSizeInGBs) { this.__explicitlySet__.add("blockStorageSizeInGBs"); return this; } + /** + * This specifies the + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed compute capacity reservation to be used for launching jobs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("capacityReservationId") + private String capacityReservationId; + + /** + * This specifies the + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed compute capacity reservation to be used for launching jobs. + * + * @param capacityReservationId the value to set + * @return this builder + */ + public Builder capacityReservationId(String capacityReservationId) { + this.capacityReservationId = capacityReservationId; + this.__explicitlySet__.add("capacityReservationId"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("jobShapeConfigDetails") private JobShapeConfigDetails jobShapeConfigDetails; @@ -75,7 +96,10 @@ public Builder jobShapeConfigDetails(JobShapeConfigDetails jobShapeConfigDetails public ManagedEgressStandaloneJobInfrastructureConfigurationDetails build() { ManagedEgressStandaloneJobInfrastructureConfigurationDetails model = new ManagedEgressStandaloneJobInfrastructureConfigurationDetails( - this.shapeName, this.blockStorageSizeInGBs, this.jobShapeConfigDetails); + this.shapeName, + this.blockStorageSizeInGBs, + this.capacityReservationId, + this.jobShapeConfigDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -90,6 +114,9 @@ public Builder copy(ManagedEgressStandaloneJobInfrastructureConfigurationDetails if (model.wasPropertyExplicitlySet("blockStorageSizeInGBs")) { this.blockStorageSizeInGBs(model.getBlockStorageSizeInGBs()); } + if (model.wasPropertyExplicitlySet("capacityReservationId")) { + this.capacityReservationId(model.getCapacityReservationId()); + } if (model.wasPropertyExplicitlySet("jobShapeConfigDetails")) { this.jobShapeConfigDetails(model.getJobShapeConfigDetails()); } @@ -110,10 +137,12 @@ public Builder toBuilder() { public ManagedEgressStandaloneJobInfrastructureConfigurationDetails( String shapeName, Integer blockStorageSizeInGBs, + String capacityReservationId, JobShapeConfigDetails jobShapeConfigDetails) { super(); this.shapeName = shapeName; this.blockStorageSizeInGBs = blockStorageSizeInGBs; + this.capacityReservationId = capacityReservationId; this.jobShapeConfigDetails = jobShapeConfigDetails; } @@ -143,6 +172,25 @@ public Integer getBlockStorageSizeInGBs() { return blockStorageSizeInGBs; } + /** + * This specifies the + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed compute capacity reservation to be used for launching jobs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("capacityReservationId") + private final String capacityReservationId; + + /** + * This specifies the + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed compute capacity reservation to be used for launching jobs. + * + * @return the value + */ + public String getCapacityReservationId() { + return capacityReservationId; + } + @com.fasterxml.jackson.annotation.JsonProperty("jobShapeConfigDetails") private final JobShapeConfigDetails jobShapeConfigDetails; @@ -167,6 +215,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", shapeName=").append(String.valueOf(this.shapeName)); sb.append(", blockStorageSizeInGBs=").append(String.valueOf(this.blockStorageSizeInGBs)); + sb.append(", capacityReservationId=").append(String.valueOf(this.capacityReservationId)); sb.append(", jobShapeConfigDetails=").append(String.valueOf(this.jobShapeConfigDetails)); sb.append(")"); return sb.toString(); @@ -185,6 +234,7 @@ public boolean equals(Object o) { (ManagedEgressStandaloneJobInfrastructureConfigurationDetails) o; return java.util.Objects.equals(this.shapeName, other.shapeName) && java.util.Objects.equals(this.blockStorageSizeInGBs, other.blockStorageSizeInGBs) + && java.util.Objects.equals(this.capacityReservationId, other.capacityReservationId) && java.util.Objects.equals(this.jobShapeConfigDetails, other.jobShapeConfigDetails) && super.equals(other); } @@ -199,6 +249,11 @@ public int hashCode() { + (this.blockStorageSizeInGBs == null ? 43 : this.blockStorageSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.capacityReservationId == null + ? 43 + : this.capacityReservationId.hashCode()); result = (result * PRIME) + (this.jobShapeConfigDetails == null diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/MultiNodeJobInfrastructureConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/MultiNodeJobInfrastructureConfigurationDetails.java index 12f80f0bc82..0a2fc8b06a6 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/MultiNodeJobInfrastructureConfigurationDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/MultiNodeJobInfrastructureConfigurationDetails.java @@ -59,6 +59,27 @@ public Builder blockStorageSizeInGBs(Integer blockStorageSizeInGBs) { this.__explicitlySet__.add("blockStorageSizeInGBs"); return this; } + /** + * This specifies the list of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed compute capacity reservation to be used for launching jobs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("capacityReservationIds") + private java.util.List capacityReservationIds; + + /** + * This specifies the list of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed compute capacity reservation to be used for launching jobs. + * + * @param capacityReservationIds the value to set + * @return this builder + */ + public Builder capacityReservationIds(java.util.List capacityReservationIds) { + this.capacityReservationIds = capacityReservationIds; + this.__explicitlySet__.add("capacityReservationIds"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("jobShapeConfigDetails") private JobShapeConfigDetails jobShapeConfigDetails; @@ -75,7 +96,10 @@ public Builder jobShapeConfigDetails(JobShapeConfigDetails jobShapeConfigDetails public MultiNodeJobInfrastructureConfigurationDetails build() { MultiNodeJobInfrastructureConfigurationDetails model = new MultiNodeJobInfrastructureConfigurationDetails( - this.shapeName, this.blockStorageSizeInGBs, this.jobShapeConfigDetails); + this.shapeName, + this.blockStorageSizeInGBs, + this.capacityReservationIds, + this.jobShapeConfigDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -90,6 +114,9 @@ public Builder copy(MultiNodeJobInfrastructureConfigurationDetails model) { if (model.wasPropertyExplicitlySet("blockStorageSizeInGBs")) { this.blockStorageSizeInGBs(model.getBlockStorageSizeInGBs()); } + if (model.wasPropertyExplicitlySet("capacityReservationIds")) { + this.capacityReservationIds(model.getCapacityReservationIds()); + } if (model.wasPropertyExplicitlySet("jobShapeConfigDetails")) { this.jobShapeConfigDetails(model.getJobShapeConfigDetails()); } @@ -110,10 +137,12 @@ public Builder toBuilder() { public MultiNodeJobInfrastructureConfigurationDetails( String shapeName, Integer blockStorageSizeInGBs, + java.util.List capacityReservationIds, JobShapeConfigDetails jobShapeConfigDetails) { super(); this.shapeName = shapeName; this.blockStorageSizeInGBs = blockStorageSizeInGBs; + this.capacityReservationIds = capacityReservationIds; this.jobShapeConfigDetails = jobShapeConfigDetails; } @@ -143,6 +172,25 @@ public Integer getBlockStorageSizeInGBs() { return blockStorageSizeInGBs; } + /** + * This specifies the list of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed compute capacity reservation to be used for launching jobs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("capacityReservationIds") + private final java.util.List capacityReservationIds; + + /** + * This specifies the list of + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed compute capacity reservation to be used for launching jobs. + * + * @return the value + */ + public java.util.List getCapacityReservationIds() { + return capacityReservationIds; + } + @com.fasterxml.jackson.annotation.JsonProperty("jobShapeConfigDetails") private final JobShapeConfigDetails jobShapeConfigDetails; @@ -167,6 +215,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", shapeName=").append(String.valueOf(this.shapeName)); sb.append(", blockStorageSizeInGBs=").append(String.valueOf(this.blockStorageSizeInGBs)); + sb.append(", capacityReservationIds=").append(String.valueOf(this.capacityReservationIds)); sb.append(", jobShapeConfigDetails=").append(String.valueOf(this.jobShapeConfigDetails)); sb.append(")"); return sb.toString(); @@ -185,6 +234,8 @@ public boolean equals(Object o) { (MultiNodeJobInfrastructureConfigurationDetails) o; return java.util.Objects.equals(this.shapeName, other.shapeName) && java.util.Objects.equals(this.blockStorageSizeInGBs, other.blockStorageSizeInGBs) + && java.util.Objects.equals( + this.capacityReservationIds, other.capacityReservationIds) && java.util.Objects.equals(this.jobShapeConfigDetails, other.jobShapeConfigDetails) && super.equals(other); } @@ -199,6 +250,11 @@ public int hashCode() { + (this.blockStorageSizeInGBs == null ? 43 : this.blockStorageSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.capacityReservationIds == null + ? 43 + : this.capacityReservationIds.hashCode()); result = (result * PRIME) + (this.jobShapeConfigDetails == null diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/NotebookSessionConfigDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/NotebookSessionConfigDetails.java index e1135059b03..1380dc74aff 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/NotebookSessionConfigDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/NotebookSessionConfigDetails.java @@ -28,6 +28,7 @@ public final class NotebookSessionConfigDetails "blockStorageSizeInGBs", "subnetId", "privateEndpointId", + "capacityReservationId", "notebookSessionShapeConfigDetails" }) public NotebookSessionConfigDetails( @@ -35,12 +36,14 @@ public NotebookSessionConfigDetails( Integer blockStorageSizeInGBs, String subnetId, String privateEndpointId, + String capacityReservationId, NotebookSessionShapeConfigDetails notebookSessionShapeConfigDetails) { super(); this.shape = shape; this.blockStorageSizeInGBs = blockStorageSizeInGBs; this.subnetId = subnetId; this.privateEndpointId = privateEndpointId; + this.capacityReservationId = capacityReservationId; this.notebookSessionShapeConfigDetails = notebookSessionShapeConfigDetails; } @@ -124,6 +127,27 @@ public Builder privateEndpointId(String privateEndpointId) { this.__explicitlySet__.add("privateEndpointId"); return this; } + /** + * This specifies the + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed compute capacity reservation to be used for launching notebook sessions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("capacityReservationId") + private String capacityReservationId; + + /** + * This specifies the + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed compute capacity reservation to be used for launching notebook sessions. + * + * @param capacityReservationId the value to set + * @return this builder + */ + public Builder capacityReservationId(String capacityReservationId) { + this.capacityReservationId = capacityReservationId; + this.__explicitlySet__.add("capacityReservationId"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("notebookSessionShapeConfigDetails") private NotebookSessionShapeConfigDetails notebookSessionShapeConfigDetails; @@ -145,6 +169,7 @@ public NotebookSessionConfigDetails build() { this.blockStorageSizeInGBs, this.subnetId, this.privateEndpointId, + this.capacityReservationId, this.notebookSessionShapeConfigDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -166,6 +191,9 @@ public Builder copy(NotebookSessionConfigDetails model) { if (model.wasPropertyExplicitlySet("privateEndpointId")) { this.privateEndpointId(model.getPrivateEndpointId()); } + if (model.wasPropertyExplicitlySet("capacityReservationId")) { + this.capacityReservationId(model.getCapacityReservationId()); + } if (model.wasPropertyExplicitlySet("notebookSessionShapeConfigDetails")) { this.notebookSessionShapeConfigDetails( model.getNotebookSessionShapeConfigDetails()); @@ -251,6 +279,25 @@ public String getPrivateEndpointId() { return privateEndpointId; } + /** + * This specifies the + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed compute capacity reservation to be used for launching notebook sessions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("capacityReservationId") + private final String capacityReservationId; + + /** + * This specifies the + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed compute capacity reservation to be used for launching notebook sessions. + * + * @return the value + */ + public String getCapacityReservationId() { + return capacityReservationId; + } + @com.fasterxml.jackson.annotation.JsonProperty("notebookSessionShapeConfigDetails") private final NotebookSessionShapeConfigDetails notebookSessionShapeConfigDetails; @@ -277,6 +324,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", blockStorageSizeInGBs=").append(String.valueOf(this.blockStorageSizeInGBs)); sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", privateEndpointId=").append(String.valueOf(this.privateEndpointId)); + sb.append(", capacityReservationId=").append(String.valueOf(this.capacityReservationId)); sb.append(", notebookSessionShapeConfigDetails=") .append(String.valueOf(this.notebookSessionShapeConfigDetails)); sb.append(")"); @@ -297,6 +345,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.blockStorageSizeInGBs, other.blockStorageSizeInGBs) && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.privateEndpointId, other.privateEndpointId) + && java.util.Objects.equals(this.capacityReservationId, other.capacityReservationId) && java.util.Objects.equals( this.notebookSessionShapeConfigDetails, other.notebookSessionShapeConfigDetails) @@ -317,6 +366,11 @@ public int hashCode() { result = (result * PRIME) + (this.privateEndpointId == null ? 43 : this.privateEndpointId.hashCode()); + result = + (result * PRIME) + + (this.capacityReservationId == null + ? 43 + : this.capacityReservationId.hashCode()); result = (result * PRIME) + (this.notebookSessionShapeConfigDetails == null diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/NotebookSessionConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/NotebookSessionConfigurationDetails.java index 0b7db797561..adbcd71568a 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/NotebookSessionConfigurationDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/NotebookSessionConfigurationDetails.java @@ -28,6 +28,7 @@ public final class NotebookSessionConfigurationDetails "blockStorageSizeInGBs", "subnetId", "privateEndpointId", + "capacityReservationId", "notebookSessionShapeConfigDetails" }) public NotebookSessionConfigurationDetails( @@ -35,12 +36,14 @@ public NotebookSessionConfigurationDetails( Integer blockStorageSizeInGBs, String subnetId, String privateEndpointId, + String capacityReservationId, NotebookSessionShapeConfigDetails notebookSessionShapeConfigDetails) { super(); this.shape = shape; this.blockStorageSizeInGBs = blockStorageSizeInGBs; this.subnetId = subnetId; this.privateEndpointId = privateEndpointId; + this.capacityReservationId = capacityReservationId; this.notebookSessionShapeConfigDetails = notebookSessionShapeConfigDetails; } @@ -124,6 +127,27 @@ public Builder privateEndpointId(String privateEndpointId) { this.__explicitlySet__.add("privateEndpointId"); return this; } + /** + * This specifies the + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed compute capacity reservation to be used for launching notebook sessions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("capacityReservationId") + private String capacityReservationId; + + /** + * This specifies the + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed compute capacity reservation to be used for launching notebook sessions. + * + * @param capacityReservationId the value to set + * @return this builder + */ + public Builder capacityReservationId(String capacityReservationId) { + this.capacityReservationId = capacityReservationId; + this.__explicitlySet__.add("capacityReservationId"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("notebookSessionShapeConfigDetails") private NotebookSessionShapeConfigDetails notebookSessionShapeConfigDetails; @@ -145,6 +169,7 @@ public NotebookSessionConfigurationDetails build() { this.blockStorageSizeInGBs, this.subnetId, this.privateEndpointId, + this.capacityReservationId, this.notebookSessionShapeConfigDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -166,6 +191,9 @@ public Builder copy(NotebookSessionConfigurationDetails model) { if (model.wasPropertyExplicitlySet("privateEndpointId")) { this.privateEndpointId(model.getPrivateEndpointId()); } + if (model.wasPropertyExplicitlySet("capacityReservationId")) { + this.capacityReservationId(model.getCapacityReservationId()); + } if (model.wasPropertyExplicitlySet("notebookSessionShapeConfigDetails")) { this.notebookSessionShapeConfigDetails( model.getNotebookSessionShapeConfigDetails()); @@ -251,6 +279,25 @@ public String getPrivateEndpointId() { return privateEndpointId; } + /** + * This specifies the + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed compute capacity reservation to be used for launching notebook sessions. + */ + @com.fasterxml.jackson.annotation.JsonProperty("capacityReservationId") + private final String capacityReservationId; + + /** + * This specifies the + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed compute capacity reservation to be used for launching notebook sessions. + * + * @return the value + */ + public String getCapacityReservationId() { + return capacityReservationId; + } + @com.fasterxml.jackson.annotation.JsonProperty("notebookSessionShapeConfigDetails") private final NotebookSessionShapeConfigDetails notebookSessionShapeConfigDetails; @@ -277,6 +324,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", blockStorageSizeInGBs=").append(String.valueOf(this.blockStorageSizeInGBs)); sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", privateEndpointId=").append(String.valueOf(this.privateEndpointId)); + sb.append(", capacityReservationId=").append(String.valueOf(this.capacityReservationId)); sb.append(", notebookSessionShapeConfigDetails=") .append(String.valueOf(this.notebookSessionShapeConfigDetails)); sb.append(")"); @@ -297,6 +345,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.blockStorageSizeInGBs, other.blockStorageSizeInGBs) && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.privateEndpointId, other.privateEndpointId) + && java.util.Objects.equals(this.capacityReservationId, other.capacityReservationId) && java.util.Objects.equals( this.notebookSessionShapeConfigDetails, other.notebookSessionShapeConfigDetails) @@ -317,6 +366,11 @@ public int hashCode() { result = (result * PRIME) + (this.privateEndpointId == null ? 43 : this.privateEndpointId.hashCode()); + result = + (result * PRIME) + + (this.capacityReservationId == null + ? 43 + : this.capacityReservationId.hashCode()); result = (result * PRIME) + (this.notebookSessionShapeConfigDetails == null diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineInfrastructureConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineInfrastructureConfigurationDetails.java index 9de23194d96..b9f2f14076b 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineInfrastructureConfigurationDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineInfrastructureConfigurationDetails.java @@ -28,20 +28,23 @@ public final class PipelineInfrastructureConfigurationDetails "blockStorageSizeInGBs", "subnetId", "shapeConfigDetails", - "blockStorageSizeInGBsParameterized" + "blockStorageSizeInGBsParameterized", + "capacityReservationId" }) public PipelineInfrastructureConfigurationDetails( String shapeName, Integer blockStorageSizeInGBs, String subnetId, PipelineShapeConfigDetails shapeConfigDetails, - String blockStorageSizeInGBsParameterized) { + String blockStorageSizeInGBsParameterized, + String capacityReservationId) { super(); this.shapeName = shapeName; this.blockStorageSizeInGBs = blockStorageSizeInGBs; this.subnetId = subnetId; this.shapeConfigDetails = shapeConfigDetails; this.blockStorageSizeInGBsParameterized = blockStorageSizeInGBsParameterized; + this.capacityReservationId = capacityReservationId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -126,6 +129,27 @@ public Builder blockStorageSizeInGBsParameterized( this.__explicitlySet__.add("blockStorageSizeInGBsParameterized"); return this; } + /** + * This specifies the + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed compute capacity reservation to be used for launching pipelines. + */ + @com.fasterxml.jackson.annotation.JsonProperty("capacityReservationId") + private String capacityReservationId; + + /** + * This specifies the + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed compute capacity reservation to be used for launching pipelines. + * + * @param capacityReservationId the value to set + * @return this builder + */ + public Builder capacityReservationId(String capacityReservationId) { + this.capacityReservationId = capacityReservationId; + this.__explicitlySet__.add("capacityReservationId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -137,7 +161,8 @@ public PipelineInfrastructureConfigurationDetails build() { this.blockStorageSizeInGBs, this.subnetId, this.shapeConfigDetails, - this.blockStorageSizeInGBsParameterized); + this.blockStorageSizeInGBsParameterized, + this.capacityReservationId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -162,6 +187,9 @@ public Builder copy(PipelineInfrastructureConfigurationDetails model) { this.blockStorageSizeInGBsParameterized( model.getBlockStorageSizeInGBsParameterized()); } + if (model.wasPropertyExplicitlySet("capacityReservationId")) { + this.capacityReservationId(model.getCapacityReservationId()); + } return this; } } @@ -242,6 +270,25 @@ public String getBlockStorageSizeInGBsParameterized() { return blockStorageSizeInGBsParameterized; } + /** + * This specifies the + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed compute capacity reservation to be used for launching pipelines. + */ + @com.fasterxml.jackson.annotation.JsonProperty("capacityReservationId") + private final String capacityReservationId; + + /** + * This specifies the + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed compute capacity reservation to be used for launching pipelines. + * + * @return the value + */ + public String getCapacityReservationId() { + return capacityReservationId; + } + @Override public String toString() { return this.toString(true); @@ -263,6 +310,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", shapeConfigDetails=").append(String.valueOf(this.shapeConfigDetails)); sb.append(", blockStorageSizeInGBsParameterized=") .append(String.valueOf(this.blockStorageSizeInGBsParameterized)); + sb.append(", capacityReservationId=").append(String.valueOf(this.capacityReservationId)); sb.append(")"); return sb.toString(); } @@ -285,6 +333,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.blockStorageSizeInGBsParameterized, other.blockStorageSizeInGBsParameterized) + && java.util.Objects.equals(this.capacityReservationId, other.capacityReservationId) && super.equals(other); } @@ -309,6 +358,11 @@ public int hashCode() { + (this.blockStorageSizeInGBsParameterized == null ? 43 : this.blockStorageSizeInGBsParameterized.hashCode()); + result = + (result * PRIME) + + (this.capacityReservationId == null + ? 43 + : this.capacityReservationId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/StandaloneJobInfrastructureConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/StandaloneJobInfrastructureConfigurationDetails.java index f9cea833988..3eb97c8d739 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/StandaloneJobInfrastructureConfigurationDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/StandaloneJobInfrastructureConfigurationDetails.java @@ -74,6 +74,27 @@ public Builder blockStorageSizeInGBs(Integer blockStorageSizeInGBs) { this.__explicitlySet__.add("blockStorageSizeInGBs"); return this; } + /** + * This specifies the + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed compute capacity reservation to be used for launching jobs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("capacityReservationId") + private String capacityReservationId; + + /** + * This specifies the + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed compute capacity reservation to be used for launching jobs. + * + * @param capacityReservationId the value to set + * @return this builder + */ + public Builder capacityReservationId(String capacityReservationId) { + this.capacityReservationId = capacityReservationId; + this.__explicitlySet__.add("capacityReservationId"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("jobShapeConfigDetails") private JobShapeConfigDetails jobShapeConfigDetails; @@ -93,6 +114,7 @@ public StandaloneJobInfrastructureConfigurationDetails build() { this.shapeName, this.subnetId, this.blockStorageSizeInGBs, + this.capacityReservationId, this.jobShapeConfigDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -111,6 +133,9 @@ public Builder copy(StandaloneJobInfrastructureConfigurationDetails model) { if (model.wasPropertyExplicitlySet("blockStorageSizeInGBs")) { this.blockStorageSizeInGBs(model.getBlockStorageSizeInGBs()); } + if (model.wasPropertyExplicitlySet("capacityReservationId")) { + this.capacityReservationId(model.getCapacityReservationId()); + } if (model.wasPropertyExplicitlySet("jobShapeConfigDetails")) { this.jobShapeConfigDetails(model.getJobShapeConfigDetails()); } @@ -132,11 +157,13 @@ public StandaloneJobInfrastructureConfigurationDetails( String shapeName, String subnetId, Integer blockStorageSizeInGBs, + String capacityReservationId, JobShapeConfigDetails jobShapeConfigDetails) { super(); this.shapeName = shapeName; this.subnetId = subnetId; this.blockStorageSizeInGBs = blockStorageSizeInGBs; + this.capacityReservationId = capacityReservationId; this.jobShapeConfigDetails = jobShapeConfigDetails; } @@ -179,6 +206,25 @@ public Integer getBlockStorageSizeInGBs() { return blockStorageSizeInGBs; } + /** + * This specifies the + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed compute capacity reservation to be used for launching jobs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("capacityReservationId") + private final String capacityReservationId; + + /** + * This specifies the + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer-managed compute capacity reservation to be used for launching jobs. + * + * @return the value + */ + public String getCapacityReservationId() { + return capacityReservationId; + } + @com.fasterxml.jackson.annotation.JsonProperty("jobShapeConfigDetails") private final JobShapeConfigDetails jobShapeConfigDetails; @@ -204,6 +250,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", shapeName=").append(String.valueOf(this.shapeName)); sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", blockStorageSizeInGBs=").append(String.valueOf(this.blockStorageSizeInGBs)); + sb.append(", capacityReservationId=").append(String.valueOf(this.capacityReservationId)); sb.append(", jobShapeConfigDetails=").append(String.valueOf(this.jobShapeConfigDetails)); sb.append(")"); return sb.toString(); @@ -223,6 +270,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.shapeName, other.shapeName) && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.blockStorageSizeInGBs, other.blockStorageSizeInGBs) + && java.util.Objects.equals(this.capacityReservationId, other.capacityReservationId) && java.util.Objects.equals(this.jobShapeConfigDetails, other.jobShapeConfigDetails) && super.equals(other); } @@ -238,6 +286,11 @@ public int hashCode() { + (this.blockStorageSizeInGBs == null ? 43 : this.blockStorageSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.capacityReservationId == null + ? 43 + : this.capacityReservationId.hashCode()); result = (result * PRIME) + (this.jobShapeConfigDetails == null diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateManagedComputeClusterInstanceConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateManagedComputeClusterInstanceConfigurationDetails.java index 00107efa4a3..88bfb0c6b53 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateManagedComputeClusterInstanceConfigurationDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdateManagedComputeClusterInstanceConfigurationDetails.java @@ -25,15 +25,18 @@ public final class UpdateManagedComputeClusterInstanceConfigurationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ + "capacityReservationIds", "instanceShape", "bootVolumeSizeInGBs", "instanceShapeDetails" }) public UpdateManagedComputeClusterInstanceConfigurationDetails( + java.util.List capacityReservationIds, String instanceShape, Integer bootVolumeSizeInGBs, ManagedComputeClusterInstanceShapeDetails instanceShapeDetails) { super(); + this.capacityReservationIds = capacityReservationIds; this.instanceShape = instanceShape; this.bootVolumeSizeInGBs = bootVolumeSizeInGBs; this.instanceShapeDetails = instanceShapeDetails; @@ -41,6 +44,25 @@ public UpdateManagedComputeClusterInstanceConfigurationDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + /** + * The list of [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compute capacity reservation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("capacityReservationIds") + private java.util.List capacityReservationIds; + + /** + * The list of [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compute capacity reservation. + * + * @param capacityReservationIds the value to set + * @return this builder + */ + public Builder capacityReservationIds(java.util.List capacityReservationIds) { + this.capacityReservationIds = capacityReservationIds; + this.__explicitlySet__.add("capacityReservationIds"); + return this; + } /** * The shape used to launch the instances in compute target. Supported shapes can be * retrieved using compute target shapes api. @@ -92,6 +114,7 @@ public Builder instanceShapeDetails( public UpdateManagedComputeClusterInstanceConfigurationDetails build() { UpdateManagedComputeClusterInstanceConfigurationDetails model = new UpdateManagedComputeClusterInstanceConfigurationDetails( + this.capacityReservationIds, this.instanceShape, this.bootVolumeSizeInGBs, this.instanceShapeDetails); @@ -103,6 +126,9 @@ public UpdateManagedComputeClusterInstanceConfigurationDetails build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(UpdateManagedComputeClusterInstanceConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("capacityReservationIds")) { + this.capacityReservationIds(model.getCapacityReservationIds()); + } if (model.wasPropertyExplicitlySet("instanceShape")) { this.instanceShape(model.getInstanceShape()); } @@ -125,6 +151,23 @@ public Builder toBuilder() { return new Builder().copy(this); } + /** + * The list of [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compute capacity reservation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("capacityReservationIds") + private final java.util.List capacityReservationIds; + + /** + * The list of [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compute capacity reservation. + * + * @return the value + */ + public java.util.List getCapacityReservationIds() { + return capacityReservationIds; + } + /** * The shape used to launch the instances in compute target. Supported shapes can be retrieved * using compute target shapes api. @@ -177,7 +220,8 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("UpdateManagedComputeClusterInstanceConfigurationDetails("); sb.append("super=").append(super.toString()); - sb.append("instanceShape=").append(String.valueOf(this.instanceShape)); + sb.append("capacityReservationIds=").append(String.valueOf(this.capacityReservationIds)); + sb.append(", instanceShape=").append(String.valueOf(this.instanceShape)); sb.append(", bootVolumeSizeInGBs=").append(String.valueOf(this.bootVolumeSizeInGBs)); sb.append(", instanceShapeDetails=").append(String.valueOf(this.instanceShapeDetails)); sb.append(")"); @@ -195,7 +239,8 @@ public boolean equals(Object o) { UpdateManagedComputeClusterInstanceConfigurationDetails other = (UpdateManagedComputeClusterInstanceConfigurationDetails) o; - return java.util.Objects.equals(this.instanceShape, other.instanceShape) + return java.util.Objects.equals(this.capacityReservationIds, other.capacityReservationIds) + && java.util.Objects.equals(this.instanceShape, other.instanceShape) && java.util.Objects.equals(this.bootVolumeSizeInGBs, other.bootVolumeSizeInGBs) && java.util.Objects.equals(this.instanceShapeDetails, other.instanceShapeDetails) && super.equals(other); @@ -205,6 +250,11 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; + result = + (result * PRIME) + + (this.capacityReservationIds == null + ? 43 + : this.capacityReservationIds.hashCode()); result = (result * PRIME) + (this.instanceShape == null ? 43 : this.instanceShape.hashCode()); diff --git a/bmc-dblm/pom.xml b/bmc-dblm/pom.xml index cbaaf2dd9c2..d113cf2fc27 100644 --- a/bmc-dblm/pom.xml +++ b/bmc-dblm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-dblm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-dbmulticloud/pom.xml b/bmc-dbmulticloud/pom.xml index 975668418a3..d960e013107 100644 --- a/bmc-dbmulticloud/pom.xml +++ b/bmc-dbmulticloud/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-dbmulticloud @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-ddfs/pom.xml b/bmc-ddfs/pom.xml index 7fadfe9212b..182dbb9ec9e 100644 --- a/bmc-ddfs/pom.xml +++ b/bmc-ddfs/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-ddfs @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file 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 index a91080cb914..db28fec96a4 100644 --- a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/InstanceAsyncClient.java +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/InstanceAsyncClient.java @@ -106,7 +106,10 @@ public java.util.concurrent.Future cancelWorkRequest( return clientCall(request, CancelWorkRequestResponse::builder) .logger(LOG, "cancelWorkRequest") - .serviceDetails("Instance", "CancelWorkRequest", "") + .serviceDetails( + "Instance", + "CancelWorkRequest", + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/WorkRequest/CancelWorkRequest") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(CancelWorkRequestRequest::builder) .basePath("/20260831") @@ -134,7 +137,10 @@ public java.util.concurrent.Future changeInst return clientCall(request, ChangeInstanceCompartmentResponse::builder) .logger(LOG, "changeInstanceCompartment") - .serviceDetails("Instance", "ChangeInstanceCompartment", "") + .serviceDetails( + "Instance", + "ChangeInstanceCompartment", + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/Instance/ChangeInstanceCompartment") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeInstanceCompartmentRequest::builder) .basePath("/20260831") @@ -165,7 +171,10 @@ public java.util.concurrent.Future createInstance( return clientCall(request, CreateInstanceResponse::builder) .logger(LOG, "createInstance") - .serviceDetails("Instance", "CreateInstance", "") + .serviceDetails( + "Instance", + "CreateInstance", + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/Instance/CreateInstance") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateInstanceRequest::builder) .basePath("/20260831") @@ -199,7 +208,10 @@ public java.util.concurrent.Future deleteInstance( return clientCall(request, DeleteInstanceResponse::builder) .logger(LOG, "deleteInstance") - .serviceDetails("Instance", "DeleteInstance", "") + .serviceDetails( + "Instance", + "DeleteInstance", + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/Instance/DeleteInstance") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteInstanceRequest::builder) .basePath("/20260831") @@ -225,7 +237,10 @@ public java.util.concurrent.Future getInstance( return clientCall(request, GetInstanceResponse::builder) .logger(LOG, "getInstance") - .serviceDetails("Instance", "GetInstance", "") + .serviceDetails( + "Instance", + "GetInstance", + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/Instance/GetInstance") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetInstanceRequest::builder) .basePath("/20260831") @@ -253,7 +268,10 @@ public java.util.concurrent.Future getWorkRequest( return clientCall(request, GetWorkRequestResponse::builder) .logger(LOG, "getWorkRequest") - .serviceDetails("Instance", "GetWorkRequest", "") + .serviceDetails( + "Instance", + "GetWorkRequest", + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/WorkRequest/GetWorkRequest") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetWorkRequestRequest::builder) .basePath("/20260831") @@ -280,7 +298,10 @@ public java.util.concurrent.Future listInstances( return clientCall(request, ListInstancesResponse::builder) .logger(LOG, "listInstances") - .serviceDetails("Instance", "ListInstances", "") + .serviceDetails( + "Instance", + "ListInstances", + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/InstanceCollection/ListInstances") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListInstancesRequest::builder) .basePath("/20260831") @@ -316,7 +337,10 @@ public java.util.concurrent.Future listWorkReques return clientCall(request, ListWorkRequestErrorsResponse::builder) .logger(LOG, "listWorkRequestErrors") - .serviceDetails("Instance", "ListWorkRequestErrors", "") + .serviceDetails( + "Instance", + "ListWorkRequestErrors", + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/WorkRequestError/ListWorkRequestErrors") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestErrorsRequest::builder) .basePath("/20260831") @@ -350,7 +374,10 @@ public java.util.concurrent.Future listWorkRequestL return clientCall(request, ListWorkRequestLogsResponse::builder) .logger(LOG, "listWorkRequestLogs") - .serviceDetails("Instance", "ListWorkRequestLogs", "") + .serviceDetails( + "Instance", + "ListWorkRequestLogs", + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/WorkRequestLogEntry/ListWorkRequestLogs") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestLogsRequest::builder) .basePath("/20260831") @@ -382,7 +409,10 @@ public java.util.concurrent.Future listWorkRequests( return clientCall(request, ListWorkRequestsResponse::builder) .logger(LOG, "listWorkRequests") - .serviceDetails("Instance", "ListWorkRequests", "") + .serviceDetails( + "Instance", + "ListWorkRequests", + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/WorkRequest/ListWorkRequests") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestsRequest::builder) .basePath("/20260831") @@ -420,7 +450,10 @@ public java.util.concurrent.Future updateInstance( return clientCall(request, UpdateInstanceResponse::builder) .logger(LOG, "updateInstance") - .serviceDetails("Instance", "UpdateInstance", "") + .serviceDetails( + "Instance", + "UpdateInstance", + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/Instance/UpdateInstance") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateInstanceRequest::builder) .basePath("/20260831") 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 index 50e0e1e4061..a122ebd5a49 100644 --- a/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/InstanceClient.java +++ b/bmc-ddfs/src/main/java/com/oracle/bmc/ddfs/InstanceClient.java @@ -130,7 +130,10 @@ public CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest requ return clientCall(request, CancelWorkRequestResponse::builder) .logger(LOG, "cancelWorkRequest") - .serviceDetails("Instance", "CancelWorkRequest", "") + .serviceDetails( + "Instance", + "CancelWorkRequest", + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/WorkRequest/CancelWorkRequest") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(CancelWorkRequestRequest::builder) .basePath("/20260831") @@ -156,7 +159,10 @@ public ChangeInstanceCompartmentResponse changeInstanceCompartment( return clientCall(request, ChangeInstanceCompartmentResponse::builder) .logger(LOG, "changeInstanceCompartment") - .serviceDetails("Instance", "ChangeInstanceCompartment", "") + .serviceDetails( + "Instance", + "ChangeInstanceCompartment", + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/Instance/ChangeInstanceCompartment") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeInstanceCompartmentRequest::builder) .basePath("/20260831") @@ -184,7 +190,10 @@ public CreateInstanceResponse createInstance(CreateInstanceRequest request) { return clientCall(request, CreateInstanceResponse::builder) .logger(LOG, "createInstance") - .serviceDetails("Instance", "CreateInstance", "") + .serviceDetails( + "Instance", + "CreateInstance", + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/Instance/CreateInstance") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateInstanceRequest::builder) .basePath("/20260831") @@ -215,7 +224,10 @@ public DeleteInstanceResponse deleteInstance(DeleteInstanceRequest request) { return clientCall(request, DeleteInstanceResponse::builder) .logger(LOG, "deleteInstance") - .serviceDetails("Instance", "DeleteInstance", "") + .serviceDetails( + "Instance", + "DeleteInstance", + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/Instance/DeleteInstance") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteInstanceRequest::builder) .basePath("/20260831") @@ -239,7 +251,10 @@ public GetInstanceResponse getInstance(GetInstanceRequest request) { return clientCall(request, GetInstanceResponse::builder) .logger(LOG, "getInstance") - .serviceDetails("Instance", "GetInstance", "") + .serviceDetails( + "Instance", + "GetInstance", + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/Instance/GetInstance") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetInstanceRequest::builder) .basePath("/20260831") @@ -264,7 +279,10 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { return clientCall(request, GetWorkRequestResponse::builder) .logger(LOG, "getWorkRequest") - .serviceDetails("Instance", "GetWorkRequest", "") + .serviceDetails( + "Instance", + "GetWorkRequest", + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/WorkRequest/GetWorkRequest") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetWorkRequestRequest::builder) .basePath("/20260831") @@ -289,7 +307,10 @@ public ListInstancesResponse listInstances(ListInstancesRequest request) { return clientCall(request, ListInstancesResponse::builder) .logger(LOG, "listInstances") - .serviceDetails("Instance", "ListInstances", "") + .serviceDetails( + "Instance", + "ListInstances", + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/InstanceCollection/ListInstances") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListInstancesRequest::builder) .basePath("/20260831") @@ -323,7 +344,10 @@ public ListWorkRequestErrorsResponse listWorkRequestErrors( return clientCall(request, ListWorkRequestErrorsResponse::builder) .logger(LOG, "listWorkRequestErrors") - .serviceDetails("Instance", "ListWorkRequestErrors", "") + .serviceDetails( + "Instance", + "ListWorkRequestErrors", + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/WorkRequestError/ListWorkRequestErrors") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestErrorsRequest::builder) .basePath("/20260831") @@ -354,7 +378,10 @@ public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsReques return clientCall(request, ListWorkRequestLogsResponse::builder) .logger(LOG, "listWorkRequestLogs") - .serviceDetails("Instance", "ListWorkRequestLogs", "") + .serviceDetails( + "Instance", + "ListWorkRequestLogs", + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/WorkRequestLogEntry/ListWorkRequestLogs") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestLogsRequest::builder) .basePath("/20260831") @@ -383,7 +410,10 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request return clientCall(request, ListWorkRequestsResponse::builder) .logger(LOG, "listWorkRequests") - .serviceDetails("Instance", "ListWorkRequests", "") + .serviceDetails( + "Instance", + "ListWorkRequests", + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/WorkRequest/ListWorkRequests") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestsRequest::builder) .basePath("/20260831") @@ -418,7 +448,10 @@ public UpdateInstanceResponse updateInstance(UpdateInstanceRequest request) { return clientCall(request, UpdateInstanceResponse::builder) .logger(LOG, "updateInstance") - .serviceDetails("Instance", "UpdateInstance", "") + .serviceDetails( + "Instance", + "UpdateInstance", + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/Instance/UpdateInstance") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateInstanceRequest::builder) .basePath("/20260831") diff --git a/bmc-delegateaccesscontrol/pom.xml b/bmc-delegateaccesscontrol/pom.xml index 6cf2e63be3e..a691bba36fe 100644 --- a/bmc-delegateaccesscontrol/pom.xml +++ b/bmc-delegateaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-delegateaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-demandsignal/pom.xml b/bmc-demandsignal/pom.xml index 652d1ef46d3..32c0475b272 100644 --- a/bmc-demandsignal/pom.xml +++ b/bmc-demandsignal/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-demandsignal @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-desktops/pom.xml b/bmc-desktops/pom.xml index a4a4cc6d97b..364eb95ca6f 100644 --- a/bmc-desktops/pom.xml +++ b/bmc-desktops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-desktops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-devops/pom.xml b/bmc-devops/pom.xml index dab35249a02..7bdd4d8062e 100644 --- a/bmc-devops/pom.xml +++ b/bmc-devops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-devops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-dif/pom.xml b/bmc-dif/pom.xml index 6f695bc0217..649f11bb81c 100644 --- a/bmc-dif/pom.xml +++ b/bmc-dif/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-dif @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-disasterrecovery/pom.xml b/bmc-disasterrecovery/pom.xml index 7530e19c05c..673b983f555 100644 --- a/bmc-disasterrecovery/pom.xml +++ b/bmc-disasterrecovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-disasterrecovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-distributeddatabase/pom.xml b/bmc-distributeddatabase/pom.xml index 012d6ff98b8..351342528b2 100644 --- a/bmc-distributeddatabase/pom.xml +++ b/bmc-distributeddatabase/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-distributeddatabase @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedAutonomousDbService.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedAutonomousDbService.java index 05592bd524d..335d7175e91 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedAutonomousDbService.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedAutonomousDbService.java @@ -12,7 +12,7 @@ * 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: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public interface DistributedAutonomousDbService extends AutoCloseable { /** Rebuilds the client from scratch. Useful to refresh certificates. */ @@ -118,6 +118,24 @@ public interface DistributedAutonomousDbService extends AutoCloseable { 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. @@ -212,51 +230,6 @@ CreateDistributedAutonomousDatabaseResponse createDistributedAutonomousDatabase( DeleteDistributedAutonomousDatabaseResponse deleteDistributedAutonomousDatabase( DeleteDistributedAutonomousDatabaseRequest request); - /** - * Generate the common certificate signing request for GSMs. Download the - * .csr file from API response. Users can use this .csr file to - * generate the CA signed certificate, and as a next step use - * 'uploadSignedCertificateAndGenerateWallet' API to upload the CA signed certificate to GSM, - * and generate wallets for the GSM instances 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 - * DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequest API. - */ - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - downloadDistributedAutonomousDatabaseGsmCertificateSigningRequest( - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - request); - - /** - * Generate the certificate signing request for GSM instances of the Globally distributed - * autonomous database. Once certificate signing request is generated, then customers can - * download the certificate signing request using 'downloadGsmCertificateSigningRequest' api - * call. - * - * @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 - * GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequest API. - */ - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - generateDistributedAutonomousDatabaseGsmCertificateSigningRequest( - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - request); - /** * Generate the wallet associated with Globally distributed autonomous database. * @@ -310,6 +283,24 @@ GetDistributedAutonomousDatabaseResponse getDistributedAutonomousDatabase( 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. * @@ -403,7 +394,26 @@ PatchDistributedAutonomousDatabaseResponse patchDistributedAutonomousDatabase( RotateDistributedAutonomousDatabasePasswordsRequest request); /** - * Start the shards, catalog and GSMs of Globally distributed autonomous database. + * 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 @@ -420,7 +430,8 @@ StartDistributedAutonomousDatabaseResponse startDistributedAutonomousDatabase( StartDistributedAutonomousDatabaseRequest request); /** - * Stop the shards, catalog and GSM instances for the Globally distributed autonomous database. + * 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 @@ -453,27 +464,6 @@ StopDistributedAutonomousDatabaseResponse stopDistributedAutonomousDatabase( UpdateDistributedAutonomousDatabaseResponse updateDistributedAutonomousDatabase( UpdateDistributedAutonomousDatabaseRequest request); - /** - * Upload the CA signed certificate to the GSM instances and generate wallets for GSM instances - * of the Globally distributed autonomous database. Customer shall provide the CA signed - * certificate key details by adding the certificate in request body. - * - * @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 - * UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWallet API. - */ - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse - uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWallet( - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest - request); - /** * Validate the CA Bundles consistency of the globally distributed autonomous database. * diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedAutonomousDbServiceAsync.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedAutonomousDbServiceAsync.java index 004e8668768..4bb11d1b165 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedAutonomousDbServiceAsync.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedAutonomousDbServiceAsync.java @@ -11,7 +11,7 @@ * Use the Globally Distributed Database service APIs to create and manage the Globally distributed * databases. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public interface DistributedAutonomousDbServiceAsync extends AutoCloseable { /** Rebuilds the client from scratch. Useful to refresh certificates. */ @@ -118,6 +118,25 @@ public interface DistributedAutonomousDbServiceAsync extends AutoCloseable { 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. @@ -215,53 +234,6 @@ public interface DistributedAutonomousDbServiceAsync extends AutoCloseable { DeleteDistributedAutonomousDatabaseResponse> handler); - /** - * Generate the common certificate signing request for GSMs. Download the - * .csr file from API response. Users can use this .csr file to - * generate the CA signed certificate, and as a next step use - * 'uploadSignedCertificateAndGenerateWallet' API to upload the CA signed certificate to GSM, - * and generate wallets for the GSM instances 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< - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - downloadDistributedAutonomousDatabaseGsmCertificateSigningRequest( - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - request, - com.oracle.bmc.responses.AsyncHandler< - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest, - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - handler); - - /** - * Generate the certificate signing request for GSM instances of the Globally distributed - * autonomous database. Once certificate signing request is generated, then customers can - * download the certificate signing request using 'downloadGsmCertificateSigningRequest' api - * call. - * - * @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< - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - generateDistributedAutonomousDatabaseGsmCertificateSigningRequest( - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - request, - com.oracle.bmc.responses.AsyncHandler< - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest, - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - handler); - /** * Generate the wallet associated with Globally distributed autonomous database. * @@ -318,6 +290,25 @@ public interface DistributedAutonomousDbServiceAsync extends AutoCloseable { 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. * @@ -413,7 +404,27 @@ public interface DistributedAutonomousDbServiceAsync extends AutoCloseable { handler); /** - * Start the shards, catalog and GSMs of Globally distributed autonomous database. + * 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. @@ -431,7 +442,8 @@ public interface DistributedAutonomousDbServiceAsync extends AutoCloseable { handler); /** - * Stop the shards, catalog and GSM instances for the Globally distributed autonomous database. + * 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. @@ -466,28 +478,6 @@ public interface DistributedAutonomousDbServiceAsync extends AutoCloseable { UpdateDistributedAutonomousDatabaseResponse> handler); - /** - * Upload the CA signed certificate to the GSM instances and generate wallets for GSM instances - * of the Globally distributed autonomous database. Customer shall provide the CA signed - * certificate key details by adding the certificate in request body. - * - * @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< - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse> - uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWallet( - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest - request, - com.oracle.bmc.responses.AsyncHandler< - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest, - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse> - handler); - /** * Validate the CA Bundles consistency of the globally distributed autonomous database. * diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedAutonomousDbServiceAsyncClient.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedAutonomousDbServiceAsyncClient.java index 3e7962775a8..e9af1c4fdad 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedAutonomousDbServiceAsyncClient.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedAutonomousDbServiceAsyncClient.java @@ -25,7 +25,7 @@ * 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: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DistributedAutonomousDbServiceAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient implements DistributedAutonomousDbServiceAsync { @@ -57,7 +57,7 @@ public class DistributedAutonomousDbServiceAsyncClient LOG.warn( com.oracle.bmc.util.StreamUtils.getStreamWarningMessage( "DistributedAutonomousDbServiceAsyncClient", - "downloadDistributedAutonomousDatabaseGsmCertificateSigningRequest,generateDistributedAutonomousDatabaseWallet")); + "generateDistributedAutonomousDatabaseWallet")); } } @@ -146,10 +146,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedAutonomousDbService", "AddDistributedAutonomousDatabaseGdsControlNode", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("actions") @@ -191,10 +191,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedAutonomousDbService", "ChangeDistributedAutonomousDatabaseCompartment", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("actions") @@ -236,10 +236,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedAutonomousDbService", "ChangeDistributedAutonomousDbBackupConfig", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("actions") @@ -258,6 +258,62 @@ public void setRegion(String regionId) { .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.distributeddatabase.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( @@ -279,10 +335,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedAutonomousDbService", "ConfigureDistributedAutonomousDatabaseGsmWallet", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("actions") @@ -324,10 +380,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedAutonomousDbService", "ConfigureDistributedAutonomousDatabaseGsms", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("actions") @@ -365,10 +421,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedAutonomousDbService", "ConfigureDistributedAutonomousDatabaseSharding", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("actions") @@ -409,7 +465,7 @@ public void setRegion(String regionId) { "DistributedAutonomousDbService", "CreateDistributedAutonomousDatabase", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateDistributedAutonomousDatabaseRequest::builder) - .basePath("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .accept("application/json") .appendHeader("opc-retry-token", request.getOpcRetryToken()) @@ -449,10 +505,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedAutonomousDbService", "DeleteDistributedAutonomousDatabase", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .accept("application/json") @@ -468,122 +524,6 @@ public void setRegion(String regionId) { .callAsync(handler); } - @Override - public java.util.concurrent.Future< - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - downloadDistributedAutonomousDatabaseGsmCertificateSigningRequest( - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - request, - final com.oracle.bmc.responses.AsyncHandler< - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest, - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - handler) { - - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - return clientCall( - request, - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - ::builder) - .logger(LOG, "downloadDistributedAutonomousDatabaseGsmCertificateSigningRequest") - .serviceDetails( - "DistributedAutonomousDbService", - "DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequest", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequest") - .method(com.oracle.bmc.http.client.Method.POST) - .requestBuilder( - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - ::builder) - .basePath("/20250101") - .appendPathParam("distributedAutonomousDatabases") - .appendPathParam(request.getDistributedAutonomousDatabaseId()) - .appendPathParam("actions") - .appendPathParam("downloadGsmCertificateSigningRequest") - .accept("application/octet-stream") - .appendHeader("opc-request-id", request.getOpcRequestId()) - .appendHeader("if-match", request.getIfMatch()) - .appendHeader("opc-retry-token", request.getOpcRetryToken()) - .handleBody( - java.io.InputStream.class, - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - .Builder - ::inputStream) - .handleResponseHeaderString( - "opc-request-id", - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - .Builder - ::opcRequestId) - .handleResponseHeaderString( - "etag", - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - .Builder - ::etag) - .handleResponseHeaderLong( - "content-length", - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - .Builder - ::contentLength) - .handleResponseHeaderDate( - "last-modified", - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - .Builder - ::lastModified) - .callAsync(handler); - } - - @Override - public java.util.concurrent.Future< - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - generateDistributedAutonomousDatabaseGsmCertificateSigningRequest( - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - request, - final com.oracle.bmc.responses.AsyncHandler< - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest, - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - handler) { - - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - return clientCall( - request, - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - ::builder) - .logger(LOG, "generateDistributedAutonomousDatabaseGsmCertificateSigningRequest") - .serviceDetails( - "DistributedAutonomousDbService", - "GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequest", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequest") - .method(com.oracle.bmc.http.client.Method.POST) - .requestBuilder( - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - ::builder) - .basePath("/20250101") - .appendPathParam("distributedAutonomousDatabases") - .appendPathParam(request.getDistributedAutonomousDatabaseId()) - .appendPathParam("actions") - .appendPathParam("generateGsmCertificateSigningRequest") - .appendQueryParam("caBundleId", request.getCaBundleId()) - .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", - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - .Builder - ::opcWorkRequestId) - .handleResponseHeaderString( - "opc-request-id", - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - .Builder - ::opcRequestId) - .callAsync(handler); - } - @Override public java.util.concurrent.Future generateDistributedAutonomousDatabaseWallet( @@ -605,10 +545,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedAutonomousDbService", "GenerateDistributedAutonomousDatabaseWallet", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("actions") @@ -653,10 +593,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedAutonomousDbService", "GetDistributedAutonomousDatabase", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendQueryParam("metadata", request.getMetadata()) @@ -694,10 +634,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedAutonomousDbService", "GetDistributedAutonomousDatabaseRaftMetric", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("raftMetrics") @@ -714,6 +654,45 @@ public void setRegion(String regionId) { .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.distributeddatabase.model + .DistributedAutonomousDatabaseRuChangeLog.class, + GetDistributedAutonomousDatabaseRuChangeLogResponse.Builder + ::distributedAutonomousDatabaseRuChangeLog) + .handleResponseHeaderString( + "opc-request-id", + GetDistributedAutonomousDatabaseRuChangeLogResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listDistributedAutonomousDatabases( @@ -729,20 +708,24 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedAutonomousDbService", "ListDistributedAutonomousDatabases", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabaseCollection/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("/20250101") + .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()) - .appendEnumQueryParam("dbDeploymentType", request.getDbDeploymentType()) + .appendQueryParam("dbDeploymentType", request.getDbDeploymentType()) .appendQueryParam("metadata", request.getMetadata()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) @@ -782,10 +765,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedAutonomousDbService", "MoveDistributedAutonomousDatabaseReplicationUnit", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("actions") @@ -827,10 +810,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedAutonomousDbService", "PatchDistributedAutonomousDatabase", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .accept("application/json") @@ -868,16 +851,15 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedAutonomousDbService", "RecreateFailedDistributedAutonomousDatabaseResource", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("actions") .appendPathParam("recreateFailedResource") .appendQueryParam("resourceName", request.getResourceName()) - .appendQueryParam("shardGroup", request.getShardGroup()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("if-match", request.getIfMatch()) @@ -905,24 +887,28 @@ public void setRegion(String regionId) { 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/20250101/DistributedAutonomousDatabase/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("/20250101") + .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()) - .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() .handleResponseHeaderString( "opc-work-request-id", RotateDistributedAutonomousDatabasePasswordsResponse.Builder @@ -933,6 +919,49 @@ public void setRegion(String regionId) { .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( @@ -951,10 +980,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedAutonomousDbService", "StartDistributedAutonomousDatabase", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("actions") @@ -990,10 +1019,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedAutonomousDbService", "StopDistributedAutonomousDatabase", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("actions") @@ -1032,10 +1061,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedAutonomousDbService", "UpdateDistributedAutonomousDatabase", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .accept("application/json") @@ -1055,63 +1084,6 @@ public void setRegion(String regionId) { .callAsync(handler); } - @Override - public java.util.concurrent.Future< - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse> - uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWallet( - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest - request, - final com.oracle.bmc.responses.AsyncHandler< - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest, - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse> - handler) { - - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - Objects.requireNonNull( - request - .getUploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails(), - "uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails is required"); - - return clientCall( - request, - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse - ::builder) - .logger( - LOG, - "uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWallet") - .serviceDetails( - "DistributedAutonomousDbService", - "UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWallet", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWallet") - .method(com.oracle.bmc.http.client.Method.POST) - .requestBuilder( - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest - ::builder) - .basePath("/20250101") - .appendPathParam("distributedAutonomousDatabases") - .appendPathParam(request.getDistributedAutonomousDatabaseId()) - .appendPathParam("actions") - .appendPathParam("uploadSignedCertificateAndGenerateWallet") - .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", - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse - .Builder - ::opcWorkRequestId) - .handleResponseHeaderString( - "opc-request-id", - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse - .Builder - ::opcRequestId) - .callAsync(handler); - } - @Override public java.util.concurrent.Future validateDistributedAutonomousDatabaseCaBundle( @@ -1130,10 +1102,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedAutonomousDbService", "ValidateDistributedAutonomousDatabaseCaBundle", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("actions") @@ -1170,17 +1142,15 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedAutonomousDbService", "ValidateDistributedAutonomousDatabaseNetwork", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("actions") .appendPathParam("validateNetwork") .appendQueryParam("isSurrogate", request.getIsSurrogate()) - .appendQueryParam("resourceName", request.getResourceName()) - .appendQueryParam("shardGroup", request.getShardGroup()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedAutonomousDbServiceClient.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedAutonomousDbServiceClient.java index 2fc4b215aa1..99d857b283c 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedAutonomousDbServiceClient.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedAutonomousDbServiceClient.java @@ -12,7 +12,7 @@ import java.util.Objects; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DistributedAutonomousDbServiceClient extends com.oracle.bmc.http.internal.BaseSyncClient implements DistributedAutonomousDbService { @@ -72,7 +72,7 @@ public class DistributedAutonomousDbServiceClient LOG.warn( com.oracle.bmc.util.StreamUtils.getStreamWarningMessage( "DistributedAutonomousDbServiceClient", - "downloadDistributedAutonomousDatabaseGsmCertificateSigningRequest,generateDistributedAutonomousDatabaseWallet")); + "generateDistributedAutonomousDatabaseWallet")); } } @@ -169,10 +169,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedAutonomousDbService", "AddDistributedAutonomousDatabaseGdsControlNode", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("actions") @@ -211,10 +211,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedAutonomousDbService", "ChangeDistributedAutonomousDatabaseCompartment", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("actions") @@ -253,10 +253,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedAutonomousDbService", "ChangeDistributedAutonomousDbBackupConfig", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("actions") @@ -276,6 +276,58 @@ public void setRegion(String regionId) { .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.distributeddatabase.model + .DistributedAutonomousDatabaseAutoResourceManagementDetails.class, + ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse.Builder + ::distributedAutonomousDatabaseAutoResourceManagementDetails) + .handleResponseHeaderString( + "opc-request-id", + ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "etag", + ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse.Builder + ::etag) + .callSync(); + } + @Override public ConfigureDistributedAutonomousDatabaseGsmWalletResponse configureDistributedAutonomousDatabaseGsmWallet( @@ -293,10 +345,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedAutonomousDbService", "ConfigureDistributedAutonomousDatabaseGsmWallet", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("actions") @@ -335,10 +387,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedAutonomousDbService", "ConfigureDistributedAutonomousDatabaseGsms", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("actions") @@ -373,10 +425,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedAutonomousDbService", "ConfigureDistributedAutonomousDatabaseSharding", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("actions") @@ -413,7 +465,7 @@ public CreateDistributedAutonomousDatabaseResponse createDistributedAutonomousDa "DistributedAutonomousDbService", "CreateDistributedAutonomousDatabase", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateDistributedAutonomousDatabaseRequest::builder) - .basePath("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .accept("application/json") .appendHeader("opc-retry-token", request.getOpcRetryToken()) @@ -449,10 +501,10 @@ public DeleteDistributedAutonomousDatabaseResponse deleteDistributedAutonomousDa .serviceDetails( "DistributedAutonomousDbService", "DeleteDistributedAutonomousDatabase", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .accept("application/json") @@ -469,114 +521,6 @@ public DeleteDistributedAutonomousDatabaseResponse deleteDistributedAutonomousDa .callSync(); } - @Override - public DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - downloadDistributedAutonomousDatabaseGsmCertificateSigningRequest( - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - request) { - - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - return clientCall( - request, - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - ::builder) - .logger(LOG, "downloadDistributedAutonomousDatabaseGsmCertificateSigningRequest") - .serviceDetails( - "DistributedAutonomousDbService", - "DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequest", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequest") - .method(com.oracle.bmc.http.client.Method.POST) - .requestBuilder( - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - ::builder) - .basePath("/20250101") - .appendPathParam("distributedAutonomousDatabases") - .appendPathParam(request.getDistributedAutonomousDatabaseId()) - .appendPathParam("actions") - .appendPathParam("downloadGsmCertificateSigningRequest") - .accept("application/octet-stream") - .appendHeader("opc-request-id", request.getOpcRequestId()) - .appendHeader("if-match", request.getIfMatch()) - .appendHeader("opc-retry-token", request.getOpcRetryToken()) - .operationUsesDefaultRetries() - .handleBody( - java.io.InputStream.class, - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - .Builder - ::inputStream) - .handleResponseHeaderString( - "opc-request-id", - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - .Builder - ::opcRequestId) - .handleResponseHeaderString( - "etag", - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - .Builder - ::etag) - .handleResponseHeaderLong( - "content-length", - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - .Builder - ::contentLength) - .handleResponseHeaderDate( - "last-modified", - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - .Builder - ::lastModified) - .callSync(); - } - - @Override - public GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - generateDistributedAutonomousDatabaseGsmCertificateSigningRequest( - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - request) { - - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - return clientCall( - request, - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - ::builder) - .logger(LOG, "generateDistributedAutonomousDatabaseGsmCertificateSigningRequest") - .serviceDetails( - "DistributedAutonomousDbService", - "GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequest", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequest") - .method(com.oracle.bmc.http.client.Method.POST) - .requestBuilder( - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - ::builder) - .basePath("/20250101") - .appendPathParam("distributedAutonomousDatabases") - .appendPathParam(request.getDistributedAutonomousDatabaseId()) - .appendPathParam("actions") - .appendPathParam("generateGsmCertificateSigningRequest") - .appendQueryParam("caBundleId", request.getCaBundleId()) - .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", - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - .Builder - ::opcWorkRequestId) - .handleResponseHeaderString( - "opc-request-id", - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - .Builder - ::opcRequestId) - .callSync(); - } - @Override public GenerateDistributedAutonomousDatabaseWalletResponse generateDistributedAutonomousDatabaseWallet( @@ -594,10 +538,10 @@ public DeleteDistributedAutonomousDatabaseResponse deleteDistributedAutonomousDa .serviceDetails( "DistributedAutonomousDbService", "GenerateDistributedAutonomousDatabaseWallet", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("actions") @@ -638,10 +582,10 @@ public GetDistributedAutonomousDatabaseResponse getDistributedAutonomousDatabase .serviceDetails( "DistributedAutonomousDbService", "GetDistributedAutonomousDatabase", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendQueryParam("metadata", request.getMetadata()) @@ -676,10 +620,10 @@ public GetDistributedAutonomousDatabaseResponse getDistributedAutonomousDatabase .serviceDetails( "DistributedAutonomousDbService", "GetDistributedAutonomousDatabaseRaftMetric", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("raftMetrics") @@ -697,6 +641,42 @@ public GetDistributedAutonomousDatabaseResponse getDistributedAutonomousDatabase .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.distributeddatabase.model + .DistributedAutonomousDatabaseRuChangeLog.class, + GetDistributedAutonomousDatabaseRuChangeLogResponse.Builder + ::distributedAutonomousDatabaseRuChangeLog) + .handleResponseHeaderString( + "opc-request-id", + GetDistributedAutonomousDatabaseRuChangeLogResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ListDistributedAutonomousDatabasesResponse listDistributedAutonomousDatabases( ListDistributedAutonomousDatabasesRequest request) { @@ -707,20 +687,24 @@ public ListDistributedAutonomousDatabasesResponse listDistributedAutonomousDatab .serviceDetails( "DistributedAutonomousDbService", "ListDistributedAutonomousDatabases", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabaseCollection/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("/20250101") + .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()) - .appendEnumQueryParam("dbDeploymentType", request.getDbDeploymentType()) + .appendQueryParam("dbDeploymentType", request.getDbDeploymentType()) .appendQueryParam("metadata", request.getMetadata()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) @@ -757,10 +741,10 @@ public ListDistributedAutonomousDatabasesResponse listDistributedAutonomousDatab .serviceDetails( "DistributedAutonomousDbService", "MoveDistributedAutonomousDatabaseReplicationUnit", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("actions") @@ -798,10 +782,10 @@ public PatchDistributedAutonomousDatabaseResponse patchDistributedAutonomousData .serviceDetails( "DistributedAutonomousDbService", "PatchDistributedAutonomousDatabase", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .accept("application/json") @@ -836,16 +820,15 @@ public PatchDistributedAutonomousDatabaseResponse patchDistributedAutonomousData .serviceDetails( "DistributedAutonomousDbService", "RecreateFailedDistributedAutonomousDatabaseResource", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("actions") .appendPathParam("recreateFailedResource") .appendQueryParam("resourceName", request.getResourceName()) - .appendQueryParam("shardGroup", request.getShardGroup()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("if-match", request.getIfMatch()) @@ -870,25 +853,29 @@ public PatchDistributedAutonomousDatabaseResponse patchDistributedAutonomousData 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/20250101/DistributedAutonomousDatabase/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("/20250101") + .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()) - .appendHeader("opc-retry-token", request.getOpcRetryToken()) .operationUsesDefaultRetries() + .hasBody() .handleResponseHeaderString( "opc-work-request-id", RotateDistributedAutonomousDatabasePasswordsResponse.Builder @@ -899,6 +886,45 @@ public PatchDistributedAutonomousDatabaseResponse patchDistributedAutonomousData .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) { @@ -912,10 +938,10 @@ public StartDistributedAutonomousDatabaseResponse startDistributedAutonomousData .serviceDetails( "DistributedAutonomousDbService", "StartDistributedAutonomousDatabase", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("actions") @@ -947,10 +973,10 @@ public StopDistributedAutonomousDatabaseResponse stopDistributedAutonomousDataba .serviceDetails( "DistributedAutonomousDbService", "StopDistributedAutonomousDatabase", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("actions") @@ -985,10 +1011,10 @@ public UpdateDistributedAutonomousDatabaseResponse updateDistributedAutonomousDa .serviceDetails( "DistributedAutonomousDbService", "UpdateDistributedAutonomousDatabase", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .accept("application/json") @@ -1009,59 +1035,6 @@ public UpdateDistributedAutonomousDatabaseResponse updateDistributedAutonomousDa .callSync(); } - @Override - public UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse - uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWallet( - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest - request) { - - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - Objects.requireNonNull( - request - .getUploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails(), - "uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails is required"); - - return clientCall( - request, - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse - ::builder) - .logger( - LOG, - "uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWallet") - .serviceDetails( - "DistributedAutonomousDbService", - "UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWallet", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWallet") - .method(com.oracle.bmc.http.client.Method.POST) - .requestBuilder( - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest - ::builder) - .basePath("/20250101") - .appendPathParam("distributedAutonomousDatabases") - .appendPathParam(request.getDistributedAutonomousDatabaseId()) - .appendPathParam("actions") - .appendPathParam("uploadSignedCertificateAndGenerateWallet") - .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", - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse - .Builder - ::opcWorkRequestId) - .handleResponseHeaderString( - "opc-request-id", - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse - .Builder - ::opcRequestId) - .callSync(); - } - @Override public ValidateDistributedAutonomousDatabaseCaBundleResponse validateDistributedAutonomousDatabaseCaBundle( @@ -1076,10 +1049,10 @@ public UpdateDistributedAutonomousDatabaseResponse updateDistributedAutonomousDa .serviceDetails( "DistributedAutonomousDbService", "ValidateDistributedAutonomousDatabaseCaBundle", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("actions") @@ -1113,17 +1086,15 @@ public UpdateDistributedAutonomousDatabaseResponse updateDistributedAutonomousDa .serviceDetails( "DistributedAutonomousDbService", "ValidateDistributedAutonomousDatabaseNetwork", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedAutonomousDatabases") .appendPathParam(request.getDistributedAutonomousDatabaseId()) .appendPathParam("actions") .appendPathParam("validateNetwork") .appendQueryParam("isSurrogate", request.getIsSurrogate()) - .appendQueryParam("resourceName", request.getResourceName()) - .appendQueryParam("shardGroup", request.getShardGroup()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedAutonomousDbServicePaginators.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedAutonomousDbServicePaginators.java index acd800633f2..2dbd8b56c38 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedAutonomousDbServicePaginators.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedAutonomousDbServicePaginators.java @@ -33,7 +33,7 @@ * 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: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DistributedAutonomousDbServicePaginators { private final DistributedAutonomousDbService client; diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedAutonomousDbServiceWaiters.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedAutonomousDbServiceWaiters.java index 02cdc43ef09..5469ebd8470 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedAutonomousDbServiceWaiters.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedAutonomousDbServiceWaiters.java @@ -14,7 +14,7 @@ *

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: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DistributedAutonomousDbServiceWaiters { private final java.util.concurrent.ExecutorService executorService; private final DistributedAutonomousDbService client; diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbPrivateEndpointService.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbPrivateEndpointService.java index f431643fde6..b812f5027a4 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbPrivateEndpointService.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbPrivateEndpointService.java @@ -12,7 +12,7 @@ * 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: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public interface DistributedDbPrivateEndpointService extends AutoCloseable { /** Rebuilds the client from scratch. Useful to refresh certificates. */ @@ -149,6 +149,24 @@ GetDistributedDatabasePrivateEndpointResponse getDistributedDatabasePrivateEndpo 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. * diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbPrivateEndpointServiceAsync.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbPrivateEndpointServiceAsync.java index 56371a05886..d0ac86feebf 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbPrivateEndpointServiceAsync.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbPrivateEndpointServiceAsync.java @@ -11,7 +11,7 @@ * Use the Globally Distributed Database service APIs to create and manage the Globally distributed * databases. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public interface DistributedDbPrivateEndpointServiceAsync extends AutoCloseable { /** Rebuilds the client from scratch. Useful to refresh certificates. */ @@ -152,6 +152,25 @@ public interface DistributedDbPrivateEndpointServiceAsync extends AutoCloseable 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. * diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbPrivateEndpointServiceAsyncClient.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbPrivateEndpointServiceAsyncClient.java index 37cfc3d38cc..5f98ed519b9 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbPrivateEndpointServiceAsyncClient.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbPrivateEndpointServiceAsyncClient.java @@ -25,7 +25,7 @@ * 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: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DistributedDbPrivateEndpointServiceAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient implements DistributedDbPrivateEndpointServiceAsync { @@ -121,10 +121,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedDbPrivateEndpointService", "ChangeDistributedDatabasePrivateEndpointCompartment", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabasePrivateEndpoint/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabasePrivateEndpoints") .appendPathParam(request.getDistributedDatabasePrivateEndpointId()) .appendPathParam("actions") @@ -165,7 +165,7 @@ public void setRegion(String regionId) { "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateDistributedDatabasePrivateEndpointRequest::builder) - .basePath("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabasePrivateEndpoints") .accept("application/json") .appendHeader("opc-retry-token", request.getOpcRetryToken()) @@ -205,10 +205,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedDbPrivateEndpointService", "DeleteDistributedDatabasePrivateEndpoint", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabasePrivateEndpoint/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabasePrivateEndpoints") .appendPathParam(request.getDistributedDatabasePrivateEndpointId()) .accept("application/json") @@ -242,10 +242,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedDbPrivateEndpointService", "GetDistributedDatabasePrivateEndpoint", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabasePrivateEndpoint/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabasePrivateEndpoints") .appendPathParam(request.getDistributedDatabasePrivateEndpointId()) .accept("application/json") @@ -279,12 +279,13 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedDbPrivateEndpointService", "ListDistributedDatabasePrivateEndpoints", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabasePrivateEndpointCollection/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabasePrivateEndpoints") .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) @@ -307,6 +308,47 @@ public void setRegion(String regionId) { .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, @@ -323,10 +365,10 @@ public java.util.concurrent.Future reinstateProx .serviceDetails( "DistributedDbPrivateEndpointService", "ReinstateProxyInstance", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabasePrivateEndpoint/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabasePrivateEndpoints") .appendPathParam(request.getDistributedDatabasePrivateEndpointId()) .appendPathParam("actions") @@ -364,10 +406,10 @@ public java.util.concurrent.Future reinstateProx .serviceDetails( "DistributedDbPrivateEndpointService", "UpdateDistributedDatabasePrivateEndpoint", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabasePrivateEndpoint/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabasePrivateEndpoints") .appendPathParam(request.getDistributedDatabasePrivateEndpointId()) .accept("application/json") diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbPrivateEndpointServiceClient.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbPrivateEndpointServiceClient.java index 37f2dfcb1e4..b39b2465438 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbPrivateEndpointServiceClient.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbPrivateEndpointServiceClient.java @@ -12,7 +12,7 @@ import java.util.Objects; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DistributedDbPrivateEndpointServiceClient extends com.oracle.bmc.http.internal.BaseSyncClient implements DistributedDbPrivateEndpointService { @@ -145,10 +145,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedDbPrivateEndpointService", "ChangeDistributedDatabasePrivateEndpointCompartment", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabasePrivateEndpoint/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabasePrivateEndpoints") .appendPathParam(request.getDistributedDatabasePrivateEndpointId()) .appendPathParam("actions") @@ -186,7 +186,7 @@ public void setRegion(String regionId) { "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateDistributedDatabasePrivateEndpointRequest::builder) - .basePath("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabasePrivateEndpoints") .accept("application/json") .appendHeader("opc-retry-token", request.getOpcRetryToken()) @@ -223,10 +223,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedDbPrivateEndpointService", "DeleteDistributedDatabasePrivateEndpoint", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabasePrivateEndpoint/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabasePrivateEndpoints") .appendPathParam(request.getDistributedDatabasePrivateEndpointId()) .accept("application/json") @@ -256,10 +256,10 @@ public GetDistributedDatabasePrivateEndpointResponse getDistributedDatabasePriva .serviceDetails( "DistributedDbPrivateEndpointService", "GetDistributedDatabasePrivateEndpoint", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabasePrivateEndpoint/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabasePrivateEndpoints") .appendPathParam(request.getDistributedDatabasePrivateEndpointId()) .accept("application/json") @@ -289,12 +289,13 @@ public ListDistributedDatabasePrivateEndpointsResponse listDistributedDatabasePr .serviceDetails( "DistributedDbPrivateEndpointService", "ListDistributedDatabasePrivateEndpoints", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabasePrivateEndpointCollection/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabasePrivateEndpoints") .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) @@ -318,6 +319,43 @@ public ListDistributedDatabasePrivateEndpointsResponse listDistributedDatabasePr .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) { @@ -331,10 +369,10 @@ public ReinstateProxyInstanceResponse reinstateProxyInstance( .serviceDetails( "DistributedDbPrivateEndpointService", "ReinstateProxyInstance", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabasePrivateEndpoint/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabasePrivateEndpoints") .appendPathParam(request.getDistributedDatabasePrivateEndpointId()) .appendPathParam("actions") @@ -369,10 +407,10 @@ public ReinstateProxyInstanceResponse reinstateProxyInstance( .serviceDetails( "DistributedDbPrivateEndpointService", "UpdateDistributedDatabasePrivateEndpoint", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabasePrivateEndpoint/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabasePrivateEndpoints") .appendPathParam(request.getDistributedDatabasePrivateEndpointId()) .accept("application/json") diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbPrivateEndpointServicePaginators.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbPrivateEndpointServicePaginators.java index 74db2a1c21d..ce713737cb7 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbPrivateEndpointServicePaginators.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbPrivateEndpointServicePaginators.java @@ -33,7 +33,7 @@ * 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: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DistributedDbPrivateEndpointServicePaginators { private final DistributedDbPrivateEndpointService client; diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbPrivateEndpointServiceWaiters.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbPrivateEndpointServiceWaiters.java index 9d8964e28f9..a9b91d737b5 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbPrivateEndpointServiceWaiters.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbPrivateEndpointServiceWaiters.java @@ -14,7 +14,7 @@ *

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: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DistributedDbPrivateEndpointServiceWaiters { private final java.util.concurrent.ExecutorService executorService; private final DistributedDbPrivateEndpointService client; diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbService.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbService.java index 8142f18daf1..4564ea0d7b6 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbService.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbService.java @@ -12,7 +12,7 @@ * 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: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public interface DistributedDbService extends AutoCloseable { /** Rebuilds the client from scratch. Useful to refresh certificates. */ @@ -115,6 +115,24 @@ ChangeDistributedDatabaseCompartmentResponse changeDistributedDatabaseCompartmen 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. @@ -173,9 +191,7 @@ CreateDistributedDatabaseResponse createDistributedDatabase( CreateDistributedDatabaseRequest request); /** - * Terminate the given Globally distributed databases. For an EXADB_XS based distributed - * database, if the parameter mustDeleteInfra is set to true, then the VmCluster and - * DbStorageVault associated with each shard and catalog will also be deleted. + * 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 @@ -191,48 +207,6 @@ CreateDistributedDatabaseResponse createDistributedDatabase( DeleteDistributedDatabaseResponse deleteDistributedDatabase( DeleteDistributedDatabaseRequest request); - /** - * Generate the common certificate signing request for GSMs. Download the .csr - * file from API response. Users can use this .csr file to generate the CA signed certificate, - * and as a next step use 'uploadSignedCertificateAndGenerateWallet' API to upload the CA signed - * certificate to GSM, and generate wallets for the GSM instances 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 - * DownloadDistributedDatabaseGsmCertificateSigningRequest API. - */ - DownloadDistributedDatabaseGsmCertificateSigningRequestResponse - downloadDistributedDatabaseGsmCertificateSigningRequest( - DownloadDistributedDatabaseGsmCertificateSigningRequestRequest request); - - /** - * Generate the certificate signing request for GSM instances of the Globally distributed - * database. Once certificate signing request is generated, then customers can download the - * certificate signing request using 'downloadGsmCertificateSigningRequest' api call. - * - * @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 - * GenerateDistributedDatabaseGsmCertificateSigningRequest API. - */ - GenerateDistributedDatabaseGsmCertificateSigningRequestResponse - generateDistributedDatabaseGsmCertificateSigningRequest( - GenerateDistributedDatabaseGsmCertificateSigningRequestRequest request); - /** * Generate the wallet associated with Globally distributed database. * @@ -284,6 +258,24 @@ GenerateDistributedDatabaseWalletResponse generateDistributedDatabaseWallet( 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. * @@ -322,9 +314,7 @@ MoveDistributedDatabaseReplicationUnitResponse moveDistributedDatabaseReplicatio /** * 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. For an - * EXADB_XS based distributed database, removing a shard with the parameter mustDeleteInfra set - * to true will also delete the associated VmCluster and DbStorageVault. + * 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 @@ -376,7 +366,8 @@ RotateDistributedDatabasePasswordsResponse rotateDistributedDatabasePasswords( RotateDistributedDatabasePasswordsRequest request); /** - * Start the shards, catalog and GSMs of Globally distributed database. + * 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 @@ -385,15 +376,15 @@ RotateDistributedDatabasePasswordsResponse rotateDistributedDatabasePasswords( * 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. + * ScaleDistributedDatabaseGsms API. */ - StartDistributedDatabaseResponse startDistributedDatabase( - StartDistributedDatabaseRequest request); + ScaleDistributedDatabaseGsmsResponse scaleDistributedDatabaseGsms( + ScaleDistributedDatabaseGsmsRequest request); /** - * Stop the shards, catalog and GSM instances for the Globally distributed database. + * 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 @@ -402,14 +393,15 @@ StartDistributedDatabaseResponse startDistributedDatabase( * 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. + * StartDistributedDatabase API. */ - StopDistributedDatabaseResponse stopDistributedDatabase(StopDistributedDatabaseRequest request); + StartDistributedDatabaseResponse startDistributedDatabase( + StartDistributedDatabaseRequest request); /** - * Updates the configuration of the Globally distributed database. + * 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 @@ -418,17 +410,14 @@ StartDistributedDatabaseResponse startDistributedDatabase( * 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. + * StopDistributedDatabase API. */ - UpdateDistributedDatabaseResponse updateDistributedDatabase( - UpdateDistributedDatabaseRequest request); + StopDistributedDatabaseResponse stopDistributedDatabase(StopDistributedDatabaseRequest request); /** - * Upload the CA signed certificate to the GSM instances and generate wallets for GSM instances - * of the Globally distributed database. Customer shall provide the CA signed certificate key - * details by adding the certificate in request body. + * 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 @@ -437,13 +426,12 @@ UpdateDistributedDatabaseResponse updateDistributedDatabase( * 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 - * UploadDistributedDatabaseSignedCertificateAndGenerateWallet API. + * UpdateDistributedDatabase API. */ - UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse - uploadDistributedDatabaseSignedCertificateAndGenerateWallet( - UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest request); + UpdateDistributedDatabaseResponse updateDistributedDatabase( + UpdateDistributedDatabaseRequest request); /** * Validate the network connectivity between components of the globally distributed database. diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbServiceAsync.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbServiceAsync.java index adac2309f75..01a40504cc9 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbServiceAsync.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbServiceAsync.java @@ -11,7 +11,7 @@ * Use the Globally Distributed Database service APIs to create and manage the Globally distributed * databases. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public interface DistributedDbServiceAsync extends AutoCloseable { /** Rebuilds the client from scratch. Useful to refresh certificates. */ @@ -117,6 +117,24 @@ public interface DistributedDbServiceAsync extends AutoCloseable { 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. @@ -176,9 +194,7 @@ java.util.concurrent.Future createDistributed handler); /** - * Terminate the given Globally distributed databases. For an EXADB_XS based distributed - * database, if the parameter mustDeleteInfra is set to true, then the VmCluster and - * DbStorageVault associated with each shard and catalog will also be deleted. + * 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. @@ -193,48 +209,6 @@ java.util.concurrent.Future deleteDistributed DeleteDistributedDatabaseRequest, DeleteDistributedDatabaseResponse> handler); - /** - * Generate the common certificate signing request for GSMs. Download the .csr - * file from API response. Users can use this .csr file to generate the CA signed certificate, - * and as a next step use 'uploadSignedCertificateAndGenerateWallet' API to upload the CA signed - * certificate to GSM, and generate wallets for the GSM instances 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 - downloadDistributedDatabaseGsmCertificateSigningRequest( - DownloadDistributedDatabaseGsmCertificateSigningRequestRequest request, - com.oracle.bmc.responses.AsyncHandler< - DownloadDistributedDatabaseGsmCertificateSigningRequestRequest, - DownloadDistributedDatabaseGsmCertificateSigningRequestResponse> - handler); - - /** - * Generate the certificate signing request for GSM instances of the Globally distributed - * database. Once certificate signing request is generated, then customers can download the - * certificate signing request using 'downloadGsmCertificateSigningRequest' api call. - * - * @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 - generateDistributedDatabaseGsmCertificateSigningRequest( - GenerateDistributedDatabaseGsmCertificateSigningRequestRequest request, - com.oracle.bmc.responses.AsyncHandler< - GenerateDistributedDatabaseGsmCertificateSigningRequestRequest, - GenerateDistributedDatabaseGsmCertificateSigningRequestResponse> - handler); - /** * Generate the wallet associated with Globally distributed database. * @@ -288,6 +262,25 @@ java.util.concurrent.Future getDistributedDataba 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. * @@ -326,9 +319,7 @@ java.util.concurrent.Future listDistributedDat /** * 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. For an - * EXADB_XS based distributed database, removing a shard with the parameter mustDeleteInfra set - * to true will also delete the associated VmCluster and DbStorageVault. + * 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. @@ -381,7 +372,8 @@ java.util.concurrent.Future patchDistributedDa handler); /** - * Start the shards, catalog and GSMs of Globally distributed database. + * 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. @@ -390,14 +382,15 @@ java.util.concurrent.Future patchDistributedDa * 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, + java.util.concurrent.Future scaleDistributedDatabaseGsms( + ScaleDistributedDatabaseGsmsRequest request, com.oracle.bmc.responses.AsyncHandler< - StartDistributedDatabaseRequest, StartDistributedDatabaseResponse> + ScaleDistributedDatabaseGsmsRequest, + ScaleDistributedDatabaseGsmsResponse> handler); /** - * Stop the shards, catalog and GSM instances for the Globally distributed database. + * 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. @@ -406,14 +399,14 @@ java.util.concurrent.Future startDistributedDa * 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, + java.util.concurrent.Future startDistributedDatabase( + StartDistributedDatabaseRequest request, com.oracle.bmc.responses.AsyncHandler< - StopDistributedDatabaseRequest, StopDistributedDatabaseResponse> + StartDistributedDatabaseRequest, StartDistributedDatabaseResponse> handler); /** - * Updates the configuration of the Globally distributed database. + * 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. @@ -422,16 +415,14 @@ java.util.concurrent.Future stopDistributedData * 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, + java.util.concurrent.Future stopDistributedDatabase( + StopDistributedDatabaseRequest request, com.oracle.bmc.responses.AsyncHandler< - UpdateDistributedDatabaseRequest, UpdateDistributedDatabaseResponse> + StopDistributedDatabaseRequest, StopDistributedDatabaseResponse> handler); /** - * Upload the CA signed certificate to the GSM instances and generate wallets for GSM instances - * of the Globally distributed database. Customer shall provide the CA signed certificate key - * details by adding the certificate in request body. + * 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. @@ -440,13 +431,11 @@ java.util.concurrent.Future updateDistributed * 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 - uploadDistributedDatabaseSignedCertificateAndGenerateWallet( - UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest request, - com.oracle.bmc.responses.AsyncHandler< - UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest, - UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse> - handler); + 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. diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbServiceAsyncClient.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbServiceAsyncClient.java index 7cb4046ebe2..4a41242f1a8 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbServiceAsyncClient.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbServiceAsyncClient.java @@ -25,7 +25,7 @@ * 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: 20250101") +@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. */ @@ -56,7 +56,7 @@ public class DistributedDbServiceAsyncClient extends com.oracle.bmc.http.interna LOG.warn( com.oracle.bmc.util.StreamUtils.getStreamWarningMessage( "DistributedDbServiceAsyncClient", - "downloadDistributedDatabaseGsmCertificateSigningRequest,generateDistributedDatabaseWallet")); + "generateDistributedDatabaseWallet")); } } @@ -144,10 +144,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedDbService", "AddDistributedDatabaseGdsControlNode", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .appendPathParam("actions") @@ -186,10 +186,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedDbService", "ChangeDistributedDatabaseCompartment", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .appendPathParam("actions") @@ -228,10 +228,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedDbService", "ChangeDistributedDbBackupConfig", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .appendPathParam("actions") @@ -250,6 +250,56 @@ public void setRegion(String regionId) { .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.distributeddatabase.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( @@ -270,10 +320,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedDbService", "ConfigureDistributedDatabaseGsms", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .appendPathParam("actions") @@ -309,10 +359,10 @@ public void setRegion(String regionId) { .serviceDetails( "DistributedDbService", "ConfigureDistributedDatabaseSharding", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .appendPathParam("actions") @@ -346,7 +396,7 @@ public java.util.concurrent.Future createDist .serviceDetails("DistributedDbService", "CreateDistributedDatabase", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateDistributedDatabaseRequest::builder) - .basePath("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .accept("application/json") .appendHeader("opc-retry-token", request.getOpcRetryToken()) @@ -379,13 +429,12 @@ public java.util.concurrent.Future deleteDist .serviceDetails( "DistributedDbService", "DeleteDistributedDatabase", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) - .appendQueryParam("mustDeleteInfra", request.getMustDeleteInfra()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) @@ -398,108 +447,6 @@ public java.util.concurrent.Future deleteDist .callAsync(handler); } - @Override - public java.util.concurrent.Future< - DownloadDistributedDatabaseGsmCertificateSigningRequestResponse> - downloadDistributedDatabaseGsmCertificateSigningRequest( - DownloadDistributedDatabaseGsmCertificateSigningRequestRequest request, - final com.oracle.bmc.responses.AsyncHandler< - DownloadDistributedDatabaseGsmCertificateSigningRequestRequest, - DownloadDistributedDatabaseGsmCertificateSigningRequestResponse> - handler) { - - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - - return clientCall( - request, - DownloadDistributedDatabaseGsmCertificateSigningRequestResponse::builder) - .logger(LOG, "downloadDistributedDatabaseGsmCertificateSigningRequest") - .serviceDetails( - "DistributedDbService", - "DownloadDistributedDatabaseGsmCertificateSigningRequest", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/DownloadDistributedDatabaseGsmCertificateSigningRequest") - .method(com.oracle.bmc.http.client.Method.POST) - .requestBuilder( - DownloadDistributedDatabaseGsmCertificateSigningRequestRequest::builder) - .basePath("/20250101") - .appendPathParam("distributedDatabases") - .appendPathParam(request.getDistributedDatabaseId()) - .appendPathParam("actions") - .appendPathParam("downloadGsmCertificateSigningRequest") - .accept("application/octet-stream") - .appendHeader("opc-request-id", request.getOpcRequestId()) - .appendHeader("if-match", request.getIfMatch()) - .appendHeader("opc-retry-token", request.getOpcRetryToken()) - .handleBody( - java.io.InputStream.class, - DownloadDistributedDatabaseGsmCertificateSigningRequestResponse.Builder - ::inputStream) - .handleResponseHeaderString( - "opc-request-id", - DownloadDistributedDatabaseGsmCertificateSigningRequestResponse.Builder - ::opcRequestId) - .handleResponseHeaderString( - "etag", - DownloadDistributedDatabaseGsmCertificateSigningRequestResponse.Builder - ::etag) - .handleResponseHeaderLong( - "content-length", - DownloadDistributedDatabaseGsmCertificateSigningRequestResponse.Builder - ::contentLength) - .handleResponseHeaderDate( - "last-modified", - DownloadDistributedDatabaseGsmCertificateSigningRequestResponse.Builder - ::lastModified) - .callAsync(handler); - } - - @Override - public java.util.concurrent.Future< - GenerateDistributedDatabaseGsmCertificateSigningRequestResponse> - generateDistributedDatabaseGsmCertificateSigningRequest( - GenerateDistributedDatabaseGsmCertificateSigningRequestRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GenerateDistributedDatabaseGsmCertificateSigningRequestRequest, - GenerateDistributedDatabaseGsmCertificateSigningRequestResponse> - handler) { - - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - Objects.requireNonNull(request.getCaBundleId(), "caBundleId is required"); - - return clientCall( - request, - GenerateDistributedDatabaseGsmCertificateSigningRequestResponse::builder) - .logger(LOG, "generateDistributedDatabaseGsmCertificateSigningRequest") - .serviceDetails( - "DistributedDbService", - "GenerateDistributedDatabaseGsmCertificateSigningRequest", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/GenerateDistributedDatabaseGsmCertificateSigningRequest") - .method(com.oracle.bmc.http.client.Method.POST) - .requestBuilder( - GenerateDistributedDatabaseGsmCertificateSigningRequestRequest::builder) - .basePath("/20250101") - .appendPathParam("distributedDatabases") - .appendPathParam(request.getDistributedDatabaseId()) - .appendPathParam("actions") - .appendPathParam("generateGsmCertificateSigningRequest") - .appendQueryParam("caBundleId", request.getCaBundleId()) - .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", - GenerateDistributedDatabaseGsmCertificateSigningRequestResponse.Builder - ::opcWorkRequestId) - .handleResponseHeaderString( - "opc-request-id", - GenerateDistributedDatabaseGsmCertificateSigningRequestResponse.Builder - ::opcRequestId) - .callAsync(handler); - } - @Override public java.util.concurrent.Future generateDistributedDatabaseWallet( @@ -520,10 +467,10 @@ public java.util.concurrent.Future deleteDist .serviceDetails( "DistributedDbService", "GenerateDistributedDatabaseWallet", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .appendPathParam("actions") @@ -565,10 +512,10 @@ public java.util.concurrent.Future getDistribute .serviceDetails( "DistributedDbService", "GetDistributedDatabase", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .appendQueryParam("metadata", request.getMetadata()) @@ -601,10 +548,10 @@ public java.util.concurrent.Future getDistribute .serviceDetails( "DistributedDbService", "GetDistributedDatabaseRaftMetric", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .appendPathParam("raftMetrics") @@ -621,6 +568,44 @@ public java.util.concurrent.Future getDistribute .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.distributeddatabase.model.DistributedDatabaseRuChangeLog + .class, + GetDistributedDatabaseRuChangeLogResponse.Builder + ::distributedDatabaseRuChangeLog) + .handleResponseHeaderString( + "opc-request-id", + GetDistributedDatabaseRuChangeLogResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listDistributedDatabases( ListDistributedDatabasesRequest request, @@ -634,20 +619,24 @@ public java.util.concurrent.Future listDistrib .serviceDetails( "DistributedDbService", "ListDistributedDatabases", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabaseCollection/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("/20250101") + .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()) - .appendEnumQueryParam("dbDeploymentType", request.getDbDeploymentType()) + .appendQueryParam("dbDeploymentType", request.getDbDeploymentType()) .appendQueryParam("metadata", request.getMetadata()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) @@ -682,10 +671,10 @@ public java.util.concurrent.Future listDistrib .serviceDetails( "DistributedDbService", "MoveDistributedDatabaseReplicationUnit", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .appendPathParam("actions") @@ -722,10 +711,10 @@ public java.util.concurrent.Future patchDistri .serviceDetails( "DistributedDbService", "PatchDistributedDatabase", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .accept("application/json") @@ -759,16 +748,15 @@ public java.util.concurrent.Future patchDistri .serviceDetails( "DistributedDbService", "RecreateFailedDistributedDatabaseResource", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .appendPathParam("actions") .appendPathParam("recreateFailedResource") .appendQueryParam("resourceName", request.getResourceName()) - .appendQueryParam("shardGroup", request.getShardGroup()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) @@ -793,24 +781,28 @@ public java.util.concurrent.Future patchDistri 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/20250101/DistributedDatabase/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("/20250101") + .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()) - .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() .handleResponseHeaderString( "opc-work-request-id", RotateDistributedDatabasePasswordsResponse.Builder::opcWorkRequestId) @@ -820,6 +812,48 @@ public java.util.concurrent.Future patchDistri .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, @@ -835,10 +869,10 @@ public java.util.concurrent.Future startDistri .serviceDetails( "DistributedDbService", "StartDistributedDatabase", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .appendPathParam("actions") @@ -870,10 +904,10 @@ public java.util.concurrent.Future stopDistribu .serviceDetails( "DistributedDbService", "StopDistributedDatabase", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .appendPathParam("actions") @@ -908,10 +942,10 @@ public java.util.concurrent.Future updateDist .serviceDetails( "DistributedDbService", "UpdateDistributedDatabase", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .accept("application/json") @@ -927,55 +961,6 @@ public java.util.concurrent.Future updateDist .callAsync(handler); } - @Override - public java.util.concurrent.Future< - UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse> - uploadDistributedDatabaseSignedCertificateAndGenerateWallet( - UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest request, - final com.oracle.bmc.responses.AsyncHandler< - UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest, - UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse> - handler) { - - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - Objects.requireNonNull( - request.getUploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails(), - "uploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails is required"); - - return clientCall( - request, - UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse - ::builder) - .logger(LOG, "uploadDistributedDatabaseSignedCertificateAndGenerateWallet") - .serviceDetails( - "DistributedDbService", - "UploadDistributedDatabaseSignedCertificateAndGenerateWallet", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/UploadDistributedDatabaseSignedCertificateAndGenerateWallet") - .method(com.oracle.bmc.http.client.Method.POST) - .requestBuilder( - UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest::builder) - .basePath("/20250101") - .appendPathParam("distributedDatabases") - .appendPathParam(request.getDistributedDatabaseId()) - .appendPathParam("actions") - .appendPathParam("uploadSignedCertificateAndGenerateWallet") - .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", - UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse.Builder - ::opcWorkRequestId) - .handleResponseHeaderString( - "opc-request-id", - UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse.Builder - ::opcRequestId) - .callAsync(handler); - } - @Override public java.util.concurrent.Future validateDistributedDatabaseNetwork( @@ -993,17 +978,15 @@ public java.util.concurrent.Future updateDist .serviceDetails( "DistributedDbService", "ValidateDistributedDatabaseNetwork", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .appendPathParam("actions") .appendPathParam("validateNetwork") .appendQueryParam("isSurrogate", request.getIsSurrogate()) - .appendQueryParam("resourceName", request.getResourceName()) - .appendQueryParam("shardGroup", request.getShardGroup()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbServiceClient.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbServiceClient.java index efae833a236..b1c6d4ec799 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbServiceClient.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbServiceClient.java @@ -12,7 +12,7 @@ import java.util.Objects; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@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. */ @@ -70,8 +70,7 @@ public class DistributedDbServiceClient extends com.oracle.bmc.http.internal.Bas if (isStreamWarningEnabled && com.oracle.bmc.util.StreamUtils.isExtraStreamLogsEnabled()) { LOG.warn( com.oracle.bmc.util.StreamUtils.getStreamWarningMessage( - "DistributedDbServiceClient", - "downloadDistributedDatabaseGsmCertificateSigningRequest,generateDistributedDatabaseWallet")); + "DistributedDbServiceClient", "generateDistributedDatabaseWallet")); } } @@ -166,10 +165,10 @@ public AddDistributedDatabaseGdsControlNodeResponse addDistributedDatabaseGdsCon .serviceDetails( "DistributedDbService", "AddDistributedDatabaseGdsControlNode", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .appendPathParam("actions") @@ -204,10 +203,10 @@ public ChangeDistributedDatabaseCompartmentResponse changeDistributedDatabaseCom .serviceDetails( "DistributedDbService", "ChangeDistributedDatabaseCompartment", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .appendPathParam("actions") @@ -242,10 +241,10 @@ public ChangeDistributedDbBackupConfigResponse changeDistributedDbBackupConfig( .serviceDetails( "DistributedDbService", "ChangeDistributedDbBackupConfig", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .appendPathParam("actions") @@ -265,6 +264,53 @@ public ChangeDistributedDbBackupConfigResponse changeDistributedDbBackupConfig( .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.distributeddatabase.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) { @@ -280,10 +326,10 @@ public ConfigureDistributedDatabaseGsmsResponse configureDistributedDatabaseGsms .serviceDetails( "DistributedDbService", "ConfigureDistributedDatabaseGsms", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .appendPathParam("actions") @@ -315,10 +361,10 @@ public ConfigureDistributedDatabaseShardingResponse configureDistributedDatabase .serviceDetails( "DistributedDbService", "ConfigureDistributedDatabaseSharding", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .appendPathParam("actions") @@ -350,7 +396,7 @@ public CreateDistributedDatabaseResponse createDistributedDatabase( .serviceDetails("DistributedDbService", "CreateDistributedDatabase", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateDistributedDatabaseRequest::builder) - .basePath("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .accept("application/json") .appendHeader("opc-retry-token", request.getOpcRetryToken()) @@ -381,13 +427,12 @@ public DeleteDistributedDatabaseResponse deleteDistributedDatabase( .serviceDetails( "DistributedDbService", "DeleteDistributedDatabase", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) - .appendQueryParam("mustDeleteInfra", request.getMustDeleteInfra()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) @@ -401,100 +446,6 @@ public DeleteDistributedDatabaseResponse deleteDistributedDatabase( .callSync(); } - @Override - public DownloadDistributedDatabaseGsmCertificateSigningRequestResponse - downloadDistributedDatabaseGsmCertificateSigningRequest( - DownloadDistributedDatabaseGsmCertificateSigningRequestRequest request) { - - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - - return clientCall( - request, - DownloadDistributedDatabaseGsmCertificateSigningRequestResponse::builder) - .logger(LOG, "downloadDistributedDatabaseGsmCertificateSigningRequest") - .serviceDetails( - "DistributedDbService", - "DownloadDistributedDatabaseGsmCertificateSigningRequest", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/DownloadDistributedDatabaseGsmCertificateSigningRequest") - .method(com.oracle.bmc.http.client.Method.POST) - .requestBuilder( - DownloadDistributedDatabaseGsmCertificateSigningRequestRequest::builder) - .basePath("/20250101") - .appendPathParam("distributedDatabases") - .appendPathParam(request.getDistributedDatabaseId()) - .appendPathParam("actions") - .appendPathParam("downloadGsmCertificateSigningRequest") - .accept("application/octet-stream") - .appendHeader("opc-request-id", request.getOpcRequestId()) - .appendHeader("if-match", request.getIfMatch()) - .appendHeader("opc-retry-token", request.getOpcRetryToken()) - .operationUsesDefaultRetries() - .handleBody( - java.io.InputStream.class, - DownloadDistributedDatabaseGsmCertificateSigningRequestResponse.Builder - ::inputStream) - .handleResponseHeaderString( - "opc-request-id", - DownloadDistributedDatabaseGsmCertificateSigningRequestResponse.Builder - ::opcRequestId) - .handleResponseHeaderString( - "etag", - DownloadDistributedDatabaseGsmCertificateSigningRequestResponse.Builder - ::etag) - .handleResponseHeaderLong( - "content-length", - DownloadDistributedDatabaseGsmCertificateSigningRequestResponse.Builder - ::contentLength) - .handleResponseHeaderDate( - "last-modified", - DownloadDistributedDatabaseGsmCertificateSigningRequestResponse.Builder - ::lastModified) - .callSync(); - } - - @Override - public GenerateDistributedDatabaseGsmCertificateSigningRequestResponse - generateDistributedDatabaseGsmCertificateSigningRequest( - GenerateDistributedDatabaseGsmCertificateSigningRequestRequest request) { - - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - Objects.requireNonNull(request.getCaBundleId(), "caBundleId is required"); - - return clientCall( - request, - GenerateDistributedDatabaseGsmCertificateSigningRequestResponse::builder) - .logger(LOG, "generateDistributedDatabaseGsmCertificateSigningRequest") - .serviceDetails( - "DistributedDbService", - "GenerateDistributedDatabaseGsmCertificateSigningRequest", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/GenerateDistributedDatabaseGsmCertificateSigningRequest") - .method(com.oracle.bmc.http.client.Method.POST) - .requestBuilder( - GenerateDistributedDatabaseGsmCertificateSigningRequestRequest::builder) - .basePath("/20250101") - .appendPathParam("distributedDatabases") - .appendPathParam(request.getDistributedDatabaseId()) - .appendPathParam("actions") - .appendPathParam("generateGsmCertificateSigningRequest") - .appendQueryParam("caBundleId", request.getCaBundleId()) - .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", - GenerateDistributedDatabaseGsmCertificateSigningRequestResponse.Builder - ::opcWorkRequestId) - .handleResponseHeaderString( - "opc-request-id", - GenerateDistributedDatabaseGsmCertificateSigningRequestResponse.Builder - ::opcRequestId) - .callSync(); - } - @Override public GenerateDistributedDatabaseWalletResponse generateDistributedDatabaseWallet( GenerateDistributedDatabaseWalletRequest request) { @@ -510,10 +461,10 @@ public GenerateDistributedDatabaseWalletResponse generateDistributedDatabaseWall .serviceDetails( "DistributedDbService", "GenerateDistributedDatabaseWallet", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .appendPathParam("actions") @@ -553,10 +504,10 @@ public GetDistributedDatabaseResponse getDistributedDatabase( .serviceDetails( "DistributedDbService", "GetDistributedDatabase", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .appendQueryParam("metadata", request.getMetadata()) @@ -585,10 +536,10 @@ public GetDistributedDatabaseRaftMetricResponse getDistributedDatabaseRaftMetric .serviceDetails( "DistributedDbService", "GetDistributedDatabaseRaftMetric", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .appendPathParam("raftMetrics") @@ -606,6 +557,40 @@ public GetDistributedDatabaseRaftMetricResponse getDistributedDatabaseRaftMetric .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.distributeddatabase.model.DistributedDatabaseRuChangeLog + .class, + GetDistributedDatabaseRuChangeLogResponse.Builder + ::distributedDatabaseRuChangeLog) + .handleResponseHeaderString( + "opc-request-id", + GetDistributedDatabaseRuChangeLogResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ListDistributedDatabasesResponse listDistributedDatabases( ListDistributedDatabasesRequest request) { @@ -616,20 +601,24 @@ public ListDistributedDatabasesResponse listDistributedDatabases( .serviceDetails( "DistributedDbService", "ListDistributedDatabases", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabaseCollection/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("/20250101") + .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()) - .appendEnumQueryParam("dbDeploymentType", request.getDbDeploymentType()) + .appendQueryParam("dbDeploymentType", request.getDbDeploymentType()) .appendQueryParam("metadata", request.getMetadata()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) @@ -660,10 +649,10 @@ public MoveDistributedDatabaseReplicationUnitResponse moveDistributedDatabaseRep .serviceDetails( "DistributedDbService", "MoveDistributedDatabaseReplicationUnit", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .appendPathParam("actions") @@ -698,10 +687,10 @@ public PatchDistributedDatabaseResponse patchDistributedDatabase( .serviceDetails( "DistributedDbService", "PatchDistributedDatabase", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .accept("application/json") @@ -732,16 +721,15 @@ public PatchDistributedDatabaseResponse patchDistributedDatabase( .serviceDetails( "DistributedDbService", "RecreateFailedDistributedDatabaseResource", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .appendPathParam("actions") .appendPathParam("recreateFailedResource") .appendQueryParam("resourceName", request.getResourceName()) - .appendQueryParam("shardGroup", request.getShardGroup()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) @@ -762,25 +750,29 @@ public RotateDistributedDatabasePasswordsResponse rotateDistributedDatabasePassw 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/20250101/DistributedDatabase/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("/20250101") + .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()) - .appendHeader("opc-retry-token", request.getOpcRetryToken()) .operationUsesDefaultRetries() + .hasBody() .handleResponseHeaderString( "opc-work-request-id", RotateDistributedDatabasePasswordsResponse.Builder::opcWorkRequestId) @@ -790,6 +782,44 @@ public RotateDistributedDatabasePasswordsResponse rotateDistributedDatabasePassw .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) { @@ -802,10 +832,10 @@ public StartDistributedDatabaseResponse startDistributedDatabase( .serviceDetails( "DistributedDbService", "StartDistributedDatabase", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .appendPathParam("actions") @@ -835,10 +865,10 @@ public StopDistributedDatabaseResponse stopDistributedDatabase( .serviceDetails( "DistributedDbService", "StopDistributedDatabase", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .appendPathParam("actions") @@ -871,10 +901,10 @@ public UpdateDistributedDatabaseResponse updateDistributedDatabase( .serviceDetails( "DistributedDbService", "UpdateDistributedDatabase", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .accept("application/json") @@ -891,51 +921,6 @@ public UpdateDistributedDatabaseResponse updateDistributedDatabase( .callSync(); } - @Override - public UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse - uploadDistributedDatabaseSignedCertificateAndGenerateWallet( - UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest request) { - - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - Objects.requireNonNull( - request.getUploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails(), - "uploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails is required"); - - return clientCall( - request, - UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse - ::builder) - .logger(LOG, "uploadDistributedDatabaseSignedCertificateAndGenerateWallet") - .serviceDetails( - "DistributedDbService", - "UploadDistributedDatabaseSignedCertificateAndGenerateWallet", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/UploadDistributedDatabaseSignedCertificateAndGenerateWallet") - .method(com.oracle.bmc.http.client.Method.POST) - .requestBuilder( - UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest::builder) - .basePath("/20250101") - .appendPathParam("distributedDatabases") - .appendPathParam(request.getDistributedDatabaseId()) - .appendPathParam("actions") - .appendPathParam("uploadSignedCertificateAndGenerateWallet") - .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", - UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse.Builder - ::opcWorkRequestId) - .handleResponseHeaderString( - "opc-request-id", - UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse.Builder - ::opcRequestId) - .callSync(); - } - @Override public ValidateDistributedDatabaseNetworkResponse validateDistributedDatabaseNetwork( ValidateDistributedDatabaseNetworkRequest request) { @@ -948,17 +933,15 @@ public ValidateDistributedDatabaseNetworkResponse validateDistributedDatabaseNet .serviceDetails( "DistributedDbService", "ValidateDistributedDatabaseNetwork", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/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("/20250101") + .basePath("/20260101") .appendPathParam("distributedDatabases") .appendPathParam(request.getDistributedDatabaseId()) .appendPathParam("actions") .appendPathParam("validateNetwork") .appendQueryParam("isSurrogate", request.getIsSurrogate()) - .appendQueryParam("resourceName", request.getResourceName()) - .appendQueryParam("shardGroup", request.getShardGroup()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbServicePaginators.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbServicePaginators.java index bcbd21d083d..71eb07b6db0 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbServicePaginators.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbServicePaginators.java @@ -33,7 +33,7 @@ * 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: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DistributedDbServicePaginators { private final DistributedDbService client; diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbServiceWaiters.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbServiceWaiters.java index 14b7d565760..66fdbd0ef3a 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbServiceWaiters.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbServiceWaiters.java @@ -14,7 +14,7 @@ *

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: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DistributedDbServiceWaiters { private final java.util.concurrent.ExecutorService executorService; private final DistributedDbService client; diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbWorkRequestService.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbWorkRequestService.java index 7f13b18c242..afa53fc110b 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbWorkRequestService.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbWorkRequestService.java @@ -12,7 +12,7 @@ * 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: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public interface DistributedDbWorkRequestService extends AutoCloseable { /** Rebuilds the client from scratch. Useful to refresh certificates. */ diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbWorkRequestServiceAsync.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbWorkRequestServiceAsync.java index 16afb1e0bc3..402a5b7dc8b 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbWorkRequestServiceAsync.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbWorkRequestServiceAsync.java @@ -11,7 +11,7 @@ * Use the Globally Distributed Database service APIs to create and manage the Globally distributed * databases. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public interface DistributedDbWorkRequestServiceAsync extends AutoCloseable { /** Rebuilds the client from scratch. Useful to refresh certificates. */ diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbWorkRequestServiceAsyncClient.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbWorkRequestServiceAsyncClient.java index c23992ac76d..d27af6d0f8e 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbWorkRequestServiceAsyncClient.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbWorkRequestServiceAsyncClient.java @@ -25,7 +25,7 @@ * 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: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DistributedDbWorkRequestServiceAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient implements DistributedDbWorkRequestServiceAsync { @@ -112,10 +112,10 @@ public java.util.concurrent.Future getWorkRequest( .serviceDetails( "DistributedDbWorkRequestService", "GetWorkRequest", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/WorkRequest/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("/20250101") + .basePath("/20260101") .appendPathParam("workRequests") .appendPathParam(request.getWorkRequestId()) .accept("application/json") @@ -144,10 +144,10 @@ public java.util.concurrent.Future listWorkReques .serviceDetails( "DistributedDbWorkRequestService", "ListWorkRequestErrors", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/WorkRequestError/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("/20250101") + .basePath("/20260101") .appendPathParam("workRequests") .appendPathParam(request.getWorkRequestId()) .appendPathParam("errors") @@ -181,10 +181,10 @@ public java.util.concurrent.Future listWorkRequestL .serviceDetails( "DistributedDbWorkRequestService", "ListWorkRequestLogs", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/WorkRequestLogEntry/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("/20250101") + .basePath("/20260101") .appendPathParam("workRequests") .appendPathParam(request.getWorkRequestId()) .appendPathParam("logs") @@ -218,10 +218,10 @@ public java.util.concurrent.Future listWorkRequests( .serviceDetails( "DistributedDbWorkRequestService", "ListWorkRequests", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/WorkRequest/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("/20250101") + .basePath("/20260101") .appendPathParam("workRequests") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("workRequestId", request.getWorkRequestId()) diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbWorkRequestServiceClient.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbWorkRequestServiceClient.java index 57a3e0607d8..5276f389eb1 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbWorkRequestServiceClient.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbWorkRequestServiceClient.java @@ -12,7 +12,7 @@ import java.util.Objects; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DistributedDbWorkRequestServiceClient extends com.oracle.bmc.http.internal.BaseSyncClient implements DistributedDbWorkRequestService { @@ -136,10 +136,10 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { .serviceDetails( "DistributedDbWorkRequestService", "GetWorkRequest", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/WorkRequest/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("/20250101") + .basePath("/20260101") .appendPathParam("workRequests") .appendPathParam(request.getWorkRequestId()) .accept("application/json") @@ -166,10 +166,10 @@ public ListWorkRequestErrorsResponse listWorkRequestErrors( .serviceDetails( "DistributedDbWorkRequestService", "ListWorkRequestErrors", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/WorkRequestError/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("/20250101") + .basePath("/20260101") .appendPathParam("workRequests") .appendPathParam(request.getWorkRequestId()) .appendPathParam("errors") @@ -200,10 +200,10 @@ public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsReques .serviceDetails( "DistributedDbWorkRequestService", "ListWorkRequestLogs", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/WorkRequestLogEntry/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("/20250101") + .basePath("/20260101") .appendPathParam("workRequests") .appendPathParam(request.getWorkRequestId()) .appendPathParam("logs") @@ -234,10 +234,10 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request .serviceDetails( "DistributedDbWorkRequestService", "ListWorkRequests", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/WorkRequest/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("/20250101") + .basePath("/20260101") .appendPathParam("workRequests") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("workRequestId", request.getWorkRequestId()) diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbWorkRequestServicePaginators.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbWorkRequestServicePaginators.java index d4fb3b8c9fe..0060a4d48d9 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbWorkRequestServicePaginators.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbWorkRequestServicePaginators.java @@ -33,7 +33,7 @@ * 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: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DistributedDbWorkRequestServicePaginators { private final DistributedDbWorkRequestService client; diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbWorkRequestServiceWaiters.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbWorkRequestServiceWaiters.java index f5cfcab7af5..58cb528114d 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbWorkRequestServiceWaiters.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/DistributedDbWorkRequestServiceWaiters.java @@ -14,7 +14,7 @@ *

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: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DistributedDbWorkRequestServiceWaiters { private final java.util.concurrent.ExecutorService executorService; private final DistributedDbWorkRequestService client; diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ActionType.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ActionType.java index fcabe86ff48..b6dd25ff045 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ActionType.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ActionType.java @@ -5,7 +5,7 @@ package com.oracle.bmc.distributeddatabase.model; /** Possible types of actions. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public enum ActionType implements com.oracle.bmc.http.internal.BmcEnum { Created("CREATED"), Updated("UPDATED"), diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AddDistributedAutonomousDatabaseGdsControlNodeDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AddDistributedAutonomousDatabaseGdsControlNodeDetails.java index c8e94bc6705..32f13c21f4d 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AddDistributedAutonomousDatabaseGdsControlNodeDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AddDistributedAutonomousDatabaseGdsControlNodeDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = AddDistributedAutonomousDatabaseGdsControlNodeDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AddDistributedDatabaseGdsControlNodeDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AddDistributedDatabaseGdsControlNodeDetails.java index 8f98d3089c3..3803deac43f 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AddDistributedDatabaseGdsControlNodeDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AddDistributedDatabaseGdsControlNodeDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = AddDistributedDatabaseGdsControlNodeDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutoResourceManagementConfigurationDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutoResourceManagementConfigurationDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutoResourceManagementConfigurationDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutoResourceManagementConfigurationDetails.java index 1834c714303..1cc26646f81 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutoResourceManagementConfigurationDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutoResourceManagementConfigurationDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Automatic resource management configuration details for the Globally distributed database.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeDataGuardShardSpace.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutonomousCompositeDataGuardShardSpace.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeDataGuardShardSpace.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutonomousCompositeDataGuardShardSpace.java index d716cc7a5bd..3d68abe55a3 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeDataGuardShardSpace.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutonomousCompositeDataGuardShardSpace.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Composite data guard shard space details for a Globally distributed autonomous database.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeDataGuardShardSpaceReplica.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutonomousCompositeDataGuardShardSpaceReplica.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeDataGuardShardSpaceReplica.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutonomousCompositeDataGuardShardSpaceReplica.java index 4dd34233c0b..73aff56c9e5 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeDataGuardShardSpaceReplica.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutonomousCompositeDataGuardShardSpaceReplica.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Globally distributed database composite data guard replica details.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeRaftShardSpace.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutonomousCompositeRaftShardSpace.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeRaftShardSpace.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutonomousCompositeRaftShardSpace.java index 58754393e45..4683e87976a 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeRaftShardSpace.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutonomousCompositeRaftShardSpace.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Composite raft shard space details for a Globally distributed autonomous database.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeShardSpaceRaftCluster.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutonomousCompositeShardSpaceRaftCluster.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeShardSpaceRaftCluster.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutonomousCompositeShardSpaceRaftCluster.java index 116641090ce..b1d49432a2e 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeShardSpaceRaftCluster.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutonomousCompositeShardSpaceRaftCluster.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Raft cluster details for composite shard spaces.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemDataGuardDatabase.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutonomousSystemDataGuardDatabase.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemDataGuardDatabase.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutonomousSystemDataGuardDatabase.java index e046c9c9f53..edd8840018f 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemDataGuardDatabase.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutonomousSystemDataGuardDatabase.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * System data guard shard database details.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemDataGuardReplica.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutonomousSystemDataGuardReplica.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemDataGuardReplica.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutonomousSystemDataGuardReplica.java index de35758b2ef..69f93681889 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemDataGuardReplica.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutonomousSystemDataGuardReplica.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * System data guard replica details.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemRaftCluster.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutonomousSystemRaftCluster.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemRaftCluster.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutonomousSystemRaftCluster.java index da7cf70edbb..8bade57282c 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemRaftCluster.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutonomousSystemRaftCluster.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details required to create system raft cluster.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousUserShardSpace.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutonomousUserShardSpace.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousUserShardSpace.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutonomousUserShardSpace.java index 7b24de72117..536d970bd31 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousUserShardSpace.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutonomousUserShardSpace.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Distributed autonomous database user shard space details.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousUserShardSpaceReplica.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutonomousUserShardSpaceReplica.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousUserShardSpaceReplica.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutonomousUserShardSpaceReplica.java index 7b27e9af20c..a58847a8223 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousUserShardSpaceReplica.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/AutonomousUserShardSpaceReplica.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * User shard space replica details.
diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CatalogPeerWithDedicatedInfra.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CatalogPeerWithDedicatedInfra.java deleted file mode 100644 index 0ade76268c6..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CatalogPeerWithDedicatedInfra.java +++ /dev/null @@ -1,673 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.model; - -/** - * Details of the catalog peer with 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: 20250101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CatalogPeerWithDedicatedInfra.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CatalogPeerWithDedicatedInfra - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "cloudAutonomousVmClusterId", - "shardGroup", - "status", - "supportingResourceId", - "containerDatabaseId", - "timeCreated", - "timeUpdated", - "protectionMode", - "fastStartFailOverLagLimitInSeconds", - "isAutomaticFailoverEnabled", - "standbyMaintenanceBufferInDays", - "metadata" - }) - public CatalogPeerWithDedicatedInfra( - String cloudAutonomousVmClusterId, - String shardGroup, - Status status, - String supportingResourceId, - String containerDatabaseId, - java.util.Date timeCreated, - java.util.Date timeUpdated, - DistributedAutonomousDbProtectionMode protectionMode, - Integer fastStartFailOverLagLimitInSeconds, - Boolean isAutomaticFailoverEnabled, - Integer standbyMaintenanceBufferInDays, - DistributedAutonomousDbMetadata metadata) { - super(); - this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; - this.shardGroup = shardGroup; - this.status = status; - this.supportingResourceId = supportingResourceId; - this.containerDatabaseId = containerDatabaseId; - this.timeCreated = timeCreated; - this.timeUpdated = timeUpdated; - this.protectionMode = protectionMode; - this.fastStartFailOverLagLimitInSeconds = fastStartFailOverLagLimitInSeconds; - this.isAutomaticFailoverEnabled = isAutomaticFailoverEnabled; - this.standbyMaintenanceBufferInDays = standbyMaintenanceBufferInDays; - this.metadata = metadata; - } - - @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 - * cloudAutonomousVmCluster. - */ - @com.fasterxml.jackson.annotation.JsonProperty("cloudAutonomousVmClusterId") - private String cloudAutonomousVmClusterId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * cloudAutonomousVmCluster. - * - * @param cloudAutonomousVmClusterId the value to set - * @return this builder - */ - public Builder cloudAutonomousVmClusterId(String cloudAutonomousVmClusterId) { - this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; - this.__explicitlySet__.add("cloudAutonomousVmClusterId"); - return this; - } - /** The name of the shardGroup for the peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardGroup") - private String shardGroup; - - /** - * The name of the shardGroup for the peer. - * - * @param shardGroup the value to set - * @return this builder - */ - public Builder shardGroup(String shardGroup) { - this.shardGroup = shardGroup; - this.__explicitlySet__.add("shardGroup"); - return this; - } - /** - * Status of catalog with dedicated infrastructure for the Globally distributed autonomous - * database. - */ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private Status status; - - /** - * Status of catalog with dedicated infrastructure 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 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 time the catalog peer was created. An RFC3339 formatted datetime string */ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - /** - * The time the catalog peer 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 catalog peer was last updated. An RFC3339 formatted datetime string */ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - /** - * The time the catalog peer 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 protectionMode for the shard peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedAutonomousDbProtectionMode protectionMode; - - /** - * The protectionMode 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 for my preference based on data loss tolerance in seconds. */ - @com.fasterxml.jackson.annotation.JsonProperty("fastStartFailOverLagLimitInSeconds") - private Integer fastStartFailOverLagLimitInSeconds; - - /** - * The lag time for my 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; - } - /** - * This field is deprecated. Support for this field will be removed after one year of - * deprecation cycle. - */ - @com.fasterxml.jackson.annotation.JsonProperty("isAutomaticFailoverEnabled") - private Boolean isAutomaticFailoverEnabled; - - /** - * This field is deprecated. Support for this field will be removed after one year of - * deprecation cycle. - * - * @param isAutomaticFailoverEnabled the value to set - * @return this builder - */ - public Builder isAutomaticFailoverEnabled(Boolean isAutomaticFailoverEnabled) { - this.isAutomaticFailoverEnabled = isAutomaticFailoverEnabled; - this.__explicitlySet__.add("isAutomaticFailoverEnabled"); - return this; - } - /** - * The scheduling detail for the quarterly maintenance window of the standby Autonomous - * Container Database. This value represents the number of days before schedlued 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 schedlued 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.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 CatalogPeerWithDedicatedInfra build() { - CatalogPeerWithDedicatedInfra model = - new CatalogPeerWithDedicatedInfra( - this.cloudAutonomousVmClusterId, - this.shardGroup, - this.status, - this.supportingResourceId, - this.containerDatabaseId, - this.timeCreated, - this.timeUpdated, - this.protectionMode, - this.fastStartFailOverLagLimitInSeconds, - this.isAutomaticFailoverEnabled, - this.standbyMaintenanceBufferInDays, - this.metadata); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CatalogPeerWithDedicatedInfra model) { - if (model.wasPropertyExplicitlySet("cloudAutonomousVmClusterId")) { - this.cloudAutonomousVmClusterId(model.getCloudAutonomousVmClusterId()); - } - if (model.wasPropertyExplicitlySet("shardGroup")) { - this.shardGroup(model.getShardGroup()); - } - 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("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("fastStartFailOverLagLimitInSeconds")) { - this.fastStartFailOverLagLimitInSeconds( - model.getFastStartFailOverLagLimitInSeconds()); - } - if (model.wasPropertyExplicitlySet("isAutomaticFailoverEnabled")) { - this.isAutomaticFailoverEnabled(model.getIsAutomaticFailoverEnabled()); - } - if (model.wasPropertyExplicitlySet("standbyMaintenanceBufferInDays")) { - this.standbyMaintenanceBufferInDays(model.getStandbyMaintenanceBufferInDays()); - } - 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 [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * cloudAutonomousVmCluster. - */ - @com.fasterxml.jackson.annotation.JsonProperty("cloudAutonomousVmClusterId") - private final String cloudAutonomousVmClusterId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * cloudAutonomousVmCluster. - * - * @return the value - */ - public String getCloudAutonomousVmClusterId() { - return cloudAutonomousVmClusterId; - } - - /** The name of the shardGroup for the peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardGroup") - private final String shardGroup; - - /** - * The name of the shardGroup for the peer. - * - * @return the value - */ - public String getShardGroup() { - return shardGroup; - } - - /** - * Status of catalog with dedicated infrastructure 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 catalog with dedicated infrastructure for the Globally distributed autonomous - * database. - */ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private final Status status; - - /** - * Status of catalog with dedicated infrastructure for the Globally distributed autonomous - * database. - * - * @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 time the catalog peer was created. An RFC3339 formatted datetime string */ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private final java.util.Date timeCreated; - - /** - * The time the catalog peer was created. An RFC3339 formatted datetime string - * - * @return the value - */ - public java.util.Date getTimeCreated() { - return timeCreated; - } - - /** The time the catalog peer was last updated. An RFC3339 formatted datetime string */ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private final java.util.Date timeUpdated; - - /** - * The time the catalog peer was last updated. An RFC3339 formatted datetime string - * - * @return the value - */ - public java.util.Date getTimeUpdated() { - return timeUpdated; - } - - /** The protectionMode for the shard peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedAutonomousDbProtectionMode protectionMode; - - /** - * The protectionMode for the shard peer. - * - * @return the value - */ - public DistributedAutonomousDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** The lag time for my preference based on data loss tolerance in seconds. */ - @com.fasterxml.jackson.annotation.JsonProperty("fastStartFailOverLagLimitInSeconds") - private final Integer fastStartFailOverLagLimitInSeconds; - - /** - * The lag time for my preference based on data loss tolerance in seconds. - * - * @return the value - */ - public Integer getFastStartFailOverLagLimitInSeconds() { - return fastStartFailOverLagLimitInSeconds; - } - - /** - * This field is deprecated. Support for this field will be removed after one year of - * deprecation cycle. - */ - @com.fasterxml.jackson.annotation.JsonProperty("isAutomaticFailoverEnabled") - private final Boolean isAutomaticFailoverEnabled; - - /** - * This field is deprecated. Support for this field will be removed after one year of - * deprecation cycle. - * - * @return the value - */ - public Boolean getIsAutomaticFailoverEnabled() { - return isAutomaticFailoverEnabled; - } - - /** - * The scheduling detail for the quarterly maintenance window of the standby Autonomous - * Container Database. This value represents the number of days before schedlued 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 schedlued maintenance of - * the primary database. - * - * @return the value - */ - public Integer getStandbyMaintenanceBufferInDays() { - return standbyMaintenanceBufferInDays; - } - - @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("CatalogPeerWithDedicatedInfra("); - sb.append("super=").append(super.toString()); - sb.append("cloudAutonomousVmClusterId=") - .append(String.valueOf(this.cloudAutonomousVmClusterId)); - sb.append(", shardGroup=").append(String.valueOf(this.shardGroup)); - 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(", timeCreated=").append(String.valueOf(this.timeCreated)); - sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", fastStartFailOverLagLimitInSeconds=") - .append(String.valueOf(this.fastStartFailOverLagLimitInSeconds)); - sb.append(", isAutomaticFailoverEnabled=") - .append(String.valueOf(this.isAutomaticFailoverEnabled)); - sb.append(", standbyMaintenanceBufferInDays=") - .append(String.valueOf(this.standbyMaintenanceBufferInDays)); - 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 CatalogPeerWithDedicatedInfra)) { - return false; - } - - CatalogPeerWithDedicatedInfra other = (CatalogPeerWithDedicatedInfra) o; - return java.util.Objects.equals( - this.cloudAutonomousVmClusterId, other.cloudAutonomousVmClusterId) - && java.util.Objects.equals(this.shardGroup, other.shardGroup) - && 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.timeCreated, other.timeCreated) - && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals( - this.fastStartFailOverLagLimitInSeconds, - other.fastStartFailOverLagLimitInSeconds) - && java.util.Objects.equals( - this.isAutomaticFailoverEnabled, other.isAutomaticFailoverEnabled) - && java.util.Objects.equals( - this.standbyMaintenanceBufferInDays, other.standbyMaintenanceBufferInDays) - && 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.cloudAutonomousVmClusterId == null - ? 43 - : this.cloudAutonomousVmClusterId.hashCode()); - result = (result * PRIME) + (this.shardGroup == null ? 43 : this.shardGroup.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.timeCreated == null ? 43 : this.timeCreated.hashCode()); - result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.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.isAutomaticFailoverEnabled == null - ? 43 - : this.isAutomaticFailoverEnabled.hashCode()); - result = - (result * PRIME) - + (this.standbyMaintenanceBufferInDays == null - ? 43 - : this.standbyMaintenanceBufferInDays.hashCode()); - result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CatalogPeerWithExadbXs.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CatalogPeerWithExadbXs.java deleted file mode 100644 index af7d8533e44..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CatalogPeerWithExadbXs.java +++ /dev/null @@ -1,541 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.model; - -/** - * Details of the catalog peer
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CatalogPeerWithExadbXs.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CatalogPeerWithExadbXs - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "vmClusterId", - "shardGroup", - "status", - "supportingResourceId", - "containerDatabaseId", - "timeCreated", - "timeUpdated", - "protectionMode", - "transportType", - "metadata" - }) - public CatalogPeerWithExadbXs( - String vmClusterId, - String shardGroup, - Status status, - String supportingResourceId, - String containerDatabaseId, - java.util.Date timeCreated, - java.util.Date timeUpdated, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType, - DistributedDbMetadata metadata) { - super(); - this.vmClusterId = vmClusterId; - this.shardGroup = shardGroup; - this.status = status; - this.supportingResourceId = supportingResourceId; - this.containerDatabaseId = containerDatabaseId; - this.timeCreated = timeCreated; - this.timeUpdated = timeUpdated; - this.protectionMode = protectionMode; - this.transportType = transportType; - this.metadata = metadata; - } - - @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 name of the shardGroup for the peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardGroup") - private String shardGroup; - - /** - * The name of the shardGroup for the peer. - * - * @param shardGroup the value to set - * @return this builder - */ - public Builder shardGroup(String shardGroup) { - this.shardGroup = shardGroup; - this.__explicitlySet__.add("shardGroup"); - return this; - } - /** Status of EXADB_XS based catalog peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private Status status; - - /** - * Status of EXADB_XS based catalog peer. - * - * @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 time the catalog peer was created. An RFC3339 formatted datetime string */ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - /** - * The time the catalog peer 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 catalog peer was last updated. An RFC3339 formatted datetime string */ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - /** - * The time the catalog peer 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 protectionMode for the catalog peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedDbProtectionMode protectionMode; - - /** - * The protectionMode for the catalog peer. - * - * @param protectionMode the value to set - * @return this builder - */ - public Builder protectionMode(DistributedDbProtectionMode protectionMode) { - this.protectionMode = protectionMode; - this.__explicitlySet__.add("protectionMode"); - return this; - } - /** The redo transport type to use for this Data Guard association. */ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private DistributedDbTransportType transportType; - - /** - * The redo transport type to use for this 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.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 CatalogPeerWithExadbXs build() { - CatalogPeerWithExadbXs model = - new CatalogPeerWithExadbXs( - this.vmClusterId, - this.shardGroup, - this.status, - this.supportingResourceId, - this.containerDatabaseId, - this.timeCreated, - this.timeUpdated, - this.protectionMode, - this.transportType, - this.metadata); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CatalogPeerWithExadbXs model) { - if (model.wasPropertyExplicitlySet("vmClusterId")) { - this.vmClusterId(model.getVmClusterId()); - } - if (model.wasPropertyExplicitlySet("shardGroup")) { - this.shardGroup(model.getShardGroup()); - } - 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("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("transportType")) { - this.transportType(model.getTransportType()); - } - 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 [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 name of the shardGroup for the peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardGroup") - private final String shardGroup; - - /** - * The name of the shardGroup for the peer. - * - * @return the value - */ - public String getShardGroup() { - return shardGroup; - } - - /** Status of EXADB_XS based catalog peer. */ - 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 EXADB_XS based catalog peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private final Status status; - - /** - * Status of EXADB_XS based catalog peer. - * - * @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 time the catalog peer was created. An RFC3339 formatted datetime string */ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private final java.util.Date timeCreated; - - /** - * The time the catalog peer was created. An RFC3339 formatted datetime string - * - * @return the value - */ - public java.util.Date getTimeCreated() { - return timeCreated; - } - - /** The time the catalog peer was last updated. An RFC3339 formatted datetime string */ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private final java.util.Date timeUpdated; - - /** - * The time the catalog peer was last updated. An RFC3339 formatted datetime string - * - * @return the value - */ - public java.util.Date getTimeUpdated() { - return timeUpdated; - } - - /** The protectionMode for the catalog peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedDbProtectionMode protectionMode; - - /** - * The protectionMode for the catalog peer. - * - * @return the value - */ - public DistributedDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** The redo transport type to use for this Data Guard association. */ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private final DistributedDbTransportType transportType; - - /** - * The redo transport type to use for this Data Guard association. - * - * @return the value - */ - public DistributedDbTransportType getTransportType() { - return transportType; - } - - @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("CatalogPeerWithExadbXs("); - sb.append("super=").append(super.toString()); - sb.append("vmClusterId=").append(String.valueOf(this.vmClusterId)); - sb.append(", shardGroup=").append(String.valueOf(this.shardGroup)); - 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(", timeCreated=").append(String.valueOf(this.timeCreated)); - sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", transportType=").append(String.valueOf(this.transportType)); - 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 CatalogPeerWithExadbXs)) { - return false; - } - - CatalogPeerWithExadbXs other = (CatalogPeerWithExadbXs) o; - return java.util.Objects.equals(this.vmClusterId, other.vmClusterId) - && java.util.Objects.equals(this.shardGroup, other.shardGroup) - && 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.timeCreated, other.timeCreated) - && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals(this.transportType, other.transportType) - && 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.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); - result = (result * PRIME) + (this.shardGroup == null ? 43 : this.shardGroup.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.timeCreated == null ? 43 : this.timeCreated.hashCode()); - result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.transportType == null ? 43 : this.transportType.hashCode()); - result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CatalogPeerWithExadbXsNewVaultAndCluster.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CatalogPeerWithExadbXsNewVaultAndCluster.java deleted file mode 100644 index 06bb822edaa..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CatalogPeerWithExadbXsNewVaultAndCluster.java +++ /dev/null @@ -1,602 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.model; - -/** - * Details of the catalog peer
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CatalogPeerWithExadbXsNewVaultAndCluster.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CatalogPeerWithExadbXsNewVaultAndCluster - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "shardGroup", - "status", - "supportingResourceId", - "containerDatabaseId", - "timeCreated", - "timeUpdated", - "protectionMode", - "transportType", - "availabilityDomain", - "dbStorageVaultDetails", - "vmClusterDetails", - "metadata" - }) - public CatalogPeerWithExadbXsNewVaultAndCluster( - String shardGroup, - Status status, - String supportingResourceId, - String containerDatabaseId, - java.util.Date timeCreated, - java.util.Date timeUpdated, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType, - String availabilityDomain, - DistributedDbStorageVault dbStorageVaultDetails, - DistributedDbVmCluster vmClusterDetails, - DistributedDbMetadata metadata) { - super(); - this.shardGroup = shardGroup; - this.status = status; - this.supportingResourceId = supportingResourceId; - this.containerDatabaseId = containerDatabaseId; - this.timeCreated = timeCreated; - this.timeUpdated = timeUpdated; - this.protectionMode = protectionMode; - this.transportType = transportType; - this.availabilityDomain = availabilityDomain; - this.dbStorageVaultDetails = dbStorageVaultDetails; - this.vmClusterDetails = vmClusterDetails; - this.metadata = metadata; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** The name of the shardGroup for the peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardGroup") - private String shardGroup; - - /** - * The name of the shardGroup for the peer. - * - * @param shardGroup the value to set - * @return this builder - */ - public Builder shardGroup(String shardGroup) { - this.shardGroup = shardGroup; - this.__explicitlySet__.add("shardGroup"); - return this; - } - /** Status of EXADB_XS based catalog peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private Status status; - - /** - * Status of EXADB_XS based catalog peer. - * - * @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 time the catalog peer was created. An RFC3339 formatted datetime string */ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - /** - * The time the catalog peer 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 catalog peer was last updated. An RFC3339 formatted datetime string */ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - /** - * The time the catalog peer 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 protectionMode for the catalog peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedDbProtectionMode protectionMode; - - /** - * The protectionMode for the catalog peer. - * - * @param protectionMode the value to set - * @return this builder - */ - public Builder protectionMode(DistributedDbProtectionMode protectionMode) { - this.protectionMode = protectionMode; - this.__explicitlySet__.add("protectionMode"); - return this; - } - /** The redo transport type to use for this Data Guard association. */ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private DistributedDbTransportType transportType; - - /** - * The redo transport type to use for this 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; - } - /** - * 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; - } - - @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 CatalogPeerWithExadbXsNewVaultAndCluster build() { - CatalogPeerWithExadbXsNewVaultAndCluster model = - new CatalogPeerWithExadbXsNewVaultAndCluster( - this.shardGroup, - this.status, - this.supportingResourceId, - this.containerDatabaseId, - this.timeCreated, - this.timeUpdated, - this.protectionMode, - this.transportType, - this.availabilityDomain, - this.dbStorageVaultDetails, - this.vmClusterDetails, - this.metadata); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CatalogPeerWithExadbXsNewVaultAndCluster model) { - if (model.wasPropertyExplicitlySet("shardGroup")) { - this.shardGroup(model.getShardGroup()); - } - 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("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("transportType")) { - this.transportType(model.getTransportType()); - } - 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("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 name of the shardGroup for the peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardGroup") - private final String shardGroup; - - /** - * The name of the shardGroup for the peer. - * - * @return the value - */ - public String getShardGroup() { - return shardGroup; - } - - /** Status of EXADB_XS based catalog peer. */ - 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 EXADB_XS based catalog peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private final Status status; - - /** - * Status of EXADB_XS based catalog peer. - * - * @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 time the catalog peer was created. An RFC3339 formatted datetime string */ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private final java.util.Date timeCreated; - - /** - * The time the catalog peer was created. An RFC3339 formatted datetime string - * - * @return the value - */ - public java.util.Date getTimeCreated() { - return timeCreated; - } - - /** The time the catalog peer was last updated. An RFC3339 formatted datetime string */ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private final java.util.Date timeUpdated; - - /** - * The time the catalog peer was last updated. An RFC3339 formatted datetime string - * - * @return the value - */ - public java.util.Date getTimeUpdated() { - return timeUpdated; - } - - /** The protectionMode for the catalog peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedDbProtectionMode protectionMode; - - /** - * The protectionMode for the catalog peer. - * - * @return the value - */ - public DistributedDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** The redo transport type to use for this Data Guard association. */ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private final DistributedDbTransportType transportType; - - /** - * The redo transport type to use for this Data Guard association. - * - * @return the value - */ - public DistributedDbTransportType getTransportType() { - return transportType; - } - - /** - * 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; - } - - @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("CatalogPeerWithExadbXsNewVaultAndCluster("); - sb.append("super=").append(super.toString()); - sb.append("shardGroup=").append(String.valueOf(this.shardGroup)); - 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(", timeCreated=").append(String.valueOf(this.timeCreated)); - sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", transportType=").append(String.valueOf(this.transportType)); - 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(", 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 CatalogPeerWithExadbXsNewVaultAndCluster)) { - return false; - } - - CatalogPeerWithExadbXsNewVaultAndCluster other = - (CatalogPeerWithExadbXsNewVaultAndCluster) o; - return java.util.Objects.equals(this.shardGroup, other.shardGroup) - && 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.timeCreated, other.timeCreated) - && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals(this.transportType, other.transportType) - && 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.metadata, other.metadata) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.shardGroup == null ? 43 : this.shardGroup.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.timeCreated == null ? 43 : this.timeCreated.hashCode()); - result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.transportType == null ? 43 : this.transportType.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.metadata == null ? 43 : this.metadata.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ChangeDistributedAutonomousDatabaseCompartmentDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ChangeDistributedAutonomousDatabaseCompartmentDetails.java index 969eee704ba..a48c6c27db1 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ChangeDistributedAutonomousDatabaseCompartmentDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ChangeDistributedAutonomousDatabaseCompartmentDetails.java @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ChangeDistributedAutonomousDatabaseCompartmentDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ChangeDistributedAutonomousDbBackupConfigDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ChangeDistributedAutonomousDbBackupConfigDetails.java index c5be58a1d27..02431656bef 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ChangeDistributedAutonomousDbBackupConfigDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ChangeDistributedAutonomousDbBackupConfigDetails.java @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ChangeDistributedAutonomousDbBackupConfigDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ChangeDistributedDatabaseCompartmentDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ChangeDistributedDatabaseCompartmentDetails.java index 84665da8cdf..404f13d27b1 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ChangeDistributedDatabaseCompartmentDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ChangeDistributedDatabaseCompartmentDetails.java @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ChangeDistributedDatabaseCompartmentDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ChangeDistributedDatabasePrivateEndpointCompartmentDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ChangeDistributedDatabasePrivateEndpointCompartmentDetails.java index 0f323824d40..f125ddf9a1d 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ChangeDistributedDatabasePrivateEndpointCompartmentDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ChangeDistributedDatabasePrivateEndpointCompartmentDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ChangeDistributedDatabasePrivateEndpointCompartmentDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ChangeDistributedDbBackupConfigDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ChangeDistributedDbBackupConfigDetails.java index 9c5479b1087..b420ad81935 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ChangeDistributedDbBackupConfigDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ChangeDistributedDbBackupConfigDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ChangeDistributedDbBackupConfigDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeDataGuardShardSpace.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CompositeDataGuardShardSpace.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeDataGuardShardSpace.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CompositeDataGuardShardSpace.java index 631844625db..c5e15c42e88 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeDataGuardShardSpace.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CompositeDataGuardShardSpace.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Globally distributed database composite data guard shard space details.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeDataGuardShardSpaceReplica.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CompositeDataGuardShardSpaceReplica.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeDataGuardShardSpaceReplica.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CompositeDataGuardShardSpaceReplica.java index 7177ad71798..ba44725a812 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeDataGuardShardSpaceReplica.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CompositeDataGuardShardSpaceReplica.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Globally distributed database composite data guard replica details.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeRaftShardSpace.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CompositeRaftShardSpace.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeRaftShardSpace.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CompositeRaftShardSpace.java index 067ffc7459e..fba3b76bd1c 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeRaftShardSpace.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CompositeRaftShardSpace.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Globally distributed database composite raft shard space.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeShardSpaceRaftCluster.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CompositeShardSpaceRaftCluster.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeShardSpaceRaftCluster.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CompositeShardSpaceRaftCluster.java index 4c7656b5fba..fbb825ffa25 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeShardSpaceRaftCluster.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CompositeShardSpaceRaftCluster.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Raft clusters details for composite shard spaces.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails.java index 2ab18833358..9306edb7a3b 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Automatic resource management configuration details for the Globally distributed autonomous diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ConfigureDistributedAutonomousDatabaseGsmWalletDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ConfigureDistributedAutonomousDatabaseGsmWalletDetails.java index 41ed8f5ef6e..c58c41e564a 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ConfigureDistributedAutonomousDatabaseGsmWalletDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ConfigureDistributedAutonomousDatabaseGsmWalletDetails.java @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ConfigureDistributedAutonomousDatabaseGsmWalletDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ConfigureDistributedAutonomousDatabaseGsmsDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ConfigureDistributedAutonomousDatabaseGsmsDetails.java index e791ccff98c..7470feb9244 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ConfigureDistributedAutonomousDatabaseGsmsDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ConfigureDistributedAutonomousDatabaseGsmsDetails.java @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ConfigureDistributedAutonomousDatabaseGsmsDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedDatabaseAutoResourceManagementDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ConfigureDistributedDatabaseAutoResourceManagementDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedDatabaseAutoResourceManagementDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ConfigureDistributedDatabaseAutoResourceManagementDetails.java index 4ce80d2e366..00946ffd8cc 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedDatabaseAutoResourceManagementDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ConfigureDistributedDatabaseAutoResourceManagementDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * AutoResourceManagement configuration details for the Globally distributed database.
diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ConfigureDistributedDatabaseGsmsDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ConfigureDistributedDatabaseGsmsDetails.java index 124a930b0ef..406262133bf 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ConfigureDistributedDatabaseGsmsDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ConfigureDistributedDatabaseGsmsDetails.java @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ConfigureDistributedDatabaseGsmsDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogDatabaseDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousCatalogDatabaseDetails.java similarity index 98% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogDatabaseDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousCatalogDatabaseDetails.java index 838ebdefb8f..d9e48695f3a 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogDatabaseDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousCatalogDatabaseDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details for creating a distributed autonomous database catalog.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousCatalogDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousCatalogDetails.java index 11ba6c16237..6fabfd127a8 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousCatalogDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details required to create a distributed autonomous database catalog.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogReplicaDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousCatalogReplicaDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogReplicaDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousCatalogReplicaDetails.java index 88e1042a23d..037eb787e1c 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogReplicaDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousCatalogReplicaDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details required to create a catalog replica.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeDataGuardShardSpaceDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousCompositeDataGuardShardSpaceDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeDataGuardShardSpaceDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousCompositeDataGuardShardSpaceDetails.java index 8544cba84e0..9805785d680 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeDataGuardShardSpaceDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousCompositeDataGuardShardSpaceDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details required to create a composite data guard shard space for a Globally distributed diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails.java index fa8cc88b087..b2784c0b97a 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details required to create a composite data guard shard space replica for a Globally distributed diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeRaftShardSpaceDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousCompositeRaftShardSpaceDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeRaftShardSpaceDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousCompositeRaftShardSpaceDetails.java index 2aed2898b70..f246a58601a 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeRaftShardSpaceDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousCompositeRaftShardSpaceDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details required to create a composite raft shard space for a Globally distributed autonomous diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeShardSpaceRaftClusterDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousCompositeShardSpaceRaftClusterDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeShardSpaceRaftClusterDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousCompositeShardSpaceRaftClusterDetails.java index a2d89c6e143..fe06c583238 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeShardSpaceRaftClusterDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousCompositeShardSpaceRaftClusterDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details required to create raft clusters for a composite shard space.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemDataGuardDatabaseDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousSystemDataGuardDatabaseDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemDataGuardDatabaseDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousSystemDataGuardDatabaseDetails.java index 4e19d0ebd76..aaf80b355f3 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemDataGuardDatabaseDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousSystemDataGuardDatabaseDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details required to create a system data guard shard.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemDataGuardReplicaDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousSystemDataGuardReplicaDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemDataGuardReplicaDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousSystemDataGuardReplicaDetails.java index 078d71351f8..2920a32d83f 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemDataGuardReplicaDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousSystemDataGuardReplicaDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details required to create a system data guard replica.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemRaftClusterDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousSystemRaftClusterDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemRaftClusterDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousSystemRaftClusterDetails.java index 5f874f208da..137c9febc12 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemRaftClusterDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousSystemRaftClusterDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details required to create system raft cluster.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousUserShardSpaceDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousUserShardSpaceDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousUserShardSpaceDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousUserShardSpaceDetails.java index a6e090d0c8b..38c5e244f25 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousUserShardSpaceDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousUserShardSpaceDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details required to create a user shard space.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousUserShardSpaceReplicaDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousUserShardSpaceReplicaDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousUserShardSpaceReplicaDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousUserShardSpaceReplicaDetails.java index 83e20a9c864..4c98a99d036 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousUserShardSpaceReplicaDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateAutonomousUserShardSpaceReplicaDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details required to create a user shard space replica.
diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCatalogPeerWithDedicatedInfraDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCatalogPeerWithDedicatedInfraDetails.java deleted file mode 100644 index b5be778bbcf..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCatalogPeerWithDedicatedInfraDetails.java +++ /dev/null @@ -1,349 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.model; - -/** - * Details required for creation of autonomous dedicated infrastructure based catalog peer.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateCatalogPeerWithDedicatedInfraDetails.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CreateCatalogPeerWithDedicatedInfraDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "cloudAutonomousVmClusterId", - "protectionMode", - "fastStartFailOverLagLimitInSeconds", - "isAutomaticFailoverEnabled", - "standbyMaintenanceBufferInDays" - }) - public CreateCatalogPeerWithDedicatedInfraDetails( - String cloudAutonomousVmClusterId, - DistributedAutonomousDbProtectionMode protectionMode, - Integer fastStartFailOverLagLimitInSeconds, - Boolean isAutomaticFailoverEnabled, - Integer standbyMaintenanceBufferInDays) { - super(); - this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; - this.protectionMode = protectionMode; - this.fastStartFailOverLagLimitInSeconds = fastStartFailOverLagLimitInSeconds; - this.isAutomaticFailoverEnabled = isAutomaticFailoverEnabled; - this.standbyMaintenanceBufferInDays = standbyMaintenanceBufferInDays; - } - - @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 Autonomous VM Cluster for the peer catalog. - */ - @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 for the peer catalog. - * - * @param cloudAutonomousVmClusterId the value to set - * @return this builder - */ - public Builder cloudAutonomousVmClusterId(String cloudAutonomousVmClusterId) { - this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; - this.__explicitlySet__.add("cloudAutonomousVmClusterId"); - 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; - } - /** - * This field is deprecated. Support for this field will be removed after one year of - * deprecation cycle. - */ - @com.fasterxml.jackson.annotation.JsonProperty("isAutomaticFailoverEnabled") - private Boolean isAutomaticFailoverEnabled; - - /** - * This field is deprecated. Support for this field will be removed after one year of - * deprecation cycle. - * - * @param isAutomaticFailoverEnabled the value to set - * @return this builder - */ - public Builder isAutomaticFailoverEnabled(Boolean isAutomaticFailoverEnabled) { - this.isAutomaticFailoverEnabled = isAutomaticFailoverEnabled; - this.__explicitlySet__.add("isAutomaticFailoverEnabled"); - return this; - } - /** - * The scheduling detail for the quarterly maintenance window of the standby Autonomous - * Container Database. This value represents the number of days before schedlued 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 schedlued 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 CreateCatalogPeerWithDedicatedInfraDetails build() { - CreateCatalogPeerWithDedicatedInfraDetails model = - new CreateCatalogPeerWithDedicatedInfraDetails( - this.cloudAutonomousVmClusterId, - this.protectionMode, - this.fastStartFailOverLagLimitInSeconds, - this.isAutomaticFailoverEnabled, - this.standbyMaintenanceBufferInDays); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateCatalogPeerWithDedicatedInfraDetails model) { - if (model.wasPropertyExplicitlySet("cloudAutonomousVmClusterId")) { - this.cloudAutonomousVmClusterId(model.getCloudAutonomousVmClusterId()); - } - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("fastStartFailOverLagLimitInSeconds")) { - this.fastStartFailOverLagLimitInSeconds( - model.getFastStartFailOverLagLimitInSeconds()); - } - if (model.wasPropertyExplicitlySet("isAutomaticFailoverEnabled")) { - this.isAutomaticFailoverEnabled(model.getIsAutomaticFailoverEnabled()); - } - 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); - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * cloud Autonomous VM Cluster for the peer catalog. - */ - @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 for the peer catalog. - * - * @return the value - */ - public String getCloudAutonomousVmClusterId() { - return cloudAutonomousVmClusterId; - } - - /** 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; - } - - /** - * This field is deprecated. Support for this field will be removed after one year of - * deprecation cycle. - */ - @com.fasterxml.jackson.annotation.JsonProperty("isAutomaticFailoverEnabled") - private final Boolean isAutomaticFailoverEnabled; - - /** - * This field is deprecated. Support for this field will be removed after one year of - * deprecation cycle. - * - * @return the value - */ - public Boolean getIsAutomaticFailoverEnabled() { - return isAutomaticFailoverEnabled; - } - - /** - * The scheduling detail for the quarterly maintenance window of the standby Autonomous - * Container Database. This value represents the number of days before schedlued 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 schedlued 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("CreateCatalogPeerWithDedicatedInfraDetails("); - sb.append("super=").append(super.toString()); - sb.append("cloudAutonomousVmClusterId=") - .append(String.valueOf(this.cloudAutonomousVmClusterId)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", fastStartFailOverLagLimitInSeconds=") - .append(String.valueOf(this.fastStartFailOverLagLimitInSeconds)); - sb.append(", isAutomaticFailoverEnabled=") - .append(String.valueOf(this.isAutomaticFailoverEnabled)); - 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 CreateCatalogPeerWithDedicatedInfraDetails)) { - return false; - } - - CreateCatalogPeerWithDedicatedInfraDetails other = - (CreateCatalogPeerWithDedicatedInfraDetails) o; - return java.util.Objects.equals( - this.cloudAutonomousVmClusterId, other.cloudAutonomousVmClusterId) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals( - this.fastStartFailOverLagLimitInSeconds, - other.fastStartFailOverLagLimitInSeconds) - && java.util.Objects.equals( - this.isAutomaticFailoverEnabled, other.isAutomaticFailoverEnabled) - && java.util.Objects.equals( - this.standbyMaintenanceBufferInDays, other.standbyMaintenanceBufferInDays) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.cloudAutonomousVmClusterId == null - ? 43 - : this.cloudAutonomousVmClusterId.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.isAutomaticFailoverEnabled == null - ? 43 - : this.isAutomaticFailoverEnabled.hashCode()); - result = - (result * PRIME) - + (this.standbyMaintenanceBufferInDays == null - ? 43 - : this.standbyMaintenanceBufferInDays.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCatalogPeerWithExadbXsDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCatalogPeerWithExadbXsDetails.java deleted file mode 100644 index bf30a357dde..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCatalogPeerWithExadbXsDetails.java +++ /dev/null @@ -1,221 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.model; - -/** - * Details required for creation of ExadbXs infrastructure based catalog peer.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateCatalogPeerWithExadbXsDetails.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CreateCatalogPeerWithExadbXsDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"vmClusterId", "protectionMode", "transportType"}) - public CreateCatalogPeerWithExadbXsDetails( - String vmClusterId, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(); - this.vmClusterId = vmClusterId; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - @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 - * VM Cluster for the catalog peer. - */ - @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 for the catalog peer. - * - * @param vmClusterId the value to set - * @return this builder - */ - public Builder vmClusterId(String vmClusterId) { - this.vmClusterId = vmClusterId; - this.__explicitlySet__.add("vmClusterId"); - return this; - } - /** The protectionMode for the catalog peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedDbProtectionMode protectionMode; - - /** - * The protectionMode for the catalog peer. - * - * @param protectionMode the value to set - * @return this builder - */ - public Builder protectionMode(DistributedDbProtectionMode protectionMode) { - this.protectionMode = protectionMode; - this.__explicitlySet__.add("protectionMode"); - return this; - } - /** The redo transport type to use for this Data Guard association. */ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private DistributedDbTransportType transportType; - - /** - * The redo transport type to use for this 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 CreateCatalogPeerWithExadbXsDetails build() { - CreateCatalogPeerWithExadbXsDetails model = - new CreateCatalogPeerWithExadbXsDetails( - this.vmClusterId, this.protectionMode, this.transportType); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateCatalogPeerWithExadbXsDetails model) { - if (model.wasPropertyExplicitlySet("vmClusterId")) { - this.vmClusterId(model.getVmClusterId()); - } - 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); - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM - * Cluster for the catalog peer. - */ - @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 for the catalog peer. - * - * @return the value - */ - public String getVmClusterId() { - return vmClusterId; - } - - /** The protectionMode for the catalog peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedDbProtectionMode protectionMode; - - /** - * The protectionMode for the catalog peer. - * - * @return the value - */ - public DistributedDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** The redo transport type to use for this Data Guard association. */ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private final DistributedDbTransportType transportType; - - /** - * The redo transport type to use for this 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("CreateCatalogPeerWithExadbXsDetails("); - sb.append("super=").append(super.toString()); - sb.append("vmClusterId=").append(String.valueOf(this.vmClusterId)); - 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 CreateCatalogPeerWithExadbXsDetails)) { - return false; - } - - CreateCatalogPeerWithExadbXsDetails other = (CreateCatalogPeerWithExadbXsDetails) o; - return java.util.Objects.equals(this.vmClusterId, other.vmClusterId) - && 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 = 1; - result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.transportType == null ? 43 : this.transportType.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCatalogPeerWithExadbXsNewVaultAndClusterDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCatalogPeerWithExadbXsNewVaultAndClusterDetails.java deleted file mode 100644 index 9a6589f415d..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCatalogPeerWithExadbXsNewVaultAndClusterDetails.java +++ /dev/null @@ -1,288 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.model; - -/** - * Details required for creation of ExaDbXs based catalog peer.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateCatalogPeerWithExadbXsNewVaultAndClusterDetails.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CreateCatalogPeerWithExadbXsNewVaultAndClusterDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "protectionMode", - "transportType", - "availabilityDomain", - "dbStorageVaultDetails", - "vmClusterDetails" - }) - public CreateCatalogPeerWithExadbXsNewVaultAndClusterDetails( - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType, - String availabilityDomain, - DbStorageVaultDetails dbStorageVaultDetails, - VmClusterDetails vmClusterDetails) { - super(); - this.protectionMode = protectionMode; - this.transportType = transportType; - this.availabilityDomain = availabilityDomain; - this.dbStorageVaultDetails = dbStorageVaultDetails; - this.vmClusterDetails = vmClusterDetails; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** The protectionMode for the catalog peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedDbProtectionMode protectionMode; - - /** - * The protectionMode for the catalog peer. - * - * @param protectionMode the value to set - * @return this builder - */ - public Builder protectionMode(DistributedDbProtectionMode protectionMode) { - this.protectionMode = protectionMode; - this.__explicitlySet__.add("protectionMode"); - return this; - } - /** The redo transport type to use for this Data Guard association. */ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private DistributedDbTransportType transportType; - - /** - * The redo transport type to use for this 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; - } - /** - * 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; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateCatalogPeerWithExadbXsNewVaultAndClusterDetails build() { - CreateCatalogPeerWithExadbXsNewVaultAndClusterDetails model = - new CreateCatalogPeerWithExadbXsNewVaultAndClusterDetails( - this.protectionMode, - this.transportType, - this.availabilityDomain, - this.dbStorageVaultDetails, - this.vmClusterDetails); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateCatalogPeerWithExadbXsNewVaultAndClusterDetails model) { - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("transportType")) { - this.transportType(model.getTransportType()); - } - if (model.wasPropertyExplicitlySet("availabilityDomain")) { - this.availabilityDomain(model.getAvailabilityDomain()); - } - if (model.wasPropertyExplicitlySet("dbStorageVaultDetails")) { - this.dbStorageVaultDetails(model.getDbStorageVaultDetails()); - } - if (model.wasPropertyExplicitlySet("vmClusterDetails")) { - this.vmClusterDetails(model.getVmClusterDetails()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** The protectionMode for the catalog peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedDbProtectionMode protectionMode; - - /** - * The protectionMode for the catalog peer. - * - * @return the value - */ - public DistributedDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** The redo transport type to use for this Data Guard association. */ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private final DistributedDbTransportType transportType; - - /** - * The redo transport type to use for this Data Guard association. - * - * @return the value - */ - public DistributedDbTransportType getTransportType() { - return transportType; - } - - /** - * 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; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateCatalogPeerWithExadbXsNewVaultAndClusterDetails("); - sb.append("super=").append(super.toString()); - sb.append("protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", transportType=").append(String.valueOf(this.transportType)); - 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(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateCatalogPeerWithExadbXsNewVaultAndClusterDetails)) { - return false; - } - - CreateCatalogPeerWithExadbXsNewVaultAndClusterDetails other = - (CreateCatalogPeerWithExadbXsNewVaultAndClusterDetails) o; - return java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals(this.transportType, other.transportType) - && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) - && java.util.Objects.equals(this.dbStorageVaultDetails, other.dbStorageVaultDetails) - && java.util.Objects.equals(this.vmClusterDetails, other.vmClusterDetails) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.transportType == null ? 43 : this.transportType.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) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeDataGuardShardSpaceDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCompositeDataGuardShardSpaceDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeDataGuardShardSpaceDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCompositeDataGuardShardSpaceDetails.java index df109680310..fcc5961af87 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeDataGuardShardSpaceDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCompositeDataGuardShardSpaceDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Globally distributed database composite data guard shard space creation details.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeDataGuardShardSpaceReplicaDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCompositeDataGuardShardSpaceReplicaDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeDataGuardShardSpaceReplicaDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCompositeDataGuardShardSpaceReplicaDetails.java index 1c8ac971d6b..9ad0d1d1e06 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeDataGuardShardSpaceReplicaDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCompositeDataGuardShardSpaceReplicaDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Globally distributed database composite data guard shard space replica creation details.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeRaftShardSpaceDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCompositeRaftShardSpaceDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeRaftShardSpaceDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCompositeRaftShardSpaceDetails.java index f5ee9ec7c2f..804d9d9c934 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeRaftShardSpaceDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCompositeRaftShardSpaceDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Globally distributed database composite raft shard space creation details.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeShardSpaceRaftClusterDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCompositeShardSpaceRaftClusterDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeShardSpaceRaftClusterDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCompositeShardSpaceRaftClusterDetails.java index 5f2660b8847..50978b15eba 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeShardSpaceRaftClusterDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCompositeShardSpaceRaftClusterDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Raft clusters details required for creation of composite shard spaces.
diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails.java index 5bf1b97c2e4..ecf0fef4e94 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.distributeddatabase.model; /** - * Globally distributed autonomous database catalog based on Dedicated infrastructure.
+ * 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 @@ -15,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( @@ -25,24 +26,70 @@ @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails - extends CreateDistributedAutonomousDatabaseCatalogDetails { + extends CreateAutonomousCatalogDatabaseDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Admin password for catalog database. */ + /** + * The admin password for the catalog associated with the distributed autonomous database. + */ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private String adminPassword; + private char[] adminPassword; /** - * Admin password for catalog database. + * The admin password for the catalog associated with the distributed autonomous database. * * @param adminPassword the value to set * @return this builder */ - public Builder adminPassword(String adminPassword) { + 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 OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used + * in conjunction with adminPassword. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + private String adminPasswordSecretId; + + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used + * in conjunction with adminPassword. + * + * @param adminPasswordSecretId the value to set + * @return this builder + */ + public Builder adminPasswordSecretId(String adminPasswordSecretId) { + this.adminPasswordSecretId = adminPasswordSecretId; + this.__explicitlySet__.add("adminPasswordSecretId"); + return this; + } + /** + * The version of the vault secret. If no version is specified, the latest version will be + * used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + private Integer adminPasswordSecretVersionNumber; + + /** + * The version of the vault secret. If no version is specified, the latest version will be + * used. + * + * @param adminPasswordSecretVersionNumber the value to set + * @return this builder + */ + public Builder adminPasswordSecretVersionNumber(Integer adminPasswordSecretVersionNumber) { + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; + this.__explicitlySet__.add("adminPasswordSecretVersionNumber"); + 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; @@ -73,12 +120,16 @@ public Builder dataStorageSizeInGbs(Double dataStorageSizeInGbs) { this.__explicitlySet__.add("dataStorageSizeInGbs"); return this; } - /** Determines the auto-scaling mode for the catalog database. */ + /** + * 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; /** - * Determines the auto-scaling mode for the catalog database. + * 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 @@ -107,48 +158,6 @@ public Builder cloudAutonomousVmClusterId(String cloudAutonomousVmClusterId) { this.__explicitlySet__.add("cloudAutonomousVmClusterId"); return this; } - /** - * This field is deprecated. This should not be used while creation of new distributed - * autonomous database. To set the peers on catalog of distributed autonomous database - * please use peerDetails. - */ - @com.fasterxml.jackson.annotation.JsonProperty("peerCloudAutonomousVmClusterIds") - private java.util.List peerCloudAutonomousVmClusterIds; - - /** - * This field is deprecated. This should not be used while creation of new distributed - * autonomous database. To set the peers on catalog of distributed autonomous database - * please use peerDetails. - * - * @param peerCloudAutonomousVmClusterIds the value to set - * @return this builder - */ - public Builder peerCloudAutonomousVmClusterIds( - java.util.List peerCloudAutonomousVmClusterIds) { - this.peerCloudAutonomousVmClusterIds = peerCloudAutonomousVmClusterIds; - this.__explicitlySet__.add("peerCloudAutonomousVmClusterIds"); - return this; - } - /** - * The details required for creation of the peer for the autonomous dedicated infrastructure - * based catalog. - */ - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - private java.util.List peerDetails; - - /** - * The details required for creation of the peer for the autonomous dedicated infrastructure - * based catalog. - * - * @param peerDetails the value to set - * @return this builder - */ - public Builder peerDetails( - java.util.List peerDetails) { - this.peerDetails = peerDetails; - this.__explicitlySet__.add("peerDetails"); - return this; - } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure @@ -173,15 +182,17 @@ public Builder vaultId(String vaultId) { return this; } /** - * The OCID of the key container that is used as the master encryption key in database - * transparent data encryption (TDE) operations. + * 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 of the key container that is used as the master encryption key in database - * transparent data encryption (TDE) operations. + * 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 @@ -192,15 +203,17 @@ public Builder kmsKeyId(String kmsKeyId) { return this; } /** - * The OCID of the key container version that is used in database transparent data - * encryption (TDE) operations KMS Key can have multiple key versions. + * 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 of the key container version that is used in database transparent data - * encryption (TDE) operations KMS Key can have multiple key versions. + * 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 @@ -230,18 +243,70 @@ public Builder okvKeyStoreId(String okvKeyStoreId) { return this; } /** The OKV endpoint name. */ - @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroup") - private String okvEndPointGroup; + @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroupName") + private String okvEndPointGroupName; /** * The OKV endpoint name. * - * @param okvEndPointGroup the value to set + * @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 okvEndPointGroup(String okvEndPointGroup) { - this.okvEndPointGroup = okvEndPointGroup; - this.__explicitlySet__.add("okvEndPointGroup"); + 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; } @@ -252,17 +317,20 @@ public CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails build CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails model = new CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails( this.adminPassword, + this.adminPasswordSecretId, + this.adminPasswordSecretVersionNumber, this.computeCount, this.dataStorageSizeInGbs, this.isAutoScalingEnabled, this.cloudAutonomousVmClusterId, - this.peerCloudAutonomousVmClusterIds, - this.peerDetails, this.vaultId, this.kmsKeyId, this.kmsKeyVersionId, this.okvKeyStoreId, - this.okvEndPointGroup); + this.okvEndPointGroupName, + this.protectionMode, + this.fastStartFailOverLagLimitInSeconds, + this.standbyMaintenanceBufferInDays); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -275,6 +343,12 @@ public Builder copy( if (model.wasPropertyExplicitlySet("adminPassword")) { this.adminPassword(model.getAdminPassword()); } + if (model.wasPropertyExplicitlySet("adminPasswordSecretId")) { + this.adminPasswordSecretId(model.getAdminPasswordSecretId()); + } + if (model.wasPropertyExplicitlySet("adminPasswordSecretVersionNumber")) { + this.adminPasswordSecretVersionNumber(model.getAdminPasswordSecretVersionNumber()); + } if (model.wasPropertyExplicitlySet("computeCount")) { this.computeCount(model.getComputeCount()); } @@ -287,12 +361,6 @@ public Builder copy( if (model.wasPropertyExplicitlySet("cloudAutonomousVmClusterId")) { this.cloudAutonomousVmClusterId(model.getCloudAutonomousVmClusterId()); } - if (model.wasPropertyExplicitlySet("peerCloudAutonomousVmClusterIds")) { - this.peerCloudAutonomousVmClusterIds(model.getPeerCloudAutonomousVmClusterIds()); - } - if (model.wasPropertyExplicitlySet("peerDetails")) { - this.peerDetails(model.getPeerDetails()); - } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -305,8 +373,18 @@ public Builder copy( if (model.wasPropertyExplicitlySet("okvKeyStoreId")) { this.okvKeyStoreId(model.getOkvKeyStoreId()); } - if (model.wasPropertyExplicitlySet("okvEndPointGroup")) { - this.okvEndPointGroup(model.getOkvEndPointGroup()); + 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; } @@ -324,45 +402,142 @@ public Builder toBuilder() { @Deprecated public CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails( String adminPassword, + String adminPasswordSecretId, + Integer adminPasswordSecretVersionNumber, Float computeCount, Double dataStorageSizeInGbs, Boolean isAutoScalingEnabled, String cloudAutonomousVmClusterId, - java.util.List peerCloudAutonomousVmClusterIds, - java.util.List peerDetails, String vaultId, String kmsKeyId, String kmsKeyVersionId, String okvKeyStoreId, - String okvEndPointGroup) { + String okvEndPointGroupName, + DistributedAutonomousDbProtectionMode protectionMode, + Integer fastStartFailOverLagLimitInSeconds, + Integer standbyMaintenanceBufferInDays) { + super(); + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; + 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("adminPasswordSecretId") + String adminPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + Integer adminPasswordSecretVersionNumber, + @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.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; this.computeCount = computeCount; this.dataStorageSizeInGbs = dataStorageSizeInGbs; this.isAutoScalingEnabled = isAutoScalingEnabled; this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; - this.peerCloudAutonomousVmClusterIds = peerCloudAutonomousVmClusterIds; - this.peerDetails = peerDetails; this.vaultId = vaultId; this.kmsKeyId = kmsKeyId; this.kmsKeyVersionId = kmsKeyVersionId; this.okvKeyStoreId = okvKeyStoreId; - this.okvEndPointGroup = okvEndPointGroup; + this.okvEndPointGroupName = okvEndPointGroupName; + this.protectionMode = protectionMode; + this.fastStartFailOverLagLimitInSeconds = fastStartFailOverLagLimitInSeconds; + this.standbyMaintenanceBufferInDays = standbyMaintenanceBufferInDays; } - /** Admin password for catalog database. */ + /** The admin password for the catalog associated with the distributed autonomous database. */ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final String adminPassword; + private final char[] adminPassword; /** - * Admin password for catalog database. + * 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 OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used in + * conjunction with adminPassword. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + private final String adminPasswordSecretId; + + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used in + * conjunction with adminPassword. + * + * @return the value + */ + public String getAdminPasswordSecretId() { + return adminPasswordSecretId; + } + + /** + * The version of the vault secret. If no version is specified, the latest version will be used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + private final Integer adminPasswordSecretVersionNumber; + + /** + * The version of the vault secret. If no version is specified, the latest version will be used. + * + * @return the value + */ + public Integer getAdminPasswordSecretVersionNumber() { + return adminPasswordSecretVersionNumber; + } + /** 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; @@ -389,12 +564,16 @@ public Double getDataStorageSizeInGbs() { return dataStorageSizeInGbs; } - /** Determines the auto-scaling mode for the catalog database. */ + /** + * 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; /** - * Determines the auto-scaling mode for the catalog database. + * Indicates if vertical auto scaling is enabled for the Autonomous AI Database CPU core count. + * The default value is {@code FALSE}. * * @return the value */ @@ -419,42 +598,6 @@ public String getCloudAutonomousVmClusterId() { return cloudAutonomousVmClusterId; } - /** - * This field is deprecated. This should not be used while creation of new distributed - * autonomous database. To set the peers on catalog of distributed autonomous database please - * use peerDetails. - */ - @com.fasterxml.jackson.annotation.JsonProperty("peerCloudAutonomousVmClusterIds") - private final java.util.List peerCloudAutonomousVmClusterIds; - - /** - * This field is deprecated. This should not be used while creation of new distributed - * autonomous database. To set the peers on catalog of distributed autonomous database please - * use peerDetails. - * - * @return the value - */ - public java.util.List getPeerCloudAutonomousVmClusterIds() { - return peerCloudAutonomousVmClusterIds; - } - - /** - * The details required for creation of the peer for the autonomous dedicated infrastructure - * based catalog. - */ - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - private final java.util.List peerDetails; - - /** - * The details required for creation of the peer for the autonomous dedicated infrastructure - * based catalog. - * - * @return the value - */ - public java.util.List getPeerDetails() { - return peerDetails; - } - /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure @@ -477,15 +620,17 @@ public String getVaultId() { } /** - * The OCID of the key container that is used as the master encryption key in database - * transparent data encryption (TDE) operations. + * 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 of the key container that is used as the master encryption key in database - * transparent data encryption (TDE) operations. + * 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 */ @@ -494,15 +639,17 @@ public String getKmsKeyId() { } /** - * The OCID of the key container version that is used in database transparent data encryption - * (TDE) operations KMS Key can have multiple key versions. + * 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 of the key container version that is used in database transparent data encryption - * (TDE) operations KMS Key can have multiple key versions. + * 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 */ @@ -528,16 +675,61 @@ public String getOkvKeyStoreId() { } /** The OKV endpoint name. */ - @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroup") - private final String okvEndPointGroup; + @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroupName") + private final String okvEndPointGroupName; /** * The OKV endpoint name. * * @return the value */ - public String getOkvEndPointGroup() { - return okvEndPointGroup; + 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 @@ -555,20 +747,25 @@ 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(String.valueOf(this.adminPassword)); + sb.append(", adminPassword=").append(""); + sb.append(", adminPasswordSecretId=").append(String.valueOf(this.adminPasswordSecretId)); + sb.append(", adminPasswordSecretVersionNumber=") + .append(String.valueOf(this.adminPasswordSecretVersionNumber)); 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(", peerCloudAutonomousVmClusterIds=") - .append(String.valueOf(this.peerCloudAutonomousVmClusterIds)); - sb.append(", peerDetails=").append(String.valueOf(this.peerDetails)); 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(", okvEndPointGroup=").append(String.valueOf(this.okvEndPointGroup)); + 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(); } @@ -585,19 +782,26 @@ public boolean equals(Object o) { CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails other = (CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails) o; return java.util.Objects.equals(this.adminPassword, other.adminPassword) + && java.util.Objects.equals(this.adminPasswordSecretId, other.adminPasswordSecretId) + && java.util.Objects.equals( + this.adminPasswordSecretVersionNumber, + other.adminPasswordSecretVersionNumber) && 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.peerCloudAutonomousVmClusterIds, other.peerCloudAutonomousVmClusterIds) - && java.util.Objects.equals(this.peerDetails, other.peerDetails) && 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.okvEndPointGroup, other.okvEndPointGroup) + && 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); } @@ -608,6 +812,16 @@ public int hashCode() { result = (result * PRIME) + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); + result = + (result * PRIME) + + (this.adminPasswordSecretId == null + ? 43 + : this.adminPasswordSecretId.hashCode()); + result = + (result * PRIME) + + (this.adminPasswordSecretVersionNumber == null + ? 43 + : this.adminPasswordSecretVersionNumber.hashCode()); result = (result * PRIME) + (this.computeCount == null ? 43 : this.computeCount.hashCode()); result = (result * PRIME) @@ -624,12 +838,6 @@ public int hashCode() { + (this.cloudAutonomousVmClusterId == null ? 43 : this.cloudAutonomousVmClusterId.hashCode()); - result = - (result * PRIME) - + (this.peerCloudAutonomousVmClusterIds == null - ? 43 - : this.peerCloudAutonomousVmClusterIds.hashCode()); - result = (result * PRIME) + (this.peerDetails == null ? 43 : this.peerDetails.hashCode()); result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); result = @@ -640,7 +848,22 @@ public int hashCode() { + (this.okvKeyStoreId == null ? 43 : this.okvKeyStoreId.hashCode()); result = (result * PRIME) - + (this.okvEndPointGroup == null ? 43 : this.okvEndPointGroup.hashCode()); + + (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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseDetails.java index 6833b6623cc..73e29dbb8f0 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateDistributedAutonomousDatabaseDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -29,22 +29,24 @@ public final class CreateDistributedAutonomousDatabaseDetails "databaseVersion", "prefix", "privateEndpointIds", - "shardingMethod", - "dbWorkload", + "notificationTopicIds", + "dbWorkloadType", "characterSet", "ncharacterSet", - "chunks", "listenerPort", "listenerPortTls", "onsPortLocal", "onsPortRemote", - "replicationMethod", - "replicationFactor", - "replicationUnit", - "dbDeploymentType", - "shardDetails", + "systemChunkCount", + "systemRaftReplicationUnitCount", + "compositeRaftShardSpaces", + "compositeDataGuardShardSpaces", + "systemRaftClusters", + "systemDataGuardDatabases", + "userShardSpaces", "catalogDetails", "dbBackupConfig", + "vcnNsgIds", "freeformTags", "definedTags" }) @@ -54,22 +56,25 @@ public CreateDistributedAutonomousDatabaseDetails( String databaseVersion, String prefix, java.util.List privateEndpointIds, - ShardingMethod shardingMethod, - DbWorkload dbWorkload, + java.util.List notificationTopicIds, + DbWorkloadType dbWorkloadType, String characterSet, String ncharacterSet, - Integer chunks, Integer listenerPort, Integer listenerPortTls, Integer onsPortLocal, Integer onsPortRemote, - ReplicationMethod replicationMethod, - Integer replicationFactor, - Integer replicationUnit, - DbDeploymentType dbDeploymentType, - java.util.List shardDetails, - java.util.List catalogDetails, + 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(); @@ -78,22 +83,24 @@ public CreateDistributedAutonomousDatabaseDetails( this.databaseVersion = databaseVersion; this.prefix = prefix; this.privateEndpointIds = privateEndpointIds; - this.shardingMethod = shardingMethod; - this.dbWorkload = dbWorkload; + this.notificationTopicIds = notificationTopicIds; + this.dbWorkloadType = dbWorkloadType; this.characterSet = characterSet; this.ncharacterSet = ncharacterSet; - this.chunks = chunks; this.listenerPort = listenerPort; this.listenerPortTls = listenerPortTls; this.onsPortLocal = onsPortLocal; this.onsPortRemote = onsPortRemote; - this.replicationMethod = replicationMethod; - this.replicationFactor = replicationFactor; - this.replicationUnit = replicationUnit; - this.dbDeploymentType = dbDeploymentType; - this.shardDetails = shardDetails; + 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; } @@ -195,34 +202,40 @@ public Builder privateEndpointIds(java.util.List privateEndpointIds) { this.__explicitlySet__.add("privateEndpointIds"); return this; } - /** Sharding Methods for the Globally distributed autonomous database. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardingMethod") - private ShardingMethod shardingMethod; + /** + * 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; /** - * Sharding Methods for the Globally distributed autonomous database. + * 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 shardingMethod the value to set + * @param notificationTopicIds the value to set * @return this builder */ - public Builder shardingMethod(ShardingMethod shardingMethod) { - this.shardingMethod = shardingMethod; - this.__explicitlySet__.add("shardingMethod"); + 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("dbWorkload") - private DbWorkload dbWorkload; + @com.fasterxml.jackson.annotation.JsonProperty("dbWorkloadType") + private DbWorkloadType dbWorkloadType; /** * Possible workload types. Currently only OLTP workload type is supported. * - * @param dbWorkload the value to set + * @param dbWorkloadType the value to set * @return this builder */ - public Builder dbWorkload(DbWorkload dbWorkload) { - this.dbWorkload = dbWorkload; - this.__explicitlySet__.add("dbWorkload"); + public Builder dbWorkloadType(DbWorkloadType dbWorkloadType) { + this.dbWorkloadType = dbWorkloadType; + this.__explicitlySet__.add("dbWorkloadType"); return this; } /** The character set for the database. */ @@ -255,29 +268,6 @@ public Builder ncharacterSet(String ncharacterSet) { this.__explicitlySet__.add("ncharacterSet"); return this; } - /** - * Number of chunks in a shardspace. The value of chunks must be greater than 2 times the - * size of the largest shardgroup in any shardspace. Chunks is required to be provided for - * distributed autonomous databases being created with SYSTEM shardingMethod. For USER - * shardingMethod, chunks should not be set in create payload. - */ - @com.fasterxml.jackson.annotation.JsonProperty("chunks") - private Integer chunks; - - /** - * Number of chunks in a shardspace. The value of chunks must be greater than 2 times the - * size of the largest shardgroup in any shardspace. Chunks is required to be provided for - * distributed autonomous databases being created with SYSTEM shardingMethod. For USER - * shardingMethod, chunks should not be set in create payload. - * - * @param chunks the value to set - * @return this builder - */ - public Builder chunks(Integer chunks) { - this.chunks = chunks; - this.__explicitlySet__.add("chunks"); - 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 @@ -368,105 +358,117 @@ public Builder onsPortRemote(Integer onsPortRemote) { this.__explicitlySet__.add("onsPortRemote"); 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; + /** Count of chunks associated with system raft clusters or system data guard databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") + private Integer systemChunkCount; /** - * 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. + * Count of chunks associated with system raft clusters or system data guard databases. * - * @param replicationMethod the value to set + * @param systemChunkCount the value to set * @return this builder */ - public Builder replicationMethod(ReplicationMethod replicationMethod) { - this.replicationMethod = replicationMethod; - this.__explicitlySet__.add("replicationMethod"); + public Builder systemChunkCount(Integer systemChunkCount) { + this.systemChunkCount = systemChunkCount; + this.__explicitlySet__.add("systemChunkCount"); return this; } - /** - * The Replication factor for RAFT replication based Globally distributed autonomous - * database. Currently supported values are 3, 5 and 7. - */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private Integer replicationFactor; + /** Number of replication units associated with system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftReplicationUnitCount") + private Integer systemRaftReplicationUnitCount; /** - * The Replication factor for RAFT replication based Globally distributed autonomous - * database. Currently supported values are 3, 5 and 7. + * Number of replication units associated with system raft clusters. * - * @param replicationFactor the value to set + * @param systemRaftReplicationUnitCount the value to set * @return this builder */ - public Builder replicationFactor(Integer replicationFactor) { - this.replicationFactor = replicationFactor; - this.__explicitlySet__.add("replicationFactor"); + 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; + /** - * The replication unit count for RAFT based distributed autonomous database. For RAFT - * replication based Globally distributed autonomous database, the value should be at least - * twice the number of shards. + * Collection of composite raft shards. + * + * @param compositeRaftShardSpaces the value to set + * @return this builder */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationUnit") - private Integer replicationUnit; + 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; /** - * The replication unit count for RAFT based distributed autonomous database. For RAFT - * replication based Globally distributed autonomous database, the value should be at least - * twice the number of shards. + * Collection of composite data guard shard spaces. * - * @param replicationUnit the value to set + * @param compositeDataGuardShardSpaces the value to set * @return this builder */ - public Builder replicationUnit(Integer replicationUnit) { - this.replicationUnit = replicationUnit; - this.__explicitlySet__.add("replicationUnit"); + public Builder compositeDataGuardShardSpaces( + java.util.List + compositeDataGuardShardSpaces) { + this.compositeDataGuardShardSpaces = compositeDataGuardShardSpaces; + this.__explicitlySet__.add("compositeDataGuardShardSpaces"); return this; } - /** The distributed autonomous database deployment type. */ - @com.fasterxml.jackson.annotation.JsonProperty("dbDeploymentType") - private DbDeploymentType dbDeploymentType; + /** Collection of system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftClusters") + private java.util.List systemRaftClusters; /** - * The distributed autonomous database deployment type. + * Collection of system raft clusters. * - * @param dbDeploymentType the value to set + * @param systemRaftClusters the value to set * @return this builder */ - public Builder dbDeploymentType(DbDeploymentType dbDeploymentType) { - this.dbDeploymentType = dbDeploymentType; - this.__explicitlySet__.add("dbDeploymentType"); + 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 shards for the Globally distributed autonomous database. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardDetails") - private java.util.List shardDetails; + /** Collection of user defined shard spaces. */ + @com.fasterxml.jackson.annotation.JsonProperty("userShardSpaces") + private java.util.List userShardSpaces; /** - * Collection of shards for the Globally distributed autonomous database. + * Collection of user defined shard spaces. * - * @param shardDetails the value to set + * @param userShardSpaces the value to set * @return this builder */ - public Builder shardDetails( - java.util.List shardDetails) { - this.shardDetails = shardDetails; - this.__explicitlySet__.add("shardDetails"); + 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; + private java.util.List catalogDetails; /** * Collection of catalog for the Globally distributed autonomous database. @@ -475,7 +477,7 @@ public Builder shardDetails( * @return this builder */ public Builder catalogDetails( - java.util.List catalogDetails) { + java.util.List catalogDetails) { this.catalogDetails = catalogDetails; this.__explicitlySet__.add("catalogDetails"); return this; @@ -489,6 +491,25 @@ public Builder dbBackupConfig(DistributedAutonomousDbBackupConfig 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"}} @@ -540,22 +561,24 @@ public CreateDistributedAutonomousDatabaseDetails build() { this.databaseVersion, this.prefix, this.privateEndpointIds, - this.shardingMethod, - this.dbWorkload, + this.notificationTopicIds, + this.dbWorkloadType, this.characterSet, this.ncharacterSet, - this.chunks, this.listenerPort, this.listenerPortTls, this.onsPortLocal, this.onsPortRemote, - this.replicationMethod, - this.replicationFactor, - this.replicationUnit, - this.dbDeploymentType, - this.shardDetails, + 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__) { @@ -581,11 +604,11 @@ public Builder copy(CreateDistributedAutonomousDatabaseDetails model) { if (model.wasPropertyExplicitlySet("privateEndpointIds")) { this.privateEndpointIds(model.getPrivateEndpointIds()); } - if (model.wasPropertyExplicitlySet("shardingMethod")) { - this.shardingMethod(model.getShardingMethod()); + if (model.wasPropertyExplicitlySet("notificationTopicIds")) { + this.notificationTopicIds(model.getNotificationTopicIds()); } - if (model.wasPropertyExplicitlySet("dbWorkload")) { - this.dbWorkload(model.getDbWorkload()); + if (model.wasPropertyExplicitlySet("dbWorkloadType")) { + this.dbWorkloadType(model.getDbWorkloadType()); } if (model.wasPropertyExplicitlySet("characterSet")) { this.characterSet(model.getCharacterSet()); @@ -593,9 +616,6 @@ public Builder copy(CreateDistributedAutonomousDatabaseDetails model) { if (model.wasPropertyExplicitlySet("ncharacterSet")) { this.ncharacterSet(model.getNcharacterSet()); } - if (model.wasPropertyExplicitlySet("chunks")) { - this.chunks(model.getChunks()); - } if (model.wasPropertyExplicitlySet("listenerPort")) { this.listenerPort(model.getListenerPort()); } @@ -608,20 +628,26 @@ public Builder copy(CreateDistributedAutonomousDatabaseDetails model) { if (model.wasPropertyExplicitlySet("onsPortRemote")) { this.onsPortRemote(model.getOnsPortRemote()); } - if (model.wasPropertyExplicitlySet("replicationMethod")) { - this.replicationMethod(model.getReplicationMethod()); + if (model.wasPropertyExplicitlySet("systemChunkCount")) { + this.systemChunkCount(model.getSystemChunkCount()); + } + if (model.wasPropertyExplicitlySet("systemRaftReplicationUnitCount")) { + this.systemRaftReplicationUnitCount(model.getSystemRaftReplicationUnitCount()); } - if (model.wasPropertyExplicitlySet("replicationFactor")) { - this.replicationFactor(model.getReplicationFactor()); + if (model.wasPropertyExplicitlySet("compositeRaftShardSpaces")) { + this.compositeRaftShardSpaces(model.getCompositeRaftShardSpaces()); } - if (model.wasPropertyExplicitlySet("replicationUnit")) { - this.replicationUnit(model.getReplicationUnit()); + if (model.wasPropertyExplicitlySet("compositeDataGuardShardSpaces")) { + this.compositeDataGuardShardSpaces(model.getCompositeDataGuardShardSpaces()); } - if (model.wasPropertyExplicitlySet("dbDeploymentType")) { - this.dbDeploymentType(model.getDbDeploymentType()); + if (model.wasPropertyExplicitlySet("systemRaftClusters")) { + this.systemRaftClusters(model.getSystemRaftClusters()); } - if (model.wasPropertyExplicitlySet("shardDetails")) { - this.shardDetails(model.getShardDetails()); + if (model.wasPropertyExplicitlySet("systemDataGuardDatabases")) { + this.systemDataGuardDatabases(model.getSystemDataGuardDatabases()); + } + if (model.wasPropertyExplicitlySet("userShardSpaces")) { + this.userShardSpaces(model.getUserShardSpaces()); } if (model.wasPropertyExplicitlySet("catalogDetails")) { this.catalogDetails(model.getCatalogDetails()); @@ -629,6 +655,9 @@ public Builder copy(CreateDistributedAutonomousDatabaseDetails model) { if (model.wasPropertyExplicitlySet("dbBackupConfig")) { this.dbBackupConfig(model.getDbBackupConfig()); } + if (model.wasPropertyExplicitlySet("vcnNsgIds")) { + this.vcnNsgIds(model.getVcnNsgIds()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -733,69 +762,42 @@ public java.util.List getPrivateEndpointIds() { return privateEndpointIds; } - /** Sharding Methods for the Globally distributed autonomous database. */ - public enum ShardingMethod implements com.oracle.bmc.http.internal.BmcEnum { - User("USER"), - System("SYSTEM"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (ShardingMethod v : ShardingMethod.values()) { - 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); - } - throw new IllegalArgumentException("Invalid ShardingMethod: " + key); - } - }; - /** Sharding Methods for the Globally distributed autonomous database. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardingMethod") - private final ShardingMethod shardingMethod; + /** + * 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; /** - * Sharding Methods for the Globally distributed autonomous database. + * 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 ShardingMethod getShardingMethod() { - return shardingMethod; + public java.util.List getNotificationTopicIds() { + return notificationTopicIds; } /** Possible workload types. Currently only OLTP workload type is supported. */ - public enum DbWorkload implements com.oracle.bmc.http.internal.BmcEnum { + public enum DbWorkloadType implements com.oracle.bmc.http.internal.BmcEnum { Oltp("OLTP"), Dw("DW"), ; private final String value; - private static java.util.Map map; + private static java.util.Map map; static { map = new java.util.HashMap<>(); - for (DbWorkload v : DbWorkload.values()) { + for (DbWorkloadType v : DbWorkloadType.values()) { map.put(v.getValue(), v); } } - DbWorkload(String value) { + DbWorkloadType(String value) { this.value = value; } @@ -805,24 +807,24 @@ public String getValue() { } @com.fasterxml.jackson.annotation.JsonCreator - public static DbWorkload create(String key) { + public static DbWorkloadType create(String key) { if (map.containsKey(key)) { return map.get(key); } - throw new IllegalArgumentException("Invalid DbWorkload: " + key); + throw new IllegalArgumentException("Invalid DbWorkloadType: " + key); } }; /** Possible workload types. Currently only OLTP workload type is supported. */ - @com.fasterxml.jackson.annotation.JsonProperty("dbWorkload") - private final DbWorkload dbWorkload; + @com.fasterxml.jackson.annotation.JsonProperty("dbWorkloadType") + private final DbWorkloadType dbWorkloadType; /** * Possible workload types. Currently only OLTP workload type is supported. * * @return the value */ - public DbWorkload getDbWorkload() { - return dbWorkload; + public DbWorkloadType getDbWorkloadType() { + return dbWorkloadType; } /** The character set for the database. */ @@ -851,27 +853,6 @@ public String getNcharacterSet() { return ncharacterSet; } - /** - * Number of chunks in a shardspace. The value of chunks must be greater than 2 times the size - * of the largest shardgroup in any shardspace. Chunks is required to be provided for - * distributed autonomous databases being created with SYSTEM shardingMethod. For USER - * shardingMethod, chunks should not be set in create payload. - */ - @com.fasterxml.jackson.annotation.JsonProperty("chunks") - private final Integer chunks; - - /** - * Number of chunks in a shardspace. The value of chunks must be greater than 2 times the size - * of the largest shardgroup in any shardspace. Chunks is required to be provided for - * distributed autonomous databases being created with SYSTEM shardingMethod. For USER - * shardingMethod, chunks should not be set in create payload. - * - * @return the value - */ - public Integer getChunks() { - return chunks; - } - /** * 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. @@ -952,172 +933,105 @@ public Integer getOnsPortRemote() { return onsPortRemote; } - /** - * 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"), - ; + /** Count of chunks associated with system raft clusters or system data guard databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") + private final Integer systemChunkCount; - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (ReplicationMethod v : ReplicationMethod.values()) { - 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); - } - throw new IllegalArgumentException("Invalid ReplicationMethod: " + key); - } - }; /** - * 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. + * Count of chunks associated with system raft clusters or system data guard databases. + * + * @return the value */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") - private final ReplicationMethod replicationMethod; + public Integer getSystemChunkCount() { + return systemChunkCount; + } + + /** Number of replication units associated with system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftReplicationUnitCount") + private final Integer systemRaftReplicationUnitCount; /** - * 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. + * Number of replication units associated with system raft clusters. * * @return the value */ - public ReplicationMethod getReplicationMethod() { - return replicationMethod; + public Integer getSystemRaftReplicationUnitCount() { + return systemRaftReplicationUnitCount; } - /** - * The Replication factor for RAFT replication based Globally distributed autonomous database. - * Currently supported values are 3, 5 and 7. - */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private final Integer replicationFactor; + /** Collection of composite raft shards. */ + @com.fasterxml.jackson.annotation.JsonProperty("compositeRaftShardSpaces") + private final java.util.List + compositeRaftShardSpaces; /** - * The Replication factor for RAFT replication based Globally distributed autonomous database. - * Currently supported values are 3, 5 and 7. + * Collection of composite raft shards. * * @return the value */ - public Integer getReplicationFactor() { - return replicationFactor; + public java.util.List + getCompositeRaftShardSpaces() { + return compositeRaftShardSpaces; } - /** - * The replication unit count for RAFT based distributed autonomous database. For RAFT - * replication based Globally distributed autonomous database, the value should be at least - * twice the number of shards. - */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationUnit") - private final Integer replicationUnit; + /** Collection of composite data guard shard spaces. */ + @com.fasterxml.jackson.annotation.JsonProperty("compositeDataGuardShardSpaces") + private final java.util.List + compositeDataGuardShardSpaces; /** - * The replication unit count for RAFT based distributed autonomous database. For RAFT - * replication based Globally distributed autonomous database, the value should be at least - * twice the number of shards. + * Collection of composite data guard shard spaces. * * @return the value */ - public Integer getReplicationUnit() { - return replicationUnit; + public java.util.List + getCompositeDataGuardShardSpaces() { + return compositeDataGuardShardSpaces; } - /** The distributed autonomous database deployment type. */ - public enum DbDeploymentType implements com.oracle.bmc.http.internal.BmcEnum { - AdbD("ADB_D"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (DbDeploymentType v : DbDeploymentType.values()) { - 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); - } - throw new IllegalArgumentException("Invalid DbDeploymentType: " + key); - } - }; - /** The distributed autonomous database deployment type. */ - @com.fasterxml.jackson.annotation.JsonProperty("dbDeploymentType") - private final DbDeploymentType dbDeploymentType; + /** Collection of system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftClusters") + private final java.util.List systemRaftClusters; /** - * The distributed autonomous database deployment type. + * Collection of system raft clusters. * * @return the value */ - public DbDeploymentType getDbDeploymentType() { - return dbDeploymentType; + public java.util.List getSystemRaftClusters() { + return systemRaftClusters; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemDataGuardDatabases") + private final CreateAutonomousSystemDataGuardDatabaseDetails systemDataGuardDatabases; + + public CreateAutonomousSystemDataGuardDatabaseDetails getSystemDataGuardDatabases() { + return systemDataGuardDatabases; } - /** Collection of shards for the Globally distributed autonomous database. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardDetails") - private final java.util.List shardDetails; + /** Collection of user defined shard spaces. */ + @com.fasterxml.jackson.annotation.JsonProperty("userShardSpaces") + private final java.util.List userShardSpaces; /** - * Collection of shards for the Globally distributed autonomous database. + * Collection of user defined shard spaces. * * @return the value */ - public java.util.List getShardDetails() { - return shardDetails; + 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; + private final java.util.List catalogDetails; /** * Collection of catalog for the Globally distributed autonomous database. * * @return the value */ - public java.util.List getCatalogDetails() { + public java.util.List getCatalogDetails() { return catalogDetails; } @@ -1128,6 +1042,23 @@ 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"}} @@ -1182,22 +1113,28 @@ public String toString(boolean includeByteArrayContents) { 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(", shardingMethod=").append(String.valueOf(this.shardingMethod)); - sb.append(", dbWorkload=").append(String.valueOf(this.dbWorkload)); + 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(", chunks=").append(String.valueOf(this.chunks)); 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(", replicationMethod=").append(String.valueOf(this.replicationMethod)); - sb.append(", replicationFactor=").append(String.valueOf(this.replicationFactor)); - sb.append(", replicationUnit=").append(String.valueOf(this.replicationUnit)); - sb.append(", dbDeploymentType=").append(String.valueOf(this.dbDeploymentType)); - sb.append(", shardDetails=").append(String.valueOf(this.shardDetails)); + 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(")"); @@ -1220,22 +1157,28 @@ public boolean equals(Object o) { && 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.shardingMethod, other.shardingMethod) - && java.util.Objects.equals(this.dbWorkload, other.dbWorkload) + && 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.chunks, other.chunks) && 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.replicationMethod, other.replicationMethod) - && java.util.Objects.equals(this.replicationFactor, other.replicationFactor) - && java.util.Objects.equals(this.replicationUnit, other.replicationUnit) - && java.util.Objects.equals(this.dbDeploymentType, other.dbDeploymentType) - && java.util.Objects.equals(this.shardDetails, other.shardDetails) + && 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); @@ -1260,13 +1203,16 @@ public int hashCode() { : this.privateEndpointIds.hashCode()); result = (result * PRIME) - + (this.shardingMethod == null ? 43 : this.shardingMethod.hashCode()); - result = (result * PRIME) + (this.dbWorkload == null ? 43 : this.dbWorkload.hashCode()); + + (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.chunks == null ? 43 : this.chunks.hashCode()); result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); result = (result * PRIME) @@ -1277,23 +1223,42 @@ public int hashCode() { + (this.onsPortRemote == null ? 43 : this.onsPortRemote.hashCode()); result = (result * PRIME) - + (this.replicationMethod == null ? 43 : this.replicationMethod.hashCode()); + + (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.replicationFactor == null ? 43 : this.replicationFactor.hashCode()); + + (this.systemRaftClusters == null + ? 43 + : this.systemRaftClusters.hashCode()); result = (result * PRIME) - + (this.replicationUnit == null ? 43 : this.replicationUnit.hashCode()); + + (this.systemDataGuardDatabases == null + ? 43 + : this.systemDataGuardDatabases.hashCode()); result = (result * PRIME) - + (this.dbDeploymentType == null ? 43 : this.dbDeploymentType.hashCode()); - result = (result * PRIME) + (this.shardDetails == null ? 43 : this.shardDetails.hashCode()); + + (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(); diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseShardDatabaseDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseShardDatabaseDetails.java similarity index 98% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseShardDatabaseDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseShardDatabaseDetails.java index 2cef830d32c..3a4edab6a28 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseShardDatabaseDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseShardDatabaseDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details for creating a distributed autonomous database shard.
diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails.java index 6f8e4c2382d..f4f9b42d80a 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.distributeddatabase.model; /** - * Globally distributed autonomous database shard with dedicated autonomous infrastructure.
+ * 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 @@ -15,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( @@ -25,12 +26,12 @@ @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails - extends CreateDistributedAutonomousDatabaseShardDetails { + 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 String adminPassword; + private char[] adminPassword; /** * Admin password for shard database. @@ -38,11 +39,55 @@ public static class Builder { * @param adminPassword the value to set * @return this builder */ - public Builder adminPassword(String adminPassword) { + 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 OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used + * in conjunction with adminPassword. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + private String adminPasswordSecretId; + + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used + * in conjunction with adminPassword. + * + * @param adminPasswordSecretId the value to set + * @return this builder + */ + public Builder adminPasswordSecretId(String adminPasswordSecretId) { + this.adminPasswordSecretId = adminPasswordSecretId; + this.__explicitlySet__.add("adminPasswordSecretId"); + return this; + } + /** + * The version of the vault secret. If no version is specified, the latest version will be + * used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + private Integer adminPasswordSecretVersionNumber; + + /** + * The version of the vault secret. If no version is specified, the latest version will be + * used. + * + * @param adminPasswordSecretVersionNumber the value to set + * @return this builder + */ + public Builder adminPasswordSecretVersionNumber(Integer adminPasswordSecretVersionNumber) { + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; + this.__explicitlySet__.add("adminPasswordSecretVersionNumber"); + 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; @@ -74,34 +119,38 @@ public Builder dataStorageSizeInGbs(Double dataStorageSizeInGbs) { return this; } /** - * The shard space name for the shard database. Shard space for existing shard cannot be - * changed, once shard is created. Shard space name shall be used while creation of new - * shards. For User defined sharding, every shard must have a unique shard space name. For - * system defined sharding, shard space name is not required. + * 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("shardSpace") - private String shardSpace; + @com.fasterxml.jackson.annotation.JsonProperty("shardSpaceName") + private String shardSpaceName; /** - * The shard space name for the shard database. Shard space for existing shard cannot be - * changed, once shard is created. Shard space name shall be used while creation of new - * shards. For User defined sharding, every shard must have a unique shard space name. For - * system defined sharding, shard space name is not required. + * 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 shardSpace the value to set + * @param shardSpaceName the value to set * @return this builder */ - public Builder shardSpace(String shardSpace) { - this.shardSpace = shardSpace; - this.__explicitlySet__.add("shardSpace"); + public Builder shardSpaceName(String shardSpaceName) { + this.shardSpaceName = shardSpaceName; + this.__explicitlySet__.add("shardSpaceName"); return this; } - /** Determines the auto-scaling mode for the shard database. */ + /** + * 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; /** - * Determines the auto-scaling mode for the shard database. + * 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 @@ -130,48 +179,6 @@ public Builder cloudAutonomousVmClusterId(String cloudAutonomousVmClusterId) { this.__explicitlySet__.add("cloudAutonomousVmClusterId"); return this; } - /** - * This field is deprecated. This should not be used while creation of new distributed - * autonomous database. To set the peers on new shards of distributed autonomous database - * please use peerDetails. - */ - @com.fasterxml.jackson.annotation.JsonProperty("peerCloudAutonomousVmClusterIds") - private java.util.List peerCloudAutonomousVmClusterIds; - - /** - * This field is deprecated. This should not be used while creation of new distributed - * autonomous database. To set the peers on new shards of distributed autonomous database - * please use peerDetails. - * - * @param peerCloudAutonomousVmClusterIds the value to set - * @return this builder - */ - public Builder peerCloudAutonomousVmClusterIds( - java.util.List peerCloudAutonomousVmClusterIds) { - this.peerCloudAutonomousVmClusterIds = peerCloudAutonomousVmClusterIds; - this.__explicitlySet__.add("peerCloudAutonomousVmClusterIds"); - return this; - } - /** - * The details required for creation of the peer for the autonomous dedicated infrastructure - * based shard. - */ - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - private java.util.List peerDetails; - - /** - * The details required for creation of the peer for the autonomous dedicated infrastructure - * based shard. - * - * @param peerDetails the value to set - * @return this builder - */ - public Builder peerDetails( - java.util.List peerDetails) { - this.peerDetails = peerDetails; - this.__explicitlySet__.add("peerDetails"); - return this; - } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure @@ -196,15 +203,17 @@ public Builder vaultId(String vaultId) { return this; } /** - * The OCID of the key container that is used as the master encryption key in database - * transparent data encryption (TDE) operations. + * 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 of the key container that is used as the master encryption key in database - * transparent data encryption (TDE) operations. + * 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 @@ -215,15 +224,17 @@ public Builder kmsKeyId(String kmsKeyId) { return this; } /** - * The OCID of the key container version that is used in database transparent data - * encryption (TDE) operations KMS Key can have multiple key versions. + * 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 of the key container version that is used in database transparent data - * encryption (TDE) operations KMS Key can have multiple key versions. + * 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 @@ -253,18 +264,68 @@ public Builder okvKeyStoreId(String okvKeyStoreId) { return this; } /** The OKV endpoint name. */ - @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroup") - private String okvEndPointGroup; + @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroupName") + private String okvEndPointGroupName; /** * The OKV endpoint name. * - * @param okvEndPointGroup the value to set + * @param okvEndPointGroupName the value to set * @return this builder */ - public Builder okvEndPointGroup(String okvEndPointGroup) { - this.okvEndPointGroup = okvEndPointGroup; - this.__explicitlySet__.add("okvEndPointGroup"); + 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; } @@ -275,18 +336,21 @@ public CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails build() CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails model = new CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails( this.adminPassword, + this.adminPasswordSecretId, + this.adminPasswordSecretVersionNumber, this.computeCount, this.dataStorageSizeInGbs, - this.shardSpace, + this.shardSpaceName, this.isAutoScalingEnabled, this.cloudAutonomousVmClusterId, - this.peerCloudAutonomousVmClusterIds, - this.peerDetails, this.vaultId, this.kmsKeyId, this.kmsKeyVersionId, this.okvKeyStoreId, - this.okvEndPointGroup); + this.okvEndPointGroupName, + this.protectionMode, + this.fastStartFailOverLagLimitInSeconds, + this.standbyMaintenanceBufferInDays); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -299,14 +363,20 @@ public Builder copy( if (model.wasPropertyExplicitlySet("adminPassword")) { this.adminPassword(model.getAdminPassword()); } + if (model.wasPropertyExplicitlySet("adminPasswordSecretId")) { + this.adminPasswordSecretId(model.getAdminPasswordSecretId()); + } + if (model.wasPropertyExplicitlySet("adminPasswordSecretVersionNumber")) { + this.adminPasswordSecretVersionNumber(model.getAdminPasswordSecretVersionNumber()); + } if (model.wasPropertyExplicitlySet("computeCount")) { this.computeCount(model.getComputeCount()); } if (model.wasPropertyExplicitlySet("dataStorageSizeInGbs")) { this.dataStorageSizeInGbs(model.getDataStorageSizeInGbs()); } - if (model.wasPropertyExplicitlySet("shardSpace")) { - this.shardSpace(model.getShardSpace()); + if (model.wasPropertyExplicitlySet("shardSpaceName")) { + this.shardSpaceName(model.getShardSpaceName()); } if (model.wasPropertyExplicitlySet("isAutoScalingEnabled")) { this.isAutoScalingEnabled(model.getIsAutoScalingEnabled()); @@ -314,12 +384,6 @@ public Builder copy( if (model.wasPropertyExplicitlySet("cloudAutonomousVmClusterId")) { this.cloudAutonomousVmClusterId(model.getCloudAutonomousVmClusterId()); } - if (model.wasPropertyExplicitlySet("peerCloudAutonomousVmClusterIds")) { - this.peerCloudAutonomousVmClusterIds(model.getPeerCloudAutonomousVmClusterIds()); - } - if (model.wasPropertyExplicitlySet("peerDetails")) { - this.peerDetails(model.getPeerDetails()); - } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -332,8 +396,18 @@ public Builder copy( if (model.wasPropertyExplicitlySet("okvKeyStoreId")) { this.okvKeyStoreId(model.getOkvKeyStoreId()); } - if (model.wasPropertyExplicitlySet("okvEndPointGroup")) { - this.okvEndPointGroup(model.getOkvEndPointGroup()); + 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; } @@ -351,47 +425,146 @@ public Builder toBuilder() { @Deprecated public CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails( String adminPassword, + String adminPasswordSecretId, + Integer adminPasswordSecretVersionNumber, Float computeCount, Double dataStorageSizeInGbs, - String shardSpace, + String shardSpaceName, Boolean isAutoScalingEnabled, String cloudAutonomousVmClusterId, - java.util.List peerCloudAutonomousVmClusterIds, - java.util.List peerDetails, String vaultId, String kmsKeyId, String kmsKeyVersionId, String okvKeyStoreId, - String okvEndPointGroup) { + String okvEndPointGroupName, + DistributedAutonomousDbProtectionMode protectionMode, + Integer fastStartFailOverLagLimitInSeconds, + Integer standbyMaintenanceBufferInDays) { + super(); + this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; + 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("adminPasswordSecretId") + String adminPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + Integer adminPasswordSecretVersionNumber, + @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.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; this.computeCount = computeCount; this.dataStorageSizeInGbs = dataStorageSizeInGbs; - this.shardSpace = shardSpace; + this.shardSpaceName = shardSpaceName; this.isAutoScalingEnabled = isAutoScalingEnabled; this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; - this.peerCloudAutonomousVmClusterIds = peerCloudAutonomousVmClusterIds; - this.peerDetails = peerDetails; this.vaultId = vaultId; this.kmsKeyId = kmsKeyId; this.kmsKeyVersionId = kmsKeyVersionId; this.okvKeyStoreId = okvKeyStoreId; - this.okvEndPointGroup = okvEndPointGroup; + 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 String 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 OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used in + * conjunction with adminPassword. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + private final String adminPasswordSecretId; + + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used in + * conjunction with adminPassword. + * + * @return the value + */ + public String getAdminPasswordSecretId() { + return adminPasswordSecretId; + } + + /** + * The version of the vault secret. If no version is specified, the latest version will be used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + private final Integer adminPasswordSecretVersionNumber; + + /** + * The version of the vault secret. If no version is specified, the latest version will be used. + * + * @return the value + */ + public Integer getAdminPasswordSecretVersionNumber() { + return adminPasswordSecretVersionNumber; + } + /** 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; @@ -419,32 +592,36 @@ public Double getDataStorageSizeInGbs() { } /** - * The shard space name for the shard database. Shard space for existing shard cannot be - * changed, once shard is created. Shard space name shall be used while creation of new shards. - * For User defined sharding, every shard must have a unique shard space name. For system - * defined sharding, shard space name is not required. + * 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("shardSpace") - private final String shardSpace; + @com.fasterxml.jackson.annotation.JsonProperty("shardSpaceName") + private final String shardSpaceName; /** - * The shard space name for the shard database. Shard space for existing shard cannot be - * changed, once shard is created. Shard space name shall be used while creation of new shards. - * For User defined sharding, every shard must have a unique shard space name. For system - * defined sharding, shard space name is not required. + * 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 getShardSpace() { - return shardSpace; + public String getShardSpaceName() { + return shardSpaceName; } - /** Determines the auto-scaling mode for the shard database. */ + /** + * 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; /** - * Determines the auto-scaling mode for the shard database. + * Indicates if vertical auto scaling is enabled for the Autonomous AI Database CPU core count. + * The default value is {@code FALSE}. * * @return the value */ @@ -469,42 +646,6 @@ public String getCloudAutonomousVmClusterId() { return cloudAutonomousVmClusterId; } - /** - * This field is deprecated. This should not be used while creation of new distributed - * autonomous database. To set the peers on new shards of distributed autonomous database please - * use peerDetails. - */ - @com.fasterxml.jackson.annotation.JsonProperty("peerCloudAutonomousVmClusterIds") - private final java.util.List peerCloudAutonomousVmClusterIds; - - /** - * This field is deprecated. This should not be used while creation of new distributed - * autonomous database. To set the peers on new shards of distributed autonomous database please - * use peerDetails. - * - * @return the value - */ - public java.util.List getPeerCloudAutonomousVmClusterIds() { - return peerCloudAutonomousVmClusterIds; - } - - /** - * The details required for creation of the peer for the autonomous dedicated infrastructure - * based shard. - */ - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - private final java.util.List peerDetails; - - /** - * The details required for creation of the peer for the autonomous dedicated infrastructure - * based shard. - * - * @return the value - */ - public java.util.List getPeerDetails() { - return peerDetails; - } - /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure @@ -527,15 +668,17 @@ public String getVaultId() { } /** - * The OCID of the key container that is used as the master encryption key in database - * transparent data encryption (TDE) operations. + * 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 of the key container that is used as the master encryption key in database - * transparent data encryption (TDE) operations. + * 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 */ @@ -544,15 +687,17 @@ public String getKmsKeyId() { } /** - * The OCID of the key container version that is used in database transparent data encryption - * (TDE) operations KMS Key can have multiple key versions. + * 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 of the key container version that is used in database transparent data encryption - * (TDE) operations KMS Key can have multiple key versions. + * 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 */ @@ -578,16 +723,59 @@ public String getOkvKeyStoreId() { } /** The OKV endpoint name. */ - @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroup") - private final String okvEndPointGroup; + @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroupName") + private final String okvEndPointGroupName; /** * The OKV endpoint name. * * @return the value */ - public String getOkvEndPointGroup() { - return okvEndPointGroup; + 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 @@ -605,21 +793,26 @@ 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(String.valueOf(this.adminPassword)); + sb.append(", adminPassword=").append(""); + sb.append(", adminPasswordSecretId=").append(String.valueOf(this.adminPasswordSecretId)); + sb.append(", adminPasswordSecretVersionNumber=") + .append(String.valueOf(this.adminPasswordSecretVersionNumber)); sb.append(", computeCount=").append(String.valueOf(this.computeCount)); sb.append(", dataStorageSizeInGbs=").append(String.valueOf(this.dataStorageSizeInGbs)); - sb.append(", shardSpace=").append(String.valueOf(this.shardSpace)); + 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(", peerCloudAutonomousVmClusterIds=") - .append(String.valueOf(this.peerCloudAutonomousVmClusterIds)); - sb.append(", peerDetails=").append(String.valueOf(this.peerDetails)); 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(", okvEndPointGroup=").append(String.valueOf(this.okvEndPointGroup)); + 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(); } @@ -636,20 +829,27 @@ public boolean equals(Object o) { CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails other = (CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails) o; return java.util.Objects.equals(this.adminPassword, other.adminPassword) + && java.util.Objects.equals(this.adminPasswordSecretId, other.adminPasswordSecretId) + && java.util.Objects.equals( + this.adminPasswordSecretVersionNumber, + other.adminPasswordSecretVersionNumber) && java.util.Objects.equals(this.computeCount, other.computeCount) && java.util.Objects.equals(this.dataStorageSizeInGbs, other.dataStorageSizeInGbs) - && java.util.Objects.equals(this.shardSpace, other.shardSpace) + && 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.peerCloudAutonomousVmClusterIds, other.peerCloudAutonomousVmClusterIds) - && java.util.Objects.equals(this.peerDetails, other.peerDetails) && 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.okvEndPointGroup, other.okvEndPointGroup) + && 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); } @@ -660,13 +860,25 @@ public int hashCode() { result = (result * PRIME) + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); + result = + (result * PRIME) + + (this.adminPasswordSecretId == null + ? 43 + : this.adminPasswordSecretId.hashCode()); + result = + (result * PRIME) + + (this.adminPasswordSecretVersionNumber == null + ? 43 + : this.adminPasswordSecretVersionNumber.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.shardSpace == null ? 43 : this.shardSpace.hashCode()); + result = + (result * PRIME) + + (this.shardSpaceName == null ? 43 : this.shardSpaceName.hashCode()); result = (result * PRIME) + (this.isAutoScalingEnabled == null @@ -677,12 +889,6 @@ public int hashCode() { + (this.cloudAutonomousVmClusterId == null ? 43 : this.cloudAutonomousVmClusterId.hashCode()); - result = - (result * PRIME) - + (this.peerCloudAutonomousVmClusterIds == null - ? 43 - : this.peerCloudAutonomousVmClusterIds.hashCode()); - result = (result * PRIME) + (this.peerDetails == null ? 43 : this.peerDetails.hashCode()); result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); result = @@ -693,7 +899,22 @@ public int hashCode() { + (this.okvKeyStoreId == null ? 43 : this.okvKeyStoreId.hashCode()); result = (result * PRIME) - + (this.okvEndPointGroup == null ? 43 : this.okvEndPointGroup.hashCode()); + + (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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogDatabaseDetails.java similarity index 51% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogDatabaseDetails.java index c08a83863d5..43ff23a78c3 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogDatabaseDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details for creating a distributed database catalog.
@@ -43,9 +43,97 @@ public class CreateDistributedDatabaseCatalogDatabaseDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({}) - protected CreateDistributedDatabaseCatalogDatabaseDetails() { + protected CreateDistributedDatabaseCatalogDatabaseDetails( + String tdeWalletPassword, + String tdeWalletPasswordSecretId, + Integer tdeWalletPasswordSecretVersionNumber) { super(); + this.tdeWalletPassword = tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + this.tdeWalletPasswordSecretId = tdeWalletPasswordSecretId; + this.tdeWalletPasswordSecretVersionNumber = tdeWalletPasswordSecretVersionNumber; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({ + "tdeWalletPassword", + "tdeWalletPasswordSecretId", + "tdeWalletPasswordSecretVersionNumber" + }) + protected CreateDistributedDatabaseCatalogDatabaseDetails( + char[] tdeWalletPassword, + String tdeWalletPasswordSecretId, + Integer tdeWalletPasswordSecretVersionNumber) { + super(); + this.tdeWalletPassword = tdeWalletPassword; + this.tdeWalletPasswordSecretId = tdeWalletPasswordSecretId; + this.tdeWalletPasswordSecretVersionNumber = tdeWalletPasswordSecretVersionNumber; + } + + /** + * The password to open the TDE wallet. The password must be 9 to 255 characters and contain at + * least two uppercase letters, two lowercase letters, two numeric characters, and two special + * characters. The allowed special characters are _, \\#, and -. + */ + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + private final char[] tdeWalletPassword; + + /** + * The password to open the TDE wallet. The password must be 9 to 255 characters and contain at + * least two uppercase letters, two lowercase letters, two numeric characters, and two special + * characters. The allowed special characters are _, \\#, and -. + * + * @return the value + * @deprecated Use getTdeWalletPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getTdeWalletPassword() { + return tdeWalletPassword != null ? new String(tdeWalletPassword) : null; + } + + /** + * The password to open the TDE wallet. The password must be 9 to 255 characters and contain at + * least two uppercase letters, two lowercase letters, two numeric characters, and two special + * characters. The allowed special characters are _, \\#, and -. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + public char[] getTdeWalletPassword__AsCharArray() { + return tdeWalletPassword; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OCI + * vault secret. This cannot be used in conjunction with tdeWalletPassword. + */ + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretId") + private final String tdeWalletPasswordSecretId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OCI + * vault secret. This cannot be used in conjunction with tdeWalletPassword. + * + * @return the value + */ + public String getTdeWalletPasswordSecretId() { + return tdeWalletPasswordSecretId; + } + + /** + * The version of the vault secret. If no version is specified, the latest version will be used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretVersionNumber") + private final Integer tdeWalletPasswordSecretVersionNumber; + + /** + * The version of the vault secret. If no version is specified, the latest version will be used. + * + * @return the value + */ + public Integer getTdeWalletPasswordSecretVersionNumber() { + return tdeWalletPasswordSecretVersionNumber; } @Override @@ -63,6 +151,11 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("CreateDistributedDatabaseCatalogDatabaseDetails("); sb.append("super=").append(super.toString()); + sb.append("tdeWalletPassword=").append(""); + sb.append(", tdeWalletPasswordSecretId=") + .append(String.valueOf(this.tdeWalletPasswordSecretId)); + sb.append(", tdeWalletPasswordSecretVersionNumber=") + .append(String.valueOf(this.tdeWalletPasswordSecretVersionNumber)); sb.append(")"); return sb.toString(); } @@ -78,13 +171,32 @@ public boolean equals(Object o) { CreateDistributedDatabaseCatalogDatabaseDetails other = (CreateDistributedDatabaseCatalogDatabaseDetails) o; - return super.equals(other); + return java.util.Objects.equals(this.tdeWalletPassword, other.tdeWalletPassword) + && java.util.Objects.equals( + this.tdeWalletPasswordSecretId, other.tdeWalletPasswordSecretId) + && java.util.Objects.equals( + this.tdeWalletPasswordSecretVersionNumber, + other.tdeWalletPasswordSecretVersionNumber) + && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = 1; + result = + (result * PRIME) + + (this.tdeWalletPassword == null ? 43 : this.tdeWalletPassword.hashCode()); + result = + (result * PRIME) + + (this.tdeWalletPasswordSecretId == null + ? 43 + : this.tdeWalletPasswordSecretId.hashCode()); + result = + (result * PRIME) + + (this.tdeWalletPasswordSecretVersionNumber == null + ? 43 + : this.tdeWalletPasswordSecretVersionNumber.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails.java similarity index 71% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails.java index 01cc7f7917b..3f6f85b530d 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Configuration for creating a distributed database catalog using a pre-existing Database Home. @@ -29,6 +29,33 @@ public final class CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails extends CreateDistributedDatabaseCatalogDatabaseDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + private String tdeWalletPassword; + + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = tdeWalletPassword; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretId") + private String tdeWalletPasswordSecretId; + + public Builder tdeWalletPasswordSecretId(String tdeWalletPasswordSecretId) { + this.tdeWalletPasswordSecretId = tdeWalletPasswordSecretId; + this.__explicitlySet__.add("tdeWalletPasswordSecretId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretVersionNumber") + private Integer tdeWalletPasswordSecretVersionNumber; + + public Builder tdeWalletPasswordSecretVersionNumber( + Integer tdeWalletPasswordSecretVersionNumber) { + this.tdeWalletPasswordSecretVersionNumber = tdeWalletPasswordSecretVersionNumber; + this.__explicitlySet__.add("tdeWalletPasswordSecretVersionNumber"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Database Home. @@ -69,6 +96,44 @@ public Builder adminPassword(String adminPassword) { this.__explicitlySet__.add("adminPassword"); return this; } + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used + * in conjunction with adminPassword. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + private String adminPasswordSecretId; + + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used + * in conjunction with adminPassword. + * + * @param adminPasswordSecretId the value to set + * @return this builder + */ + public Builder adminPasswordSecretId(String adminPasswordSecretId) { + this.adminPasswordSecretId = adminPasswordSecretId; + this.__explicitlySet__.add("adminPasswordSecretId"); + return this; + } + /** + * The version of the vault secret. If no version is specified, the latest version will be + * used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + private Integer adminPasswordSecretVersionNumber; + + /** + * The version of the vault secret. If no version is specified, the latest version will be + * used. + * + * @param adminPasswordSecretVersionNumber the value to set + * @return this builder + */ + public Builder adminPasswordSecretVersionNumber(Integer adminPasswordSecretVersionNumber) { + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; + this.__explicitlySet__.add("adminPasswordSecretVersionNumber"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure @@ -171,8 +236,13 @@ public Builder transportType(DistributedDbTransportType transportType) { public CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails build() { CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails model = new CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails( + this.tdeWalletPassword, + this.tdeWalletPasswordSecretId, + this.tdeWalletPasswordSecretVersionNumber, this.dbHomeId, this.adminPassword, + this.adminPasswordSecretId, + this.adminPasswordSecretVersionNumber, this.vaultId, this.kmsKeyId, this.kmsKeyVersionId, @@ -186,12 +256,28 @@ public CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails model) { + if (model.wasPropertyExplicitlySet("tdeWalletPassword")) { + this.tdeWalletPassword(model.getTdeWalletPassword()); + } + if (model.wasPropertyExplicitlySet("tdeWalletPasswordSecretId")) { + this.tdeWalletPasswordSecretId(model.getTdeWalletPasswordSecretId()); + } + if (model.wasPropertyExplicitlySet("tdeWalletPasswordSecretVersionNumber")) { + this.tdeWalletPasswordSecretVersionNumber( + model.getTdeWalletPasswordSecretVersionNumber()); + } if (model.wasPropertyExplicitlySet("dbHomeId")) { this.dbHomeId(model.getDbHomeId()); } if (model.wasPropertyExplicitlySet("adminPassword")) { this.adminPassword(model.getAdminPassword()); } + if (model.wasPropertyExplicitlySet("adminPasswordSecretId")) { + this.adminPasswordSecretId(model.getAdminPasswordSecretId()); + } + if (model.wasPropertyExplicitlySet("adminPasswordSecretVersionNumber")) { + this.adminPasswordSecretVersionNumber(model.getAdminPasswordSecretVersionNumber()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -222,16 +308,23 @@ public Builder toBuilder() { @Deprecated public CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails( + String tdeWalletPassword, + String tdeWalletPasswordSecretId, + Integer tdeWalletPasswordSecretVersionNumber, String dbHomeId, String adminPassword, + String adminPasswordSecretId, + Integer adminPasswordSecretVersionNumber, String vaultId, String kmsKeyId, String kmsKeyVersionId, DistributedDbProtectionMode protectionMode, DistributedDbTransportType transportType) { - super(); + super(tdeWalletPassword, tdeWalletPasswordSecretId, tdeWalletPasswordSecretVersionNumber); this.dbHomeId = dbHomeId; this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; this.vaultId = vaultId; this.kmsKeyId = kmsKeyId; this.kmsKeyVersionId = kmsKeyVersionId; @@ -242,8 +335,18 @@ public CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails( @com.fasterxml.jackson.annotation.JsonCreator @Deprecated public CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails( + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + String tdeWalletPassword, + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretId") + String tdeWalletPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretVersionNumber") + Integer tdeWalletPasswordSecretVersionNumber, @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") String dbHomeId, @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") char[] adminPassword, + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + String adminPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + Integer adminPasswordSecretVersionNumber, @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") String kmsKeyId, @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") @@ -252,9 +355,11 @@ public CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails( DistributedDbProtectionMode protectionMode, @com.fasterxml.jackson.annotation.JsonProperty("transportType") DistributedDbTransportType transportType) { - super(); + super(tdeWalletPassword, tdeWalletPasswordSecretId, tdeWalletPasswordSecretVersionNumber); this.dbHomeId = dbHomeId; this.adminPassword = adminPassword; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; this.vaultId = vaultId; this.kmsKeyId = kmsKeyId; this.kmsKeyVersionId = kmsKeyVersionId; @@ -305,6 +410,38 @@ public char[] getAdminPassword__AsCharArray() { return adminPassword; } + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used in + * conjunction with adminPassword. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + private final String adminPasswordSecretId; + + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used in + * conjunction with adminPassword. + * + * @return the value + */ + public String getAdminPasswordSecretId() { + return adminPasswordSecretId; + } + + /** + * The version of the vault secret. If no version is specified, the latest version will be used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + private final Integer adminPasswordSecretVersionNumber; + + /** + * The version of the vault secret. If no version is specified, the latest version will be used. + * + * @return the value + */ + public Integer getAdminPasswordSecretVersionNumber() { + return adminPasswordSecretVersionNumber; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure @@ -407,6 +544,9 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); sb.append(", adminPassword=").append(""); + sb.append(", adminPasswordSecretId=").append(String.valueOf(this.adminPasswordSecretId)); + sb.append(", adminPasswordSecretVersionNumber=") + .append(String.valueOf(this.adminPasswordSecretVersionNumber)); sb.append(", vaultId=").append(String.valueOf(this.vaultId)); sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); @@ -429,6 +569,10 @@ public boolean equals(Object o) { (CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails) o; return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) && java.util.Objects.equals(this.adminPassword, other.adminPassword) + && java.util.Objects.equals(this.adminPasswordSecretId, other.adminPasswordSecretId) + && java.util.Objects.equals( + this.adminPasswordSecretVersionNumber, + other.adminPasswordSecretVersionNumber) && java.util.Objects.equals(this.vaultId, other.vaultId) && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) @@ -445,6 +589,16 @@ public int hashCode() { result = (result * PRIME) + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); + result = + (result * PRIME) + + (this.adminPasswordSecretId == null + ? 43 + : this.adminPasswordSecretId.hashCode()); + result = + (result * PRIME) + + (this.adminPasswordSecretVersionNumber == null + ? 43 + : this.adminPasswordSecretVersionNumber.hashCode()); result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); result = diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails.java similarity index 71% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails.java index cdb0697b96f..5cc734c3496 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Configuration for creating a distributed database catalog using an existing ExaDB-D VM cluster. @@ -29,6 +29,33 @@ public final class CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails extends CreateDistributedDatabaseCatalogDatabaseDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + private String tdeWalletPassword; + + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = tdeWalletPassword; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretId") + private String tdeWalletPasswordSecretId; + + public Builder tdeWalletPasswordSecretId(String tdeWalletPasswordSecretId) { + this.tdeWalletPasswordSecretId = tdeWalletPasswordSecretId; + this.__explicitlySet__.add("tdeWalletPasswordSecretId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretVersionNumber") + private Integer tdeWalletPasswordSecretVersionNumber; + + public Builder tdeWalletPasswordSecretVersionNumber( + Integer tdeWalletPasswordSecretVersionNumber) { + this.tdeWalletPasswordSecretVersionNumber = tdeWalletPasswordSecretVersionNumber; + this.__explicitlySet__.add("tdeWalletPasswordSecretVersionNumber"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Cloud VM Cluster. @@ -69,6 +96,44 @@ public Builder adminPassword(String adminPassword) { this.__explicitlySet__.add("adminPassword"); return this; } + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used + * in conjunction with adminPassword. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + private String adminPasswordSecretId; + + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used + * in conjunction with adminPassword. + * + * @param adminPasswordSecretId the value to set + * @return this builder + */ + public Builder adminPasswordSecretId(String adminPasswordSecretId) { + this.adminPasswordSecretId = adminPasswordSecretId; + this.__explicitlySet__.add("adminPasswordSecretId"); + return this; + } + /** + * The version of the vault secret. If no version is specified, the latest version will be + * used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + private Integer adminPasswordSecretVersionNumber; + + /** + * The version of the vault secret. If no version is specified, the latest version will be + * used. + * + * @param adminPasswordSecretVersionNumber the value to set + * @return this builder + */ + public Builder adminPasswordSecretVersionNumber(Integer adminPasswordSecretVersionNumber) { + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; + this.__explicitlySet__.add("adminPasswordSecretVersionNumber"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure @@ -171,8 +236,13 @@ public Builder transportType(DistributedDbTransportType transportType) { public CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails build() { CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails model = new CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails( + this.tdeWalletPassword, + this.tdeWalletPasswordSecretId, + this.tdeWalletPasswordSecretVersionNumber, this.vmClusterId, this.adminPassword, + this.adminPasswordSecretId, + this.adminPasswordSecretVersionNumber, this.vaultId, this.kmsKeyId, this.kmsKeyVersionId, @@ -186,12 +256,28 @@ public CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails model) { + if (model.wasPropertyExplicitlySet("tdeWalletPassword")) { + this.tdeWalletPassword(model.getTdeWalletPassword()); + } + if (model.wasPropertyExplicitlySet("tdeWalletPasswordSecretId")) { + this.tdeWalletPasswordSecretId(model.getTdeWalletPasswordSecretId()); + } + if (model.wasPropertyExplicitlySet("tdeWalletPasswordSecretVersionNumber")) { + this.tdeWalletPasswordSecretVersionNumber( + model.getTdeWalletPasswordSecretVersionNumber()); + } if (model.wasPropertyExplicitlySet("vmClusterId")) { this.vmClusterId(model.getVmClusterId()); } if (model.wasPropertyExplicitlySet("adminPassword")) { this.adminPassword(model.getAdminPassword()); } + if (model.wasPropertyExplicitlySet("adminPasswordSecretId")) { + this.adminPasswordSecretId(model.getAdminPasswordSecretId()); + } + if (model.wasPropertyExplicitlySet("adminPasswordSecretVersionNumber")) { + this.adminPasswordSecretVersionNumber(model.getAdminPasswordSecretVersionNumber()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -222,16 +308,23 @@ public Builder toBuilder() { @Deprecated public CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails( + String tdeWalletPassword, + String tdeWalletPasswordSecretId, + Integer tdeWalletPasswordSecretVersionNumber, String vmClusterId, String adminPassword, + String adminPasswordSecretId, + Integer adminPasswordSecretVersionNumber, String vaultId, String kmsKeyId, String kmsKeyVersionId, DistributedDbProtectionMode protectionMode, DistributedDbTransportType transportType) { - super(); + super(tdeWalletPassword, tdeWalletPasswordSecretId, tdeWalletPasswordSecretVersionNumber); this.vmClusterId = vmClusterId; this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; this.vaultId = vaultId; this.kmsKeyId = kmsKeyId; this.kmsKeyVersionId = kmsKeyVersionId; @@ -242,8 +335,18 @@ public CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails( @com.fasterxml.jackson.annotation.JsonCreator @Deprecated public CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails( + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + String tdeWalletPassword, + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretId") + String tdeWalletPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretVersionNumber") + Integer tdeWalletPasswordSecretVersionNumber, @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") String vmClusterId, @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") char[] adminPassword, + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + String adminPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + Integer adminPasswordSecretVersionNumber, @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") String kmsKeyId, @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") @@ -252,9 +355,11 @@ public CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails( DistributedDbProtectionMode protectionMode, @com.fasterxml.jackson.annotation.JsonProperty("transportType") DistributedDbTransportType transportType) { - super(); + super(tdeWalletPassword, tdeWalletPasswordSecretId, tdeWalletPasswordSecretVersionNumber); this.vmClusterId = vmClusterId; this.adminPassword = adminPassword; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; this.vaultId = vaultId; this.kmsKeyId = kmsKeyId; this.kmsKeyVersionId = kmsKeyVersionId; @@ -305,6 +410,38 @@ public char[] getAdminPassword__AsCharArray() { return adminPassword; } + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used in + * conjunction with adminPassword. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + private final String adminPasswordSecretId; + + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used in + * conjunction with adminPassword. + * + * @return the value + */ + public String getAdminPasswordSecretId() { + return adminPasswordSecretId; + } + + /** + * The version of the vault secret. If no version is specified, the latest version will be used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + private final Integer adminPasswordSecretVersionNumber; + + /** + * The version of the vault secret. If no version is specified, the latest version will be used. + * + * @return the value + */ + public Integer getAdminPasswordSecretVersionNumber() { + return adminPasswordSecretVersionNumber; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure @@ -407,6 +544,9 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); sb.append(", adminPassword=").append(""); + sb.append(", adminPasswordSecretId=").append(String.valueOf(this.adminPasswordSecretId)); + sb.append(", adminPasswordSecretVersionNumber=") + .append(String.valueOf(this.adminPasswordSecretVersionNumber)); sb.append(", vaultId=").append(String.valueOf(this.vaultId)); sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); @@ -429,6 +569,10 @@ public boolean equals(Object o) { (CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails) o; return java.util.Objects.equals(this.vmClusterId, other.vmClusterId) && java.util.Objects.equals(this.adminPassword, other.adminPassword) + && java.util.Objects.equals(this.adminPasswordSecretId, other.adminPasswordSecretId) + && java.util.Objects.equals( + this.adminPasswordSecretVersionNumber, + other.adminPasswordSecretVersionNumber) && java.util.Objects.equals(this.vaultId, other.vaultId) && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) @@ -445,6 +589,16 @@ public int hashCode() { result = (result * PRIME) + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); + result = + (result * PRIME) + + (this.adminPasswordSecretId == null + ? 43 + : this.adminPasswordSecretId.hashCode()); + result = + (result * PRIME) + + (this.adminPasswordSecretVersionNumber == null + ? 43 + : this.adminPasswordSecretVersionNumber.hashCode()); result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); result = diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails.java similarity index 71% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails.java index 950e665132c..e8ff88f0fb5 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Configuration for creating a distributed database catalog using an existing ExaDB-XS VM cluster. @@ -29,6 +29,33 @@ public final class CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails extends CreateDistributedDatabaseCatalogDatabaseDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + private String tdeWalletPassword; + + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = tdeWalletPassword; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretId") + private String tdeWalletPasswordSecretId; + + public Builder tdeWalletPasswordSecretId(String tdeWalletPasswordSecretId) { + this.tdeWalletPasswordSecretId = tdeWalletPasswordSecretId; + this.__explicitlySet__.add("tdeWalletPasswordSecretId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretVersionNumber") + private Integer tdeWalletPasswordSecretVersionNumber; + + public Builder tdeWalletPasswordSecretVersionNumber( + Integer tdeWalletPasswordSecretVersionNumber) { + this.tdeWalletPasswordSecretVersionNumber = tdeWalletPasswordSecretVersionNumber; + this.__explicitlySet__.add("tdeWalletPasswordSecretVersionNumber"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * VmCluster. @@ -69,6 +96,44 @@ public Builder adminPassword(String adminPassword) { this.__explicitlySet__.add("adminPassword"); return this; } + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used + * in conjunction with adminPassword. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + private String adminPasswordSecretId; + + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used + * in conjunction with adminPassword. + * + * @param adminPasswordSecretId the value to set + * @return this builder + */ + public Builder adminPasswordSecretId(String adminPasswordSecretId) { + this.adminPasswordSecretId = adminPasswordSecretId; + this.__explicitlySet__.add("adminPasswordSecretId"); + return this; + } + /** + * The version of the vault secret. If no version is specified, the latest version will be + * used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + private Integer adminPasswordSecretVersionNumber; + + /** + * The version of the vault secret. If no version is specified, the latest version will be + * used. + * + * @param adminPasswordSecretVersionNumber the value to set + * @return this builder + */ + public Builder adminPasswordSecretVersionNumber(Integer adminPasswordSecretVersionNumber) { + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; + this.__explicitlySet__.add("adminPasswordSecretVersionNumber"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure @@ -171,8 +236,13 @@ public Builder transportType(DistributedDbTransportType transportType) { public CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails build() { CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails model = new CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails( + this.tdeWalletPassword, + this.tdeWalletPasswordSecretId, + this.tdeWalletPasswordSecretVersionNumber, this.vmClusterId, this.adminPassword, + this.adminPasswordSecretId, + this.adminPasswordSecretVersionNumber, this.vaultId, this.kmsKeyId, this.kmsKeyVersionId, @@ -186,12 +256,28 @@ public CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails model) { + if (model.wasPropertyExplicitlySet("tdeWalletPassword")) { + this.tdeWalletPassword(model.getTdeWalletPassword()); + } + if (model.wasPropertyExplicitlySet("tdeWalletPasswordSecretId")) { + this.tdeWalletPasswordSecretId(model.getTdeWalletPasswordSecretId()); + } + if (model.wasPropertyExplicitlySet("tdeWalletPasswordSecretVersionNumber")) { + this.tdeWalletPasswordSecretVersionNumber( + model.getTdeWalletPasswordSecretVersionNumber()); + } if (model.wasPropertyExplicitlySet("vmClusterId")) { this.vmClusterId(model.getVmClusterId()); } if (model.wasPropertyExplicitlySet("adminPassword")) { this.adminPassword(model.getAdminPassword()); } + if (model.wasPropertyExplicitlySet("adminPasswordSecretId")) { + this.adminPasswordSecretId(model.getAdminPasswordSecretId()); + } + if (model.wasPropertyExplicitlySet("adminPasswordSecretVersionNumber")) { + this.adminPasswordSecretVersionNumber(model.getAdminPasswordSecretVersionNumber()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -222,16 +308,23 @@ public Builder toBuilder() { @Deprecated public CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails( + String tdeWalletPassword, + String tdeWalletPasswordSecretId, + Integer tdeWalletPasswordSecretVersionNumber, String vmClusterId, String adminPassword, + String adminPasswordSecretId, + Integer adminPasswordSecretVersionNumber, String vaultId, String kmsKeyId, String kmsKeyVersionId, DistributedDbProtectionMode protectionMode, DistributedDbTransportType transportType) { - super(); + super(tdeWalletPassword, tdeWalletPasswordSecretId, tdeWalletPasswordSecretVersionNumber); this.vmClusterId = vmClusterId; this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; this.vaultId = vaultId; this.kmsKeyId = kmsKeyId; this.kmsKeyVersionId = kmsKeyVersionId; @@ -242,8 +335,18 @@ public CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails( @com.fasterxml.jackson.annotation.JsonCreator @Deprecated public CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails( + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + String tdeWalletPassword, + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretId") + String tdeWalletPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretVersionNumber") + Integer tdeWalletPasswordSecretVersionNumber, @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") String vmClusterId, @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") char[] adminPassword, + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + String adminPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + Integer adminPasswordSecretVersionNumber, @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") String kmsKeyId, @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") @@ -252,9 +355,11 @@ public CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails( DistributedDbProtectionMode protectionMode, @com.fasterxml.jackson.annotation.JsonProperty("transportType") DistributedDbTransportType transportType) { - super(); + super(tdeWalletPassword, tdeWalletPasswordSecretId, tdeWalletPasswordSecretVersionNumber); this.vmClusterId = vmClusterId; this.adminPassword = adminPassword; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; this.vaultId = vaultId; this.kmsKeyId = kmsKeyId; this.kmsKeyVersionId = kmsKeyVersionId; @@ -305,6 +410,38 @@ public char[] getAdminPassword__AsCharArray() { return adminPassword; } + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used in + * conjunction with adminPassword. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + private final String adminPasswordSecretId; + + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used in + * conjunction with adminPassword. + * + * @return the value + */ + public String getAdminPasswordSecretId() { + return adminPasswordSecretId; + } + + /** + * The version of the vault secret. If no version is specified, the latest version will be used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + private final Integer adminPasswordSecretVersionNumber; + + /** + * The version of the vault secret. If no version is specified, the latest version will be used. + * + * @return the value + */ + public Integer getAdminPasswordSecretVersionNumber() { + return adminPasswordSecretVersionNumber; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure @@ -407,6 +544,9 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); sb.append(", adminPassword=").append(""); + sb.append(", adminPasswordSecretId=").append(String.valueOf(this.adminPasswordSecretId)); + sb.append(", adminPasswordSecretVersionNumber=") + .append(String.valueOf(this.adminPasswordSecretVersionNumber)); sb.append(", vaultId=").append(String.valueOf(this.vaultId)); sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); @@ -429,6 +569,10 @@ public boolean equals(Object o) { (CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails) o; return java.util.Objects.equals(this.vmClusterId, other.vmClusterId) && java.util.Objects.equals(this.adminPassword, other.adminPassword) + && java.util.Objects.equals(this.adminPasswordSecretId, other.adminPasswordSecretId) + && java.util.Objects.equals( + this.adminPasswordSecretVersionNumber, + other.adminPasswordSecretVersionNumber) && java.util.Objects.equals(this.vaultId, other.vaultId) && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) @@ -445,6 +589,16 @@ public int hashCode() { result = (result * PRIME) + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); + result = + (result * PRIME) + + (this.adminPasswordSecretId == null + ? 43 + : this.adminPasswordSecretId.hashCode()); + result = + (result * PRIME) + + (this.adminPasswordSecretVersionNumber == null + ? 43 + : this.adminPasswordSecretVersionNumber.hashCode()); result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); result = diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogDetails.java index 23374f3750a..2e2b4086044 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.distributeddatabase.model; /** - * Details of the Globally distributed database catalog.
+ * 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 @@ -15,28 +15,104 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source", - defaultImpl = CreateDistributedDatabaseCatalogDetails.class) -@com.fasterxml.jackson.annotation.JsonSubTypes({ - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.class, - name = "NEW_VAULT_AND_CLUSTER"), - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = CreateDistributedDatabaseCatalogWithExadbXsDetails.class, - name = "EXADB_XS") -}) +@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 class CreateDistributedDatabaseCatalogDetails +public final class CreateDistributedDatabaseCatalogDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({}) - protected CreateDistributedDatabaseCatalogDetails() { + @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 @@ -54,6 +130,8 @@ 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(); } @@ -68,55 +146,22 @@ public boolean equals(Object o) { } CreateDistributedDatabaseCatalogDetails other = (CreateDistributedDatabaseCatalogDetails) o; - return super.equals(other); + 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; } - - /** - * Type of Globally distributed database Shard or Catalog. Use NEW_VAULT_AND_CLUSTER for a - * Globally distributed database on Exascale with new vaults and clusters created from scratch. - * Use EXISTING_CLUSTER for a Globally distributed database on Exascale based on pre-existing - * clusters. EXADB_XS is currently the same as EXISTING_CLUSTER and will be deprecated after the - * deprecation cycle. - */ - public enum Source implements com.oracle.bmc.http.internal.BmcEnum { - ExadbXs("EXADB_XS"), - NewVaultAndCluster("NEW_VAULT_AND_CLUSTER"), - ExistingCluster("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/CreateDistributedDatabaseCatalogReplicaDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogReplicaDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogReplicaDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogReplicaDetails.java index fef6051c996..33176ab679c 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogReplicaDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogReplicaDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details required to create a catalog replica.
diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogWithExadbXsDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogWithExadbXsDetails.java deleted file mode 100644 index b8403c6d922..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogWithExadbXsDetails.java +++ /dev/null @@ -1,472 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.model; - -/** - * Globally distributed database catalog based on exadbxs.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateDistributedDatabaseCatalogWithExadbXsDetails.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 CreateDistributedDatabaseCatalogWithExadbXsDetails - extends CreateDistributedDatabaseCatalogDetails { - @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 cataog associated with Globally distributed database. */ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private String adminPassword; - - /** - * The admin password for the cataog associated with Globally distributed database. - * - * @param adminPassword the value to set - * @return this builder - */ - public Builder adminPassword(String adminPassword) { - this.adminPassword = adminPassword; - this.__explicitlySet__.add("adminPassword"); - return this; - } - /** - * This field is deprecated. This should not be used while creation of new distributed - * database. To set the peers on catalog of distributed database please use peerDetails. - */ - @com.fasterxml.jackson.annotation.JsonProperty("peerVmClusterIds") - private java.util.List peerVmClusterIds; - - /** - * This field is deprecated. This should not be used while creation of new distributed - * database. To set the peers on catalog of distributed database please use peerDetails. - * - * @param peerVmClusterIds the value to set - * @return this builder - */ - public Builder peerVmClusterIds(java.util.List peerVmClusterIds) { - this.peerVmClusterIds = peerVmClusterIds; - this.__explicitlySet__.add("peerVmClusterIds"); - return this; - } - /** - * The details required for creation of the peer for the ExadbXs infrastructure based - * catalog. - */ - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - private java.util.List peerDetails; - - /** - * The details required for creation of the peer for the ExadbXs infrastructure based - * catalog. - * - * @param peerDetails the value to set - * @return this builder - */ - public Builder peerDetails( - java.util.List peerDetails) { - this.peerDetails = peerDetails; - this.__explicitlySet__.add("peerDetails"); - return this; - } - /** - * The shard space name for the Globally distributed database. Shard space for existing - * shard cannot be changed, once shard is created. Shard space name shall be used while - * creation of new shards. - */ - @com.fasterxml.jackson.annotation.JsonProperty("shardSpace") - private String shardSpace; - - /** - * The shard space name for the Globally distributed database. Shard space for existing - * shard cannot be changed, once shard is created. Shard space name shall be used while - * creation of new shards. - * - * @param shardSpace the value to set - * @return this builder - */ - public Builder shardSpace(String shardSpace) { - this.shardSpace = shardSpace; - this.__explicitlySet__.add("shardSpace"); - 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 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 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 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 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; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateDistributedDatabaseCatalogWithExadbXsDetails build() { - CreateDistributedDatabaseCatalogWithExadbXsDetails model = - new CreateDistributedDatabaseCatalogWithExadbXsDetails( - this.vmClusterId, - this.adminPassword, - this.peerVmClusterIds, - this.peerDetails, - this.shardSpace, - this.vaultId, - this.kmsKeyId, - this.kmsKeyVersionId); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateDistributedDatabaseCatalogWithExadbXsDetails model) { - if (model.wasPropertyExplicitlySet("vmClusterId")) { - this.vmClusterId(model.getVmClusterId()); - } - if (model.wasPropertyExplicitlySet("adminPassword")) { - this.adminPassword(model.getAdminPassword()); - } - if (model.wasPropertyExplicitlySet("peerVmClusterIds")) { - this.peerVmClusterIds(model.getPeerVmClusterIds()); - } - if (model.wasPropertyExplicitlySet("peerDetails")) { - this.peerDetails(model.getPeerDetails()); - } - if (model.wasPropertyExplicitlySet("shardSpace")) { - this.shardSpace(model.getShardSpace()); - } - if (model.wasPropertyExplicitlySet("vaultId")) { - this.vaultId(model.getVaultId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyId")) { - this.kmsKeyId(model.getKmsKeyId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { - this.kmsKeyVersionId(model.getKmsKeyVersionId()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public CreateDistributedDatabaseCatalogWithExadbXsDetails( - String vmClusterId, - String adminPassword, - java.util.List peerVmClusterIds, - java.util.List peerDetails, - String shardSpace, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId) { - super(); - this.vmClusterId = vmClusterId; - this.adminPassword = adminPassword; - this.peerVmClusterIds = peerVmClusterIds; - this.peerDetails = peerDetails; - this.shardSpace = shardSpace; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - } - - /** - * 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 cataog associated with Globally distributed database. */ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final String adminPassword; - - /** - * The admin password for the cataog associated with Globally distributed database. - * - * @return the value - */ - public String getAdminPassword() { - return adminPassword; - } - - /** - * This field is deprecated. This should not be used while creation of new distributed database. - * To set the peers on catalog of distributed database please use peerDetails. - */ - @com.fasterxml.jackson.annotation.JsonProperty("peerVmClusterIds") - private final java.util.List peerVmClusterIds; - - /** - * This field is deprecated. This should not be used while creation of new distributed database. - * To set the peers on catalog of distributed database please use peerDetails. - * - * @return the value - */ - public java.util.List getPeerVmClusterIds() { - return peerVmClusterIds; - } - - /** - * The details required for creation of the peer for the ExadbXs infrastructure based catalog. - */ - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - private final java.util.List peerDetails; - - /** - * The details required for creation of the peer for the ExadbXs infrastructure based catalog. - * - * @return the value - */ - public java.util.List getPeerDetails() { - return peerDetails; - } - - /** - * The shard space name for the Globally distributed database. Shard space for existing shard - * cannot be changed, once shard is created. Shard space name shall be used while creation of - * new shards. - */ - @com.fasterxml.jackson.annotation.JsonProperty("shardSpace") - private final String shardSpace; - - /** - * The shard space name for the Globally distributed database. Shard space for existing shard - * cannot be changed, once shard is created. Shard space name shall be used while creation of - * new shards. - * - * @return the value - */ - public String getShardSpace() { - return shardSpace; - } - - /** - * 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 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 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 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 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; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedDatabaseCatalogWithExadbXsDetails("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); - sb.append(", adminPassword=").append(String.valueOf(this.adminPassword)); - sb.append(", peerVmClusterIds=").append(String.valueOf(this.peerVmClusterIds)); - sb.append(", peerDetails=").append(String.valueOf(this.peerDetails)); - sb.append(", shardSpace=").append(String.valueOf(this.shardSpace)); - 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(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateDistributedDatabaseCatalogWithExadbXsDetails)) { - return false; - } - - CreateDistributedDatabaseCatalogWithExadbXsDetails other = - (CreateDistributedDatabaseCatalogWithExadbXsDetails) o; - return java.util.Objects.equals(this.vmClusterId, other.vmClusterId) - && java.util.Objects.equals(this.adminPassword, other.adminPassword) - && java.util.Objects.equals(this.peerVmClusterIds, other.peerVmClusterIds) - && java.util.Objects.equals(this.peerDetails, other.peerDetails) - && java.util.Objects.equals(this.shardSpace, other.shardSpace) - && java.util.Objects.equals(this.vaultId, other.vaultId) - && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) - && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) - && 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.peerVmClusterIds == null ? 43 : this.peerVmClusterIds.hashCode()); - result = (result * PRIME) + (this.peerDetails == null ? 43 : this.peerDetails.hashCode()); - result = (result * PRIME) + (this.shardSpace == null ? 43 : this.shardSpace.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()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails.java similarity index 75% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails.java index e17958f1101..223eaedee1b 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Configuration for creating a distributed database catalog on a new ExaDB-XS VM cluster.
@@ -28,6 +28,33 @@ public final class CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails extends CreateDistributedDatabaseCatalogDatabaseDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + private String tdeWalletPassword; + + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = tdeWalletPassword; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretId") + private String tdeWalletPasswordSecretId; + + public Builder tdeWalletPasswordSecretId(String tdeWalletPasswordSecretId) { + this.tdeWalletPasswordSecretId = tdeWalletPasswordSecretId; + this.__explicitlySet__.add("tdeWalletPasswordSecretId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretVersionNumber") + private Integer tdeWalletPasswordSecretVersionNumber; + + public Builder tdeWalletPasswordSecretVersionNumber( + Integer tdeWalletPasswordSecretVersionNumber) { + this.tdeWalletPasswordSecretVersionNumber = tdeWalletPasswordSecretVersionNumber; + this.__explicitlySet__.add("tdeWalletPasswordSecretVersionNumber"); + return this; + } /** The admin password for the catalog associated with Globally distributed database. */ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") private char[] adminPassword; @@ -49,6 +76,44 @@ public Builder adminPassword(String adminPassword) { this.__explicitlySet__.add("adminPassword"); return this; } + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used + * in conjunction with adminPassword. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + private String adminPasswordSecretId; + + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used + * in conjunction with adminPassword. + * + * @param adminPasswordSecretId the value to set + * @return this builder + */ + public Builder adminPasswordSecretId(String adminPasswordSecretId) { + this.adminPasswordSecretId = adminPasswordSecretId; + this.__explicitlySet__.add("adminPasswordSecretId"); + return this; + } + /** + * The version of the vault secret. If no version is specified, the latest version will be + * used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + private Integer adminPasswordSecretVersionNumber; + + /** + * The version of the vault secret. If no version is specified, the latest version will be + * used. + * + * @param adminPasswordSecretVersionNumber the value to set + * @return this builder + */ + public Builder adminPasswordSecretVersionNumber(Integer adminPasswordSecretVersionNumber) { + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; + this.__explicitlySet__.add("adminPasswordSecretVersionNumber"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure @@ -198,7 +263,12 @@ public Builder transportType(DistributedDbTransportType transportType) { public CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails build() { CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails model = new CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails( + this.tdeWalletPassword, + this.tdeWalletPasswordSecretId, + this.tdeWalletPasswordSecretVersionNumber, this.adminPassword, + this.adminPasswordSecretId, + this.adminPasswordSecretVersionNumber, this.vaultId, this.kmsKeyId, this.kmsKeyVersionId, @@ -215,9 +285,25 @@ public CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails model) { + if (model.wasPropertyExplicitlySet("tdeWalletPassword")) { + this.tdeWalletPassword(model.getTdeWalletPassword()); + } + if (model.wasPropertyExplicitlySet("tdeWalletPasswordSecretId")) { + this.tdeWalletPasswordSecretId(model.getTdeWalletPasswordSecretId()); + } + if (model.wasPropertyExplicitlySet("tdeWalletPasswordSecretVersionNumber")) { + this.tdeWalletPasswordSecretVersionNumber( + model.getTdeWalletPasswordSecretVersionNumber()); + } if (model.wasPropertyExplicitlySet("adminPassword")) { this.adminPassword(model.getAdminPassword()); } + if (model.wasPropertyExplicitlySet("adminPasswordSecretId")) { + this.adminPasswordSecretId(model.getAdminPasswordSecretId()); + } + if (model.wasPropertyExplicitlySet("adminPasswordSecretVersionNumber")) { + this.adminPasswordSecretVersionNumber(model.getAdminPasswordSecretVersionNumber()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -257,7 +343,12 @@ public Builder toBuilder() { @Deprecated public CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails( + String tdeWalletPassword, + String tdeWalletPasswordSecretId, + Integer tdeWalletPasswordSecretVersionNumber, String adminPassword, + String adminPasswordSecretId, + Integer adminPasswordSecretVersionNumber, String vaultId, String kmsKeyId, String kmsKeyVersionId, @@ -266,8 +357,10 @@ public CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails( VmClusterDetails vmClusterDetails, DistributedDbProtectionMode protectionMode, DistributedDbTransportType transportType) { - super(); + super(tdeWalletPassword, tdeWalletPasswordSecretId, tdeWalletPasswordSecretVersionNumber); this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; this.vaultId = vaultId; this.kmsKeyId = kmsKeyId; this.kmsKeyVersionId = kmsKeyVersionId; @@ -281,7 +374,17 @@ public CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails( @com.fasterxml.jackson.annotation.JsonCreator @Deprecated public CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails( + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + String tdeWalletPassword, + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretId") + String tdeWalletPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretVersionNumber") + Integer tdeWalletPasswordSecretVersionNumber, @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") char[] adminPassword, + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + String adminPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + Integer adminPasswordSecretVersionNumber, @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") String kmsKeyId, @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") @@ -296,8 +399,10 @@ public CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails( DistributedDbProtectionMode protectionMode, @com.fasterxml.jackson.annotation.JsonProperty("transportType") DistributedDbTransportType transportType) { - super(); + super(tdeWalletPassword, tdeWalletPasswordSecretId, tdeWalletPasswordSecretVersionNumber); this.adminPassword = adminPassword; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; this.vaultId = vaultId; this.kmsKeyId = kmsKeyId; this.kmsKeyVersionId = kmsKeyVersionId; @@ -334,6 +439,38 @@ public char[] getAdminPassword__AsCharArray() { return adminPassword; } + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used in + * conjunction with adminPassword. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + private final String adminPasswordSecretId; + + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used in + * conjunction with adminPassword. + * + * @return the value + */ + public String getAdminPasswordSecretId() { + return adminPasswordSecretId; + } + + /** + * The version of the vault secret. If no version is specified, the latest version will be used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + private final Integer adminPasswordSecretVersionNumber; + + /** + * The version of the vault secret. If no version is specified, the latest version will be used. + * + * @return the value + */ + public Integer getAdminPasswordSecretVersionNumber() { + return adminPasswordSecretVersionNumber; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure @@ -474,6 +611,9 @@ public String toString(boolean includeByteArrayContents) { sb.append("CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", adminPassword=").append(""); + sb.append(", adminPasswordSecretId=").append(String.valueOf(this.adminPasswordSecretId)); + sb.append(", adminPasswordSecretVersionNumber=") + .append(String.valueOf(this.adminPasswordSecretVersionNumber)); sb.append(", vaultId=").append(String.valueOf(this.vaultId)); sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); @@ -499,6 +639,10 @@ public boolean equals(Object o) { CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails other = (CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails) o; return java.util.Objects.equals(this.adminPassword, other.adminPassword) + && java.util.Objects.equals(this.adminPasswordSecretId, other.adminPasswordSecretId) + && java.util.Objects.equals( + this.adminPasswordSecretVersionNumber, + other.adminPasswordSecretVersionNumber) && java.util.Objects.equals(this.vaultId, other.vaultId) && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) @@ -518,6 +662,16 @@ public int hashCode() { result = (result * PRIME) + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); + result = + (result * PRIME) + + (this.adminPasswordSecretId == null + ? 43 + : this.adminPasswordSecretId.hashCode()); + result = + (result * PRIME) + + (this.adminPasswordSecretVersionNumber == null + ? 43 + : this.adminPasswordSecretVersionNumber.hashCode()); result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); result = diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.java index 2646806706d..49ccf943b13 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.distributeddatabase.model; /** - * Globally distributed database catalog based on ExaDbXs.
+ * 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 @@ -15,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.Builder.class) @@ -26,9 +27,36 @@ @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails - extends CreateDistributedDatabaseCatalogDetails { + extends CreateDistributedDatabaseCatalogDatabaseDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + private String tdeWalletPassword; + + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = tdeWalletPassword; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretId") + private String tdeWalletPasswordSecretId; + + public Builder tdeWalletPasswordSecretId(String tdeWalletPasswordSecretId) { + this.tdeWalletPasswordSecretId = tdeWalletPasswordSecretId; + this.__explicitlySet__.add("tdeWalletPasswordSecretId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretVersionNumber") + private Integer tdeWalletPasswordSecretVersionNumber; + + public Builder tdeWalletPasswordSecretVersionNumber( + Integer tdeWalletPasswordSecretVersionNumber) { + this.tdeWalletPasswordSecretVersionNumber = tdeWalletPasswordSecretVersionNumber; + this.__explicitlySet__.add("tdeWalletPasswordSecretVersionNumber"); + return this; + } /** The admin password for the catalog associated with Globally distributed database. */ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") private char[] adminPassword; @@ -51,44 +79,41 @@ public Builder adminPassword(String adminPassword) { return this; } /** - * The details required for creation of the peer for the ExadbXs infrastructure based - * catalog. + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used + * in conjunction with adminPassword. */ - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - private java.util.List peerDetails; + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + private String adminPasswordSecretId; /** - * The details required for creation of the peer for the ExadbXs infrastructure based - * catalog. + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used + * in conjunction with adminPassword. * - * @param peerDetails the value to set + * @param adminPasswordSecretId the value to set * @return this builder */ - public Builder peerDetails( - java.util.List peerDetails) { - this.peerDetails = peerDetails; - this.__explicitlySet__.add("peerDetails"); + public Builder adminPasswordSecretId(String adminPasswordSecretId) { + this.adminPasswordSecretId = adminPasswordSecretId; + this.__explicitlySet__.add("adminPasswordSecretId"); return this; } /** - * The shard space name for the Globally distributed database. Shard space for existing - * shard cannot be changed, once shard is created. Shard space name shall be used while - * creation of new shards. + * The version of the vault secret. If no version is specified, the latest version will be + * used. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardSpace") - private String shardSpace; + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + private Integer adminPasswordSecretVersionNumber; /** - * The shard space name for the Globally distributed database. Shard space for existing - * shard cannot be changed, once shard is created. Shard space name shall be used while - * creation of new shards. + * The version of the vault secret. If no version is specified, the latest version will be + * used. * - * @param shardSpace the value to set + * @param adminPasswordSecretVersionNumber the value to set * @return this builder */ - public Builder shardSpace(String shardSpace) { - this.shardSpace = shardSpace; - this.__explicitlySet__.add("shardSpace"); + public Builder adminPasswordSecretVersionNumber(Integer adminPasswordSecretVersionNumber) { + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; + this.__explicitlySet__.add("adminPasswordSecretVersionNumber"); return this; } /** @@ -115,15 +140,17 @@ public Builder vaultId(String vaultId) { return this; } /** - * The OCID of the key container that is used as the master encryption key in database - * transparent data encryption (TDE) operations. + * 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 of the key container that is used as the master encryption key in database - * transparent data encryption (TDE) operations. + * 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 @@ -134,15 +161,17 @@ public Builder kmsKeyId(String kmsKeyId) { return this; } /** - * The OCID of the key container version that is used in database transparent data - * encryption (TDE) operations KMS Key can have multiple key versions. + * 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 of the key container version that is used in database transparent data - * encryption (TDE) operations KMS Key can have multiple key versions. + * 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 @@ -153,14 +182,14 @@ public Builder kmsKeyVersionId(String kmsKeyVersionId) { return this; } /** - * The name of the availability domain that the distributed database shard will be located + * 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 shard will be located + * The name of the availability domain that the distributed database catalog will be located * in. * * @param availabilityDomain the value to set @@ -189,6 +218,36 @@ public Builder vmClusterDetails(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(); @@ -196,15 +255,20 @@ public Builder vmClusterDetails(VmClusterDetails vmClusterDetails) { public CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails build() { CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails model = new CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails( + this.tdeWalletPassword, + this.tdeWalletPasswordSecretId, + this.tdeWalletPasswordSecretVersionNumber, this.adminPassword, - this.peerDetails, - this.shardSpace, + this.adminPasswordSecretId, + this.adminPasswordSecretVersionNumber, this.vaultId, this.kmsKeyId, this.kmsKeyVersionId, this.availabilityDomain, this.dbStorageVaultDetails, - this.vmClusterDetails); + this.vmClusterDetails, + this.protectionMode, + this.transportType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -214,14 +278,24 @@ public CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails buil @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy( CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails model) { + if (model.wasPropertyExplicitlySet("tdeWalletPassword")) { + this.tdeWalletPassword(model.getTdeWalletPassword()); + } + if (model.wasPropertyExplicitlySet("tdeWalletPasswordSecretId")) { + this.tdeWalletPasswordSecretId(model.getTdeWalletPasswordSecretId()); + } + if (model.wasPropertyExplicitlySet("tdeWalletPasswordSecretVersionNumber")) { + this.tdeWalletPasswordSecretVersionNumber( + model.getTdeWalletPasswordSecretVersionNumber()); + } if (model.wasPropertyExplicitlySet("adminPassword")) { this.adminPassword(model.getAdminPassword()); } - if (model.wasPropertyExplicitlySet("peerDetails")) { - this.peerDetails(model.getPeerDetails()); + if (model.wasPropertyExplicitlySet("adminPasswordSecretId")) { + this.adminPasswordSecretId(model.getAdminPasswordSecretId()); } - if (model.wasPropertyExplicitlySet("shardSpace")) { - this.shardSpace(model.getShardSpace()); + if (model.wasPropertyExplicitlySet("adminPasswordSecretVersionNumber")) { + this.adminPasswordSecretVersionNumber(model.getAdminPasswordSecretVersionNumber()); } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); @@ -241,6 +315,12 @@ public Builder copy( 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; } } @@ -256,35 +336,48 @@ public Builder toBuilder() { @Deprecated public CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails( + String tdeWalletPassword, + String tdeWalletPasswordSecretId, + Integer tdeWalletPasswordSecretVersionNumber, String adminPassword, - java.util.List peerDetails, - String shardSpace, + String adminPasswordSecretId, + Integer adminPasswordSecretVersionNumber, String vaultId, String kmsKeyId, String kmsKeyVersionId, String availabilityDomain, DbStorageVaultDetails dbStorageVaultDetails, - VmClusterDetails vmClusterDetails) { - super(); + VmClusterDetails vmClusterDetails, + DistributedDbProtectionMode protectionMode, + DistributedDbTransportType transportType) { + super(tdeWalletPassword, tdeWalletPasswordSecretId, tdeWalletPasswordSecretVersionNumber); this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; - this.peerDetails = peerDetails; - this.shardSpace = shardSpace; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; 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("tdeWalletPassword") + String tdeWalletPassword, + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretId") + String tdeWalletPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretVersionNumber") + Integer tdeWalletPasswordSecretVersionNumber, @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") char[] adminPassword, - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - java.util.List - peerDetails, - @com.fasterxml.jackson.annotation.JsonProperty("shardSpace") String shardSpace, + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + String adminPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + Integer adminPasswordSecretVersionNumber, @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") String kmsKeyId, @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") @@ -294,17 +387,23 @@ public CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails( @com.fasterxml.jackson.annotation.JsonProperty("dbStorageVaultDetails") DbStorageVaultDetails dbStorageVaultDetails, @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") - VmClusterDetails vmClusterDetails) { - super(); + VmClusterDetails vmClusterDetails, + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + DistributedDbProtectionMode protectionMode, + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + DistributedDbTransportType transportType) { + super(tdeWalletPassword, tdeWalletPasswordSecretId, tdeWalletPasswordSecretVersionNumber); this.adminPassword = adminPassword; - this.peerDetails = peerDetails; - this.shardSpace = shardSpace; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; 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. */ @@ -334,37 +433,35 @@ public char[] getAdminPassword__AsCharArray() { } /** - * The details required for creation of the peer for the ExadbXs infrastructure based catalog. + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used in + * conjunction with adminPassword. */ - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - private final java.util.List peerDetails; + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + private final String adminPasswordSecretId; /** - * The details required for creation of the peer for the ExadbXs infrastructure based catalog. + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used in + * conjunction with adminPassword. * * @return the value */ - public java.util.List getPeerDetails() { - return peerDetails; + public String getAdminPasswordSecretId() { + return adminPasswordSecretId; } /** - * The shard space name for the Globally distributed database. Shard space for existing shard - * cannot be changed, once shard is created. Shard space name shall be used while creation of - * new shards. + * The version of the vault secret. If no version is specified, the latest version will be used. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardSpace") - private final String shardSpace; + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + private final Integer adminPasswordSecretVersionNumber; /** - * The shard space name for the Globally distributed database. Shard space for existing shard - * cannot be changed, once shard is created. Shard space name shall be used while creation of - * new shards. + * The version of the vault secret. If no version is specified, the latest version will be used. * * @return the value */ - public String getShardSpace() { - return shardSpace; + public Integer getAdminPasswordSecretVersionNumber() { + return adminPasswordSecretVersionNumber; } /** @@ -389,15 +486,17 @@ public String getVaultId() { } /** - * The OCID of the key container that is used as the master encryption key in database - * transparent data encryption (TDE) operations. + * 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 of the key container that is used as the master encryption key in database - * transparent data encryption (TDE) operations. + * 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 */ @@ -406,15 +505,17 @@ public String getKmsKeyId() { } /** - * The OCID of the key container version that is used in database transparent data encryption - * (TDE) operations KMS Key can have multiple key versions. + * 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 of the key container version that is used in database transparent data encryption - * (TDE) operations KMS Key can have multiple key versions. + * 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 */ @@ -423,13 +524,13 @@ public String getKmsKeyVersionId() { } /** - * The name of the availability domain that the distributed database shard will be located in. + * 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 shard will be located in. + * The name of the availability domain that the distributed database catalog will be located in. * * @return the value */ @@ -451,6 +552,32 @@ 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); @@ -467,14 +594,17 @@ public String toString(boolean includeByteArrayContents) { sb.append("CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", adminPassword=").append(""); - sb.append(", peerDetails=").append(String.valueOf(this.peerDetails)); - sb.append(", shardSpace=").append(String.valueOf(this.shardSpace)); + sb.append(", adminPasswordSecretId=").append(String.valueOf(this.adminPasswordSecretId)); + sb.append(", adminPasswordSecretVersionNumber=") + .append(String.valueOf(this.adminPasswordSecretVersionNumber)); 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(); } @@ -491,14 +621,18 @@ public boolean equals(Object o) { CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails other = (CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails) o; return java.util.Objects.equals(this.adminPassword, other.adminPassword) - && java.util.Objects.equals(this.peerDetails, other.peerDetails) - && java.util.Objects.equals(this.shardSpace, other.shardSpace) + && java.util.Objects.equals(this.adminPasswordSecretId, other.adminPasswordSecretId) + && java.util.Objects.equals( + this.adminPasswordSecretVersionNumber, + other.adminPasswordSecretVersionNumber) && 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); } @@ -509,8 +643,16 @@ public int hashCode() { result = (result * PRIME) + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); - result = (result * PRIME) + (this.peerDetails == null ? 43 : this.peerDetails.hashCode()); - result = (result * PRIME) + (this.shardSpace == null ? 43 : this.shardSpace.hashCode()); + result = + (result * PRIME) + + (this.adminPasswordSecretId == null + ? 43 + : this.adminPasswordSecretId.hashCode()); + result = + (result * PRIME) + + (this.adminPasswordSecretVersionNumber == null + ? 43 + : this.adminPasswordSecretVersionNumber.hashCode()); result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); result = @@ -529,6 +671,12 @@ public int 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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseDetails.java index d5aff93e9d0..e1354d0e345 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateDistributedDatabaseDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -29,23 +29,25 @@ public final class CreateDistributedDatabaseDetails "databaseVersion", "prefix", "privateEndpointIds", - "shardingMethod", + "notificationTopicIds", "characterSet", "ncharacterSet", - "chunks", "listenerPort", "listenerPortTls", "onsPortLocal", "onsPortRemote", "scanListenerPort", - "replicationMethod", - "replicationFactor", - "replicationUnit", - "dbDeploymentType", - "shardDetails", + "systemChunkCount", + "systemRaftReplicationUnitCount", + "compositeRaftShardSpaces", + "compositeDataGuardShardSpaces", + "systemRaftClusters", + "systemDataGuardDatabases", + "userShardSpaces", "catalogDetails", "gsmSshPublicKey", "dbBackupConfig", + "vcnNsgIds", "freeformTags", "definedTags" }) @@ -55,23 +57,25 @@ public CreateDistributedDatabaseDetails( String databaseVersion, String prefix, java.util.List privateEndpointIds, - ShardingMethod shardingMethod, + java.util.List notificationTopicIds, String characterSet, String ncharacterSet, - Integer chunks, Integer listenerPort, Integer listenerPortTls, Integer onsPortLocal, Integer onsPortRemote, Integer scanListenerPort, - ReplicationMethod replicationMethod, - Integer replicationFactor, - Integer replicationUnit, - DbDeploymentType dbDeploymentType, - java.util.List shardDetails, + 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(); @@ -80,23 +84,25 @@ public CreateDistributedDatabaseDetails( this.databaseVersion = databaseVersion; this.prefix = prefix; this.privateEndpointIds = privateEndpointIds; - this.shardingMethod = shardingMethod; + this.notificationTopicIds = notificationTopicIds; this.characterSet = characterSet; this.ncharacterSet = ncharacterSet; - this.chunks = chunks; this.listenerPort = listenerPort; this.listenerPortTls = listenerPortTls; this.onsPortLocal = onsPortLocal; this.onsPortRemote = onsPortRemote; this.scanListenerPort = scanListenerPort; - this.replicationMethod = replicationMethod; - this.replicationFactor = replicationFactor; - this.replicationUnit = replicationUnit; - this.dbDeploymentType = dbDeploymentType; - this.shardDetails = shardDetails; + 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; } @@ -178,7 +184,7 @@ public Builder prefix(String 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. + * private endpoints associated with the Globally distributed database. */ @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointIds") private java.util.List privateEndpointIds; @@ -186,7 +192,7 @@ public Builder prefix(String 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. + * private endpoints associated with the Globally distributed database. * * @param privateEndpointIds the value to set * @return this builder @@ -196,19 +202,25 @@ public Builder privateEndpointIds(java.util.List privateEndpointIds) { this.__explicitlySet__.add("privateEndpointIds"); return this; } - /** Sharding Methods for the Globally distributed database. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardingMethod") - private ShardingMethod shardingMethod; + /** + * 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; /** - * Sharding Methods for the Globally distributed database. + * 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 shardingMethod the value to set + * @param notificationTopicIds the value to set * @return this builder */ - public Builder shardingMethod(ShardingMethod shardingMethod) { - this.shardingMethod = shardingMethod; - this.__explicitlySet__.add("shardingMethod"); + public Builder notificationTopicIds(java.util.List notificationTopicIds) { + this.notificationTopicIds = notificationTopicIds; + this.__explicitlySet__.add("notificationTopicIds"); return this; } /** The character set for the database. */ @@ -241,29 +253,6 @@ public Builder ncharacterSet(String ncharacterSet) { this.__explicitlySet__.add("ncharacterSet"); return this; } - /** - * Number of chunks in a shardspace. The value of chunks must be greater than 2 times the - * size of the largest shardgroup in any shardspace. Chunks is required to be provided for - * distributed databases being created with SYSTEM shardingMethod. For USER shardingMethod, - * chunks should not be set in create payload. - */ - @com.fasterxml.jackson.annotation.JsonProperty("chunks") - private Integer chunks; - - /** - * Number of chunks in a shardspace. The value of chunks must be greater than 2 times the - * size of the largest shardgroup in any shardspace. Chunks is required to be provided for - * distributed databases being created with SYSTEM shardingMethod. For USER shardingMethod, - * chunks should not be set in create payload. - * - * @param chunks the value to set - * @return this builder - */ - public Builder chunks(Integer chunks) { - this.chunks = chunks; - this.__explicitlySet__.add("chunks"); - 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 @@ -288,9 +277,9 @@ public Builder listenerPort(Integer 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 BASE_DB and - * EXADB_XS based distributed databases, tls is not supported hence the listenerPortTls is - * not needed to be provided in create payload. + * 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; @@ -298,9 +287,9 @@ public Builder listenerPort(Integer 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 BASE_DB and - * EXADB_XS based distributed databases, tls is not supported hence the listenerPortTls is - * not needed to be provided in create payload. + * 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 @@ -353,21 +342,17 @@ public Builder onsPortRemote(Integer onsPortRemote) { return this; } /** - * The TCP Single Client Access Name (SCAN) port for clusters created for Globally - * distributed database. The scanListenerPort number should only be provided if shard and - * catalog have source type NEW_VAULT_AND_CLUSTER. If shard and catalog have source type - * NEW_VAULT_AND_CLUSTER and scanListenerPort is not provided then the scanListenerPort will - * default to value 1521. + * 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; /** - * The TCP Single Client Access Name (SCAN) port for clusters created for Globally - * distributed database. The scanListenerPort number should only be provided if shard and - * catalog have source type NEW_VAULT_AND_CLUSTER. If shard and catalog have source type - * NEW_VAULT_AND_CLUSTER and scanListenerPort is not provided then the scanListenerPort will - * default to value 1521. + * 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 @@ -377,108 +362,118 @@ public Builder scanListenerPort(Integer scanListenerPort) { this.__explicitlySet__.add("scanListenerPort"); 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; + /** Count of chunks associated with system raft clusters or system data guard databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") + private Integer systemChunkCount; /** - * 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. + * Count of chunks associated with system raft clusters or system data guard databases. * - * @param replicationMethod the value to set + * @param systemChunkCount the value to set * @return this builder */ - public Builder replicationMethod(ReplicationMethod replicationMethod) { - this.replicationMethod = replicationMethod; - this.__explicitlySet__.add("replicationMethod"); + public Builder systemChunkCount(Integer systemChunkCount) { + this.systemChunkCount = systemChunkCount; + this.__explicitlySet__.add("systemChunkCount"); return this; } - /** - * The Replication factor for RAFT replication based Globally distributed database. - * Currently supported values are 3, 5 and 7. - */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private Integer replicationFactor; + /** Number of replication units associated with system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftReplicationUnitCount") + private Integer systemRaftReplicationUnitCount; /** - * The Replication factor for RAFT replication based Globally distributed database. - * Currently supported values are 3, 5 and 7. + * Number of replication units associated with system raft clusters. * - * @param replicationFactor the value to set + * @param systemRaftReplicationUnitCount the value to set * @return this builder */ - public Builder replicationFactor(Integer replicationFactor) { - this.replicationFactor = replicationFactor; - this.__explicitlySet__.add("replicationFactor"); + 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; + /** - * The replication unit count for RAFT based distributed database. For RAFT replication - * based Globally distributed database, the value should be at least twice the number of - * shards. + * Collection of composite raft shards. + * + * @param compositeRaftShardSpaces the value to set + * @return this builder */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationUnit") - private Integer replicationUnit; + 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; /** - * The replication unit count for RAFT based distributed database. For RAFT replication - * based Globally distributed database, the value should be at least twice the number of - * shards. + * Collection of composite data guard shard spaces. * - * @param replicationUnit the value to set + * @param compositeDataGuardShardSpaces the value to set * @return this builder */ - public Builder replicationUnit(Integer replicationUnit) { - this.replicationUnit = replicationUnit; - this.__explicitlySet__.add("replicationUnit"); + public Builder compositeDataGuardShardSpaces( + java.util.List + compositeDataGuardShardSpaces) { + this.compositeDataGuardShardSpaces = compositeDataGuardShardSpaces; + this.__explicitlySet__.add("compositeDataGuardShardSpaces"); return this; } - /** The distributed database deployment type. */ - @com.fasterxml.jackson.annotation.JsonProperty("dbDeploymentType") - private DbDeploymentType dbDeploymentType; + /** Collection of system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftClusters") + private java.util.List systemRaftClusters; /** - * The distributed database deployment type. + * Collection of system raft clusters. * - * @param dbDeploymentType the value to set + * @param systemRaftClusters the value to set * @return this builder */ - public Builder dbDeploymentType(DbDeploymentType dbDeploymentType) { - this.dbDeploymentType = dbDeploymentType; - this.__explicitlySet__.add("dbDeploymentType"); + public Builder systemRaftClusters( + java.util.List systemRaftClusters) { + this.systemRaftClusters = systemRaftClusters; + this.__explicitlySet__.add("systemRaftClusters"); return this; } - /** Collection of shards for the Globally distributed database. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardDetails") - private java.util.List shardDetails; + + @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 shards for the Globally distributed database. + * Collection of user defined shard spaces. * - * @param shardDetails the value to set + * @param userShardSpaces the value to set * @return this builder */ - public Builder shardDetails( - java.util.List shardDetails) { - this.shardDetails = shardDetails; - this.__explicitlySet__.add("shardDetails"); + public Builder userShardSpaces( + java.util.List userShardSpaces) { + this.userShardSpaces = userShardSpaces; + this.__explicitlySet__.add("userShardSpaces"); return this; } - /** Collection of catalog for the Globally distributed database. */ + /** Collection of catalog details for the Globally distributed database. */ @com.fasterxml.jackson.annotation.JsonProperty("catalogDetails") private java.util.List catalogDetails; /** - * Collection of catalog for the Globally distributed database. + * Collection of catalog details for the Globally distributed database. * * @param catalogDetails the value to set * @return this builder @@ -513,6 +508,25 @@ public Builder dbBackupConfig(DistributedDbBackupConfig 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"}} @@ -564,23 +578,25 @@ public CreateDistributedDatabaseDetails build() { this.databaseVersion, this.prefix, this.privateEndpointIds, - this.shardingMethod, + this.notificationTopicIds, this.characterSet, this.ncharacterSet, - this.chunks, this.listenerPort, this.listenerPortTls, this.onsPortLocal, this.onsPortRemote, this.scanListenerPort, - this.replicationMethod, - this.replicationFactor, - this.replicationUnit, - this.dbDeploymentType, - this.shardDetails, + 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__) { @@ -606,8 +622,8 @@ public Builder copy(CreateDistributedDatabaseDetails model) { if (model.wasPropertyExplicitlySet("privateEndpointIds")) { this.privateEndpointIds(model.getPrivateEndpointIds()); } - if (model.wasPropertyExplicitlySet("shardingMethod")) { - this.shardingMethod(model.getShardingMethod()); + if (model.wasPropertyExplicitlySet("notificationTopicIds")) { + this.notificationTopicIds(model.getNotificationTopicIds()); } if (model.wasPropertyExplicitlySet("characterSet")) { this.characterSet(model.getCharacterSet()); @@ -615,9 +631,6 @@ public Builder copy(CreateDistributedDatabaseDetails model) { if (model.wasPropertyExplicitlySet("ncharacterSet")) { this.ncharacterSet(model.getNcharacterSet()); } - if (model.wasPropertyExplicitlySet("chunks")) { - this.chunks(model.getChunks()); - } if (model.wasPropertyExplicitlySet("listenerPort")) { this.listenerPort(model.getListenerPort()); } @@ -633,20 +646,26 @@ public Builder copy(CreateDistributedDatabaseDetails model) { if (model.wasPropertyExplicitlySet("scanListenerPort")) { this.scanListenerPort(model.getScanListenerPort()); } - if (model.wasPropertyExplicitlySet("replicationMethod")) { - this.replicationMethod(model.getReplicationMethod()); + if (model.wasPropertyExplicitlySet("systemChunkCount")) { + this.systemChunkCount(model.getSystemChunkCount()); + } + if (model.wasPropertyExplicitlySet("systemRaftReplicationUnitCount")) { + this.systemRaftReplicationUnitCount(model.getSystemRaftReplicationUnitCount()); } - if (model.wasPropertyExplicitlySet("replicationFactor")) { - this.replicationFactor(model.getReplicationFactor()); + if (model.wasPropertyExplicitlySet("compositeRaftShardSpaces")) { + this.compositeRaftShardSpaces(model.getCompositeRaftShardSpaces()); } - if (model.wasPropertyExplicitlySet("replicationUnit")) { - this.replicationUnit(model.getReplicationUnit()); + if (model.wasPropertyExplicitlySet("compositeDataGuardShardSpaces")) { + this.compositeDataGuardShardSpaces(model.getCompositeDataGuardShardSpaces()); } - if (model.wasPropertyExplicitlySet("dbDeploymentType")) { - this.dbDeploymentType(model.getDbDeploymentType()); + if (model.wasPropertyExplicitlySet("systemRaftClusters")) { + this.systemRaftClusters(model.getSystemRaftClusters()); } - if (model.wasPropertyExplicitlySet("shardDetails")) { - this.shardDetails(model.getShardDetails()); + if (model.wasPropertyExplicitlySet("systemDataGuardDatabases")) { + this.systemDataGuardDatabases(model.getSystemDataGuardDatabases()); + } + if (model.wasPropertyExplicitlySet("userShardSpaces")) { + this.userShardSpaces(model.getUserShardSpaces()); } if (model.wasPropertyExplicitlySet("catalogDetails")) { this.catalogDetails(model.getCatalogDetails()); @@ -657,6 +676,9 @@ public Builder copy(CreateDistributedDatabaseDetails model) { if (model.wasPropertyExplicitlySet("dbBackupConfig")) { this.dbBackupConfig(model.getDbBackupConfig()); } + if (model.wasPropertyExplicitlySet("vcnNsgIds")) { + this.vcnNsgIds(model.getVcnNsgIds()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -739,7 +761,7 @@ public String getPrefix() { /** * The collection of * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private - * endpoint associated with Globally distributed autonomous database. + * endpoints associated with the Globally distributed database. */ @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointIds") private final java.util.List privateEndpointIds; @@ -747,7 +769,7 @@ public String getPrefix() { /** * The collection of * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private - * endpoint associated with Globally distributed autonomous database. + * endpoints associated with the Globally distributed database. * * @return the value */ @@ -755,50 +777,23 @@ public java.util.List getPrivateEndpointIds() { return privateEndpointIds; } - /** Sharding Methods for the Globally distributed database. */ - public enum ShardingMethod implements com.oracle.bmc.http.internal.BmcEnum { - User("USER"), - System("SYSTEM"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (ShardingMethod v : ShardingMethod.values()) { - 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); - } - throw new IllegalArgumentException("Invalid ShardingMethod: " + key); - } - }; - /** Sharding Methods for the Globally distributed database. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardingMethod") - private final ShardingMethod shardingMethod; + /** + * 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; /** - * Sharding Methods for the Globally distributed database. + * 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 ShardingMethod getShardingMethod() { - return shardingMethod; + public java.util.List getNotificationTopicIds() { + return notificationTopicIds; } /** The character set for the database. */ @@ -827,27 +822,6 @@ public String getNcharacterSet() { return ncharacterSet; } - /** - * Number of chunks in a shardspace. The value of chunks must be greater than 2 times the size - * of the largest shardgroup in any shardspace. Chunks is required to be provided for - * distributed databases being created with SYSTEM shardingMethod. For USER shardingMethod, - * chunks should not be set in create payload. - */ - @com.fasterxml.jackson.annotation.JsonProperty("chunks") - private final Integer chunks; - - /** - * Number of chunks in a shardspace. The value of chunks must be greater than 2 times the size - * of the largest shardgroup in any shardspace. Chunks is required to be provided for - * distributed databases being created with SYSTEM shardingMethod. For USER shardingMethod, - * chunks should not be set in create payload. - * - * @return the value - */ - public Integer getChunks() { - return chunks; - } - /** * 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 @@ -870,9 +844,9 @@ public Integer getListenerPort() { /** * 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 BASE_DB and EXADB_XS - * based distributed databases, tls is not supported hence the listenerPortTls is not needed to - * be provided in create payload. + * 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; @@ -880,9 +854,9 @@ public Integer getListenerPort() { /** * 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 BASE_DB and EXADB_XS - * based distributed databases, tls is not supported hence the listenerPortTls is not needed to - * be provided in create payload. + * 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 */ @@ -929,21 +903,17 @@ public Integer getOnsPortRemote() { } /** - * The TCP Single Client Access Name (SCAN) port for clusters created for Globally distributed - * database. The scanListenerPort number should only be provided if shard and catalog have - * source type NEW_VAULT_AND_CLUSTER. If shard and catalog have source type - * NEW_VAULT_AND_CLUSTER and scanListenerPort is not provided then the scanListenerPort will - * default to value 1521. + * 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; /** - * The TCP Single Client Access Name (SCAN) port for clusters created for Globally distributed - * database. The scanListenerPort number should only be provided if shard and catalog have - * source type NEW_VAULT_AND_CLUSTER. If shard and catalog have source type - * NEW_VAULT_AND_CLUSTER and scanListenerPort is not provided then the scanListenerPort will - * default to value 1521. + * 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 */ @@ -951,166 +921,99 @@ public Integer getScanListenerPort() { return scanListenerPort; } - /** - * 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"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (ReplicationMethod v : ReplicationMethod.values()) { - map.put(v.getValue(), v); - } - } - - ReplicationMethod(String value) { - this.value = value; - } + /** Count of chunks associated with system raft clusters or system data guard databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") + private final Integer systemChunkCount; - @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); - } - throw new IllegalArgumentException("Invalid ReplicationMethod: " + key); - } - }; /** - * 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. + * Count of chunks associated with system raft clusters or system data guard databases. + * + * @return the value */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") - private final ReplicationMethod replicationMethod; + public Integer getSystemChunkCount() { + return systemChunkCount; + } + + /** Number of replication units associated with system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftReplicationUnitCount") + private final Integer systemRaftReplicationUnitCount; /** - * 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. + * Number of replication units associated with system raft clusters. * * @return the value */ - public ReplicationMethod getReplicationMethod() { - return replicationMethod; + public Integer getSystemRaftReplicationUnitCount() { + return systemRaftReplicationUnitCount; } - /** - * The Replication factor for RAFT replication based Globally distributed database. Currently - * supported values are 3, 5 and 7. - */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private final Integer replicationFactor; + /** Collection of composite raft shards. */ + @com.fasterxml.jackson.annotation.JsonProperty("compositeRaftShardSpaces") + private final java.util.List compositeRaftShardSpaces; /** - * The Replication factor for RAFT replication based Globally distributed database. Currently - * supported values are 3, 5 and 7. + * Collection of composite raft shards. * * @return the value */ - public Integer getReplicationFactor() { - return replicationFactor; + public java.util.List getCompositeRaftShardSpaces() { + return compositeRaftShardSpaces; } - /** - * The replication unit count for RAFT based distributed database. For RAFT replication based - * Globally distributed database, the value should be at least twice the number of shards. - */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationUnit") - private final Integer replicationUnit; + /** Collection of composite data guard shard spaces. */ + @com.fasterxml.jackson.annotation.JsonProperty("compositeDataGuardShardSpaces") + private final java.util.List + compositeDataGuardShardSpaces; /** - * The replication unit count for RAFT based distributed database. For RAFT replication based - * Globally distributed database, the value should be at least twice the number of shards. + * Collection of composite data guard shard spaces. * * @return the value */ - public Integer getReplicationUnit() { - return replicationUnit; + public java.util.List + getCompositeDataGuardShardSpaces() { + return compositeDataGuardShardSpaces; } - /** The distributed database deployment type. */ - public enum DbDeploymentType implements com.oracle.bmc.http.internal.BmcEnum { - ExadbXs("EXADB_XS"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (DbDeploymentType v : DbDeploymentType.values()) { - 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); - } - throw new IllegalArgumentException("Invalid DbDeploymentType: " + key); - } - }; - /** The distributed database deployment type. */ - @com.fasterxml.jackson.annotation.JsonProperty("dbDeploymentType") - private final DbDeploymentType dbDeploymentType; + /** Collection of system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftClusters") + private final java.util.List systemRaftClusters; /** - * The distributed database deployment type. + * Collection of system raft clusters. * * @return the value */ - public DbDeploymentType getDbDeploymentType() { - return dbDeploymentType; + public java.util.List getSystemRaftClusters() { + return systemRaftClusters; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemDataGuardDatabases") + private final CreateSystemDataGuardDatabaseDetails systemDataGuardDatabases; + + public CreateSystemDataGuardDatabaseDetails getSystemDataGuardDatabases() { + return systemDataGuardDatabases; } - /** Collection of shards for the Globally distributed database. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardDetails") - private final java.util.List shardDetails; + /** Collection of user defined shard spaces. */ + @com.fasterxml.jackson.annotation.JsonProperty("userShardSpaces") + private final java.util.List userShardSpaces; /** - * Collection of shards for the Globally distributed database. + * Collection of user defined shard spaces. * * @return the value */ - public java.util.List getShardDetails() { - return shardDetails; + public java.util.List getUserShardSpaces() { + return userShardSpaces; } - /** Collection of catalog for the Globally distributed database. */ + /** Collection of catalog details for the Globally distributed database. */ @com.fasterxml.jackson.annotation.JsonProperty("catalogDetails") private final java.util.List catalogDetails; /** - * Collection of catalog for the Globally distributed database. + * Collection of catalog details for the Globally distributed database. * * @return the value */ @@ -1138,6 +1041,23 @@ 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"}} @@ -1192,23 +1112,29 @@ public String toString(boolean includeByteArrayContents) { 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(", shardingMethod=").append(String.valueOf(this.shardingMethod)); + 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(", chunks=").append(String.valueOf(this.chunks)); 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(", replicationMethod=").append(String.valueOf(this.replicationMethod)); - sb.append(", replicationFactor=").append(String.valueOf(this.replicationFactor)); - sb.append(", replicationUnit=").append(String.valueOf(this.replicationUnit)); - sb.append(", dbDeploymentType=").append(String.valueOf(this.dbDeploymentType)); - sb.append(", shardDetails=").append(String.valueOf(this.shardDetails)); + 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(")"); @@ -1230,23 +1156,29 @@ public boolean equals(Object o) { && 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.shardingMethod, other.shardingMethod) + && 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.chunks, other.chunks) && 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.replicationMethod, other.replicationMethod) - && java.util.Objects.equals(this.replicationFactor, other.replicationFactor) - && java.util.Objects.equals(this.replicationUnit, other.replicationUnit) - && java.util.Objects.equals(this.dbDeploymentType, other.dbDeploymentType) - && java.util.Objects.equals(this.shardDetails, other.shardDetails) + && 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); @@ -1271,12 +1203,13 @@ public int hashCode() { : this.privateEndpointIds.hashCode()); result = (result * PRIME) - + (this.shardingMethod == null ? 43 : this.shardingMethod.hashCode()); + + (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.chunks == null ? 43 : this.chunks.hashCode()); result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); result = (result * PRIME) @@ -1290,17 +1223,35 @@ public int hashCode() { + (this.scanListenerPort == null ? 43 : this.scanListenerPort.hashCode()); result = (result * PRIME) - + (this.replicationMethod == null ? 43 : this.replicationMethod.hashCode()); + + (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.replicationFactor == null ? 43 : this.replicationFactor.hashCode()); + + (this.compositeDataGuardShardSpaces == null + ? 43 + : this.compositeDataGuardShardSpaces.hashCode()); result = (result * PRIME) - + (this.replicationUnit == null ? 43 : this.replicationUnit.hashCode()); + + (this.systemRaftClusters == null + ? 43 + : this.systemRaftClusters.hashCode()); + result = + (result * PRIME) + + (this.systemDataGuardDatabases == null + ? 43 + : this.systemDataGuardDatabases.hashCode()); result = (result * PRIME) - + (this.dbDeploymentType == null ? 43 : this.dbDeploymentType.hashCode()); - result = (result * PRIME) + (this.shardDetails == null ? 43 : this.shardDetails.hashCode()); + + (this.userShardSpaces == null ? 43 : this.userShardSpaces.hashCode()); result = (result * PRIME) + (this.catalogDetails == null ? 43 : this.catalogDetails.hashCode()); @@ -1310,6 +1261,7 @@ public int 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(); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabasePrivateEndpointDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabasePrivateEndpointDetails.java index 125668ca9d3..b4379f49462 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabasePrivateEndpointDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabasePrivateEndpointDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateDistributedDatabasePrivateEndpointDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -28,7 +28,7 @@ public final class CreateDistributedDatabasePrivateEndpointDetails "subnetId", "displayName", "description", - "nsgIds", + "vcnNsgIds", "freeformTags", "definedTags" }) @@ -37,7 +37,7 @@ public CreateDistributedDatabasePrivateEndpointDetails( String subnetId, String displayName, String description, - java.util.List nsgIds, + java.util.List vcnNsgIds, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -45,7 +45,7 @@ public CreateDistributedDatabasePrivateEndpointDetails( this.subnetId = subnetId; this.displayName = displayName; this.description = description; - this.nsgIds = nsgIds; + this.vcnNsgIds = vcnNsgIds; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -112,19 +112,23 @@ public Builder description(String description) { this.__explicitlySet__.add("description"); return this; } - /** The OCIDs of the network security groups that the private endpoint belongs to. */ - @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") - private java.util.List nsgIds; + /** + * 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 OCIDs of the network security groups that the private endpoint belongs to. + * The list of network security group (NSG) details to be associated with the private + * endpoint. * - * @param nsgIds the value to set + * @param vcnNsgIds the value to set * @return this builder */ - public Builder nsgIds(java.util.List nsgIds) { - this.nsgIds = nsgIds; - this.__explicitlySet__.add("nsgIds"); + public Builder vcnNsgIds(java.util.List vcnNsgIds) { + this.vcnNsgIds = vcnNsgIds; + this.__explicitlySet__.add("vcnNsgIds"); return this; } /** @@ -177,7 +181,7 @@ public CreateDistributedDatabasePrivateEndpointDetails build() { this.subnetId, this.displayName, this.description, - this.nsgIds, + this.vcnNsgIds, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -200,8 +204,8 @@ public Builder copy(CreateDistributedDatabasePrivateEndpointDetails model) { if (model.wasPropertyExplicitlySet("description")) { this.description(model.getDescription()); } - if (model.wasPropertyExplicitlySet("nsgIds")) { - this.nsgIds(model.getNsgIds()); + if (model.wasPropertyExplicitlySet("vcnNsgIds")) { + this.vcnNsgIds(model.getVcnNsgIds()); } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); @@ -274,17 +278,19 @@ public String getDescription() { return description; } - /** The OCIDs of the network security groups that the private endpoint belongs to. */ - @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") - private final java.util.List nsgIds; + /** + * 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 OCIDs of the network security groups that the private endpoint belongs to. + * The list of network security group (NSG) details to be associated with the private endpoint. * * @return the value */ - public java.util.List getNsgIds() { - return nsgIds; + public java.util.List getVcnNsgIds() { + return vcnNsgIds; } /** @@ -340,7 +346,7 @@ public String toString(boolean includeByteArrayContents) { 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(", nsgIds=").append(String.valueOf(this.nsgIds)); + 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(")"); @@ -362,7 +368,7 @@ public boolean equals(Object o) { && 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.nsgIds, other.nsgIds) + && 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); @@ -378,7 +384,7 @@ public int 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.nsgIds == null ? 43 : this.nsgIds.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(); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardDatabaseDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardDatabaseDetails.java new file mode 100644 index 00000000000..0873520e024 --- /dev/null +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardDatabaseDetails.java @@ -0,0 +1,248 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.distributeddatabase.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 + protected CreateDistributedDatabaseShardDatabaseDetails( + String tdeWalletPassword, + String tdeWalletPasswordSecretId, + Integer tdeWalletPasswordSecretVersionNumber) { + super(); + this.tdeWalletPassword = tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + this.tdeWalletPasswordSecretId = tdeWalletPasswordSecretId; + this.tdeWalletPasswordSecretVersionNumber = tdeWalletPasswordSecretVersionNumber; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({ + "tdeWalletPassword", + "tdeWalletPasswordSecretId", + "tdeWalletPasswordSecretVersionNumber" + }) + protected CreateDistributedDatabaseShardDatabaseDetails( + char[] tdeWalletPassword, + String tdeWalletPasswordSecretId, + Integer tdeWalletPasswordSecretVersionNumber) { + super(); + this.tdeWalletPassword = tdeWalletPassword; + this.tdeWalletPasswordSecretId = tdeWalletPasswordSecretId; + this.tdeWalletPasswordSecretVersionNumber = tdeWalletPasswordSecretVersionNumber; + } + + /** + * The password to open the TDE wallet. The password must be 9 to 255 characters and contain at + * least two uppercase letters, two lowercase letters, two numeric characters, and two special + * characters. The allowed special characters are _, \\#, and -. + */ + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + private final char[] tdeWalletPassword; + + /** + * The password to open the TDE wallet. The password must be 9 to 255 characters and contain at + * least two uppercase letters, two lowercase letters, two numeric characters, and two special + * characters. The allowed special characters are _, \\#, and -. + * + * @return the value + * @deprecated Use getTdeWalletPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getTdeWalletPassword() { + return tdeWalletPassword != null ? new String(tdeWalletPassword) : null; + } + + /** + * The password to open the TDE wallet. The password must be 9 to 255 characters and contain at + * least two uppercase letters, two lowercase letters, two numeric characters, and two special + * characters. The allowed special characters are _, \\#, and -. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + public char[] getTdeWalletPassword__AsCharArray() { + return tdeWalletPassword; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OCI + * vault secret. This cannot be used in conjunction with tdeWalletPassword. + */ + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretId") + private final String tdeWalletPasswordSecretId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OCI + * vault secret. This cannot be used in conjunction with tdeWalletPassword. + * + * @return the value + */ + public String getTdeWalletPasswordSecretId() { + return tdeWalletPasswordSecretId; + } + + /** + * The version of the vault secret. If no version is specified, the latest version will be used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretVersionNumber") + private final Integer tdeWalletPasswordSecretVersionNumber; + + /** + * The version of the vault secret. If no version is specified, the latest version will be used. + * + * @return the value + */ + public Integer getTdeWalletPasswordSecretVersionNumber() { + return tdeWalletPasswordSecretVersionNumber; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include 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("tdeWalletPassword=").append(""); + sb.append(", tdeWalletPasswordSecretId=") + .append(String.valueOf(this.tdeWalletPasswordSecretId)); + sb.append(", tdeWalletPasswordSecretVersionNumber=") + .append(String.valueOf(this.tdeWalletPasswordSecretVersionNumber)); + 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 java.util.Objects.equals(this.tdeWalletPassword, other.tdeWalletPassword) + && java.util.Objects.equals( + this.tdeWalletPasswordSecretId, other.tdeWalletPasswordSecretId) + && java.util.Objects.equals( + this.tdeWalletPasswordSecretVersionNumber, + other.tdeWalletPasswordSecretVersionNumber) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.tdeWalletPassword == null ? 43 : this.tdeWalletPassword.hashCode()); + result = + (result * PRIME) + + (this.tdeWalletPasswordSecretId == null + ? 43 + : this.tdeWalletPasswordSecretId.hashCode()); + result = + (result * PRIME) + + (this.tdeWalletPasswordSecretVersionNumber == null + ? 43 + : this.tdeWalletPasswordSecretVersionNumber.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"), + ; + + 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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardDatabaseWithDbHomeDetails.java similarity index 71% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithDbHomeDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardDatabaseWithDbHomeDetails.java index db344fd4019..74a8a63acca 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithDbHomeDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardDatabaseWithDbHomeDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Configuration for creating a distributed database shard using a pre-existing Database Home.
@@ -28,6 +28,33 @@ public final class CreateDistributedDatabaseShardDatabaseWithDbHomeDetails extends CreateDistributedDatabaseShardDatabaseDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + private String tdeWalletPassword; + + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = tdeWalletPassword; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretId") + private String tdeWalletPasswordSecretId; + + public Builder tdeWalletPasswordSecretId(String tdeWalletPasswordSecretId) { + this.tdeWalletPasswordSecretId = tdeWalletPasswordSecretId; + this.__explicitlySet__.add("tdeWalletPasswordSecretId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretVersionNumber") + private Integer tdeWalletPasswordSecretVersionNumber; + + public Builder tdeWalletPasswordSecretVersionNumber( + Integer tdeWalletPasswordSecretVersionNumber) { + this.tdeWalletPasswordSecretVersionNumber = tdeWalletPasswordSecretVersionNumber; + this.__explicitlySet__.add("tdeWalletPasswordSecretVersionNumber"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Database Home. @@ -68,6 +95,44 @@ public Builder adminPassword(String adminPassword) { this.__explicitlySet__.add("adminPassword"); return this; } + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used + * in conjunction with adminPassword. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + private String adminPasswordSecretId; + + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used + * in conjunction with adminPassword. + * + * @param adminPasswordSecretId the value to set + * @return this builder + */ + public Builder adminPasswordSecretId(String adminPasswordSecretId) { + this.adminPasswordSecretId = adminPasswordSecretId; + this.__explicitlySet__.add("adminPasswordSecretId"); + return this; + } + /** + * The version of the vault secret. If no version is specified, the latest version will be + * used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + private Integer adminPasswordSecretVersionNumber; + + /** + * The version of the vault secret. If no version is specified, the latest version will be + * used. + * + * @param adminPasswordSecretVersionNumber the value to set + * @return this builder + */ + public Builder adminPasswordSecretVersionNumber(Integer adminPasswordSecretVersionNumber) { + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; + this.__explicitlySet__.add("adminPasswordSecretVersionNumber"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure @@ -170,8 +235,13 @@ public Builder transportType(DistributedDbTransportType transportType) { public CreateDistributedDatabaseShardDatabaseWithDbHomeDetails build() { CreateDistributedDatabaseShardDatabaseWithDbHomeDetails model = new CreateDistributedDatabaseShardDatabaseWithDbHomeDetails( + this.tdeWalletPassword, + this.tdeWalletPasswordSecretId, + this.tdeWalletPasswordSecretVersionNumber, this.dbHomeId, this.adminPassword, + this.adminPasswordSecretId, + this.adminPasswordSecretVersionNumber, this.vaultId, this.kmsKeyId, this.kmsKeyVersionId, @@ -185,12 +255,28 @@ public CreateDistributedDatabaseShardDatabaseWithDbHomeDetails build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(CreateDistributedDatabaseShardDatabaseWithDbHomeDetails model) { + if (model.wasPropertyExplicitlySet("tdeWalletPassword")) { + this.tdeWalletPassword(model.getTdeWalletPassword()); + } + if (model.wasPropertyExplicitlySet("tdeWalletPasswordSecretId")) { + this.tdeWalletPasswordSecretId(model.getTdeWalletPasswordSecretId()); + } + if (model.wasPropertyExplicitlySet("tdeWalletPasswordSecretVersionNumber")) { + this.tdeWalletPasswordSecretVersionNumber( + model.getTdeWalletPasswordSecretVersionNumber()); + } if (model.wasPropertyExplicitlySet("dbHomeId")) { this.dbHomeId(model.getDbHomeId()); } if (model.wasPropertyExplicitlySet("adminPassword")) { this.adminPassword(model.getAdminPassword()); } + if (model.wasPropertyExplicitlySet("adminPasswordSecretId")) { + this.adminPasswordSecretId(model.getAdminPasswordSecretId()); + } + if (model.wasPropertyExplicitlySet("adminPasswordSecretVersionNumber")) { + this.adminPasswordSecretVersionNumber(model.getAdminPasswordSecretVersionNumber()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -221,16 +307,23 @@ public Builder toBuilder() { @Deprecated public CreateDistributedDatabaseShardDatabaseWithDbHomeDetails( + String tdeWalletPassword, + String tdeWalletPasswordSecretId, + Integer tdeWalletPasswordSecretVersionNumber, String dbHomeId, String adminPassword, + String adminPasswordSecretId, + Integer adminPasswordSecretVersionNumber, String vaultId, String kmsKeyId, String kmsKeyVersionId, DistributedDbProtectionMode protectionMode, DistributedDbTransportType transportType) { - super(); + super(tdeWalletPassword, tdeWalletPasswordSecretId, tdeWalletPasswordSecretVersionNumber); this.dbHomeId = dbHomeId; this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; this.vaultId = vaultId; this.kmsKeyId = kmsKeyId; this.kmsKeyVersionId = kmsKeyVersionId; @@ -241,8 +334,18 @@ public CreateDistributedDatabaseShardDatabaseWithDbHomeDetails( @com.fasterxml.jackson.annotation.JsonCreator @Deprecated public CreateDistributedDatabaseShardDatabaseWithDbHomeDetails( + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + String tdeWalletPassword, + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretId") + String tdeWalletPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretVersionNumber") + Integer tdeWalletPasswordSecretVersionNumber, @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") String dbHomeId, @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") char[] adminPassword, + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + String adminPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + Integer adminPasswordSecretVersionNumber, @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") String kmsKeyId, @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") @@ -251,9 +354,11 @@ public CreateDistributedDatabaseShardDatabaseWithDbHomeDetails( DistributedDbProtectionMode protectionMode, @com.fasterxml.jackson.annotation.JsonProperty("transportType") DistributedDbTransportType transportType) { - super(); + super(tdeWalletPassword, tdeWalletPasswordSecretId, tdeWalletPasswordSecretVersionNumber); this.dbHomeId = dbHomeId; this.adminPassword = adminPassword; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; this.vaultId = vaultId; this.kmsKeyId = kmsKeyId; this.kmsKeyVersionId = kmsKeyVersionId; @@ -304,6 +409,38 @@ public char[] getAdminPassword__AsCharArray() { return adminPassword; } + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used in + * conjunction with adminPassword. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + private final String adminPasswordSecretId; + + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used in + * conjunction with adminPassword. + * + * @return the value + */ + public String getAdminPasswordSecretId() { + return adminPasswordSecretId; + } + + /** + * The version of the vault secret. If no version is specified, the latest version will be used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + private final Integer adminPasswordSecretVersionNumber; + + /** + * The version of the vault secret. If no version is specified, the latest version will be used. + * + * @return the value + */ + public Integer getAdminPasswordSecretVersionNumber() { + return adminPasswordSecretVersionNumber; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure @@ -406,6 +543,9 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); sb.append(", adminPassword=").append(""); + sb.append(", adminPasswordSecretId=").append(String.valueOf(this.adminPasswordSecretId)); + sb.append(", adminPasswordSecretVersionNumber=") + .append(String.valueOf(this.adminPasswordSecretVersionNumber)); sb.append(", vaultId=").append(String.valueOf(this.vaultId)); sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); @@ -428,6 +568,10 @@ public boolean equals(Object o) { (CreateDistributedDatabaseShardDatabaseWithDbHomeDetails) o; return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) && java.util.Objects.equals(this.adminPassword, other.adminPassword) + && java.util.Objects.equals(this.adminPasswordSecretId, other.adminPasswordSecretId) + && java.util.Objects.equals( + this.adminPasswordSecretVersionNumber, + other.adminPasswordSecretVersionNumber) && java.util.Objects.equals(this.vaultId, other.vaultId) && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) @@ -444,6 +588,16 @@ public int hashCode() { result = (result * PRIME) + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); + result = + (result * PRIME) + + (this.adminPasswordSecretId == null + ? 43 + : this.adminPasswordSecretId.hashCode()); + result = + (result * PRIME) + + (this.adminPasswordSecretVersionNumber == null + ? 43 + : this.adminPasswordSecretVersionNumber.hashCode()); result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); result = diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithExadbXdDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardDatabaseWithExadbXdDetails.java similarity index 71% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithExadbXdDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardDatabaseWithExadbXdDetails.java index fc9c7778640..a591f13d2fb 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithExadbXdDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardDatabaseWithExadbXdDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Configuration for creating a distributed database shard using an existing ExaDB-D VM cluster. @@ -29,6 +29,33 @@ public final class CreateDistributedDatabaseShardDatabaseWithExadbXdDetails extends CreateDistributedDatabaseShardDatabaseDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + private String tdeWalletPassword; + + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = tdeWalletPassword; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretId") + private String tdeWalletPasswordSecretId; + + public Builder tdeWalletPasswordSecretId(String tdeWalletPasswordSecretId) { + this.tdeWalletPasswordSecretId = tdeWalletPasswordSecretId; + this.__explicitlySet__.add("tdeWalletPasswordSecretId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretVersionNumber") + private Integer tdeWalletPasswordSecretVersionNumber; + + public Builder tdeWalletPasswordSecretVersionNumber( + Integer tdeWalletPasswordSecretVersionNumber) { + this.tdeWalletPasswordSecretVersionNumber = tdeWalletPasswordSecretVersionNumber; + this.__explicitlySet__.add("tdeWalletPasswordSecretVersionNumber"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Cloud VM Cluster. @@ -69,6 +96,44 @@ public Builder adminPassword(String adminPassword) { this.__explicitlySet__.add("adminPassword"); return this; } + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used + * in conjunction with adminPassword. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + private String adminPasswordSecretId; + + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used + * in conjunction with adminPassword. + * + * @param adminPasswordSecretId the value to set + * @return this builder + */ + public Builder adminPasswordSecretId(String adminPasswordSecretId) { + this.adminPasswordSecretId = adminPasswordSecretId; + this.__explicitlySet__.add("adminPasswordSecretId"); + return this; + } + /** + * The version of the vault secret. If no version is specified, the latest version will be + * used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + private Integer adminPasswordSecretVersionNumber; + + /** + * The version of the vault secret. If no version is specified, the latest version will be + * used. + * + * @param adminPasswordSecretVersionNumber the value to set + * @return this builder + */ + public Builder adminPasswordSecretVersionNumber(Integer adminPasswordSecretVersionNumber) { + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; + this.__explicitlySet__.add("adminPasswordSecretVersionNumber"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure @@ -171,8 +236,13 @@ public Builder transportType(DistributedDbTransportType transportType) { public CreateDistributedDatabaseShardDatabaseWithExadbXdDetails build() { CreateDistributedDatabaseShardDatabaseWithExadbXdDetails model = new CreateDistributedDatabaseShardDatabaseWithExadbXdDetails( + this.tdeWalletPassword, + this.tdeWalletPasswordSecretId, + this.tdeWalletPasswordSecretVersionNumber, this.vmClusterId, this.adminPassword, + this.adminPasswordSecretId, + this.adminPasswordSecretVersionNumber, this.vaultId, this.kmsKeyId, this.kmsKeyVersionId, @@ -186,12 +256,28 @@ public CreateDistributedDatabaseShardDatabaseWithExadbXdDetails build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(CreateDistributedDatabaseShardDatabaseWithExadbXdDetails model) { + if (model.wasPropertyExplicitlySet("tdeWalletPassword")) { + this.tdeWalletPassword(model.getTdeWalletPassword()); + } + if (model.wasPropertyExplicitlySet("tdeWalletPasswordSecretId")) { + this.tdeWalletPasswordSecretId(model.getTdeWalletPasswordSecretId()); + } + if (model.wasPropertyExplicitlySet("tdeWalletPasswordSecretVersionNumber")) { + this.tdeWalletPasswordSecretVersionNumber( + model.getTdeWalletPasswordSecretVersionNumber()); + } if (model.wasPropertyExplicitlySet("vmClusterId")) { this.vmClusterId(model.getVmClusterId()); } if (model.wasPropertyExplicitlySet("adminPassword")) { this.adminPassword(model.getAdminPassword()); } + if (model.wasPropertyExplicitlySet("adminPasswordSecretId")) { + this.adminPasswordSecretId(model.getAdminPasswordSecretId()); + } + if (model.wasPropertyExplicitlySet("adminPasswordSecretVersionNumber")) { + this.adminPasswordSecretVersionNumber(model.getAdminPasswordSecretVersionNumber()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -222,16 +308,23 @@ public Builder toBuilder() { @Deprecated public CreateDistributedDatabaseShardDatabaseWithExadbXdDetails( + String tdeWalletPassword, + String tdeWalletPasswordSecretId, + Integer tdeWalletPasswordSecretVersionNumber, String vmClusterId, String adminPassword, + String adminPasswordSecretId, + Integer adminPasswordSecretVersionNumber, String vaultId, String kmsKeyId, String kmsKeyVersionId, DistributedDbProtectionMode protectionMode, DistributedDbTransportType transportType) { - super(); + super(tdeWalletPassword, tdeWalletPasswordSecretId, tdeWalletPasswordSecretVersionNumber); this.vmClusterId = vmClusterId; this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; this.vaultId = vaultId; this.kmsKeyId = kmsKeyId; this.kmsKeyVersionId = kmsKeyVersionId; @@ -242,8 +335,18 @@ public CreateDistributedDatabaseShardDatabaseWithExadbXdDetails( @com.fasterxml.jackson.annotation.JsonCreator @Deprecated public CreateDistributedDatabaseShardDatabaseWithExadbXdDetails( + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + String tdeWalletPassword, + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretId") + String tdeWalletPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretVersionNumber") + Integer tdeWalletPasswordSecretVersionNumber, @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") String vmClusterId, @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") char[] adminPassword, + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + String adminPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + Integer adminPasswordSecretVersionNumber, @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") String kmsKeyId, @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") @@ -252,9 +355,11 @@ public CreateDistributedDatabaseShardDatabaseWithExadbXdDetails( DistributedDbProtectionMode protectionMode, @com.fasterxml.jackson.annotation.JsonProperty("transportType") DistributedDbTransportType transportType) { - super(); + super(tdeWalletPassword, tdeWalletPasswordSecretId, tdeWalletPasswordSecretVersionNumber); this.vmClusterId = vmClusterId; this.adminPassword = adminPassword; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; this.vaultId = vaultId; this.kmsKeyId = kmsKeyId; this.kmsKeyVersionId = kmsKeyVersionId; @@ -305,6 +410,38 @@ public char[] getAdminPassword__AsCharArray() { return adminPassword; } + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used in + * conjunction with adminPassword. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + private final String adminPasswordSecretId; + + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used in + * conjunction with adminPassword. + * + * @return the value + */ + public String getAdminPasswordSecretId() { + return adminPasswordSecretId; + } + + /** + * The version of the vault secret. If no version is specified, the latest version will be used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + private final Integer adminPasswordSecretVersionNumber; + + /** + * The version of the vault secret. If no version is specified, the latest version will be used. + * + * @return the value + */ + public Integer getAdminPasswordSecretVersionNumber() { + return adminPasswordSecretVersionNumber; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure @@ -407,6 +544,9 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); sb.append(", adminPassword=").append(""); + sb.append(", adminPasswordSecretId=").append(String.valueOf(this.adminPasswordSecretId)); + sb.append(", adminPasswordSecretVersionNumber=") + .append(String.valueOf(this.adminPasswordSecretVersionNumber)); sb.append(", vaultId=").append(String.valueOf(this.vaultId)); sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); @@ -429,6 +569,10 @@ public boolean equals(Object o) { (CreateDistributedDatabaseShardDatabaseWithExadbXdDetails) o; return java.util.Objects.equals(this.vmClusterId, other.vmClusterId) && java.util.Objects.equals(this.adminPassword, other.adminPassword) + && java.util.Objects.equals(this.adminPasswordSecretId, other.adminPasswordSecretId) + && java.util.Objects.equals( + this.adminPasswordSecretVersionNumber, + other.adminPasswordSecretVersionNumber) && java.util.Objects.equals(this.vaultId, other.vaultId) && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) @@ -445,6 +589,16 @@ public int hashCode() { result = (result * PRIME) + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); + result = + (result * PRIME) + + (this.adminPasswordSecretId == null + ? 43 + : this.adminPasswordSecretId.hashCode()); + result = + (result * PRIME) + + (this.adminPasswordSecretVersionNumber == null + ? 43 + : this.adminPasswordSecretVersionNumber.hashCode()); result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); result = diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithExadbXsDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardDatabaseWithExadbXsDetails.java similarity index 71% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithExadbXsDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardDatabaseWithExadbXsDetails.java index 4a63a5920ca..cc5a46fae65 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithExadbXsDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardDatabaseWithExadbXsDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Configuration for creating a distributed database shard using an existing ExaDB-XS VM cluster. @@ -29,6 +29,33 @@ public final class CreateDistributedDatabaseShardDatabaseWithExadbXsDetails extends CreateDistributedDatabaseShardDatabaseDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + private String tdeWalletPassword; + + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = tdeWalletPassword; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretId") + private String tdeWalletPasswordSecretId; + + public Builder tdeWalletPasswordSecretId(String tdeWalletPasswordSecretId) { + this.tdeWalletPasswordSecretId = tdeWalletPasswordSecretId; + this.__explicitlySet__.add("tdeWalletPasswordSecretId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretVersionNumber") + private Integer tdeWalletPasswordSecretVersionNumber; + + public Builder tdeWalletPasswordSecretVersionNumber( + Integer tdeWalletPasswordSecretVersionNumber) { + this.tdeWalletPasswordSecretVersionNumber = tdeWalletPasswordSecretVersionNumber; + this.__explicitlySet__.add("tdeWalletPasswordSecretVersionNumber"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * VmCluster. @@ -69,6 +96,44 @@ public Builder adminPassword(String adminPassword) { this.__explicitlySet__.add("adminPassword"); return this; } + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used + * in conjunction with adminPassword. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + private String adminPasswordSecretId; + + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used + * in conjunction with adminPassword. + * + * @param adminPasswordSecretId the value to set + * @return this builder + */ + public Builder adminPasswordSecretId(String adminPasswordSecretId) { + this.adminPasswordSecretId = adminPasswordSecretId; + this.__explicitlySet__.add("adminPasswordSecretId"); + return this; + } + /** + * The version of the vault secret. If no version is specified, the latest version will be + * used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + private Integer adminPasswordSecretVersionNumber; + + /** + * The version of the vault secret. If no version is specified, the latest version will be + * used. + * + * @param adminPasswordSecretVersionNumber the value to set + * @return this builder + */ + public Builder adminPasswordSecretVersionNumber(Integer adminPasswordSecretVersionNumber) { + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; + this.__explicitlySet__.add("adminPasswordSecretVersionNumber"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure @@ -171,8 +236,13 @@ public Builder transportType(DistributedDbTransportType transportType) { public CreateDistributedDatabaseShardDatabaseWithExadbXsDetails build() { CreateDistributedDatabaseShardDatabaseWithExadbXsDetails model = new CreateDistributedDatabaseShardDatabaseWithExadbXsDetails( + this.tdeWalletPassword, + this.tdeWalletPasswordSecretId, + this.tdeWalletPasswordSecretVersionNumber, this.vmClusterId, this.adminPassword, + this.adminPasswordSecretId, + this.adminPasswordSecretVersionNumber, this.vaultId, this.kmsKeyId, this.kmsKeyVersionId, @@ -186,12 +256,28 @@ public CreateDistributedDatabaseShardDatabaseWithExadbXsDetails build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(CreateDistributedDatabaseShardDatabaseWithExadbXsDetails model) { + if (model.wasPropertyExplicitlySet("tdeWalletPassword")) { + this.tdeWalletPassword(model.getTdeWalletPassword()); + } + if (model.wasPropertyExplicitlySet("tdeWalletPasswordSecretId")) { + this.tdeWalletPasswordSecretId(model.getTdeWalletPasswordSecretId()); + } + if (model.wasPropertyExplicitlySet("tdeWalletPasswordSecretVersionNumber")) { + this.tdeWalletPasswordSecretVersionNumber( + model.getTdeWalletPasswordSecretVersionNumber()); + } if (model.wasPropertyExplicitlySet("vmClusterId")) { this.vmClusterId(model.getVmClusterId()); } if (model.wasPropertyExplicitlySet("adminPassword")) { this.adminPassword(model.getAdminPassword()); } + if (model.wasPropertyExplicitlySet("adminPasswordSecretId")) { + this.adminPasswordSecretId(model.getAdminPasswordSecretId()); + } + if (model.wasPropertyExplicitlySet("adminPasswordSecretVersionNumber")) { + this.adminPasswordSecretVersionNumber(model.getAdminPasswordSecretVersionNumber()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -222,16 +308,23 @@ public Builder toBuilder() { @Deprecated public CreateDistributedDatabaseShardDatabaseWithExadbXsDetails( + String tdeWalletPassword, + String tdeWalletPasswordSecretId, + Integer tdeWalletPasswordSecretVersionNumber, String vmClusterId, String adminPassword, + String adminPasswordSecretId, + Integer adminPasswordSecretVersionNumber, String vaultId, String kmsKeyId, String kmsKeyVersionId, DistributedDbProtectionMode protectionMode, DistributedDbTransportType transportType) { - super(); + super(tdeWalletPassword, tdeWalletPasswordSecretId, tdeWalletPasswordSecretVersionNumber); this.vmClusterId = vmClusterId; this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; this.vaultId = vaultId; this.kmsKeyId = kmsKeyId; this.kmsKeyVersionId = kmsKeyVersionId; @@ -242,8 +335,18 @@ public CreateDistributedDatabaseShardDatabaseWithExadbXsDetails( @com.fasterxml.jackson.annotation.JsonCreator @Deprecated public CreateDistributedDatabaseShardDatabaseWithExadbXsDetails( + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + String tdeWalletPassword, + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretId") + String tdeWalletPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretVersionNumber") + Integer tdeWalletPasswordSecretVersionNumber, @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") String vmClusterId, @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") char[] adminPassword, + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + String adminPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + Integer adminPasswordSecretVersionNumber, @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") String kmsKeyId, @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") @@ -252,9 +355,11 @@ public CreateDistributedDatabaseShardDatabaseWithExadbXsDetails( DistributedDbProtectionMode protectionMode, @com.fasterxml.jackson.annotation.JsonProperty("transportType") DistributedDbTransportType transportType) { - super(); + super(tdeWalletPassword, tdeWalletPasswordSecretId, tdeWalletPasswordSecretVersionNumber); this.vmClusterId = vmClusterId; this.adminPassword = adminPassword; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; this.vaultId = vaultId; this.kmsKeyId = kmsKeyId; this.kmsKeyVersionId = kmsKeyVersionId; @@ -305,6 +410,38 @@ public char[] getAdminPassword__AsCharArray() { return adminPassword; } + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used in + * conjunction with adminPassword. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + private final String adminPasswordSecretId; + + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used in + * conjunction with adminPassword. + * + * @return the value + */ + public String getAdminPasswordSecretId() { + return adminPasswordSecretId; + } + + /** + * The version of the vault secret. If no version is specified, the latest version will be used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + private final Integer adminPasswordSecretVersionNumber; + + /** + * The version of the vault secret. If no version is specified, the latest version will be used. + * + * @return the value + */ + public Integer getAdminPasswordSecretVersionNumber() { + return adminPasswordSecretVersionNumber; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure @@ -407,6 +544,9 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); sb.append(", adminPassword=").append(""); + sb.append(", adminPasswordSecretId=").append(String.valueOf(this.adminPasswordSecretId)); + sb.append(", adminPasswordSecretVersionNumber=") + .append(String.valueOf(this.adminPasswordSecretVersionNumber)); sb.append(", vaultId=").append(String.valueOf(this.vaultId)); sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); @@ -429,6 +569,10 @@ public boolean equals(Object o) { (CreateDistributedDatabaseShardDatabaseWithExadbXsDetails) o; return java.util.Objects.equals(this.vmClusterId, other.vmClusterId) && java.util.Objects.equals(this.adminPassword, other.adminPassword) + && java.util.Objects.equals(this.adminPasswordSecretId, other.adminPasswordSecretId) + && java.util.Objects.equals( + this.adminPasswordSecretVersionNumber, + other.adminPasswordSecretVersionNumber) && java.util.Objects.equals(this.vaultId, other.vaultId) && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) @@ -445,6 +589,16 @@ public int hashCode() { result = (result * PRIME) + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); + result = + (result * PRIME) + + (this.adminPasswordSecretId == null + ? 43 + : this.adminPasswordSecretId.hashCode()); + result = + (result * PRIME) + + (this.adminPasswordSecretVersionNumber == null + ? 43 + : this.adminPasswordSecretVersionNumber.hashCode()); result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); result = diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardWithExadbXsDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardWithExadbXsDetails.java deleted file mode 100644 index ad827e6ff5f..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardWithExadbXsDetails.java +++ /dev/null @@ -1,467 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.model; - -/** - * Globally distributed database shard based on exadbxs.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateDistributedDatabaseShardWithExadbXsDetails.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 CreateDistributedDatabaseShardWithExadbXsDetails - extends CreateDistributedDatabaseShardDetails { - @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 String adminPassword; - - /** - * The admin password for the shard associated with Globally distributed database. - * - * @param adminPassword the value to set - * @return this builder - */ - public Builder adminPassword(String adminPassword) { - this.adminPassword = adminPassword; - this.__explicitlySet__.add("adminPassword"); - return this; - } - /** - * This field is deprecated. This should not be used while creation of new distributed - * database. To set the peers on new shards of distributed database please use peerDetails. - */ - @com.fasterxml.jackson.annotation.JsonProperty("peerVmClusterIds") - private java.util.List peerVmClusterIds; - - /** - * This field is deprecated. This should not be used while creation of new distributed - * database. To set the peers on new shards of distributed database please use peerDetails. - * - * @param peerVmClusterIds the value to set - * @return this builder - */ - public Builder peerVmClusterIds(java.util.List peerVmClusterIds) { - this.peerVmClusterIds = peerVmClusterIds; - this.__explicitlySet__.add("peerVmClusterIds"); - return this; - } - /** - * The details required for creation of the peer for the ExadbXs infrastructure based shard. - */ - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - private java.util.List peerDetails; - - /** - * The details required for creation of the peer for the ExadbXs infrastructure based shard. - * - * @param peerDetails the value to set - * @return this builder - */ - public Builder peerDetails(java.util.List peerDetails) { - this.peerDetails = peerDetails; - this.__explicitlySet__.add("peerDetails"); - return this; - } - /** - * The shard space name for the Globally distributed database. Shard space for existing - * shard cannot be changed, once shard is created. Shard space name shall be used while - * creation of new shards. - */ - @com.fasterxml.jackson.annotation.JsonProperty("shardSpace") - private String shardSpace; - - /** - * The shard space name for the Globally distributed database. Shard space for existing - * shard cannot be changed, once shard is created. Shard space name shall be used while - * creation of new shards. - * - * @param shardSpace the value to set - * @return this builder - */ - public Builder shardSpace(String shardSpace) { - this.shardSpace = shardSpace; - this.__explicitlySet__.add("shardSpace"); - 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 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 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 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 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; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateDistributedDatabaseShardWithExadbXsDetails build() { - CreateDistributedDatabaseShardWithExadbXsDetails model = - new CreateDistributedDatabaseShardWithExadbXsDetails( - this.vmClusterId, - this.adminPassword, - this.peerVmClusterIds, - this.peerDetails, - this.shardSpace, - this.vaultId, - this.kmsKeyId, - this.kmsKeyVersionId); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateDistributedDatabaseShardWithExadbXsDetails model) { - if (model.wasPropertyExplicitlySet("vmClusterId")) { - this.vmClusterId(model.getVmClusterId()); - } - if (model.wasPropertyExplicitlySet("adminPassword")) { - this.adminPassword(model.getAdminPassword()); - } - if (model.wasPropertyExplicitlySet("peerVmClusterIds")) { - this.peerVmClusterIds(model.getPeerVmClusterIds()); - } - if (model.wasPropertyExplicitlySet("peerDetails")) { - this.peerDetails(model.getPeerDetails()); - } - if (model.wasPropertyExplicitlySet("shardSpace")) { - this.shardSpace(model.getShardSpace()); - } - if (model.wasPropertyExplicitlySet("vaultId")) { - this.vaultId(model.getVaultId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyId")) { - this.kmsKeyId(model.getKmsKeyId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { - this.kmsKeyVersionId(model.getKmsKeyVersionId()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public CreateDistributedDatabaseShardWithExadbXsDetails( - String vmClusterId, - String adminPassword, - java.util.List peerVmClusterIds, - java.util.List peerDetails, - String shardSpace, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId) { - super(); - this.vmClusterId = vmClusterId; - this.adminPassword = adminPassword; - this.peerVmClusterIds = peerVmClusterIds; - this.peerDetails = peerDetails; - this.shardSpace = shardSpace; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - } - - /** - * 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 String adminPassword; - - /** - * The admin password for the shard associated with Globally distributed database. - * - * @return the value - */ - public String getAdminPassword() { - return adminPassword; - } - - /** - * This field is deprecated. This should not be used while creation of new distributed database. - * To set the peers on new shards of distributed database please use peerDetails. - */ - @com.fasterxml.jackson.annotation.JsonProperty("peerVmClusterIds") - private final java.util.List peerVmClusterIds; - - /** - * This field is deprecated. This should not be used while creation of new distributed database. - * To set the peers on new shards of distributed database please use peerDetails. - * - * @return the value - */ - public java.util.List getPeerVmClusterIds() { - return peerVmClusterIds; - } - - /** The details required for creation of the peer for the ExadbXs infrastructure based shard. */ - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - private final java.util.List peerDetails; - - /** - * The details required for creation of the peer for the ExadbXs infrastructure based shard. - * - * @return the value - */ - public java.util.List getPeerDetails() { - return peerDetails; - } - - /** - * The shard space name for the Globally distributed database. Shard space for existing shard - * cannot be changed, once shard is created. Shard space name shall be used while creation of - * new shards. - */ - @com.fasterxml.jackson.annotation.JsonProperty("shardSpace") - private final String shardSpace; - - /** - * The shard space name for the Globally distributed database. Shard space for existing shard - * cannot be changed, once shard is created. Shard space name shall be used while creation of - * new shards. - * - * @return the value - */ - public String getShardSpace() { - return shardSpace; - } - - /** - * 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 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 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 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 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; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedDatabaseShardWithExadbXsDetails("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); - sb.append(", adminPassword=").append(String.valueOf(this.adminPassword)); - sb.append(", peerVmClusterIds=").append(String.valueOf(this.peerVmClusterIds)); - sb.append(", peerDetails=").append(String.valueOf(this.peerDetails)); - sb.append(", shardSpace=").append(String.valueOf(this.shardSpace)); - 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(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateDistributedDatabaseShardWithExadbXsDetails)) { - return false; - } - - CreateDistributedDatabaseShardWithExadbXsDetails other = - (CreateDistributedDatabaseShardWithExadbXsDetails) o; - return java.util.Objects.equals(this.vmClusterId, other.vmClusterId) - && java.util.Objects.equals(this.adminPassword, other.adminPassword) - && java.util.Objects.equals(this.peerVmClusterIds, other.peerVmClusterIds) - && java.util.Objects.equals(this.peerDetails, other.peerDetails) - && java.util.Objects.equals(this.shardSpace, other.shardSpace) - && java.util.Objects.equals(this.vaultId, other.vaultId) - && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) - && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) - && 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.peerVmClusterIds == null ? 43 : this.peerVmClusterIds.hashCode()); - result = (result * PRIME) + (this.peerDetails == null ? 43 : this.peerDetails.hashCode()); - result = (result * PRIME) + (this.shardSpace == null ? 43 : this.shardSpace.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()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardWithExadbXsNewClusterDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardWithExadbXsNewClusterDetails.java similarity index 75% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardWithExadbXsNewClusterDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardWithExadbXsNewClusterDetails.java index 6597dc04a3e..b325a34854e 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardWithExadbXsNewClusterDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardWithExadbXsNewClusterDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Configuration for creating a distributed database shard on a new ExaDB-XS VM cluster.
@@ -28,6 +28,33 @@ public final class CreateDistributedDatabaseShardWithExadbXsNewClusterDetails extends CreateDistributedDatabaseShardDatabaseDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + private String tdeWalletPassword; + + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = tdeWalletPassword; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretId") + private String tdeWalletPasswordSecretId; + + public Builder tdeWalletPasswordSecretId(String tdeWalletPasswordSecretId) { + this.tdeWalletPasswordSecretId = tdeWalletPasswordSecretId; + this.__explicitlySet__.add("tdeWalletPasswordSecretId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretVersionNumber") + private Integer tdeWalletPasswordSecretVersionNumber; + + public Builder tdeWalletPasswordSecretVersionNumber( + Integer tdeWalletPasswordSecretVersionNumber) { + this.tdeWalletPasswordSecretVersionNumber = tdeWalletPasswordSecretVersionNumber; + this.__explicitlySet__.add("tdeWalletPasswordSecretVersionNumber"); + return this; + } /** The admin password for the shard associated with Globally distributed database. */ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") private char[] adminPassword; @@ -49,6 +76,44 @@ public Builder adminPassword(String adminPassword) { this.__explicitlySet__.add("adminPassword"); return this; } + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used + * in conjunction with adminPassword. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + private String adminPasswordSecretId; + + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used + * in conjunction with adminPassword. + * + * @param adminPasswordSecretId the value to set + * @return this builder + */ + public Builder adminPasswordSecretId(String adminPasswordSecretId) { + this.adminPasswordSecretId = adminPasswordSecretId; + this.__explicitlySet__.add("adminPasswordSecretId"); + return this; + } + /** + * The version of the vault secret. If no version is specified, the latest version will be + * used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + private Integer adminPasswordSecretVersionNumber; + + /** + * The version of the vault secret. If no version is specified, the latest version will be + * used. + * + * @param adminPasswordSecretVersionNumber the value to set + * @return this builder + */ + public Builder adminPasswordSecretVersionNumber(Integer adminPasswordSecretVersionNumber) { + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; + this.__explicitlySet__.add("adminPasswordSecretVersionNumber"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure @@ -198,7 +263,12 @@ public Builder transportType(DistributedDbTransportType transportType) { public CreateDistributedDatabaseShardWithExadbXsNewClusterDetails build() { CreateDistributedDatabaseShardWithExadbXsNewClusterDetails model = new CreateDistributedDatabaseShardWithExadbXsNewClusterDetails( + this.tdeWalletPassword, + this.tdeWalletPasswordSecretId, + this.tdeWalletPasswordSecretVersionNumber, this.adminPassword, + this.adminPasswordSecretId, + this.adminPasswordSecretVersionNumber, this.vaultId, this.kmsKeyId, this.kmsKeyVersionId, @@ -215,9 +285,25 @@ public CreateDistributedDatabaseShardWithExadbXsNewClusterDetails build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(CreateDistributedDatabaseShardWithExadbXsNewClusterDetails model) { + if (model.wasPropertyExplicitlySet("tdeWalletPassword")) { + this.tdeWalletPassword(model.getTdeWalletPassword()); + } + if (model.wasPropertyExplicitlySet("tdeWalletPasswordSecretId")) { + this.tdeWalletPasswordSecretId(model.getTdeWalletPasswordSecretId()); + } + if (model.wasPropertyExplicitlySet("tdeWalletPasswordSecretVersionNumber")) { + this.tdeWalletPasswordSecretVersionNumber( + model.getTdeWalletPasswordSecretVersionNumber()); + } if (model.wasPropertyExplicitlySet("adminPassword")) { this.adminPassword(model.getAdminPassword()); } + if (model.wasPropertyExplicitlySet("adminPasswordSecretId")) { + this.adminPasswordSecretId(model.getAdminPasswordSecretId()); + } + if (model.wasPropertyExplicitlySet("adminPasswordSecretVersionNumber")) { + this.adminPasswordSecretVersionNumber(model.getAdminPasswordSecretVersionNumber()); + } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -257,7 +343,12 @@ public Builder toBuilder() { @Deprecated public CreateDistributedDatabaseShardWithExadbXsNewClusterDetails( + String tdeWalletPassword, + String tdeWalletPasswordSecretId, + Integer tdeWalletPasswordSecretVersionNumber, String adminPassword, + String adminPasswordSecretId, + Integer adminPasswordSecretVersionNumber, String vaultId, String kmsKeyId, String kmsKeyVersionId, @@ -266,8 +357,10 @@ public CreateDistributedDatabaseShardWithExadbXsNewClusterDetails( VmClusterDetails vmClusterDetails, DistributedDbProtectionMode protectionMode, DistributedDbTransportType transportType) { - super(); + super(tdeWalletPassword, tdeWalletPasswordSecretId, tdeWalletPasswordSecretVersionNumber); this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; this.vaultId = vaultId; this.kmsKeyId = kmsKeyId; this.kmsKeyVersionId = kmsKeyVersionId; @@ -281,7 +374,17 @@ public CreateDistributedDatabaseShardWithExadbXsNewClusterDetails( @com.fasterxml.jackson.annotation.JsonCreator @Deprecated public CreateDistributedDatabaseShardWithExadbXsNewClusterDetails( + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + String tdeWalletPassword, + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretId") + String tdeWalletPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretVersionNumber") + Integer tdeWalletPasswordSecretVersionNumber, @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") char[] adminPassword, + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + String adminPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + Integer adminPasswordSecretVersionNumber, @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") String kmsKeyId, @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") @@ -296,8 +399,10 @@ public CreateDistributedDatabaseShardWithExadbXsNewClusterDetails( DistributedDbProtectionMode protectionMode, @com.fasterxml.jackson.annotation.JsonProperty("transportType") DistributedDbTransportType transportType) { - super(); + super(tdeWalletPassword, tdeWalletPasswordSecretId, tdeWalletPasswordSecretVersionNumber); this.adminPassword = adminPassword; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; this.vaultId = vaultId; this.kmsKeyId = kmsKeyId; this.kmsKeyVersionId = kmsKeyVersionId; @@ -334,6 +439,38 @@ public char[] getAdminPassword__AsCharArray() { return adminPassword; } + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used in + * conjunction with adminPassword. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + private final String adminPasswordSecretId; + + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used in + * conjunction with adminPassword. + * + * @return the value + */ + public String getAdminPasswordSecretId() { + return adminPasswordSecretId; + } + + /** + * The version of the vault secret. If no version is specified, the latest version will be used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + private final Integer adminPasswordSecretVersionNumber; + + /** + * The version of the vault secret. If no version is specified, the latest version will be used. + * + * @return the value + */ + public Integer getAdminPasswordSecretVersionNumber() { + return adminPasswordSecretVersionNumber; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure @@ -476,6 +613,9 @@ public String toString(boolean includeByteArrayContents) { sb.append("CreateDistributedDatabaseShardWithExadbXsNewClusterDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", adminPassword=").append(""); + sb.append(", adminPasswordSecretId=").append(String.valueOf(this.adminPasswordSecretId)); + sb.append(", adminPasswordSecretVersionNumber=") + .append(String.valueOf(this.adminPasswordSecretVersionNumber)); sb.append(", vaultId=").append(String.valueOf(this.vaultId)); sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); @@ -501,6 +641,10 @@ public boolean equals(Object o) { CreateDistributedDatabaseShardWithExadbXsNewClusterDetails other = (CreateDistributedDatabaseShardWithExadbXsNewClusterDetails) o; return java.util.Objects.equals(this.adminPassword, other.adminPassword) + && java.util.Objects.equals(this.adminPasswordSecretId, other.adminPasswordSecretId) + && java.util.Objects.equals( + this.adminPasswordSecretVersionNumber, + other.adminPasswordSecretVersionNumber) && java.util.Objects.equals(this.vaultId, other.vaultId) && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) @@ -520,6 +664,16 @@ public int hashCode() { result = (result * PRIME) + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); + result = + (result * PRIME) + + (this.adminPasswordSecretId == null + ? 43 + : this.adminPasswordSecretId.hashCode()); + result = + (result * PRIME) + + (this.adminPasswordSecretVersionNumber == null + ? 43 + : this.adminPasswordSecretVersionNumber.hashCode()); result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); result = diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.java index 84591206455..e1c5be116c9 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.distributeddatabase.model; /** - * Globally distributed database shard based on ExaDbXs.
+ * 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 @@ -15,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( @@ -25,9 +26,36 @@ @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails - extends CreateDistributedDatabaseShardDetails { + extends CreateDistributedDatabaseShardDatabaseDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + private String tdeWalletPassword; + + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = tdeWalletPassword; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretId") + private String tdeWalletPasswordSecretId; + + public Builder tdeWalletPasswordSecretId(String tdeWalletPasswordSecretId) { + this.tdeWalletPasswordSecretId = tdeWalletPasswordSecretId; + this.__explicitlySet__.add("tdeWalletPasswordSecretId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretVersionNumber") + private Integer tdeWalletPasswordSecretVersionNumber; + + public Builder tdeWalletPasswordSecretVersionNumber( + Integer tdeWalletPasswordSecretVersionNumber) { + this.tdeWalletPasswordSecretVersionNumber = tdeWalletPasswordSecretVersionNumber; + this.__explicitlySet__.add("tdeWalletPasswordSecretVersionNumber"); + return this; + } /** The admin password for the shard associated with Globally distributed database. */ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") private char[] adminPassword; @@ -50,42 +78,41 @@ public Builder adminPassword(String adminPassword) { return this; } /** - * The details required for creation of the peer for the ExadbXs infrastructure based shard. + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used + * in conjunction with adminPassword. */ - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - private java.util.List peerDetails; + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + private String adminPasswordSecretId; /** - * The details required for creation of the peer for the ExadbXs infrastructure based shard. + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used + * in conjunction with adminPassword. * - * @param peerDetails the value to set + * @param adminPasswordSecretId the value to set * @return this builder */ - public Builder peerDetails( - java.util.List peerDetails) { - this.peerDetails = peerDetails; - this.__explicitlySet__.add("peerDetails"); + public Builder adminPasswordSecretId(String adminPasswordSecretId) { + this.adminPasswordSecretId = adminPasswordSecretId; + this.__explicitlySet__.add("adminPasswordSecretId"); return this; } /** - * The shard space name for the Globally distributed database. Shard space for existing - * shard cannot be changed, once shard is created. Shard space name shall be used while - * creation of new shards. + * The version of the vault secret. If no version is specified, the latest version will be + * used. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardSpace") - private String shardSpace; + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + private Integer adminPasswordSecretVersionNumber; /** - * The shard space name for the Globally distributed database. Shard space for existing - * shard cannot be changed, once shard is created. Shard space name shall be used while - * creation of new shards. + * The version of the vault secret. If no version is specified, the latest version will be + * used. * - * @param shardSpace the value to set + * @param adminPasswordSecretVersionNumber the value to set * @return this builder */ - public Builder shardSpace(String shardSpace) { - this.shardSpace = shardSpace; - this.__explicitlySet__.add("shardSpace"); + public Builder adminPasswordSecretVersionNumber(Integer adminPasswordSecretVersionNumber) { + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; + this.__explicitlySet__.add("adminPasswordSecretVersionNumber"); return this; } /** @@ -112,15 +139,17 @@ public Builder vaultId(String vaultId) { return this; } /** - * The OCID of the key container that is used as the master encryption key in database - * transparent data encryption (TDE) operations. + * 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 of the key container that is used as the master encryption key in database - * transparent data encryption (TDE) operations. + * 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 @@ -131,15 +160,17 @@ public Builder kmsKeyId(String kmsKeyId) { return this; } /** - * The OCID of the key container version that is used in database transparent data - * encryption (TDE) operations KMS Key can have multiple key versions. + * 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 of the key container version that is used in database transparent data - * encryption (TDE) operations KMS Key can have multiple key versions. + * 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 @@ -186,6 +217,36 @@ public Builder vmClusterDetails(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(); @@ -193,15 +254,20 @@ public Builder vmClusterDetails(VmClusterDetails vmClusterDetails) { public CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails build() { CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails model = new CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails( + this.tdeWalletPassword, + this.tdeWalletPasswordSecretId, + this.tdeWalletPasswordSecretVersionNumber, this.adminPassword, - this.peerDetails, - this.shardSpace, + this.adminPasswordSecretId, + this.adminPasswordSecretVersionNumber, this.vaultId, this.kmsKeyId, this.kmsKeyVersionId, this.availabilityDomain, this.dbStorageVaultDetails, - this.vmClusterDetails); + this.vmClusterDetails, + this.protectionMode, + this.transportType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -211,14 +277,24 @@ public CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails build( @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy( CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails model) { + if (model.wasPropertyExplicitlySet("tdeWalletPassword")) { + this.tdeWalletPassword(model.getTdeWalletPassword()); + } + if (model.wasPropertyExplicitlySet("tdeWalletPasswordSecretId")) { + this.tdeWalletPasswordSecretId(model.getTdeWalletPasswordSecretId()); + } + if (model.wasPropertyExplicitlySet("tdeWalletPasswordSecretVersionNumber")) { + this.tdeWalletPasswordSecretVersionNumber( + model.getTdeWalletPasswordSecretVersionNumber()); + } if (model.wasPropertyExplicitlySet("adminPassword")) { this.adminPassword(model.getAdminPassword()); } - if (model.wasPropertyExplicitlySet("peerDetails")) { - this.peerDetails(model.getPeerDetails()); + if (model.wasPropertyExplicitlySet("adminPasswordSecretId")) { + this.adminPasswordSecretId(model.getAdminPasswordSecretId()); } - if (model.wasPropertyExplicitlySet("shardSpace")) { - this.shardSpace(model.getShardSpace()); + if (model.wasPropertyExplicitlySet("adminPasswordSecretVersionNumber")) { + this.adminPasswordSecretVersionNumber(model.getAdminPasswordSecretVersionNumber()); } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); @@ -238,6 +314,12 @@ public Builder copy( 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; } } @@ -253,34 +335,48 @@ public Builder toBuilder() { @Deprecated public CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails( + String tdeWalletPassword, + String tdeWalletPasswordSecretId, + Integer tdeWalletPasswordSecretVersionNumber, String adminPassword, - java.util.List peerDetails, - String shardSpace, + String adminPasswordSecretId, + Integer adminPasswordSecretVersionNumber, String vaultId, String kmsKeyId, String kmsKeyVersionId, String availabilityDomain, DbStorageVaultDetails dbStorageVaultDetails, - VmClusterDetails vmClusterDetails) { - super(); + VmClusterDetails vmClusterDetails, + DistributedDbProtectionMode protectionMode, + DistributedDbTransportType transportType) { + super(tdeWalletPassword, tdeWalletPasswordSecretId, tdeWalletPasswordSecretVersionNumber); this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; - this.peerDetails = peerDetails; - this.shardSpace = shardSpace; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; 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("tdeWalletPassword") + String tdeWalletPassword, + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretId") + String tdeWalletPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPasswordSecretVersionNumber") + Integer tdeWalletPasswordSecretVersionNumber, @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") char[] adminPassword, - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - java.util.List peerDetails, - @com.fasterxml.jackson.annotation.JsonProperty("shardSpace") String shardSpace, + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + String adminPasswordSecretId, + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + Integer adminPasswordSecretVersionNumber, @com.fasterxml.jackson.annotation.JsonProperty("vaultId") String vaultId, @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") String kmsKeyId, @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") @@ -290,17 +386,23 @@ public CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails( @com.fasterxml.jackson.annotation.JsonProperty("dbStorageVaultDetails") DbStorageVaultDetails dbStorageVaultDetails, @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") - VmClusterDetails vmClusterDetails) { - super(); + VmClusterDetails vmClusterDetails, + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + DistributedDbProtectionMode protectionMode, + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + DistributedDbTransportType transportType) { + super(tdeWalletPassword, tdeWalletPasswordSecretId, tdeWalletPasswordSecretVersionNumber); this.adminPassword = adminPassword; - this.peerDetails = peerDetails; - this.shardSpace = shardSpace; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; 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. */ @@ -329,36 +431,36 @@ public char[] getAdminPassword__AsCharArray() { return adminPassword; } - /** The details required for creation of the peer for the ExadbXs infrastructure based shard. */ - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - private final java.util.List peerDetails; + /** + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used in + * conjunction with adminPassword. + */ + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretId") + private final String adminPasswordSecretId; /** - * The details required for creation of the peer for the ExadbXs infrastructure based shard. + * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used in + * conjunction with adminPassword. * * @return the value */ - public java.util.List getPeerDetails() { - return peerDetails; + public String getAdminPasswordSecretId() { + return adminPasswordSecretId; } /** - * The shard space name for the Globally distributed database. Shard space for existing shard - * cannot be changed, once shard is created. Shard space name shall be used while creation of - * new shards. + * The version of the vault secret. If no version is specified, the latest version will be used. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardSpace") - private final String shardSpace; + @com.fasterxml.jackson.annotation.JsonProperty("adminPasswordSecretVersionNumber") + private final Integer adminPasswordSecretVersionNumber; /** - * The shard space name for the Globally distributed database. Shard space for existing shard - * cannot be changed, once shard is created. Shard space name shall be used while creation of - * new shards. + * The version of the vault secret. If no version is specified, the latest version will be used. * * @return the value */ - public String getShardSpace() { - return shardSpace; + public Integer getAdminPasswordSecretVersionNumber() { + return adminPasswordSecretVersionNumber; } /** @@ -383,15 +485,17 @@ public String getVaultId() { } /** - * The OCID of the key container that is used as the master encryption key in database - * transparent data encryption (TDE) operations. + * 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 of the key container that is used as the master encryption key in database - * transparent data encryption (TDE) operations. + * 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 */ @@ -400,15 +504,17 @@ public String getKmsKeyId() { } /** - * The OCID of the key container version that is used in database transparent data encryption - * (TDE) operations KMS Key can have multiple key versions. + * 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 of the key container version that is used in database transparent data encryption - * (TDE) operations KMS Key can have multiple key versions. + * 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 */ @@ -445,6 +551,32 @@ 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); @@ -461,14 +593,17 @@ public String toString(boolean includeByteArrayContents) { sb.append("CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", adminPassword=").append(""); - sb.append(", peerDetails=").append(String.valueOf(this.peerDetails)); - sb.append(", shardSpace=").append(String.valueOf(this.shardSpace)); + sb.append(", adminPasswordSecretId=").append(String.valueOf(this.adminPasswordSecretId)); + sb.append(", adminPasswordSecretVersionNumber=") + .append(String.valueOf(this.adminPasswordSecretVersionNumber)); 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(); } @@ -485,14 +620,18 @@ public boolean equals(Object o) { CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails other = (CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails) o; return java.util.Objects.equals(this.adminPassword, other.adminPassword) - && java.util.Objects.equals(this.peerDetails, other.peerDetails) - && java.util.Objects.equals(this.shardSpace, other.shardSpace) + && java.util.Objects.equals(this.adminPasswordSecretId, other.adminPasswordSecretId) + && java.util.Objects.equals( + this.adminPasswordSecretVersionNumber, + other.adminPasswordSecretVersionNumber) && 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); } @@ -503,8 +642,16 @@ public int hashCode() { result = (result * PRIME) + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); - result = (result * PRIME) + (this.peerDetails == null ? 43 : this.peerDetails.hashCode()); - result = (result * PRIME) + (this.shardSpace == null ? 43 : this.shardSpace.hashCode()); + result = + (result * PRIME) + + (this.adminPasswordSecretId == null + ? 43 + : this.adminPasswordSecretId.hashCode()); + result = + (result * PRIME) + + (this.adminPasswordSecretVersionNumber == null + ? 43 + : this.adminPasswordSecretVersionNumber.hashCode()); result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); result = @@ -523,6 +670,12 @@ public int 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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateShardPeerWithDedicatedInfraDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateShardPeerWithDedicatedInfraDetails.java deleted file mode 100644 index afc9110688a..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateShardPeerWithDedicatedInfraDetails.java +++ /dev/null @@ -1,349 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.model; - -/** - * Details required for creation of autonomous dedicated infrastructure based shard peer.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateShardPeerWithDedicatedInfraDetails.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CreateShardPeerWithDedicatedInfraDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "cloudAutonomousVmClusterId", - "protectionMode", - "fastStartFailOverLagLimitInSeconds", - "isAutomaticFailoverEnabled", - "standbyMaintenanceBufferInDays" - }) - public CreateShardPeerWithDedicatedInfraDetails( - String cloudAutonomousVmClusterId, - DistributedAutonomousDbProtectionMode protectionMode, - Integer fastStartFailOverLagLimitInSeconds, - Boolean isAutomaticFailoverEnabled, - Integer standbyMaintenanceBufferInDays) { - super(); - this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; - this.protectionMode = protectionMode; - this.fastStartFailOverLagLimitInSeconds = fastStartFailOverLagLimitInSeconds; - this.isAutomaticFailoverEnabled = isAutomaticFailoverEnabled; - this.standbyMaintenanceBufferInDays = standbyMaintenanceBufferInDays; - } - - @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 Autonomous VM Cluster for the peer shard. - */ - @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 for the peer shard. - * - * @param cloudAutonomousVmClusterId the value to set - * @return this builder - */ - public Builder cloudAutonomousVmClusterId(String cloudAutonomousVmClusterId) { - this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; - this.__explicitlySet__.add("cloudAutonomousVmClusterId"); - return this; - } - /** The protectionMode for the shard peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedAutonomousDbProtectionMode protectionMode; - - /** - * The protectionMode 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; - } - /** - * This field is deprecated. Support for this field will be removed after one year of - * deprecation cycle. - */ - @com.fasterxml.jackson.annotation.JsonProperty("isAutomaticFailoverEnabled") - private Boolean isAutomaticFailoverEnabled; - - /** - * This field is deprecated. Support for this field will be removed after one year of - * deprecation cycle. - * - * @param isAutomaticFailoverEnabled the value to set - * @return this builder - */ - public Builder isAutomaticFailoverEnabled(Boolean isAutomaticFailoverEnabled) { - this.isAutomaticFailoverEnabled = isAutomaticFailoverEnabled; - this.__explicitlySet__.add("isAutomaticFailoverEnabled"); - return this; - } - /** - * The scheduling detail for the quarterly maintenance window of the standby Autonomous - * Container Database. This value represents the number of days before schedlued 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 schedlued 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 CreateShardPeerWithDedicatedInfraDetails build() { - CreateShardPeerWithDedicatedInfraDetails model = - new CreateShardPeerWithDedicatedInfraDetails( - this.cloudAutonomousVmClusterId, - this.protectionMode, - this.fastStartFailOverLagLimitInSeconds, - this.isAutomaticFailoverEnabled, - this.standbyMaintenanceBufferInDays); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateShardPeerWithDedicatedInfraDetails model) { - if (model.wasPropertyExplicitlySet("cloudAutonomousVmClusterId")) { - this.cloudAutonomousVmClusterId(model.getCloudAutonomousVmClusterId()); - } - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("fastStartFailOverLagLimitInSeconds")) { - this.fastStartFailOverLagLimitInSeconds( - model.getFastStartFailOverLagLimitInSeconds()); - } - if (model.wasPropertyExplicitlySet("isAutomaticFailoverEnabled")) { - this.isAutomaticFailoverEnabled(model.getIsAutomaticFailoverEnabled()); - } - 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); - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * cloud Autonomous VM Cluster for the peer shard. - */ - @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 for the peer shard. - * - * @return the value - */ - public String getCloudAutonomousVmClusterId() { - return cloudAutonomousVmClusterId; - } - - /** The protectionMode for the shard peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedAutonomousDbProtectionMode protectionMode; - - /** - * The protectionMode 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; - } - - /** - * This field is deprecated. Support for this field will be removed after one year of - * deprecation cycle. - */ - @com.fasterxml.jackson.annotation.JsonProperty("isAutomaticFailoverEnabled") - private final Boolean isAutomaticFailoverEnabled; - - /** - * This field is deprecated. Support for this field will be removed after one year of - * deprecation cycle. - * - * @return the value - */ - public Boolean getIsAutomaticFailoverEnabled() { - return isAutomaticFailoverEnabled; - } - - /** - * The scheduling detail for the quarterly maintenance window of the standby Autonomous - * Container Database. This value represents the number of days before schedlued 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 schedlued 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("CreateShardPeerWithDedicatedInfraDetails("); - sb.append("super=").append(super.toString()); - sb.append("cloudAutonomousVmClusterId=") - .append(String.valueOf(this.cloudAutonomousVmClusterId)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", fastStartFailOverLagLimitInSeconds=") - .append(String.valueOf(this.fastStartFailOverLagLimitInSeconds)); - sb.append(", isAutomaticFailoverEnabled=") - .append(String.valueOf(this.isAutomaticFailoverEnabled)); - 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 CreateShardPeerWithDedicatedInfraDetails)) { - return false; - } - - CreateShardPeerWithDedicatedInfraDetails other = - (CreateShardPeerWithDedicatedInfraDetails) o; - return java.util.Objects.equals( - this.cloudAutonomousVmClusterId, other.cloudAutonomousVmClusterId) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals( - this.fastStartFailOverLagLimitInSeconds, - other.fastStartFailOverLagLimitInSeconds) - && java.util.Objects.equals( - this.isAutomaticFailoverEnabled, other.isAutomaticFailoverEnabled) - && java.util.Objects.equals( - this.standbyMaintenanceBufferInDays, other.standbyMaintenanceBufferInDays) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.cloudAutonomousVmClusterId == null - ? 43 - : this.cloudAutonomousVmClusterId.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.isAutomaticFailoverEnabled == null - ? 43 - : this.isAutomaticFailoverEnabled.hashCode()); - result = - (result * PRIME) - + (this.standbyMaintenanceBufferInDays == null - ? 43 - : this.standbyMaintenanceBufferInDays.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateShardPeerWithExadbXsDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateShardPeerWithExadbXsDetails.java deleted file mode 100644 index e25540483f3..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateShardPeerWithExadbXsDetails.java +++ /dev/null @@ -1,221 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.model; - -/** - * Details required for creation of ExadbXs infrastructure based shard peer.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateShardPeerWithExadbXsDetails.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CreateShardPeerWithExadbXsDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"vmClusterId", "protectionMode", "transportType"}) - public CreateShardPeerWithExadbXsDetails( - String vmClusterId, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(); - this.vmClusterId = vmClusterId; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - @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 - * VM Cluster for the shard peer. - */ - @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 for the shard peer. - * - * @param vmClusterId the value to set - * @return this builder - */ - public Builder vmClusterId(String vmClusterId) { - this.vmClusterId = vmClusterId; - this.__explicitlySet__.add("vmClusterId"); - return this; - } - /** The protectionMode for the shard peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedDbProtectionMode protectionMode; - - /** - * The protectionMode for the shard peer. - * - * @param protectionMode the value to set - * @return this builder - */ - public Builder protectionMode(DistributedDbProtectionMode protectionMode) { - this.protectionMode = protectionMode; - this.__explicitlySet__.add("protectionMode"); - return this; - } - /** The redo transport type to use for this Data Guard association. */ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private DistributedDbTransportType transportType; - - /** - * The redo transport type to use for this 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 CreateShardPeerWithExadbXsDetails build() { - CreateShardPeerWithExadbXsDetails model = - new CreateShardPeerWithExadbXsDetails( - this.vmClusterId, this.protectionMode, this.transportType); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateShardPeerWithExadbXsDetails model) { - if (model.wasPropertyExplicitlySet("vmClusterId")) { - this.vmClusterId(model.getVmClusterId()); - } - 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); - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM - * Cluster for the shard peer. - */ - @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 for the shard peer. - * - * @return the value - */ - public String getVmClusterId() { - return vmClusterId; - } - - /** The protectionMode for the shard peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedDbProtectionMode protectionMode; - - /** - * The protectionMode for the shard peer. - * - * @return the value - */ - public DistributedDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** The redo transport type to use for this Data Guard association. */ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private final DistributedDbTransportType transportType; - - /** - * The redo transport type to use for this 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("CreateShardPeerWithExadbXsDetails("); - sb.append("super=").append(super.toString()); - sb.append("vmClusterId=").append(String.valueOf(this.vmClusterId)); - 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 CreateShardPeerWithExadbXsDetails)) { - return false; - } - - CreateShardPeerWithExadbXsDetails other = (CreateShardPeerWithExadbXsDetails) o; - return java.util.Objects.equals(this.vmClusterId, other.vmClusterId) - && 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 = 1; - result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.transportType == null ? 43 : this.transportType.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateShardPeerWithExadbXsNewVaultAndClusterDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateShardPeerWithExadbXsNewVaultAndClusterDetails.java deleted file mode 100644 index 80bc29e89a0..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateShardPeerWithExadbXsNewVaultAndClusterDetails.java +++ /dev/null @@ -1,288 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.model; - -/** - * Details required for creation of ExaDbXs based shard peer.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateShardPeerWithExadbXsNewVaultAndClusterDetails.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CreateShardPeerWithExadbXsNewVaultAndClusterDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "protectionMode", - "transportType", - "availabilityDomain", - "dbStorageVaultDetails", - "vmClusterDetails" - }) - public CreateShardPeerWithExadbXsNewVaultAndClusterDetails( - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType, - String availabilityDomain, - DbStorageVaultDetails dbStorageVaultDetails, - VmClusterDetails vmClusterDetails) { - super(); - this.protectionMode = protectionMode; - this.transportType = transportType; - this.availabilityDomain = availabilityDomain; - this.dbStorageVaultDetails = dbStorageVaultDetails; - this.vmClusterDetails = vmClusterDetails; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** The protectionMode for the shard peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedDbProtectionMode protectionMode; - - /** - * The protectionMode for the shard peer. - * - * @param protectionMode the value to set - * @return this builder - */ - public Builder protectionMode(DistributedDbProtectionMode protectionMode) { - this.protectionMode = protectionMode; - this.__explicitlySet__.add("protectionMode"); - return this; - } - /** The redo transport type to use for this Data Guard association. */ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private DistributedDbTransportType transportType; - - /** - * The redo transport type to use for this 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; - } - /** - * 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; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateShardPeerWithExadbXsNewVaultAndClusterDetails build() { - CreateShardPeerWithExadbXsNewVaultAndClusterDetails model = - new CreateShardPeerWithExadbXsNewVaultAndClusterDetails( - this.protectionMode, - this.transportType, - this.availabilityDomain, - this.dbStorageVaultDetails, - this.vmClusterDetails); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateShardPeerWithExadbXsNewVaultAndClusterDetails model) { - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("transportType")) { - this.transportType(model.getTransportType()); - } - if (model.wasPropertyExplicitlySet("availabilityDomain")) { - this.availabilityDomain(model.getAvailabilityDomain()); - } - if (model.wasPropertyExplicitlySet("dbStorageVaultDetails")) { - this.dbStorageVaultDetails(model.getDbStorageVaultDetails()); - } - if (model.wasPropertyExplicitlySet("vmClusterDetails")) { - this.vmClusterDetails(model.getVmClusterDetails()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** The protectionMode for the shard peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedDbProtectionMode protectionMode; - - /** - * The protectionMode for the shard peer. - * - * @return the value - */ - public DistributedDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** The redo transport type to use for this Data Guard association. */ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private final DistributedDbTransportType transportType; - - /** - * The redo transport type to use for this Data Guard association. - * - * @return the value - */ - public DistributedDbTransportType getTransportType() { - return transportType; - } - - /** - * 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; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateShardPeerWithExadbXsNewVaultAndClusterDetails("); - sb.append("super=").append(super.toString()); - sb.append("protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", transportType=").append(String.valueOf(this.transportType)); - 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(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateShardPeerWithExadbXsNewVaultAndClusterDetails)) { - return false; - } - - CreateShardPeerWithExadbXsNewVaultAndClusterDetails other = - (CreateShardPeerWithExadbXsNewVaultAndClusterDetails) o; - return java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals(this.transportType, other.transportType) - && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) - && java.util.Objects.equals(this.dbStorageVaultDetails, other.dbStorageVaultDetails) - && java.util.Objects.equals(this.vmClusterDetails, other.vmClusterDetails) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.transportType == null ? 43 : this.transportType.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) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemDataGuardDatabaseDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateSystemDataGuardDatabaseDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemDataGuardDatabaseDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateSystemDataGuardDatabaseDetails.java index c01e239e7de..a079c736831 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemDataGuardDatabaseDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateSystemDataGuardDatabaseDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details required to create system data guard shard.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemDataGuardReplicaDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateSystemDataGuardReplicaDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemDataGuardReplicaDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateSystemDataGuardReplicaDetails.java index 409ff702445..91db431863f 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemDataGuardReplicaDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateSystemDataGuardReplicaDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details required to create system data guard replica.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemRaftClusterDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateSystemRaftClusterDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemRaftClusterDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateSystemRaftClusterDetails.java index 4c0e44cf01c..ed6648597c2 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemRaftClusterDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateSystemRaftClusterDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details required to create system raft cluster.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateUserShardSpaceDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateUserShardSpaceDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateUserShardSpaceDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateUserShardSpaceDetails.java index 43b54145fb2..12efaf30706 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateUserShardSpaceDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateUserShardSpaceDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details required to create user shard space.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateUserShardSpaceReplicaDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateUserShardSpaceReplicaDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateUserShardSpaceReplicaDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateUserShardSpaceReplicaDetails.java index 3e142b47726..108d9e2133b 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateUserShardSpaceReplicaDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateUserShardSpaceReplicaDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details required to create user shard space replica.
diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DbStorageVaultDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DbStorageVaultDetails.java index 3ab7748b701..8422f4fda22 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DbStorageVaultDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DbStorageVaultDetails.java @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DbStorageVaultDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -25,18 +25,50 @@ public final class DbStorageVaultDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ + "compartmentId", "highCapacityDatabaseStorage", - "additionalFlashCacheInPercent" + "additionalFlashCacheInPercent", + "subscriptionId", + "isAutoscaleEnabled", + "autoscaleLimitInGBs" }) public DbStorageVaultDetails( - Integer highCapacityDatabaseStorage, Integer additionalFlashCacheInPercent) { + 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; @@ -67,6 +99,63 @@ public Builder additionalFlashCacheInPercent(Integer additionalFlashCacheInPerce 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(); @@ -74,7 +163,12 @@ public Builder additionalFlashCacheInPercent(Integer additionalFlashCacheInPerce public DbStorageVaultDetails build() { DbStorageVaultDetails model = new DbStorageVaultDetails( - this.highCapacityDatabaseStorage, this.additionalFlashCacheInPercent); + this.compartmentId, + this.highCapacityDatabaseStorage, + this.additionalFlashCacheInPercent, + this.subscriptionId, + this.isAutoscaleEnabled, + this.autoscaleLimitInGBs); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -83,12 +177,24 @@ public DbStorageVaultDetails build() { @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; } } @@ -102,6 +208,23 @@ 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; @@ -128,6 +251,57 @@ 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); @@ -143,10 +317,14 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("DbStorageVaultDetails("); sb.append("super=").append(super.toString()); - sb.append("highCapacityDatabaseStorage=") + 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(); } @@ -161,10 +339,14 @@ public boolean equals(Object o) { } DbStorageVaultDetails other = (DbStorageVaultDetails) o; - return java.util.Objects.equals( + 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); } @@ -172,6 +354,9 @@ public boolean equals(Object o) { 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 @@ -182,6 +367,19 @@ public int hashCode() { + (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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabase.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabase.java index 75e6f56eb4f..cfb3a803ab2 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabase.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabase.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedAutonomousDatabase.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -31,28 +31,35 @@ public final class DistributedAutonomousDatabase "timeUpdated", "databaseVersion", "lifecycleState", + "shardingMethod", + "replicationMethod", + "dbDeploymentType", "lifecycleDetails", "connectionStrings", "prefix", "privateEndpointIds", - "shardingMethod", - "dbWorkload", + "notificationTopicIds", + "dbWorkloadType", "characterSet", "ncharacterSet", - "chunks", "listenerPort", "listenerPortTls", "onsPortLocal", "onsPortRemote", - "replicationMethod", - "replicationFactor", - "replicationUnit", + "systemChunkCount", + "systemRaftReplicationUnitCount", "latestGsmImage", - "dbDeploymentType", - "shardDetails", + "compositeRaftShardSpaces", + "compositeDataGuardShardSpaces", + "systemRaftClusters", + "systemDataGuardDatabases", + "userShardSpaces", "catalogDetails", "gsmDetails", + "gdsControlNodeDetails", "dbBackupConfig", + "autoResourceManagementConfig", + "vcnNsgIds", "metadata", "freeformTags", "definedTags", @@ -66,28 +73,35 @@ public DistributedAutonomousDatabase( java.util.Date timeUpdated, String databaseVersion, LifecycleState lifecycleState, + ShardingMethod shardingMethod, + ReplicationMethod replicationMethod, + DbDeploymentType dbDeploymentType, String lifecycleDetails, DistributedAutonomousDatabaseConnectionString connectionStrings, String prefix, java.util.List privateEndpointIds, - ShardingMethod shardingMethod, - DbWorkload dbWorkload, + java.util.List notificationTopicIds, + DbWorkloadType dbWorkloadType, String characterSet, String ncharacterSet, - Integer chunks, Integer listenerPort, Integer listenerPortTls, Integer onsPortLocal, Integer onsPortRemote, - ReplicationMethod replicationMethod, - Integer replicationFactor, - Integer replicationUnit, + Integer systemChunkCount, + Integer systemRaftReplicationUnitCount, DistributedAutonomousDatabaseGsmImage latestGsmImage, - DbDeploymentType dbDeploymentType, - java.util.List shardDetails, + 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, @@ -100,28 +114,35 @@ public DistributedAutonomousDatabase( 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.shardingMethod = shardingMethod; - this.dbWorkload = dbWorkload; + this.notificationTopicIds = notificationTopicIds; + this.dbWorkloadType = dbWorkloadType; this.characterSet = characterSet; this.ncharacterSet = ncharacterSet; - this.chunks = chunks; this.listenerPort = listenerPort; this.listenerPortTls = listenerPortTls; this.onsPortLocal = onsPortLocal; this.onsPortRemote = onsPortRemote; - this.replicationMethod = replicationMethod; - this.replicationFactor = replicationFactor; - this.replicationUnit = replicationUnit; + this.systemChunkCount = systemChunkCount; + this.systemRaftReplicationUnitCount = systemRaftReplicationUnitCount; this.latestGsmImage = latestGsmImage; - this.dbDeploymentType = dbDeploymentType; - this.shardDetails = shardDetails; + 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; @@ -185,14 +206,14 @@ public Builder displayName(String displayName) { } /** * The time the Globally distributed autonomous database was created. An RFC3339 formatted - * datetime string + * 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 + * datetime string. * * @param timeCreated the value to set * @return this builder @@ -204,14 +225,14 @@ public Builder timeCreated(java.util.Date timeCreated) { } /** * The time the Globally distributed autonomous database was last updated. An RFC3339 - * formatted datetime string + * 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 + * formatted datetime string. * * @param timeUpdated the value to set * @return this builder @@ -255,6 +276,61 @@ public Builder lifecycleState(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; @@ -322,34 +398,40 @@ public Builder privateEndpointIds(java.util.List privateEndpointIds) { this.__explicitlySet__.add("privateEndpointIds"); return this; } - /** Sharding Methods for the Globally distributed autonomous database. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardingMethod") - private ShardingMethod shardingMethod; + /** + * 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; /** - * Sharding Methods for the Globally distributed autonomous database. + * 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 shardingMethod the value to set + * @param notificationTopicIds the value to set * @return this builder */ - public Builder shardingMethod(ShardingMethod shardingMethod) { - this.shardingMethod = shardingMethod; - this.__explicitlySet__.add("shardingMethod"); + 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("dbWorkload") - private DbWorkload dbWorkload; + @com.fasterxml.jackson.annotation.JsonProperty("dbWorkloadType") + private DbWorkloadType dbWorkloadType; /** * Possible workload types. Currently only OLTP workload type is supported. * - * @param dbWorkload the value to set + * @param dbWorkloadType the value to set * @return this builder */ - public Builder dbWorkload(DbWorkload dbWorkload) { - this.dbWorkload = dbWorkload; - this.__explicitlySet__.add("dbWorkload"); + public Builder dbWorkloadType(DbWorkloadType dbWorkloadType) { + this.dbWorkloadType = dbWorkloadType; + this.__explicitlySet__.add("dbWorkloadType"); return this; } /** The character set for the database. */ @@ -382,25 +464,6 @@ public Builder ncharacterSet(String ncharacterSet) { this.__explicitlySet__.add("ncharacterSet"); return this; } - /** - * The default number of unique chunks in a shardspace. The value of chunks must be greater - * than 2 times the size of the largest shardgroup in any shardspace. - */ - @com.fasterxml.jackson.annotation.JsonProperty("chunks") - private Integer chunks; - - /** - * The default number of unique chunks in a shardspace. The value of chunks must be greater - * than 2 times the size of the largest shardgroup in any shardspace. - * - * @param chunks the value to set - * @return this builder - */ - public Builder chunks(Integer chunks) { - this.chunks = chunks; - this.__explicitlySet__.add("chunks"); - return this; - } /** The listener port number for the Globally distributed autonomous database. */ @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") private Integer listenerPort; @@ -461,113 +524,126 @@ public Builder onsPortRemote(Integer onsPortRemote) { this.__explicitlySet__.add("onsPortRemote"); return this; } - /** - * The Replication method for Globally distributed autonomous database. Use RAFT for Raft - * replication, and DG for DataGuard. If replicationMethod is not provided, it defaults to - * DG. - */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") - private ReplicationMethod replicationMethod; + /** Count of chunks associated with system raft clusters or system data guard databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") + private Integer systemChunkCount; /** - * The Replication method for Globally distributed autonomous database. Use RAFT for Raft - * replication, and DG for DataGuard. If replicationMethod is not provided, it defaults to - * DG. + * Count of chunks associated with system raft clusters or system data guard databases. * - * @param replicationMethod the value to set + * @param systemChunkCount the value to set * @return this builder */ - public Builder replicationMethod(ReplicationMethod replicationMethod) { - this.replicationMethod = replicationMethod; - this.__explicitlySet__.add("replicationMethod"); + public Builder systemChunkCount(Integer systemChunkCount) { + this.systemChunkCount = systemChunkCount; + this.__explicitlySet__.add("systemChunkCount"); return this; } - /** - * The Replication factor for RAFT replication based Globally distributed autonomous - * database. Currently supported values are 3, 5 and 7. - */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private Integer replicationFactor; + /** Number of replication units associated with system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftReplicationUnitCount") + private Integer systemRaftReplicationUnitCount; /** - * The Replication factor for RAFT replication based Globally distributed autonomous - * database. Currently supported values are 3, 5 and 7. + * Number of replication units associated with system raft clusters. * - * @param replicationFactor the value to set + * @param systemRaftReplicationUnitCount the value to set * @return this builder */ - public Builder replicationFactor(Integer replicationFactor) { - this.replicationFactor = replicationFactor; - this.__explicitlySet__.add("replicationFactor"); + public Builder systemRaftReplicationUnitCount(Integer systemRaftReplicationUnitCount) { + this.systemRaftReplicationUnitCount = systemRaftReplicationUnitCount; + this.__explicitlySet__.add("systemRaftReplicationUnitCount"); return this; } - /** - * The replication unit count for RAFT based distributed autonomous database. For RAFT - * replication based Globally distributed autonomous database, the value should be at least - * twice the number of shards. - */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationUnit") - private Integer replicationUnit; + + @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; /** - * The replication unit count for RAFT based distributed autonomous database. For RAFT - * replication based Globally distributed autonomous database, the value should be at least - * twice the number of shards. + * Collection of composite raft shards. * - * @param replicationUnit the value to set + * @param compositeRaftShardSpaces the value to set * @return this builder */ - public Builder replicationUnit(Integer replicationUnit) { - this.replicationUnit = replicationUnit; - this.__explicitlySet__.add("replicationUnit"); + 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; - @com.fasterxml.jackson.annotation.JsonProperty("latestGsmImage") - private DistributedAutonomousDatabaseGsmImage latestGsmImage; - - public Builder latestGsmImage(DistributedAutonomousDatabaseGsmImage latestGsmImage) { - this.latestGsmImage = latestGsmImage; - this.__explicitlySet__.add("latestGsmImage"); + /** + * 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; } - /** The distributed autonomous database deployment type. */ - @com.fasterxml.jackson.annotation.JsonProperty("dbDeploymentType") - private DbDeploymentType dbDeploymentType; + /** Collection of system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftClusters") + private java.util.List systemRaftClusters; /** - * The distributed autonomous database deployment type. + * Collection of system raft clusters. * - * @param dbDeploymentType the value to set + * @param systemRaftClusters the value to set * @return this builder */ - public Builder dbDeploymentType(DbDeploymentType dbDeploymentType) { - this.dbDeploymentType = dbDeploymentType; - this.__explicitlySet__.add("dbDeploymentType"); + 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 shards associated with the Globally distributed autonomous database. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardDetails") - private java.util.List shardDetails; + /** Collection of user defined shard spaces. */ + @com.fasterxml.jackson.annotation.JsonProperty("userShardSpaces") + private java.util.List userShardSpaces; /** - * Collection of shards associated with the Globally distributed autonomous database. + * Collection of user defined shard spaces. * - * @param shardDetails the value to set + * @param userShardSpaces the value to set * @return this builder */ - public Builder shardDetails( - java.util.List shardDetails) { - this.shardDetails = shardDetails; - this.__explicitlySet__.add("shardDetails"); + public Builder userShardSpaces(java.util.List userShardSpaces) { + this.userShardSpaces = userShardSpaces; + this.__explicitlySet__.add("userShardSpaces"); return this; } - /** Collection of catalogs associated with the Globally distributed autonomous database. */ + /** Catalog details associated with the distributed autonomous database. */ @com.fasterxml.jackson.annotation.JsonProperty("catalogDetails") private java.util.List catalogDetails; /** - * Collection of catalogs associated with the Globally distributed autonomous database. + * Catalog details associated with the distributed autonomous database. * * @param catalogDetails the value to set * @return this builder @@ -578,12 +654,16 @@ public Builder catalogDetails( this.__explicitlySet__.add("catalogDetails"); return this; } - /** Collection of catalogs associated with the Globally distributed autonomous database. */ + /** + * Global Service Manager (GSM) instances associated with the distributed autonomous + * database. + */ @com.fasterxml.jackson.annotation.JsonProperty("gsmDetails") private java.util.List gsmDetails; /** - * Collection of catalogs associated with the Globally distributed autonomous database. + * Global Service Manager (GSM) instances associated with the distributed autonomous + * database. * * @param gsmDetails the value to set * @return this builder @@ -593,6 +673,26 @@ public Builder gsmDetails(java.util.List gsmDe 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; @@ -603,6 +703,35 @@ public Builder dbBackupConfig(DistributedAutonomousDbBackupConfig 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; @@ -683,28 +812,35 @@ public DistributedAutonomousDatabase build() { this.timeUpdated, this.databaseVersion, this.lifecycleState, + this.shardingMethod, + this.replicationMethod, + this.dbDeploymentType, this.lifecycleDetails, this.connectionStrings, this.prefix, this.privateEndpointIds, - this.shardingMethod, - this.dbWorkload, + this.notificationTopicIds, + this.dbWorkloadType, this.characterSet, this.ncharacterSet, - this.chunks, this.listenerPort, this.listenerPortTls, this.onsPortLocal, this.onsPortRemote, - this.replicationMethod, - this.replicationFactor, - this.replicationUnit, + this.systemChunkCount, + this.systemRaftReplicationUnitCount, this.latestGsmImage, - this.dbDeploymentType, - this.shardDetails, + 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, @@ -738,6 +874,15 @@ public Builder copy(DistributedAutonomousDatabase model) { 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()); } @@ -750,11 +895,11 @@ public Builder copy(DistributedAutonomousDatabase model) { if (model.wasPropertyExplicitlySet("privateEndpointIds")) { this.privateEndpointIds(model.getPrivateEndpointIds()); } - if (model.wasPropertyExplicitlySet("shardingMethod")) { - this.shardingMethod(model.getShardingMethod()); + if (model.wasPropertyExplicitlySet("notificationTopicIds")) { + this.notificationTopicIds(model.getNotificationTopicIds()); } - if (model.wasPropertyExplicitlySet("dbWorkload")) { - this.dbWorkload(model.getDbWorkload()); + if (model.wasPropertyExplicitlySet("dbWorkloadType")) { + this.dbWorkloadType(model.getDbWorkloadType()); } if (model.wasPropertyExplicitlySet("characterSet")) { this.characterSet(model.getCharacterSet()); @@ -762,9 +907,6 @@ public Builder copy(DistributedAutonomousDatabase model) { if (model.wasPropertyExplicitlySet("ncharacterSet")) { this.ncharacterSet(model.getNcharacterSet()); } - if (model.wasPropertyExplicitlySet("chunks")) { - this.chunks(model.getChunks()); - } if (model.wasPropertyExplicitlySet("listenerPort")) { this.listenerPort(model.getListenerPort()); } @@ -777,23 +919,29 @@ public Builder copy(DistributedAutonomousDatabase model) { if (model.wasPropertyExplicitlySet("onsPortRemote")) { this.onsPortRemote(model.getOnsPortRemote()); } - if (model.wasPropertyExplicitlySet("replicationMethod")) { - this.replicationMethod(model.getReplicationMethod()); - } - if (model.wasPropertyExplicitlySet("replicationFactor")) { - this.replicationFactor(model.getReplicationFactor()); + if (model.wasPropertyExplicitlySet("systemChunkCount")) { + this.systemChunkCount(model.getSystemChunkCount()); } - if (model.wasPropertyExplicitlySet("replicationUnit")) { - this.replicationUnit(model.getReplicationUnit()); + if (model.wasPropertyExplicitlySet("systemRaftReplicationUnitCount")) { + this.systemRaftReplicationUnitCount(model.getSystemRaftReplicationUnitCount()); } if (model.wasPropertyExplicitlySet("latestGsmImage")) { this.latestGsmImage(model.getLatestGsmImage()); } - if (model.wasPropertyExplicitlySet("dbDeploymentType")) { - this.dbDeploymentType(model.getDbDeploymentType()); + 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("shardDetails")) { - this.shardDetails(model.getShardDetails()); + if (model.wasPropertyExplicitlySet("systemDataGuardDatabases")) { + this.systemDataGuardDatabases(model.getSystemDataGuardDatabases()); + } + if (model.wasPropertyExplicitlySet("userShardSpaces")) { + this.userShardSpaces(model.getUserShardSpaces()); } if (model.wasPropertyExplicitlySet("catalogDetails")) { this.catalogDetails(model.getCatalogDetails()); @@ -801,9 +949,18 @@ public Builder copy(DistributedAutonomousDatabase model) { 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()); } @@ -878,14 +1035,14 @@ public String getDisplayName() { /** * The time the Globally distributed autonomous database was created. An RFC3339 formatted - * datetime string + * 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 + * datetime string. * * @return the value */ @@ -895,14 +1052,14 @@ public java.util.Date getTimeCreated() { /** * The time the Globally distributed autonomous database was last updated. An RFC3339 formatted - * datetime string + * 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 + * datetime string. * * @return the value */ @@ -992,68 +1149,11 @@ public 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; - } - - @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; - } - - /** Sharding Methods for the Globally distributed autonomous database. */ + /** 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 @@ -1096,12 +1196,12 @@ public static ShardingMethod create(String key) { return UnknownEnumValue; } }; - /** Sharding Methods for the Globally distributed autonomous database. */ + /** 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. + * Sharding methods for the Globally distributed autonomous database. * * @return the value */ @@ -1109,10 +1209,16 @@ public ShardingMethod getShardingMethod() { return shardingMethod; } - /** Possible workload types. Currently only OLTP workload type is supported. */ - public enum DbWorkload implements com.oracle.bmc.http.internal.BmcEnum { - Oltp("OLTP"), - Dw("DW"), + /** + * 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 @@ -1121,21 +1227,21 @@ public enum DbWorkload implements com.oracle.bmc.http.internal.BmcEnum { UnknownEnumValue(null); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DbWorkload.class); + org.slf4j.LoggerFactory.getLogger(ReplicationMethod.class); private final String value; - private static java.util.Map map; + private static java.util.Map map; static { map = new java.util.HashMap<>(); - for (DbWorkload v : DbWorkload.values()) { + for (ReplicationMethod v : ReplicationMethod.values()) { if (v != UnknownEnumValue) { map.put(v.getValue(), v); } } } - DbWorkload(String value) { + ReplicationMethod(String value) { this.value = value; } @@ -1145,131 +1251,178 @@ public String getValue() { } @com.fasterxml.jackson.annotation.JsonCreator - public static DbWorkload create(String key) { + public static ReplicationMethod create(String key) { if (map.containsKey(key)) { return map.get(key); } LOG.warn( - "Received unknown value '{}' for enum 'DbWorkload', returning UnknownEnumValue", + "Received unknown value '{}' for enum 'ReplicationMethod', returning UnknownEnumValue", key); return UnknownEnumValue; } }; - /** Possible workload types. Currently only OLTP workload type is supported. */ - @com.fasterxml.jackson.annotation.JsonProperty("dbWorkload") - private final DbWorkload dbWorkload; - /** - * Possible workload types. Currently only OLTP workload type is supported. - * - * @return the value + * 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 DbWorkload getDbWorkload() { - return dbWorkload; - } - - /** The character set for the database. */ - @com.fasterxml.jackson.annotation.JsonProperty("characterSet") - private final String characterSet; + @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") + private final ReplicationMethod replicationMethod; /** - * The character set for the database. + * 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 String getCharacterSet() { - return characterSet; + public ReplicationMethod getReplicationMethod() { + return replicationMethod; } - /** The national character set for the database. */ - @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") - private final String ncharacterSet; + /** 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 national character set for the database. + * The distributed autonomous database deployment type. * * @return the value */ - public String getNcharacterSet() { - return ncharacterSet; + public DbDeploymentType getDbDeploymentType() { + return dbDeploymentType; } - /** - * The default number of unique chunks in a shardspace. The value of chunks must be greater than - * 2 times the size of the largest shardgroup in any shardspace. - */ - @com.fasterxml.jackson.annotation.JsonProperty("chunks") - private final Integer chunks; + /** The lifecycleDetails for the Globally distributed autonomous database. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; /** - * The default number of unique chunks in a shardspace. The value of chunks must be greater than - * 2 times the size of the largest shardgroup in any shardspace. + * The lifecycleDetails for the Globally distributed autonomous database. * * @return the value */ - public Integer getChunks() { - return chunks; + public String getLifecycleDetails() { + return lifecycleDetails; } - /** The listener port number for the Globally distributed autonomous database. */ - @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") - private final Integer listenerPort; + @com.fasterxml.jackson.annotation.JsonProperty("connectionStrings") + private final DistributedAutonomousDatabaseConnectionString connectionStrings; - /** - * The listener port number for the Globally distributed autonomous database. - * - * @return the value - */ - public Integer getListenerPort() { - return listenerPort; + public DistributedAutonomousDatabaseConnectionString getConnectionStrings() { + return connectionStrings; } - /** The TLS listener port number for Globally distributed autonomous database. */ - @com.fasterxml.jackson.annotation.JsonProperty("listenerPortTls") - private final Integer listenerPortTls; + /** + * 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; /** - * The TLS listener port number for Globally distributed autonomous database. + * 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 Integer getListenerPortTls() { - return listenerPortTls; + public String getPrefix() { + return prefix; } - /** Ons local port number for Globally distributed autonomous database. */ - @com.fasterxml.jackson.annotation.JsonProperty("onsPortLocal") - private final Integer onsPortLocal; + /** + * 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; /** - * Ons local port number for Globally distributed autonomous database. + * 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 Integer getOnsPortLocal() { - return onsPortLocal; + public java.util.List getPrivateEndpointIds() { + return privateEndpointIds; } - /** Ons remote port number for Globally distributed autonomous database. */ - @com.fasterxml.jackson.annotation.JsonProperty("onsPortRemote") - private final Integer onsPortRemote; + /** + * 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; /** - * Ons remote port number for Globally distributed autonomous database. + * 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 Integer getOnsPortRemote() { - return onsPortRemote; + public java.util.List getNotificationTopicIds() { + return notificationTopicIds; } - /** - * The Replication method for Globally distributed autonomous database. Use RAFT for Raft - * replication, and DG for DataGuard. If replicationMethod is not provided, it defaults to DG. - */ - public enum ReplicationMethod implements com.oracle.bmc.http.internal.BmcEnum { - Raft("RAFT"), - Dg("DG"), + /** 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 @@ -1278,21 +1431,21 @@ public enum ReplicationMethod implements com.oracle.bmc.http.internal.BmcEnum { UnknownEnumValue(null); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ReplicationMethod.class); + org.slf4j.LoggerFactory.getLogger(DbWorkloadType.class); private final String value; - private static java.util.Map map; + private static java.util.Map map; static { map = new java.util.HashMap<>(); - for (ReplicationMethod v : ReplicationMethod.values()) { + for (DbWorkloadType v : DbWorkloadType.values()) { if (v != UnknownEnumValue) { map.put(v.getValue(), v); } } } - ReplicationMethod(String value) { + DbWorkloadType(String value) { this.value = value; } @@ -1302,67 +1455,131 @@ public String getValue() { } @com.fasterxml.jackson.annotation.JsonCreator - public static ReplicationMethod create(String key) { + public static DbWorkloadType create(String key) { if (map.containsKey(key)) { return map.get(key); } LOG.warn( - "Received unknown value '{}' for enum 'ReplicationMethod', returning UnknownEnumValue", + "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; + /** - * The Replication method for Globally distributed autonomous database. Use RAFT for Raft - * replication, and DG for DataGuard. If replicationMethod is not provided, it defaults to DG. + * Possible workload types. Currently only OLTP workload type is supported. + * + * @return the value */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") - private final ReplicationMethod replicationMethod; + public DbWorkloadType getDbWorkloadType() { + return dbWorkloadType; + } + + /** The character set for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + private final String characterSet; /** - * The Replication method for Globally distributed autonomous database. Use RAFT for Raft - * replication, and DG for DataGuard. If replicationMethod is not provided, it defaults to DG. + * The character set for the database. * * @return the value */ - public ReplicationMethod getReplicationMethod() { - return replicationMethod; + public String getCharacterSet() { + return characterSet; } + /** The national character set for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + private final String ncharacterSet; + /** - * The Replication factor for RAFT replication based Globally distributed autonomous database. - * Currently supported values are 3, 5 and 7. + * The national character set for the database. + * + * @return the value */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private final Integer replicationFactor; + 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 Replication factor for RAFT replication based Globally distributed autonomous database. - * Currently supported values are 3, 5 and 7. + * The listener port number for the Globally distributed autonomous database. * * @return the value */ - public Integer getReplicationFactor() { - return replicationFactor; + 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; + /** - * The replication unit count for RAFT based distributed autonomous database. For RAFT - * replication based Globally distributed autonomous database, the value should be at least - * twice the number of shards. + * Count of chunks associated with system raft clusters or system data guard databases. + * + * @return the value */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationUnit") - private final Integer replicationUnit; + public Integer getSystemChunkCount() { + return systemChunkCount; + } + + /** Number of replication units associated with system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftReplicationUnitCount") + private final Integer systemRaftReplicationUnitCount; /** - * The replication unit count for RAFT based distributed autonomous database. For RAFT - * replication based Globally distributed autonomous database, the value should be at least - * twice the number of shards. + * Number of replication units associated with system raft clusters. * * @return the value */ - public Integer getReplicationUnit() { - return replicationUnit; + public Integer getSystemRaftReplicationUnitCount() { + return systemRaftReplicationUnitCount; } @com.fasterxml.jackson.annotation.JsonProperty("latestGsmImage") @@ -1372,83 +1589,73 @@ public DistributedAutonomousDatabaseGsmImage getLatestGsmImage() { return latestGsmImage; } - /** The distributed autonomous database deployment type. */ - public enum DbDeploymentType implements com.oracle.bmc.http.internal.BmcEnum { - AdbD("ADB_D"), + /** Collection of composite raft shards. */ + @com.fasterxml.jackson.annotation.JsonProperty("compositeRaftShardSpaces") + private final java.util.List compositeRaftShardSpaces; - /** - * 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); - } - } - } + /** + * Collection of composite raft shards. + * + * @return the value + */ + public java.util.List getCompositeRaftShardSpaces() { + return compositeRaftShardSpaces; + } - DbDeploymentType(String value) { - this.value = value; - } + /** Collection of composite data guard shard spaces. */ + @com.fasterxml.jackson.annotation.JsonProperty("compositeDataGuardShardSpaces") + private final java.util.List + compositeDataGuardShardSpaces; - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } + /** + * Collection of composite data guard shard spaces. + * + * @return the value + */ + public java.util.List + getCompositeDataGuardShardSpaces() { + return compositeDataGuardShardSpaces; + } - @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; + /** Collection of system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftClusters") + private final java.util.List systemRaftClusters; /** - * The distributed autonomous database deployment type. + * Collection of system raft clusters. * * @return the value */ - public DbDeploymentType getDbDeploymentType() { - return dbDeploymentType; + public java.util.List getSystemRaftClusters() { + return systemRaftClusters; } - /** Collection of shards associated with the Globally distributed autonomous database. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardDetails") - private final java.util.List shardDetails; + @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 shards associated with the Globally distributed autonomous database. + * Collection of user defined shard spaces. * * @return the value */ - public java.util.List getShardDetails() { - return shardDetails; + public java.util.List getUserShardSpaces() { + return userShardSpaces; } - /** Collection of catalogs associated with the Globally distributed autonomous database. */ + /** Catalog details associated with the distributed autonomous database. */ @com.fasterxml.jackson.annotation.JsonProperty("catalogDetails") private final java.util.List catalogDetails; /** - * Collection of catalogs associated with the Globally distributed autonomous database. + * Catalog details associated with the distributed autonomous database. * * @return the value */ @@ -1456,12 +1663,14 @@ public java.util.List getCatalogDetails() return catalogDetails; } - /** Collection of catalogs associated with the Globally distributed autonomous database. */ + /** + * Global Service Manager (GSM) instances associated with the distributed autonomous database. + */ @com.fasterxml.jackson.annotation.JsonProperty("gsmDetails") private final java.util.List gsmDetails; /** - * Collection of catalogs associated with the Globally distributed autonomous database. + * Global Service Manager (GSM) instances associated with the distributed autonomous database. * * @return the value */ @@ -1469,6 +1678,23 @@ 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; @@ -1476,6 +1702,30 @@ 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; @@ -1556,28 +1806,40 @@ public String toString(boolean includeByteArrayContents) { 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(", shardingMethod=").append(String.valueOf(this.shardingMethod)); - sb.append(", dbWorkload=").append(String.valueOf(this.dbWorkload)); + 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(", chunks=").append(String.valueOf(this.chunks)); 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(", replicationMethod=").append(String.valueOf(this.replicationMethod)); - sb.append(", replicationFactor=").append(String.valueOf(this.replicationFactor)); - sb.append(", replicationUnit=").append(String.valueOf(this.replicationUnit)); + 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(", dbDeploymentType=").append(String.valueOf(this.dbDeploymentType)); - sb.append(", shardDetails=").append(String.valueOf(this.shardDetails)); + 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)); @@ -1603,28 +1865,40 @@ public boolean equals(Object o) { && 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.shardingMethod, other.shardingMethod) - && java.util.Objects.equals(this.dbWorkload, other.dbWorkload) + && 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.chunks, other.chunks) && 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.replicationMethod, other.replicationMethod) - && java.util.Objects.equals(this.replicationFactor, other.replicationFactor) - && java.util.Objects.equals(this.replicationUnit, other.replicationUnit) + && 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.dbDeploymentType, other.dbDeploymentType) - && java.util.Objects.equals(this.shardDetails, other.shardDetails) + && 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) @@ -1649,6 +1923,15 @@ public int 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()); @@ -1663,13 +1946,16 @@ public int hashCode() { : this.privateEndpointIds.hashCode()); result = (result * PRIME) - + (this.shardingMethod == null ? 43 : this.shardingMethod.hashCode()); - result = (result * PRIME) + (this.dbWorkload == null ? 43 : this.dbWorkload.hashCode()); + + (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.chunks == null ? 43 : this.chunks.hashCode()); result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); result = (result * PRIME) @@ -1680,27 +1966,56 @@ public int hashCode() { + (this.onsPortRemote == null ? 43 : this.onsPortRemote.hashCode()); result = (result * PRIME) - + (this.replicationMethod == null ? 43 : this.replicationMethod.hashCode()); + + (this.systemChunkCount == null ? 43 : this.systemChunkCount.hashCode()); result = (result * PRIME) - + (this.replicationFactor == null ? 43 : this.replicationFactor.hashCode()); + + (this.systemRaftReplicationUnitCount == null + ? 43 + : this.systemRaftReplicationUnitCount.hashCode()); result = (result * PRIME) - + (this.replicationUnit == null ? 43 : this.replicationUnit.hashCode()); + + (this.latestGsmImage == null ? 43 : this.latestGsmImage.hashCode()); result = (result * PRIME) - + (this.latestGsmImage == null ? 43 : this.latestGsmImage.hashCode()); + + (this.compositeRaftShardSpaces == null + ? 43 + : this.compositeRaftShardSpaces.hashCode()); result = (result * PRIME) - + (this.dbDeploymentType == null ? 43 : this.dbDeploymentType.hashCode()); - result = (result * PRIME) + (this.shardDetails == null ? 43 : this.shardDetails.hashCode()); + + (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()); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseAssociatedWithPrivateEndpoint.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseAssociatedWithPrivateEndpoint.java deleted file mode 100644 index eb022354817..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseAssociatedWithPrivateEndpoint.java +++ /dev/null @@ -1,185 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.model; - -/** - * This field is deprecated. Support for this field will be removed after Mon, 1 Mar 2027 00:00:00 - * GMT.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedAutonomousDatabaseAssociatedWithPrivateEndpoint.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class DistributedAutonomousDatabaseAssociatedWithPrivateEndpoint - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"id", "dbDeploymentType"}) - public DistributedAutonomousDatabaseAssociatedWithPrivateEndpoint( - String id, DistributedAutonomousDatabase.DbDeploymentType dbDeploymentType) { - super(); - this.id = id; - this.dbDeploymentType = dbDeploymentType; - } - - @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 - * 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 - * 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 dbDeploymentType associated with the distributed autonomous database. */ - @com.fasterxml.jackson.annotation.JsonProperty("dbDeploymentType") - private DistributedAutonomousDatabase.DbDeploymentType dbDeploymentType; - - /** - * The dbDeploymentType associated with the distributed autonomous database. - * - * @param dbDeploymentType the value to set - * @return this builder - */ - public Builder dbDeploymentType( - DistributedAutonomousDatabase.DbDeploymentType dbDeploymentType) { - this.dbDeploymentType = dbDeploymentType; - this.__explicitlySet__.add("dbDeploymentType"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedAutonomousDatabaseAssociatedWithPrivateEndpoint build() { - DistributedAutonomousDatabaseAssociatedWithPrivateEndpoint model = - new DistributedAutonomousDatabaseAssociatedWithPrivateEndpoint( - this.id, this.dbDeploymentType); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedAutonomousDatabaseAssociatedWithPrivateEndpoint model) { - if (model.wasPropertyExplicitlySet("id")) { - this.id(model.getId()); - } - if (model.wasPropertyExplicitlySet("dbDeploymentType")) { - this.dbDeploymentType(model.getDbDeploymentType()); - } - 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 - * 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 - * distributed database. - * - * @return the value - */ - public String getId() { - return id; - } - - /** The dbDeploymentType associated with the distributed autonomous database. */ - @com.fasterxml.jackson.annotation.JsonProperty("dbDeploymentType") - private final DistributedAutonomousDatabase.DbDeploymentType dbDeploymentType; - - /** - * The dbDeploymentType associated with the distributed autonomous database. - * - * @return the value - */ - public DistributedAutonomousDatabase.DbDeploymentType getDbDeploymentType() { - return dbDeploymentType; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedAutonomousDatabaseAssociatedWithPrivateEndpoint("); - sb.append("super=").append(super.toString()); - sb.append("id=").append(String.valueOf(this.id)); - sb.append(", dbDeploymentType=").append(String.valueOf(this.dbDeploymentType)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedAutonomousDatabaseAssociatedWithPrivateEndpoint)) { - return false; - } - - DistributedAutonomousDatabaseAssociatedWithPrivateEndpoint other = - (DistributedAutonomousDatabaseAssociatedWithPrivateEndpoint) o; - return java.util.Objects.equals(this.id, other.id) - && java.util.Objects.equals(this.dbDeploymentType, other.dbDeploymentType) - && 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.dbDeploymentType == null ? 43 : this.dbDeploymentType.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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseAutoResourceManagementDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseAutoResourceManagementDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseAutoResourceManagementDetails.java index c14126e8859..563f597c0a8 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseAutoResourceManagementDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseAutoResourceManagementDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Automatic resource management configuration details for the Globally distributed autonomous diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseCatalog.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseCatalog.java index 463f02496c6..6602ce9fb81 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseCatalog.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseCatalog.java @@ -5,7 +5,7 @@ package com.oracle.bmc.distributeddatabase.model; /** - * Globally distributed autonomous database catalog.
+ * 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 @@ -15,68 +15,104 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source", - defaultImpl = DistributedAutonomousDatabaseCatalog.class) -@com.fasterxml.jackson.annotation.JsonSubTypes({ - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = DistributedAutonomousDatabaseCatalogWithDedicatedInfra.class, - name = "ADB_D") -}) +@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 class DistributedAutonomousDatabaseCatalog +public final class DistributedAutonomousDatabaseCatalog extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"name", "timeCreated", "timeUpdated"}) - protected DistributedAutonomousDatabaseCatalog( - String name, java.util.Date timeCreated, java.util.Date timeUpdated) { + @java.beans.ConstructorProperties({"originalReplica", "dataGuardReplicas"}) + public DistributedAutonomousDatabaseCatalog( + DistributedAutonomousDatabaseCatalogReplica originalReplica, + java.util.List dataGuardReplicas) { super(); - this.name = name; - this.timeCreated = timeCreated; - this.timeUpdated = timeUpdated; + this.originalReplica = originalReplica; + this.dataGuardReplicas = dataGuardReplicas; } - /** The name of catalog. */ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { - /** - * The name of catalog. - * - * @return the value - */ - public String getName() { - return name; + @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; + } } - /** The time the catalog was created. An RFC3339 formatted datetime string */ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private final java.util.Date timeCreated; + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } - /** - * The time the catalog was created. An RFC3339 formatted datetime string - * - * @return the value - */ - public java.util.Date getTimeCreated() { - return timeCreated; + public Builder toBuilder() { + return new Builder().copy(this); + } + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private final DistributedAutonomousDatabaseCatalogReplica originalReplica; + + public DistributedAutonomousDatabaseCatalogReplica getOriginalReplica() { + return originalReplica; } - /** 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 details of data guard replicas for the catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private final java.util.List dataGuardReplicas; /** - * The time the catalog was last updated. An RFC3339 formatted datetime string + * The details of data guard replicas for the catalog. * * @return the value */ - public java.util.Date getTimeUpdated() { - return timeUpdated; + public java.util.List getDataGuardReplicas() { + return dataGuardReplicas; } @Override @@ -94,9 +130,8 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("DistributedAutonomousDatabaseCatalog("); 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("originalReplica=").append(String.valueOf(this.originalReplica)); + sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); sb.append(")"); return sb.toString(); } @@ -111,9 +146,8 @@ public boolean equals(Object o) { } DistributedAutonomousDatabaseCatalog other = (DistributedAutonomousDatabaseCatalog) 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) + return java.util.Objects.equals(this.originalReplica, other.originalReplica) + && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) && super.equals(other); } @@ -121,58 +155,13 @@ public boolean equals(Object o) { 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.originalReplica == null ? 43 : this.originalReplica.hashCode()); + result = + (result * PRIME) + + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } - - /** - * The source of Globally distributed autonomous database type: Use ADB_D for the Globally - * distributed autonomous database with autonomous dedicated cloudautonomousvmclusters. - */ - public enum Source 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(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/DistributedAutonomousDatabaseCatalogDatabase.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseCatalogDatabase.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogDatabase.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseCatalogDatabase.java index f2a7f8fe3fd..38d2056b6b9 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogDatabase.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseCatalogDatabase.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details of the catalog database associated with the Globally distributed autonomous database. diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogReplica.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseCatalogReplica.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogReplica.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseCatalogReplica.java index 03db568690c..bca6d745788 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogReplica.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseCatalogReplica.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details of a catalog replica.
diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseCatalogWithDedicatedInfra.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseCatalogWithDedicatedInfra.java index a407e784e57..6c2860ce32e 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseCatalogWithDedicatedInfra.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseCatalogWithDedicatedInfra.java @@ -5,7 +5,7 @@ package com.oracle.bmc.distributeddatabase.model; /** - * Globally distributed autonomous database catalog with dedicated autonomous infrastructure.
+ * 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 @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedAutonomousDatabaseCatalogWithDedicatedInfra.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( @@ -25,7 +25,7 @@ @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class DistributedAutonomousDatabaseCatalogWithDedicatedInfra - extends DistributedAutonomousDatabaseCatalog { + extends DistributedAutonomousDatabaseCatalogDatabase { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { @com.fasterxml.jackson.annotation.JsonProperty("name") @@ -54,6 +54,15 @@ public Builder timeUpdated(java.util.Date 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; @@ -84,12 +93,16 @@ public Builder dataStorageSizeInGbs(Double dataStorageSizeInGbs) { this.__explicitlySet__.add("dataStorageSizeInGbs"); return this; } - /** Determines the auto-scaling mode for the catalog database. */ + /** + * 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; /** - * Determines the auto-scaling mode for the catalog database. + * 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 @@ -99,31 +112,16 @@ public Builder isAutoScalingEnabled(Boolean isAutoScalingEnabled) { this.__explicitlySet__.add("isAutoScalingEnabled"); return this; } - /** The name of the shardGroup for the catalog. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardGroup") - private String shardGroup; - - /** - * The name of the shardGroup for the catalog. - * - * @param shardGroup the value to set - * @return this builder - */ - public Builder shardGroup(String shardGroup) { - this.shardGroup = shardGroup; - this.__explicitlySet__.add("shardGroup"); - return this; - } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * cloudAutonomousVmCluster. + * 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 - * cloudAutonomousVmCluster. + * cloud Autonomous VM Cluster. * * @param cloudAutonomousVmClusterId the value to set * @return this builder @@ -133,24 +131,6 @@ public Builder cloudAutonomousVmClusterId(String cloudAutonomousVmClusterId) { this.__explicitlySet__.add("cloudAutonomousVmClusterId"); return this; } - /** - * This field is deprecated. For catalog peer details please refer peerDetails attribute. - */ - @com.fasterxml.jackson.annotation.JsonProperty("peerCloudAutonomousVmClusterIds") - private java.util.List peerCloudAutonomousVmClusterIds; - - /** - * This field is deprecated. For catalog peer details please refer peerDetails attribute. - * - * @param peerCloudAutonomousVmClusterIds the value to set - * @return this builder - */ - public Builder peerCloudAutonomousVmClusterIds( - java.util.List peerCloudAutonomousVmClusterIds) { - this.peerCloudAutonomousVmClusterIds = peerCloudAutonomousVmClusterIds; - this.__explicitlySet__.add("peerCloudAutonomousVmClusterIds"); - return this; - } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure @@ -175,15 +155,17 @@ public Builder vaultId(String vaultId) { return this; } /** - * The OCID of the key container that is used as the master encryption key in database - * transparent data encryption (TDE) operations. + * 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 of the key container that is used as the master encryption key in database - * transparent data encryption (TDE) operations. + * 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 @@ -194,15 +176,17 @@ public Builder kmsKeyId(String kmsKeyId) { return this; } /** - * The OCID of the key container version that is used in database transparent data - * encryption (TDE) operations KMS Key can have multiple key versions. + * 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 of the key container version that is used in database transparent data - * encryption (TDE) operations KMS Key can have multiple key versions. + * 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 @@ -213,110 +197,134 @@ public Builder kmsKeyVersionId(String kmsKeyVersionId) { return this; } /** - * Status of catalog with dedicated infrastructure for the Globally distributed autonomous - * database. + * 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("status") - private Status status; + @com.fasterxml.jackson.annotation.JsonProperty("okvKeyStoreId") + private String okvKeyStoreId; /** - * Status of catalog with dedicated infrastructure for the Globally distributed autonomous - * database. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key store used to create the catalog. * - * @param status the value to set + * @param okvKeyStoreId the value to set * @return this builder */ - public Builder status(Status status) { - this.status = status; - this.__explicitlySet__.add("status"); + public Builder okvKeyStoreId(String okvKeyStoreId) { + this.okvKeyStoreId = okvKeyStoreId; + this.__explicitlySet__.add("okvKeyStoreId"); return this; } - /** the identifier of the underlying supporting resource. */ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private String supportingResourceId; + /** The OKV endpoint name. */ + @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroupName") + private String okvEndPointGroupName; /** - * the identifier of the underlying supporting resource. + * The OKV endpoint name. * - * @param supportingResourceId the value to set + * @param okvEndPointGroupName the value to set * @return this builder */ - public Builder supportingResourceId(String supportingResourceId) { - this.supportingResourceId = supportingResourceId; - this.__explicitlySet__.add("supportingResourceId"); + public Builder okvEndPointGroupName(String okvEndPointGroupName) { + this.okvEndPointGroupName = okvEndPointGroupName; + this.__explicitlySet__.add("okvEndPointGroupName"); return this; } - /** the identifier of the container database for underlying supporting resource. */ - @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") - private String containerDatabaseId; + /** The protection mode for the catalog peer. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedAutonomousDbProtectionMode protectionMode; /** - * the identifier of the container database for underlying supporting resource. + * The protection mode for the catalog peer. * - * @param containerDatabaseId the value to set + * @param protectionMode the value to set * @return this builder */ - public Builder containerDatabaseId(String containerDatabaseId) { - this.containerDatabaseId = containerDatabaseId; - this.__explicitlySet__.add("containerDatabaseId"); + public Builder protectionMode(DistributedAutonomousDbProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); return this; } - /** Peer details for the catalog with dedicated infrastructure. */ - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - private java.util.List peerDetails; + /** The lag time preference based on data loss tolerance in seconds. */ + @com.fasterxml.jackson.annotation.JsonProperty("fastStartFailOverLagLimitInSeconds") + private Integer fastStartFailOverLagLimitInSeconds; /** - * Peer details for the catalog with dedicated infrastructure. + * The lag time preference based on data loss tolerance in seconds. * - * @param peerDetails the value to set + * @param fastStartFailOverLagLimitInSeconds the value to set * @return this builder */ - public Builder peerDetails(java.util.List peerDetails) { - this.peerDetails = peerDetails; - this.__explicitlySet__.add("peerDetails"); + public Builder fastStartFailOverLagLimitInSeconds( + Integer fastStartFailOverLagLimitInSeconds) { + this.fastStartFailOverLagLimitInSeconds = fastStartFailOverLagLimitInSeconds; + this.__explicitlySet__.add("fastStartFailOverLagLimitInSeconds"); return this; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * key store used to create the shard. + * 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("okvKeyStoreId") - private String okvKeyStoreId; + @com.fasterxml.jackson.annotation.JsonProperty("standbyMaintenanceBufferInDays") + private Integer standbyMaintenanceBufferInDays; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * key store used to create the shard. + * 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 okvKeyStoreId the value to set + * @param standbyMaintenanceBufferInDays the value to set * @return this builder */ - public Builder okvKeyStoreId(String okvKeyStoreId) { - this.okvKeyStoreId = okvKeyStoreId; - this.__explicitlySet__.add("okvKeyStoreId"); + public Builder standbyMaintenanceBufferInDays(Integer standbyMaintenanceBufferInDays) { + this.standbyMaintenanceBufferInDays = standbyMaintenanceBufferInDays; + this.__explicitlySet__.add("standbyMaintenanceBufferInDays"); return this; } - /** The OKV endpoint name. */ - @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroup") - private String okvEndPointGroup; + /** Status of the distributed autonomous database catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; /** - * The OKV endpoint name. + * Status of the distributed autonomous database catalog. * - * @param okvEndPointGroup the value to set + * @param status the value to set * @return this builder */ - public Builder okvEndPointGroup(String okvEndPointGroup) { - this.okvEndPointGroup = okvEndPointGroup; - this.__explicitlySet__.add("okvEndPointGroup"); + 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; - @com.fasterxml.jackson.annotation.JsonProperty("metadata") - private DistributedAutonomousDbMetadata metadata; + /** + * 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; - public Builder metadata(DistributedAutonomousDbMetadata metadata) { - this.metadata = metadata; - this.__explicitlySet__.add("metadata"); + /** + * 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; } @@ -329,22 +337,22 @@ public DistributedAutonomousDatabaseCatalogWithDedicatedInfra build() { this.name, this.timeCreated, this.timeUpdated, + this.metadata, this.computeCount, this.dataStorageSizeInGbs, this.isAutoScalingEnabled, - this.shardGroup, this.cloudAutonomousVmClusterId, - this.peerCloudAutonomousVmClusterIds, this.vaultId, this.kmsKeyId, this.kmsKeyVersionId, + this.okvKeyStoreId, + this.okvEndPointGroupName, + this.protectionMode, + this.fastStartFailOverLagLimitInSeconds, + this.standbyMaintenanceBufferInDays, this.status, this.supportingResourceId, - this.containerDatabaseId, - this.peerDetails, - this.okvKeyStoreId, - this.okvEndPointGroup, - this.metadata); + this.containerDatabaseId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -362,6 +370,9 @@ public Builder copy(DistributedAutonomousDatabaseCatalogWithDedicatedInfra model if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } if (model.wasPropertyExplicitlySet("computeCount")) { this.computeCount(model.getComputeCount()); } @@ -371,15 +382,9 @@ public Builder copy(DistributedAutonomousDatabaseCatalogWithDedicatedInfra model if (model.wasPropertyExplicitlySet("isAutoScalingEnabled")) { this.isAutoScalingEnabled(model.getIsAutoScalingEnabled()); } - if (model.wasPropertyExplicitlySet("shardGroup")) { - this.shardGroup(model.getShardGroup()); - } if (model.wasPropertyExplicitlySet("cloudAutonomousVmClusterId")) { this.cloudAutonomousVmClusterId(model.getCloudAutonomousVmClusterId()); } - if (model.wasPropertyExplicitlySet("peerCloudAutonomousVmClusterIds")) { - this.peerCloudAutonomousVmClusterIds(model.getPeerCloudAutonomousVmClusterIds()); - } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -389,6 +394,22 @@ public Builder copy(DistributedAutonomousDatabaseCatalogWithDedicatedInfra model 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()); } @@ -398,18 +419,6 @@ public Builder copy(DistributedAutonomousDatabaseCatalogWithDedicatedInfra model if (model.wasPropertyExplicitlySet("containerDatabaseId")) { this.containerDatabaseId(model.getContainerDatabaseId()); } - if (model.wasPropertyExplicitlySet("peerDetails")) { - this.peerDetails(model.getPeerDetails()); - } - if (model.wasPropertyExplicitlySet("okvKeyStoreId")) { - this.okvKeyStoreId(model.getOkvKeyStoreId()); - } - if (model.wasPropertyExplicitlySet("okvEndPointGroup")) { - this.okvEndPointGroup(model.getOkvEndPointGroup()); - } - if (model.wasPropertyExplicitlySet("metadata")) { - this.metadata(model.getMetadata()); - } return this; } } @@ -428,39 +437,38 @@ public DistributedAutonomousDatabaseCatalogWithDedicatedInfra( String name, java.util.Date timeCreated, java.util.Date timeUpdated, + DistributedAutonomousDbMetadata metadata, Float computeCount, Double dataStorageSizeInGbs, Boolean isAutoScalingEnabled, - String shardGroup, String cloudAutonomousVmClusterId, - java.util.List peerCloudAutonomousVmClusterIds, String vaultId, String kmsKeyId, String kmsKeyVersionId, + String okvKeyStoreId, + String okvEndPointGroupName, + DistributedAutonomousDbProtectionMode protectionMode, + Integer fastStartFailOverLagLimitInSeconds, + Integer standbyMaintenanceBufferInDays, Status status, String supportingResourceId, - String containerDatabaseId, - java.util.List peerDetails, - String okvKeyStoreId, - String okvEndPointGroup, - DistributedAutonomousDbMetadata metadata) { - super(name, timeCreated, timeUpdated); + String containerDatabaseId) { + super(name, timeCreated, timeUpdated, metadata); this.computeCount = computeCount; this.dataStorageSizeInGbs = dataStorageSizeInGbs; this.isAutoScalingEnabled = isAutoScalingEnabled; - this.shardGroup = shardGroup; this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; - this.peerCloudAutonomousVmClusterIds = peerCloudAutonomousVmClusterIds; 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; - this.peerDetails = peerDetails; - this.okvKeyStoreId = okvKeyStoreId; - this.okvEndPointGroup = okvEndPointGroup; - this.metadata = metadata; } /** The compute count for the catalog database. It has to be in multiples of 2. */ @@ -489,12 +497,16 @@ public Double getDataStorageSizeInGbs() { return dataStorageSizeInGbs; } - /** Determines the auto-scaling mode for the catalog database. */ + /** + * 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; /** - * Determines the auto-scaling mode for the catalog database. + * Indicates if vertical auto scaling is enabled for the Autonomous AI Database CPU core count. + * The default value is {@code FALSE}. * * @return the value */ @@ -502,29 +514,16 @@ public Boolean getIsAutoScalingEnabled() { return isAutoScalingEnabled; } - /** The name of the shardGroup for the catalog. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardGroup") - private final String shardGroup; - - /** - * The name of the shardGroup for the catalog. - * - * @return the value - */ - public String getShardGroup() { - return shardGroup; - } - /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * cloudAutonomousVmCluster. + * 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 - * cloudAutonomousVmCluster. + * cloud Autonomous VM Cluster. * * @return the value */ @@ -532,19 +531,6 @@ public String getCloudAutonomousVmClusterId() { return cloudAutonomousVmClusterId; } - /** This field is deprecated. For catalog peer details please refer peerDetails attribute. */ - @com.fasterxml.jackson.annotation.JsonProperty("peerCloudAutonomousVmClusterIds") - private final java.util.List peerCloudAutonomousVmClusterIds; - - /** - * This field is deprecated. For catalog peer details please refer peerDetails attribute. - * - * @return the value - */ - public java.util.List getPeerCloudAutonomousVmClusterIds() { - return peerCloudAutonomousVmClusterIds; - } - /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure @@ -567,15 +553,17 @@ public String getVaultId() { } /** - * The OCID of the key container that is used as the master encryption key in database - * transparent data encryption (TDE) operations. + * 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 of the key container that is used as the master encryption key in database - * transparent data encryption (TDE) operations. + * 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 */ @@ -584,15 +572,17 @@ public String getKmsKeyId() { } /** - * The OCID of the key container version that is used in database transparent data encryption - * (TDE) operations KMS Key can have multiple key versions. + * 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 of the key container version that is used in database transparent data encryption - * (TDE) operations KMS Key can have multiple key versions. + * 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 */ @@ -601,9 +591,81 @@ public String getKmsKeyVersionId() { } /** - * Status of catalog with dedicated infrastructure for the Globally distributed autonomous - * database. + * 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"), @@ -655,16 +717,12 @@ public static Status create(String key) { return UnknownEnumValue; } }; - /** - * Status of catalog with dedicated infrastructure for the Globally distributed autonomous - * database. - */ + /** Status of the distributed autonomous database catalog. */ @com.fasterxml.jackson.annotation.JsonProperty("status") private final Status status; /** - * Status of catalog with dedicated infrastructure for the Globally distributed autonomous - * database. + * Status of the distributed autonomous database catalog. * * @return the value */ @@ -698,56 +756,6 @@ public String getContainerDatabaseId() { return containerDatabaseId; } - /** Peer details for the catalog with dedicated infrastructure. */ - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - private final java.util.List peerDetails; - - /** - * Peer details for the catalog with dedicated infrastructure. - * - * @return the value - */ - public java.util.List getPeerDetails() { - return peerDetails; - } - - /** - * 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("okvEndPointGroup") - private final String okvEndPointGroup; - - /** - * The OKV endpoint name. - * - * @return the value - */ - public String getOkvEndPointGroup() { - return okvEndPointGroup; - } - - @com.fasterxml.jackson.annotation.JsonProperty("metadata") - private final DistributedAutonomousDbMetadata metadata; - - public DistributedAutonomousDbMetadata getMetadata() { - return metadata; - } - @Override public String toString() { return this.toString(true); @@ -766,21 +774,21 @@ public String toString(boolean 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(", shardGroup=").append(String.valueOf(this.shardGroup)); sb.append(", cloudAutonomousVmClusterId=") .append(String.valueOf(this.cloudAutonomousVmClusterId)); - sb.append(", peerCloudAutonomousVmClusterIds=") - .append(String.valueOf(this.peerCloudAutonomousVmClusterIds)); 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(", peerDetails=").append(String.valueOf(this.peerDetails)); - sb.append(", okvKeyStoreId=").append(String.valueOf(this.okvKeyStoreId)); - sb.append(", okvEndPointGroup=").append(String.valueOf(this.okvEndPointGroup)); - sb.append(", metadata=").append(String.valueOf(this.metadata)); sb.append(")"); return sb.toString(); } @@ -799,21 +807,22 @@ public boolean equals(Object 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.shardGroup, other.shardGroup) && java.util.Objects.equals( this.cloudAutonomousVmClusterId, other.cloudAutonomousVmClusterId) - && java.util.Objects.equals( - this.peerCloudAutonomousVmClusterIds, other.peerCloudAutonomousVmClusterIds) && 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) - && java.util.Objects.equals(this.peerDetails, other.peerDetails) - && java.util.Objects.equals(this.okvKeyStoreId, other.okvKeyStoreId) - && java.util.Objects.equals(this.okvEndPointGroup, other.okvEndPointGroup) - && java.util.Objects.equals(this.metadata, other.metadata) && super.equals(other); } @@ -832,22 +841,37 @@ public int hashCode() { + (this.isAutoScalingEnabled == null ? 43 : this.isAutoScalingEnabled.hashCode()); - result = (result * PRIME) + (this.shardGroup == null ? 43 : this.shardGroup.hashCode()); result = (result * PRIME) + (this.cloudAutonomousVmClusterId == null ? 43 : this.cloudAutonomousVmClusterId.hashCode()); - result = - (result * PRIME) - + (this.peerCloudAutonomousVmClusterIds == null - ? 43 - : this.peerCloudAutonomousVmClusterIds.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) @@ -859,14 +883,6 @@ public int hashCode() { + (this.containerDatabaseId == null ? 43 : this.containerDatabaseId.hashCode()); - result = (result * PRIME) + (this.peerDetails == null ? 43 : this.peerDetails.hashCode()); - result = - (result * PRIME) - + (this.okvKeyStoreId == null ? 43 : this.okvKeyStoreId.hashCode()); - result = - (result * PRIME) - + (this.okvEndPointGroup == null ? 43 : this.okvEndPointGroup.hashCode()); - result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); return result; } } diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseCollection.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseCollection.java index 5bf74dd69ac..84146d11f55 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseCollection.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseCollection.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedAutonomousDatabaseCollection.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseConnectionString.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseConnectionString.java index 20a153d0e28..658a8544e78 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseConnectionString.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseConnectionString.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedAutonomousDatabaseConnectionString.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGdsControlNode.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseGdsControlNode.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGdsControlNode.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseGdsControlNode.java index 49f0cd6e6f5..dd963b36f57 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGdsControlNode.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseGdsControlNode.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details of Global Database Services Control(GDS CTL) instances for the Globally distributed diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGdsControlNodeImage.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseGdsControlNodeImage.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGdsControlNodeImage.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseGdsControlNodeImage.java index b0fa308bece..5059160344e 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGdsControlNodeImage.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseGdsControlNodeImage.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * The Global Database Services Control(GDS CTL) image details.
diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseGsm.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseGsm.java index ac53e9641d9..a8b7b719a60 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseGsm.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseGsm.java @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedAutonomousDatabaseGsm.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -62,12 +62,12 @@ public DistributedAutonomousDatabaseGsm( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Name of the Global service manager instance */ + /** Name of the Global service manager instance. */ @com.fasterxml.jackson.annotation.JsonProperty("name") private String name; /** - * Name of the Global service manager instance + * Name of the Global service manager instance. * * @param name the value to set * @return this builder @@ -111,14 +111,14 @@ public Builder dataStorageSizeInGbs(Double dataStorageSizeInGbs) { } /** * The time the Global service manager instance was created. An RFC3339 formatted datetime - * string + * 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 + * string. * * @param timeCreated the value to set * @return this builder @@ -130,14 +130,14 @@ public Builder timeCreated(java.util.Date timeCreated) { } /** * The time the Global service manager instance was last updated. An RFC3339 formatted - * datetime string + * 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 + * datetime string. * * @param timeUpdated the value to set * @return this builder @@ -164,14 +164,14 @@ public Builder status(Status status) { } /** * The time the ssl certificate associated with Global service manager expires. An RFC3339 - * formatted datetime string + * 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 + * formatted datetime string. * * @param timeSslCertificateExpires the value to set * @return this builder @@ -282,12 +282,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Name of the Global service manager instance */ + /** Name of the Global service manager instance. */ @com.fasterxml.jackson.annotation.JsonProperty("name") private final String name; /** - * Name of the Global service manager instance + * Name of the Global service manager instance. * * @return the value */ @@ -323,14 +323,14 @@ public Double getDataStorageSizeInGbs() { /** * The time the Global service manager instance was created. An RFC3339 formatted datetime - * string + * 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 + * string. * * @return the value */ @@ -340,14 +340,14 @@ public java.util.Date getTimeCreated() { /** * The time the Global service manager instance was last updated. An RFC3339 formatted datetime - * string + * 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 + * string. * * @return the value */ @@ -422,14 +422,14 @@ public Status getStatus() { /** * The time the ssl certificate associated with Global service manager expires. An RFC3339 - * formatted datetime string + * 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 + * formatted datetime string. * * @return the value */ diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseGsmImage.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseGsmImage.java index d601decf5c2..3ca4a97cb3c 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseGsmImage.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseGsmImage.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedAutonomousDatabaseGsmImage.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -23,11 +23,11 @@ public final class DistributedAutonomousDatabaseGsmImage extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"id", "versionNumber"}) - public DistributedAutonomousDatabaseGsmImage(String id, Integer versionNumber) { + @java.beans.ConstructorProperties({"id", "version"}) + public DistributedAutonomousDatabaseGsmImage(String id, String version) { super(); this.id = id; - this.versionNumber = versionNumber; + this.version = version; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -51,19 +51,19 @@ public Builder id(String id) { this.__explicitlySet__.add("id"); return this; } - /** The version number associated with the image identified by id. */ - @com.fasterxml.jackson.annotation.JsonProperty("versionNumber") - private Integer versionNumber; + /** The version associated with the image identified by id. */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; /** - * The version number associated with the image identified by id. + * The version associated with the image identified by id. * - * @param versionNumber the value to set + * @param version the value to set * @return this builder */ - public Builder versionNumber(Integer versionNumber) { - this.versionNumber = versionNumber; - this.__explicitlySet__.add("versionNumber"); + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); return this; } @@ -72,7 +72,7 @@ public Builder versionNumber(Integer versionNumber) { public DistributedAutonomousDatabaseGsmImage build() { DistributedAutonomousDatabaseGsmImage model = - new DistributedAutonomousDatabaseGsmImage(this.id, this.versionNumber); + new DistributedAutonomousDatabaseGsmImage(this.id, this.version); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -84,8 +84,8 @@ public Builder copy(DistributedAutonomousDatabaseGsmImage model) { if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } - if (model.wasPropertyExplicitlySet("versionNumber")) { - this.versionNumber(model.getVersionNumber()); + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); } return this; } @@ -117,17 +117,17 @@ public String getId() { return id; } - /** The version number associated with the image identified by id. */ - @com.fasterxml.jackson.annotation.JsonProperty("versionNumber") - private final Integer versionNumber; + /** The version associated with the image identified by id. */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; /** - * The version number associated with the image identified by id. + * The version associated with the image identified by id. * * @return the value */ - public Integer getVersionNumber() { - return versionNumber; + public String getVersion() { + return version; } @Override @@ -146,7 +146,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("DistributedAutonomousDatabaseGsmImage("); sb.append("super=").append(super.toString()); sb.append("id=").append(String.valueOf(this.id)); - sb.append(", versionNumber=").append(String.valueOf(this.versionNumber)); + sb.append(", version=").append(String.valueOf(this.version)); sb.append(")"); return sb.toString(); } @@ -162,7 +162,7 @@ public boolean equals(Object o) { DistributedAutonomousDatabaseGsmImage other = (DistributedAutonomousDatabaseGsmImage) o; return java.util.Objects.equals(this.id, other.id) - && java.util.Objects.equals(this.versionNumber, other.versionNumber) + && java.util.Objects.equals(this.version, other.version) && super.equals(other); } @@ -171,9 +171,7 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); - result = - (result * PRIME) - + (this.versionNumber == null ? 43 : this.versionNumber.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseRaftMetric.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseRaftMetric.java index 4fba95bb7dc..d24ffe11f91 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseRaftMetric.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseRaftMetric.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedAutonomousDatabaseRaftMetric.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRuChangeLog.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseRuChangeLog.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRuChangeLog.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseRuChangeLog.java index 85612970435..adc4be09827 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRuChangeLog.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseRuChangeLog.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Move RU invocation history for the Globally distributed autonomous database.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRuChangeLogSummary.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseRuChangeLogSummary.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRuChangeLogSummary.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseRuChangeLogSummary.java index a9fe1e8782c..fcc8e126996 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRuChangeLogSummary.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseRuChangeLogSummary.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * One move RU invocation record for the Globally distributed autonomous database.
diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseShard.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseShard.java deleted file mode 100644 index fc3b9629177..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseShard.java +++ /dev/null @@ -1,178 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.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: 20250101") -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source", - defaultImpl = DistributedAutonomousDatabaseShard.class) -@com.fasterxml.jackson.annotation.JsonSubTypes({ - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = DistributedAutonomousDatabaseShardWithDedicatedInfra.class, - name = "ADB_D") -}) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public class DistributedAutonomousDatabaseShard - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "timeCreated", "timeUpdated"}) - protected DistributedAutonomousDatabaseShard( - String name, java.util.Date timeCreated, java.util.Date timeUpdated) { - super(); - this.name = name; - this.timeCreated = timeCreated; - this.timeUpdated = timeUpdated; - } - - /** 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; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedAutonomousDatabaseShard("); - 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(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedAutonomousDatabaseShard)) { - return false; - } - - DistributedAutonomousDatabaseShard other = (DistributedAutonomousDatabaseShard) 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) - && 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) + super.hashCode(); - return result; - } - - /** - * The source of Globally distributed autonomous database type: Use ADB_D for the Globally - * distributed autonomous database with autonomous dedicated cloudautonomousvmclusters. - */ - public enum Source 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(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/DistributedAutonomousDatabaseShardDatabase.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseShardDatabase.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseShardDatabase.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseShardDatabase.java index 2579c14e0c3..e497b57a133 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseShardDatabase.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseShardDatabase.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Globally distributed autonomous database shard.
diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseShardWithDedicatedInfra.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseShardWithDedicatedInfra.java index b8c0d62f8e9..7b510265acd 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseShardWithDedicatedInfra.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseShardWithDedicatedInfra.java @@ -5,7 +5,7 @@ package com.oracle.bmc.distributeddatabase.model; /** - * Globally distributed autonomous database shard with dedicated autonomous infrastructure.
+ * 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 @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedAutonomousDatabaseShardWithDedicatedInfra.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( @@ -25,7 +25,7 @@ @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class DistributedAutonomousDatabaseShardWithDedicatedInfra - extends DistributedAutonomousDatabaseShard { + extends DistributedAutonomousDatabaseShardDatabase { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { @com.fasterxml.jackson.annotation.JsonProperty("name") @@ -54,6 +54,15 @@ public Builder timeUpdated(java.util.Date 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; @@ -84,12 +93,16 @@ public Builder dataStorageSizeInGbs(Double dataStorageSizeInGbs) { this.__explicitlySet__.add("dataStorageSizeInGbs"); return this; } - /** Determines the auto-scaling mode for the shard database. */ + /** + * 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; /** - * Determines the auto-scaling mode for the shard database. + * 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 @@ -99,31 +112,16 @@ public Builder isAutoScalingEnabled(Boolean isAutoScalingEnabled) { this.__explicitlySet__.add("isAutoScalingEnabled"); return this; } - /** The name of the shardGroup for the shard. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardGroup") - private String shardGroup; - - /** - * The name of the shardGroup for the shard. - * - * @param shardGroup the value to set - * @return this builder - */ - public Builder shardGroup(String shardGroup) { - this.shardGroup = shardGroup; - this.__explicitlySet__.add("shardGroup"); - return this; - } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * cloudAutonomousVmCluster. + * 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 - * cloudAutonomousVmCluster. + * cloud Autonomous Exadata VM Cluster. * * @param cloudAutonomousVmClusterId the value to set * @return this builder @@ -133,43 +131,6 @@ public Builder cloudAutonomousVmClusterId(String cloudAutonomousVmClusterId) { this.__explicitlySet__.add("cloudAutonomousVmClusterId"); return this; } - /** This field is deprecated. For shard peer details please refer peerDetails attribute. */ - @com.fasterxml.jackson.annotation.JsonProperty("peerCloudAutonomousVmClusterIds") - private java.util.List peerCloudAutonomousVmClusterIds; - - /** - * This field is deprecated. For shard peer details please refer peerDetails attribute. - * - * @param peerCloudAutonomousVmClusterIds the value to set - * @return this builder - */ - public Builder peerCloudAutonomousVmClusterIds( - java.util.List peerCloudAutonomousVmClusterIds) { - this.peerCloudAutonomousVmClusterIds = peerCloudAutonomousVmClusterIds; - this.__explicitlySet__.add("peerCloudAutonomousVmClusterIds"); - return this; - } - /** - * The shard space name for the Globally distributed autonomous database. Shard space for - * existing shard cannot be changed, once shard is created. Shard space name shall be used - * while creation of new shards. - */ - @com.fasterxml.jackson.annotation.JsonProperty("shardSpace") - private String shardSpace; - - /** - * The shard space name for the Globally distributed autonomous database. Shard space for - * existing shard cannot be changed, once shard is created. Shard space name shall be used - * while creation of new shards. - * - * @param shardSpace the value to set - * @return this builder - */ - public Builder shardSpace(String shardSpace) { - this.shardSpace = shardSpace; - this.__explicitlySet__.add("shardSpace"); - return this; - } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure @@ -194,15 +155,17 @@ public Builder vaultId(String vaultId) { return this; } /** - * The OCID of the key container that is used as the master encryption key in database - * transparent data encryption (TDE) operations. + * 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 of the key container that is used as the master encryption key in database - * transparent data encryption (TDE) operations. + * 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 @@ -213,15 +176,17 @@ public Builder kmsKeyId(String kmsKeyId) { return this; } /** - * The OCID of the key container version that is used in database transparent data - * encryption (TDE) operations KMS Key can have multiple key versions. + * 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 of the key container version that is used in database transparent data - * encryption (TDE) operations KMS Key can have multiple key versions. + * 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 @@ -232,110 +197,132 @@ public Builder kmsKeyVersionId(String kmsKeyVersionId) { return this; } /** - * Status of shard with dedicated infrastructure for the Globally distributed autonomous - * database. + * 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("status") - private Status status; + @com.fasterxml.jackson.annotation.JsonProperty("okvKeyStoreId") + private String okvKeyStoreId; /** - * Status of shard with dedicated infrastructure for the Globally distributed autonomous - * database. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * key store used to create the shard. * - * @param status the value to set + * @param okvKeyStoreId the value to set * @return this builder */ - public Builder status(Status status) { - this.status = status; - this.__explicitlySet__.add("status"); + public Builder okvKeyStoreId(String okvKeyStoreId) { + this.okvKeyStoreId = okvKeyStoreId; + this.__explicitlySet__.add("okvKeyStoreId"); return this; } - /** the identifier of the underlying supporting resource. */ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private String supportingResourceId; + /** The OKV endpoint name. */ + @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroupName") + private String okvEndPointGroupName; /** - * the identifier of the underlying supporting resource. + * The OKV endpoint name. * - * @param supportingResourceId the value to set + * @param okvEndPointGroupName the value to set * @return this builder */ - public Builder supportingResourceId(String supportingResourceId) { - this.supportingResourceId = supportingResourceId; - this.__explicitlySet__.add("supportingResourceId"); + public Builder okvEndPointGroupName(String okvEndPointGroupName) { + this.okvEndPointGroupName = okvEndPointGroupName; + this.__explicitlySet__.add("okvEndPointGroupName"); return this; } - /** the identifier of the container database for underlying supporting resource. */ - @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") - private String containerDatabaseId; + /** The protection mode for the shard peer. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedAutonomousDbProtectionMode protectionMode; /** - * the identifier of the container database for underlying supporting resource. + * The protection mode for the shard peer. * - * @param containerDatabaseId the value to set + * @param protectionMode the value to set * @return this builder */ - public Builder containerDatabaseId(String containerDatabaseId) { - this.containerDatabaseId = containerDatabaseId; - this.__explicitlySet__.add("containerDatabaseId"); + public Builder protectionMode(DistributedAutonomousDbProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); return this; } - /** Peer details for the shard with dedicated infrastructure. */ - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - private java.util.List peerDetails; + /** The lag time preference based on data loss tolerance in seconds. */ + @com.fasterxml.jackson.annotation.JsonProperty("fastStartFailOverLagLimitInSeconds") + private Integer fastStartFailOverLagLimitInSeconds; /** - * Peer details for the shard with dedicated infrastructure. + * The lag time preference based on data loss tolerance in seconds. * - * @param peerDetails the value to set + * @param fastStartFailOverLagLimitInSeconds the value to set * @return this builder */ - public Builder peerDetails(java.util.List peerDetails) { - this.peerDetails = peerDetails; - this.__explicitlySet__.add("peerDetails"); + public Builder fastStartFailOverLagLimitInSeconds( + Integer fastStartFailOverLagLimitInSeconds) { + this.fastStartFailOverLagLimitInSeconds = fastStartFailOverLagLimitInSeconds; + this.__explicitlySet__.add("fastStartFailOverLagLimitInSeconds"); return this; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * key store used to create the shard. + * The scheduling detail for the quarterly maintenance window of the standby Autonomous + * Container Database. */ - @com.fasterxml.jackson.annotation.JsonProperty("okvKeyStoreId") - private String okvKeyStoreId; + @com.fasterxml.jackson.annotation.JsonProperty("standbyMaintenanceBufferInDays") + private Integer standbyMaintenanceBufferInDays; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * key store used to create the shard. + * The scheduling detail for the quarterly maintenance window of the standby Autonomous + * Container Database. * - * @param okvKeyStoreId the value to set + * @param standbyMaintenanceBufferInDays the value to set * @return this builder */ - public Builder okvKeyStoreId(String okvKeyStoreId) { - this.okvKeyStoreId = okvKeyStoreId; - this.__explicitlySet__.add("okvKeyStoreId"); + public Builder standbyMaintenanceBufferInDays(Integer standbyMaintenanceBufferInDays) { + this.standbyMaintenanceBufferInDays = standbyMaintenanceBufferInDays; + this.__explicitlySet__.add("standbyMaintenanceBufferInDays"); return this; } - /** The OKV endpoint name. */ - @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroup") - private String okvEndPointGroup; + /** Status of the distributed autonomous database shard. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; /** - * The OKV endpoint name. + * Status of the distributed autonomous database shard. * - * @param okvEndPointGroup the value to set + * @param status the value to set * @return this builder */ - public Builder okvEndPointGroup(String okvEndPointGroup) { - this.okvEndPointGroup = okvEndPointGroup; - this.__explicitlySet__.add("okvEndPointGroup"); + 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; - @com.fasterxml.jackson.annotation.JsonProperty("metadata") - private DistributedAutonomousDbMetadata metadata; + /** + * 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; - public Builder metadata(DistributedAutonomousDbMetadata metadata) { - this.metadata = metadata; - this.__explicitlySet__.add("metadata"); + /** + * 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; } @@ -348,23 +335,22 @@ public DistributedAutonomousDatabaseShardWithDedicatedInfra build() { this.name, this.timeCreated, this.timeUpdated, + this.metadata, this.computeCount, this.dataStorageSizeInGbs, this.isAutoScalingEnabled, - this.shardGroup, this.cloudAutonomousVmClusterId, - this.peerCloudAutonomousVmClusterIds, - this.shardSpace, this.vaultId, this.kmsKeyId, this.kmsKeyVersionId, + this.okvKeyStoreId, + this.okvEndPointGroupName, + this.protectionMode, + this.fastStartFailOverLagLimitInSeconds, + this.standbyMaintenanceBufferInDays, this.status, this.supportingResourceId, - this.containerDatabaseId, - this.peerDetails, - this.okvKeyStoreId, - this.okvEndPointGroup, - this.metadata); + this.containerDatabaseId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -382,6 +368,9 @@ public Builder copy(DistributedAutonomousDatabaseShardWithDedicatedInfra model) if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } if (model.wasPropertyExplicitlySet("computeCount")) { this.computeCount(model.getComputeCount()); } @@ -391,18 +380,9 @@ public Builder copy(DistributedAutonomousDatabaseShardWithDedicatedInfra model) if (model.wasPropertyExplicitlySet("isAutoScalingEnabled")) { this.isAutoScalingEnabled(model.getIsAutoScalingEnabled()); } - if (model.wasPropertyExplicitlySet("shardGroup")) { - this.shardGroup(model.getShardGroup()); - } if (model.wasPropertyExplicitlySet("cloudAutonomousVmClusterId")) { this.cloudAutonomousVmClusterId(model.getCloudAutonomousVmClusterId()); } - if (model.wasPropertyExplicitlySet("peerCloudAutonomousVmClusterIds")) { - this.peerCloudAutonomousVmClusterIds(model.getPeerCloudAutonomousVmClusterIds()); - } - if (model.wasPropertyExplicitlySet("shardSpace")) { - this.shardSpace(model.getShardSpace()); - } if (model.wasPropertyExplicitlySet("vaultId")) { this.vaultId(model.getVaultId()); } @@ -412,6 +392,22 @@ public Builder copy(DistributedAutonomousDatabaseShardWithDedicatedInfra model) 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()); } @@ -421,18 +417,6 @@ public Builder copy(DistributedAutonomousDatabaseShardWithDedicatedInfra model) if (model.wasPropertyExplicitlySet("containerDatabaseId")) { this.containerDatabaseId(model.getContainerDatabaseId()); } - if (model.wasPropertyExplicitlySet("peerDetails")) { - this.peerDetails(model.getPeerDetails()); - } - if (model.wasPropertyExplicitlySet("okvKeyStoreId")) { - this.okvKeyStoreId(model.getOkvKeyStoreId()); - } - if (model.wasPropertyExplicitlySet("okvEndPointGroup")) { - this.okvEndPointGroup(model.getOkvEndPointGroup()); - } - if (model.wasPropertyExplicitlySet("metadata")) { - this.metadata(model.getMetadata()); - } return this; } } @@ -451,41 +435,38 @@ public DistributedAutonomousDatabaseShardWithDedicatedInfra( String name, java.util.Date timeCreated, java.util.Date timeUpdated, + DistributedAutonomousDbMetadata metadata, Float computeCount, Double dataStorageSizeInGbs, Boolean isAutoScalingEnabled, - String shardGroup, String cloudAutonomousVmClusterId, - java.util.List peerCloudAutonomousVmClusterIds, - String shardSpace, String vaultId, String kmsKeyId, String kmsKeyVersionId, + String okvKeyStoreId, + String okvEndPointGroupName, + DistributedAutonomousDbProtectionMode protectionMode, + Integer fastStartFailOverLagLimitInSeconds, + Integer standbyMaintenanceBufferInDays, Status status, String supportingResourceId, - String containerDatabaseId, - java.util.List peerDetails, - String okvKeyStoreId, - String okvEndPointGroup, - DistributedAutonomousDbMetadata metadata) { - super(name, timeCreated, timeUpdated); + String containerDatabaseId) { + super(name, timeCreated, timeUpdated, metadata); this.computeCount = computeCount; this.dataStorageSizeInGbs = dataStorageSizeInGbs; this.isAutoScalingEnabled = isAutoScalingEnabled; - this.shardGroup = shardGroup; this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; - this.peerCloudAutonomousVmClusterIds = peerCloudAutonomousVmClusterIds; - this.shardSpace = shardSpace; 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; - this.peerDetails = peerDetails; - this.okvKeyStoreId = okvKeyStoreId; - this.okvEndPointGroup = okvEndPointGroup; - this.metadata = metadata; } /** The compute count for the shard database. It has to be in multiples of 2. */ @@ -514,12 +495,16 @@ public Double getDataStorageSizeInGbs() { return dataStorageSizeInGbs; } - /** Determines the auto-scaling mode for the shard database. */ + /** + * 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; /** - * Determines the auto-scaling mode for the shard database. + * Indicates if vertical auto scaling is enabled for the Autonomous AI Database CPU core count. + * The default value is {@code FALSE}. * * @return the value */ @@ -527,29 +512,16 @@ public Boolean getIsAutoScalingEnabled() { return isAutoScalingEnabled; } - /** The name of the shardGroup for the shard. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardGroup") - private final String shardGroup; - - /** - * The name of the shardGroup for the shard. - * - * @return the value - */ - public String getShardGroup() { - return shardGroup; - } - /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * cloudAutonomousVmCluster. + * 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 - * cloudAutonomousVmCluster. + * cloud Autonomous Exadata VM Cluster. * * @return the value */ @@ -557,38 +529,6 @@ public String getCloudAutonomousVmClusterId() { return cloudAutonomousVmClusterId; } - /** This field is deprecated. For shard peer details please refer peerDetails attribute. */ - @com.fasterxml.jackson.annotation.JsonProperty("peerCloudAutonomousVmClusterIds") - private final java.util.List peerCloudAutonomousVmClusterIds; - - /** - * This field is deprecated. For shard peer details please refer peerDetails attribute. - * - * @return the value - */ - public java.util.List getPeerCloudAutonomousVmClusterIds() { - return peerCloudAutonomousVmClusterIds; - } - - /** - * The shard space name for the Globally distributed autonomous database. Shard space for - * existing shard cannot be changed, once shard is created. Shard space name shall be used while - * creation of new shards. - */ - @com.fasterxml.jackson.annotation.JsonProperty("shardSpace") - private final String shardSpace; - - /** - * The shard space name for the Globally distributed autonomous database. Shard space for - * existing shard cannot be changed, once shard is created. Shard space name shall be used while - * creation of new shards. - * - * @return the value - */ - public String getShardSpace() { - return shardSpace; - } - /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * Oracle Cloud Infrastructure @@ -611,15 +551,17 @@ public String getVaultId() { } /** - * The OCID of the key container that is used as the master encryption key in database - * transparent data encryption (TDE) operations. + * 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 of the key container that is used as the master encryption key in database - * transparent data encryption (TDE) operations. + * 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 */ @@ -628,15 +570,17 @@ public String getKmsKeyId() { } /** - * The OCID of the key container version that is used in database transparent data encryption - * (TDE) operations KMS Key can have multiple key versions. + * 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 of the key container version that is used in database transparent data encryption - * (TDE) operations KMS Key can have multiple key versions. + * 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 */ @@ -645,9 +589,79 @@ public String getKmsKeyVersionId() { } /** - * Status of shard with dedicated infrastructure for the Globally distributed autonomous - * database. + * 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"), @@ -699,16 +713,12 @@ public static Status create(String key) { return UnknownEnumValue; } }; - /** - * Status of shard with dedicated infrastructure for the Globally distributed autonomous - * database. - */ + /** Status of the distributed autonomous database shard. */ @com.fasterxml.jackson.annotation.JsonProperty("status") private final Status status; /** - * Status of shard with dedicated infrastructure for the Globally distributed autonomous - * database. + * Status of the distributed autonomous database shard. * * @return the value */ @@ -742,56 +752,6 @@ public String getContainerDatabaseId() { return containerDatabaseId; } - /** Peer details for the shard with dedicated infrastructure. */ - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - private final java.util.List peerDetails; - - /** - * Peer details for the shard with dedicated infrastructure. - * - * @return the value - */ - public java.util.List getPeerDetails() { - return peerDetails; - } - - /** - * 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("okvEndPointGroup") - private final String okvEndPointGroup; - - /** - * The OKV endpoint name. - * - * @return the value - */ - public String getOkvEndPointGroup() { - return okvEndPointGroup; - } - - @com.fasterxml.jackson.annotation.JsonProperty("metadata") - private final DistributedAutonomousDbMetadata metadata; - - public DistributedAutonomousDbMetadata getMetadata() { - return metadata; - } - @Override public String toString() { return this.toString(true); @@ -810,22 +770,21 @@ public String toString(boolean 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(", shardGroup=").append(String.valueOf(this.shardGroup)); sb.append(", cloudAutonomousVmClusterId=") .append(String.valueOf(this.cloudAutonomousVmClusterId)); - sb.append(", peerCloudAutonomousVmClusterIds=") - .append(String.valueOf(this.peerCloudAutonomousVmClusterIds)); - sb.append(", shardSpace=").append(String.valueOf(this.shardSpace)); 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(", peerDetails=").append(String.valueOf(this.peerDetails)); - sb.append(", okvKeyStoreId=").append(String.valueOf(this.okvKeyStoreId)); - sb.append(", okvEndPointGroup=").append(String.valueOf(this.okvEndPointGroup)); - sb.append(", metadata=").append(String.valueOf(this.metadata)); sb.append(")"); return sb.toString(); } @@ -844,22 +803,22 @@ public boolean equals(Object 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.shardGroup, other.shardGroup) && java.util.Objects.equals( this.cloudAutonomousVmClusterId, other.cloudAutonomousVmClusterId) - && java.util.Objects.equals( - this.peerCloudAutonomousVmClusterIds, other.peerCloudAutonomousVmClusterIds) - && java.util.Objects.equals(this.shardSpace, other.shardSpace) && 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) - && java.util.Objects.equals(this.peerDetails, other.peerDetails) - && java.util.Objects.equals(this.okvKeyStoreId, other.okvKeyStoreId) - && java.util.Objects.equals(this.okvEndPointGroup, other.okvEndPointGroup) - && java.util.Objects.equals(this.metadata, other.metadata) && super.equals(other); } @@ -878,23 +837,37 @@ public int hashCode() { + (this.isAutoScalingEnabled == null ? 43 : this.isAutoScalingEnabled.hashCode()); - result = (result * PRIME) + (this.shardGroup == null ? 43 : this.shardGroup.hashCode()); result = (result * PRIME) + (this.cloudAutonomousVmClusterId == null ? 43 : this.cloudAutonomousVmClusterId.hashCode()); - result = - (result * PRIME) - + (this.peerCloudAutonomousVmClusterIds == null - ? 43 - : this.peerCloudAutonomousVmClusterIds.hashCode()); - result = (result * PRIME) + (this.shardSpace == null ? 43 : this.shardSpace.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) @@ -906,14 +879,6 @@ public int hashCode() { + (this.containerDatabaseId == null ? 43 : this.containerDatabaseId.hashCode()); - result = (result * PRIME) + (this.peerDetails == null ? 43 : this.peerDetails.hashCode()); - result = - (result * PRIME) - + (this.okvKeyStoreId == null ? 43 : this.okvKeyStoreId.hashCode()); - result = - (result * PRIME) - + (this.okvEndPointGroup == null ? 43 : this.okvEndPointGroup.hashCode()); - result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); return result; } } diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseSummary.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseSummary.java index fb6504a9505..6cc3c2481b2 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseSummary.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseSummary.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedAutonomousDatabaseSummary.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -32,23 +32,23 @@ public final class DistributedAutonomousDatabaseSummary "databaseVersion", "lifecycleState", "lifecycleDetails", - "connectionStrings", "prefix", "privateEndpointIds", - "shardingMethod", - "dbWorkload", + "notificationTopicIds", + "dbWorkloadType", "characterSet", "ncharacterSet", - "chunks", "listenerPort", "listenerPortTls", "onsPortLocal", "onsPortRemote", + "systemChunkCount", + "autoResourceManagementConfig", + "systemRaftReplicationUnitCount", + "metadata", + "shardingMethod", "replicationMethod", - "replicationFactor", - "replicationUnit", "dbDeploymentType", - "metadata", "freeformTags", "definedTags", "systemTags" @@ -62,23 +62,23 @@ public DistributedAutonomousDatabaseSummary( String databaseVersion, DistributedAutonomousDatabase.LifecycleState lifecycleState, String lifecycleDetails, - DistributedAutonomousDatabaseConnectionString connectionStrings, String prefix, java.util.List privateEndpointIds, - DistributedAutonomousDatabase.ShardingMethod shardingMethod, - DistributedAutonomousDatabase.DbWorkload dbWorkload, + java.util.List notificationTopicIds, + DistributedAutonomousDatabase.DbWorkloadType dbWorkloadType, String characterSet, String ncharacterSet, - Integer chunks, Integer listenerPort, Integer listenerPortTls, Integer onsPortLocal, Integer onsPortRemote, - DistributedAutonomousDatabase.ReplicationMethod replicationMethod, - Integer replicationFactor, - Integer replicationUnit, - DbDeploymentType dbDeploymentType, + 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) { @@ -91,23 +91,23 @@ public DistributedAutonomousDatabaseSummary( this.databaseVersion = databaseVersion; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; - this.connectionStrings = connectionStrings; this.prefix = prefix; this.privateEndpointIds = privateEndpointIds; - this.shardingMethod = shardingMethod; - this.dbWorkload = dbWorkload; + this.notificationTopicIds = notificationTopicIds; + this.dbWorkloadType = dbWorkloadType; this.characterSet = characterSet; this.ncharacterSet = ncharacterSet; - this.chunks = chunks; 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.replicationFactor = replicationFactor; - this.replicationUnit = replicationUnit; this.dbDeploymentType = dbDeploymentType; - this.metadata = metadata; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -255,16 +255,6 @@ public Builder lifecycleDetails(String 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 @@ -307,34 +297,40 @@ public Builder privateEndpointIds(java.util.List privateEndpointIds) { this.__explicitlySet__.add("privateEndpointIds"); return this; } - /** Sharding Methods for the Globally distributed autonomous database. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardingMethod") - private DistributedAutonomousDatabase.ShardingMethod shardingMethod; + /** + * 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; /** - * Sharding Methods for the Globally distributed autonomous database. + * 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 shardingMethod the value to set + * @param notificationTopicIds the value to set * @return this builder */ - public Builder shardingMethod(DistributedAutonomousDatabase.ShardingMethod shardingMethod) { - this.shardingMethod = shardingMethod; - this.__explicitlySet__.add("shardingMethod"); + 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("dbWorkload") - private DistributedAutonomousDatabase.DbWorkload dbWorkload; + @com.fasterxml.jackson.annotation.JsonProperty("dbWorkloadType") + private DistributedAutonomousDatabase.DbWorkloadType dbWorkloadType; /** * The workload type for the database. * - * @param dbWorkload the value to set + * @param dbWorkloadType the value to set * @return this builder */ - public Builder dbWorkload(DistributedAutonomousDatabase.DbWorkload dbWorkload) { - this.dbWorkload = dbWorkload; - this.__explicitlySet__.add("dbWorkload"); + public Builder dbWorkloadType(DistributedAutonomousDatabase.DbWorkloadType dbWorkloadType) { + this.dbWorkloadType = dbWorkloadType; + this.__explicitlySet__.add("dbWorkloadType"); return this; } /** The character set for the database. */ @@ -367,25 +363,6 @@ public Builder ncharacterSet(String ncharacterSet) { this.__explicitlySet__.add("ncharacterSet"); return this; } - /** - * The default number of unique chunks in a shardspace. The value of chunks must be greater - * than 2 times the size of the largest shardgroup in any shardspace. - */ - @com.fasterxml.jackson.annotation.JsonProperty("chunks") - private Integer chunks; - - /** - * The default number of unique chunks in a shardspace. The value of chunks must be greater - * than 2 times the size of the largest shardgroup in any shardspace. - * - * @param chunks the value to set - * @return this builder - */ - public Builder chunks(Integer chunks) { - this.chunks = chunks; - this.__explicitlySet__.add("chunks"); - return this; - } /** The listener port number for the Globally distributed autonomous database. */ @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") private Integer listenerPort; @@ -446,66 +423,93 @@ public Builder onsPortRemote(Integer onsPortRemote) { this.__explicitlySet__.add("onsPortRemote"); return this; } - /** - * The Replication method for Globally distributed autonomous database. Use RAFT for Raft - * replication, and DG for DataGuard. If replicationMethod is not provided, it defaults to - * DG. - */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") - private DistributedAutonomousDatabase.ReplicationMethod replicationMethod; + /** Count of chunks associated with system raft clusters or system data guard databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") + private Integer systemChunkCount; /** - * The Replication method for Globally distributed autonomous database. Use RAFT for Raft - * replication, and DG for DataGuard. If replicationMethod is not provided, it defaults to - * DG. + * Count of chunks associated with system raft clusters or system data guard databases. * - * @param replicationMethod the value to set + * @param systemChunkCount the value to set * @return this builder */ - public Builder replicationMethod( - DistributedAutonomousDatabase.ReplicationMethod replicationMethod) { - this.replicationMethod = replicationMethod; - this.__explicitlySet__.add("replicationMethod"); + 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; + /** - * The Replication factor for RAFT replication based Globally distributed autonomous - * database. Currently supported values are 3, 5 and 7. + * Number of replication units associated with system raft clusters. + * + * @param systemRaftReplicationUnitCount the value to set + * @return this builder */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private Integer replicationFactor; + 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; /** - * The Replication factor for RAFT replication based Globally distributed autonomous - * database. Currently supported values are 3, 5 and 7. + * Sharding methods for the Globally distributed autonomous database. * - * @param replicationFactor the value to set + * @param shardingMethod the value to set * @return this builder */ - public Builder replicationFactor(Integer replicationFactor) { - this.replicationFactor = replicationFactor; - this.__explicitlySet__.add("replicationFactor"); + public Builder shardingMethod(ShardingMethod shardingMethod) { + this.shardingMethod = shardingMethod; + this.__explicitlySet__.add("shardingMethod"); return this; } /** - * The replication unit count for RAFT based distributed autonomous database. For RAFT - * replication based Globally distributed autonomous database, the value should be at least - * twice the number of shards. + * 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("replicationUnit") - private Integer replicationUnit; + @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") + private ReplicationMethod replicationMethod; /** - * The replication unit count for RAFT based distributed autonomous database. For RAFT - * replication based Globally distributed autonomous database, the value should be at least - * twice the number of shards. + * 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 replicationUnit the value to set + * @param replicationMethod the value to set * @return this builder */ - public Builder replicationUnit(Integer replicationUnit) { - this.replicationUnit = replicationUnit; - this.__explicitlySet__.add("replicationUnit"); + public Builder replicationMethod(ReplicationMethod replicationMethod) { + this.replicationMethod = replicationMethod; + this.__explicitlySet__.add("replicationMethod"); return this; } /** The distributed autonomous database deployment type. */ @@ -523,15 +527,6 @@ public Builder dbDeploymentType(DbDeploymentType dbDeploymentType) { this.__explicitlySet__.add("dbDeploymentType"); 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"}} @@ -605,23 +600,23 @@ public DistributedAutonomousDatabaseSummary build() { this.databaseVersion, this.lifecycleState, this.lifecycleDetails, - this.connectionStrings, this.prefix, this.privateEndpointIds, - this.shardingMethod, - this.dbWorkload, + this.notificationTopicIds, + this.dbWorkloadType, this.characterSet, this.ncharacterSet, - this.chunks, this.listenerPort, this.listenerPortTls, this.onsPortLocal, this.onsPortRemote, + this.systemChunkCount, + this.autoResourceManagementConfig, + this.systemRaftReplicationUnitCount, + this.metadata, + this.shardingMethod, this.replicationMethod, - this.replicationFactor, - this.replicationUnit, this.dbDeploymentType, - this.metadata, this.freeformTags, this.definedTags, this.systemTags); @@ -657,20 +652,17 @@ public Builder copy(DistributedAutonomousDatabaseSummary model) { 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("shardingMethod")) { - this.shardingMethod(model.getShardingMethod()); + if (model.wasPropertyExplicitlySet("notificationTopicIds")) { + this.notificationTopicIds(model.getNotificationTopicIds()); } - if (model.wasPropertyExplicitlySet("dbWorkload")) { - this.dbWorkload(model.getDbWorkload()); + if (model.wasPropertyExplicitlySet("dbWorkloadType")) { + this.dbWorkloadType(model.getDbWorkloadType()); } if (model.wasPropertyExplicitlySet("characterSet")) { this.characterSet(model.getCharacterSet()); @@ -678,9 +670,6 @@ public Builder copy(DistributedAutonomousDatabaseSummary model) { if (model.wasPropertyExplicitlySet("ncharacterSet")) { this.ncharacterSet(model.getNcharacterSet()); } - if (model.wasPropertyExplicitlySet("chunks")) { - this.chunks(model.getChunks()); - } if (model.wasPropertyExplicitlySet("listenerPort")) { this.listenerPort(model.getListenerPort()); } @@ -693,21 +682,27 @@ public Builder copy(DistributedAutonomousDatabaseSummary model) { if (model.wasPropertyExplicitlySet("onsPortRemote")) { this.onsPortRemote(model.getOnsPortRemote()); } - if (model.wasPropertyExplicitlySet("replicationMethod")) { - this.replicationMethod(model.getReplicationMethod()); + if (model.wasPropertyExplicitlySet("systemChunkCount")) { + this.systemChunkCount(model.getSystemChunkCount()); } - if (model.wasPropertyExplicitlySet("replicationFactor")) { - this.replicationFactor(model.getReplicationFactor()); + if (model.wasPropertyExplicitlySet("autoResourceManagementConfig")) { + this.autoResourceManagementConfig(model.getAutoResourceManagementConfig()); } - if (model.wasPropertyExplicitlySet("replicationUnit")) { - this.replicationUnit(model.getReplicationUnit()); - } - if (model.wasPropertyExplicitlySet("dbDeploymentType")) { - this.dbDeploymentType(model.getDbDeploymentType()); + 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()); } @@ -854,13 +849,6 @@ 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 @@ -899,30 +887,36 @@ public java.util.List getPrivateEndpointIds() { return privateEndpointIds; } - /** Sharding Methods for the Globally distributed autonomous database. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardingMethod") - private final DistributedAutonomousDatabase.ShardingMethod shardingMethod; + /** + * 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; /** - * Sharding Methods for the Globally distributed autonomous database. + * 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 DistributedAutonomousDatabase.ShardingMethod getShardingMethod() { - return shardingMethod; + public java.util.List getNotificationTopicIds() { + return notificationTopicIds; } /** The workload type for the database. */ - @com.fasterxml.jackson.annotation.JsonProperty("dbWorkload") - private final DistributedAutonomousDatabase.DbWorkload dbWorkload; + @com.fasterxml.jackson.annotation.JsonProperty("dbWorkloadType") + private final DistributedAutonomousDatabase.DbWorkloadType dbWorkloadType; /** * The workload type for the database. * * @return the value */ - public DistributedAutonomousDatabase.DbWorkload getDbWorkload() { - return dbWorkload; + public DistributedAutonomousDatabase.DbWorkloadType getDbWorkloadType() { + return dbWorkloadType; } /** The character set for the database. */ @@ -951,23 +945,6 @@ public String getNcharacterSet() { return ncharacterSet; } - /** - * The default number of unique chunks in a shardspace. The value of chunks must be greater than - * 2 times the size of the largest shardgroup in any shardspace. - */ - @com.fasterxml.jackson.annotation.JsonProperty("chunks") - private final Integer chunks; - - /** - * The default number of unique chunks in a shardspace. The value of chunks must be greater than - * 2 times the size of the largest shardgroup in any shardspace. - * - * @return the value - */ - public Integer getChunks() { - return chunks; - } - /** The listener port number for the Globally distributed autonomous database. */ @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") private final Integer listenerPort; @@ -1020,57 +997,179 @@ public Integer getOnsPortRemote() { return onsPortRemote; } - /** - * The Replication method for Globally distributed autonomous database. Use RAFT for Raft - * replication, and DG for DataGuard. If replicationMethod is not provided, it defaults to DG. - */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") - private final DistributedAutonomousDatabase.ReplicationMethod replicationMethod; + /** Count of chunks associated with system raft clusters or system data guard databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") + private final Integer systemChunkCount; /** - * The Replication method for Globally distributed autonomous database. Use RAFT for Raft - * replication, and DG for DataGuard. If replicationMethod is not provided, it defaults to DG. + * Count of chunks associated with system raft clusters or system data guard databases. * * @return the value */ - public DistributedAutonomousDatabase.ReplicationMethod getReplicationMethod() { - return replicationMethod; + 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; + /** - * The Replication factor for RAFT replication based Globally distributed autonomous database. - * Currently supported values are 3, 5 and 7. + * Number of replication units associated with system raft clusters. + * + * @return the value */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private final Integer replicationFactor; + 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; /** - * The Replication factor for RAFT replication based Globally distributed autonomous database. - * Currently supported values are 3, 5 and 7. + * Sharding methods for the Globally distributed autonomous database. * * @return the value */ - public Integer getReplicationFactor() { - return replicationFactor; + public ShardingMethod getShardingMethod() { + return shardingMethod; } /** - * The replication unit count for RAFT based distributed autonomous database. For RAFT - * replication based Globally distributed autonomous database, the value should be at least - * twice the number of shards. + * 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("replicationUnit") - private final Integer replicationUnit; + @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") + private final ReplicationMethod replicationMethod; /** - * The replication unit count for RAFT based distributed autonomous database. For RAFT - * replication based Globally distributed autonomous database, the value should be at least - * twice the number of shards. + * 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 Integer getReplicationUnit() { - return replicationUnit; + public ReplicationMethod getReplicationMethod() { + return replicationMethod; } /** The distributed autonomous database deployment type. */ @@ -1131,13 +1230,6 @@ public DbDeploymentType getDbDeploymentType() { return dbDeploymentType; } - @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"}} @@ -1212,23 +1304,25 @@ public String toString(boolean includeByteArrayContents) { 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(", connectionStrings=").append(String.valueOf(this.connectionStrings)); sb.append(", prefix=").append(String.valueOf(this.prefix)); sb.append(", privateEndpointIds=").append(String.valueOf(this.privateEndpointIds)); - sb.append(", shardingMethod=").append(String.valueOf(this.shardingMethod)); - sb.append(", dbWorkload=").append(String.valueOf(this.dbWorkload)); + 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(", chunks=").append(String.valueOf(this.chunks)); 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(", replicationFactor=").append(String.valueOf(this.replicationFactor)); - sb.append(", replicationUnit=").append(String.valueOf(this.replicationUnit)); sb.append(", dbDeploymentType=").append(String.valueOf(this.dbDeploymentType)); - 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)); @@ -1254,23 +1348,25 @@ public boolean equals(Object o) { && 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.connectionStrings, other.connectionStrings) && java.util.Objects.equals(this.prefix, other.prefix) && java.util.Objects.equals(this.privateEndpointIds, other.privateEndpointIds) - && java.util.Objects.equals(this.shardingMethod, other.shardingMethod) - && java.util.Objects.equals(this.dbWorkload, other.dbWorkload) + && 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.chunks, other.chunks) && 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.replicationFactor, other.replicationFactor) - && java.util.Objects.equals(this.replicationUnit, other.replicationUnit) && java.util.Objects.equals(this.dbDeploymentType, other.dbDeploymentType) - && 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) @@ -1297,9 +1393,6 @@ public int 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) @@ -1308,13 +1401,16 @@ public int hashCode() { : this.privateEndpointIds.hashCode()); result = (result * PRIME) - + (this.shardingMethod == null ? 43 : this.shardingMethod.hashCode()); - result = (result * PRIME) + (this.dbWorkload == null ? 43 : this.dbWorkload.hashCode()); + + (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.chunks == null ? 43 : this.chunks.hashCode()); result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); result = (result * PRIME) @@ -1325,17 +1421,27 @@ public int hashCode() { + (this.onsPortRemote == null ? 43 : this.onsPortRemote.hashCode()); result = (result * PRIME) - + (this.replicationMethod == null ? 43 : this.replicationMethod.hashCode()); + + (this.systemChunkCount == null ? 43 : this.systemChunkCount.hashCode()); result = (result * PRIME) - + (this.replicationFactor == null ? 43 : this.replicationFactor.hashCode()); + + (this.autoResourceManagementConfig == null + ? 43 + : this.autoResourceManagementConfig.hashCode()); result = (result * PRIME) - + (this.replicationUnit == null ? 43 : this.replicationUnit.hashCode()); + + (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.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()); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDbBackupConfig.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDbBackupConfig.java index c28a997d660..42dd8223993 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDbBackupConfig.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDbBackupConfig.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedAutonomousDbBackupConfig.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDbBackupDestination.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDbBackupDestination.java index 23f6157c75b..e52b5707abb 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDbBackupDestination.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDbBackupDestination.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedAutonomousDbBackupDestination.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -26,8 +26,6 @@ public final class DistributedAutonomousDbBackupDestination @java.beans.ConstructorProperties({ "type", "id", - "vpcUser", - "vpcPassword", "internetProxy", "dbrsPolicyId", "isRemote", @@ -36,8 +34,6 @@ public final class DistributedAutonomousDbBackupDestination public DistributedAutonomousDbBackupDestination( Type type, String id, - String vpcUser, - String vpcPassword, String internetProxy, String dbrsPolicyId, Boolean isRemote, @@ -45,8 +41,6 @@ public DistributedAutonomousDbBackupDestination( super(); this.type = type; this.id = id; - this.vpcUser = vpcUser; - this.vpcPassword = vpcPassword; this.internetProxy = internetProxy; this.dbrsPolicyId = dbrsPolicyId; this.isRemote = isRemote; @@ -89,44 +83,6 @@ public Builder id(String id) { this.__explicitlySet__.add("id"); return this; } - /** - * For a RECOVERY_APPLIANCE backup destination, the Virtual Private Catalog (VPC) user that - * is used to access the Recovery Appliance. - */ - @com.fasterxml.jackson.annotation.JsonProperty("vpcUser") - private String vpcUser; - - /** - * For a RECOVERY_APPLIANCE backup destination, the Virtual Private Catalog (VPC) user that - * is used to access the Recovery Appliance. - * - * @param vpcUser the value to set - * @return this builder - */ - public Builder vpcUser(String vpcUser) { - this.vpcUser = vpcUser; - this.__explicitlySet__.add("vpcUser"); - return this; - } - /** - * For a RECOVERY_APPLIANCE backup destination, the password for the VPC user that is used - * to access the Recovery Appliance. - */ - @com.fasterxml.jackson.annotation.JsonProperty("vpcPassword") - private String vpcPassword; - - /** - * For a RECOVERY_APPLIANCE backup destination, the password for the VPC user that is used - * to access the Recovery Appliance. - * - * @param vpcPassword the value to set - * @return this builder - */ - public Builder vpcPassword(String vpcPassword) { - this.vpcPassword = vpcPassword; - this.__explicitlySet__.add("vpcPassword"); - return this; - } /** Proxy URL to connect to object store. */ @com.fasterxml.jackson.annotation.JsonProperty("internetProxy") private String internetProxy; @@ -206,8 +162,6 @@ public DistributedAutonomousDbBackupDestination build() { new DistributedAutonomousDbBackupDestination( this.type, this.id, - this.vpcUser, - this.vpcPassword, this.internetProxy, this.dbrsPolicyId, this.isRemote, @@ -226,12 +180,6 @@ public Builder copy(DistributedAutonomousDbBackupDestination model) { if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } - if (model.wasPropertyExplicitlySet("vpcUser")) { - this.vpcUser(model.getVpcUser()); - } - if (model.wasPropertyExplicitlySet("vpcPassword")) { - this.vpcPassword(model.getVpcPassword()); - } if (model.wasPropertyExplicitlySet("internetProxy")) { this.internetProxy(model.getInternetProxy()); } @@ -260,7 +208,6 @@ public Builder toBuilder() { /** Type of the database backup destination. */ public enum Type implements com.oracle.bmc.http.internal.BmcEnum { Nfs("NFS"), - RecoveryAppliance("RECOVERY_APPLIANCE"), ObjectStore("OBJECT_STORE"), Local("LOCAL"), Dbrs("DBRS"), @@ -334,40 +281,6 @@ public String getId() { return id; } - /** - * For a RECOVERY_APPLIANCE backup destination, the Virtual Private Catalog (VPC) user that is - * used to access the Recovery Appliance. - */ - @com.fasterxml.jackson.annotation.JsonProperty("vpcUser") - private final String vpcUser; - - /** - * For a RECOVERY_APPLIANCE backup destination, the Virtual Private Catalog (VPC) user that is - * used to access the Recovery Appliance. - * - * @return the value - */ - public String getVpcUser() { - return vpcUser; - } - - /** - * For a RECOVERY_APPLIANCE backup destination, the password for the VPC user that is used to - * access the Recovery Appliance. - */ - @com.fasterxml.jackson.annotation.JsonProperty("vpcPassword") - private final String vpcPassword; - - /** - * For a RECOVERY_APPLIANCE backup destination, the password for the VPC user that is used to - * access the Recovery Appliance. - * - * @return the value - */ - public String getVpcPassword() { - return vpcPassword; - } - /** Proxy URL to connect to object store. */ @com.fasterxml.jackson.annotation.JsonProperty("internetProxy") private final String internetProxy; @@ -447,8 +360,6 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("type=").append(String.valueOf(this.type)); sb.append(", id=").append(String.valueOf(this.id)); - sb.append(", vpcUser=").append(String.valueOf(this.vpcUser)); - sb.append(", vpcPassword=").append(String.valueOf(this.vpcPassword)); sb.append(", internetProxy=").append(String.valueOf(this.internetProxy)); sb.append(", dbrsPolicyId=").append(String.valueOf(this.dbrsPolicyId)); sb.append(", isRemote=").append(String.valueOf(this.isRemote)); @@ -470,8 +381,6 @@ public boolean equals(Object o) { (DistributedAutonomousDbBackupDestination) o; return java.util.Objects.equals(this.type, other.type) && java.util.Objects.equals(this.id, other.id) - && java.util.Objects.equals(this.vpcUser, other.vpcUser) - && java.util.Objects.equals(this.vpcPassword, other.vpcPassword) && java.util.Objects.equals(this.internetProxy, other.internetProxy) && java.util.Objects.equals(this.dbrsPolicyId, other.dbrsPolicyId) && java.util.Objects.equals(this.isRemote, other.isRemote) @@ -485,8 +394,6 @@ public int hashCode() { 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.vpcUser == null ? 43 : this.vpcUser.hashCode()); - result = (result * PRIME) + (this.vpcPassword == null ? 43 : this.vpcPassword.hashCode()); result = (result * PRIME) + (this.internetProxy == null ? 43 : this.internetProxy.hashCode()); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDbMetadata.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDbMetadata.java index 1b1bde88eaa..6133dadf9fe 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDbMetadata.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDbMetadata.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedAutonomousDbMetadata.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDbProtectionMode.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDbProtectionMode.java index 36957cdf39b..b9d4d4e7127 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDbProtectionMode.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDbProtectionMode.java @@ -10,7 +10,7 @@ * 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: 20250101") +@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"), diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabase.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabase.java index 9b248137414..926710a1f85 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabase.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabase.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDatabase.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -31,29 +31,36 @@ public final class DistributedDatabase "timeUpdated", "databaseVersion", "lifecycleState", + "shardingMethod", + "replicationMethod", + "dbDeploymentType", "lifecycleDetails", "connectionStrings", "prefix", "privateEndpointIds", + "notificationTopicIds", "latestGsmImageDetails", - "shardingMethod", "characterSet", "ncharacterSet", - "chunks", "listenerPort", "listenerPortTls", "onsPortLocal", "onsPortRemote", "scanListenerPort", - "replicationMethod", - "replicationFactor", - "replicationUnit", - "dbDeploymentType", - "shardDetails", + "systemChunkCount", + "systemRaftReplicationUnitCount", + "compositeRaftShardSpaces", + "compositeDataGuardShardSpaces", + "systemRaftClusters", + "systemDataGuardDatabases", + "userShardSpaces", "catalogDetails", "gsmDetails", + "gdsControlNodeDetails", "dbBackupConfig", + "autoResourceManagementConfig", "gsmSshPublicKey", + "vcnNsgIds", "metadata", "freeformTags", "definedTags", @@ -67,29 +74,36 @@ public DistributedDatabase( 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, - ShardingMethod shardingMethod, String characterSet, String ncharacterSet, - Integer chunks, Integer listenerPort, Integer listenerPortTls, Integer onsPortLocal, Integer onsPortRemote, Integer scanListenerPort, - ReplicationMethod replicationMethod, - Integer replicationFactor, - Integer replicationUnit, - DbDeploymentType dbDeploymentType, - java.util.List shardDetails, + 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, @@ -102,29 +116,36 @@ public DistributedDatabase( 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.shardingMethod = shardingMethod; this.characterSet = characterSet; this.ncharacterSet = ncharacterSet; - this.chunks = chunks; this.listenerPort = listenerPort; this.listenerPortTls = listenerPortTls; this.onsPortLocal = onsPortLocal; this.onsPortRemote = onsPortRemote; this.scanListenerPort = scanListenerPort; - this.replicationMethod = replicationMethod; - this.replicationFactor = replicationFactor; - this.replicationUnit = replicationUnit; - this.dbDeploymentType = dbDeploymentType; - this.shardDetails = shardDetails; + 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; @@ -188,14 +209,14 @@ public Builder displayName(String displayName) { } /** * The time the Globally distributed database was created. An RFC3339 formatted datetime - * string + * 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 + * string. * * @param timeCreated the value to set * @return this builder @@ -207,14 +228,14 @@ public Builder timeCreated(java.util.Date timeCreated) { } /** * The time the Globally distributed database was last updated. An RFC3339 formatted - * datetime string + * 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 + * datetime string. * * @param timeUpdated the value to set * @return this builder @@ -256,6 +277,61 @@ public Builder lifecycleState(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; @@ -322,6 +398,27 @@ public Builder privateEndpointIds(java.util.List 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; @@ -331,21 +428,6 @@ public Builder latestGsmImageDetails(DistributedDbGsmImage latestGsmImageDetails this.__explicitlySet__.add("latestGsmImageDetails"); 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 character set for the database. */ @com.fasterxml.jackson.annotation.JsonProperty("characterSet") private String characterSet; @@ -376,25 +458,6 @@ public Builder ncharacterSet(String ncharacterSet) { this.__explicitlySet__.add("ncharacterSet"); return this; } - /** - * The default number of unique chunks in a shardspace. The value of chunks must be greater - * than 2 times the size of the largest shardgroup in any shardspace. - */ - @com.fasterxml.jackson.annotation.JsonProperty("chunks") - private Integer chunks; - - /** - * The default number of unique chunks in a shardspace. The value of chunks must be greater - * than 2 times the size of the largest shardgroup in any shardspace. - * - * @param chunks the value to set - * @return this builder - */ - public Builder chunks(Integer chunks) { - this.chunks = chunks; - this.__explicitlySet__.add("chunks"); - return this; - } /** * The Global service manager listener port number for the Globally distributed database. */ @@ -458,13 +521,15 @@ public Builder onsPortRemote(Integer onsPortRemote) { return this; } /** - * The TCP Single Client Access Name (SCAN) port for Globally distributed database clusters. + * 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 Single Client Access Name (SCAN) port for Globally distributed database clusters. + * 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 @@ -474,101 +539,113 @@ public Builder scanListenerPort(Integer scanListenerPort) { this.__explicitlySet__.add("scanListenerPort"); return this; } - /** - * The Replication method for Globally distributed database. Use RAFT for Raft replication, - * and DG for DataGuard. If replicationMethod is not provided, it defaults to DG. - */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") - private ReplicationMethod replicationMethod; + /** Count of chunks associated with system raft clusters or system data guard databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") + private Integer systemChunkCount; /** - * The Replication method for Globally distributed database. Use RAFT for Raft replication, - * and DG for DataGuard. If replicationMethod is not provided, it defaults to DG. + * Count of chunks associated with system raft clusters or system data guard databases. * - * @param replicationMethod the value to set + * @param systemChunkCount the value to set * @return this builder */ - public Builder replicationMethod(ReplicationMethod replicationMethod) { - this.replicationMethod = replicationMethod; - this.__explicitlySet__.add("replicationMethod"); + public Builder systemChunkCount(Integer systemChunkCount) { + this.systemChunkCount = systemChunkCount; + this.__explicitlySet__.add("systemChunkCount"); return this; } - /** - * The Replication factor for RAFT replication based Globally distributed database. - * Currently supported values are 3, 5 and 7. - */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private Integer replicationFactor; + /** Number of replication units associated with system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftReplicationUnitCount") + private Integer systemRaftReplicationUnitCount; /** - * The Replication factor for RAFT replication based Globally distributed database. - * Currently supported values are 3, 5 and 7. + * Number of replication units associated with system raft clusters. * - * @param replicationFactor the value to set + * @param systemRaftReplicationUnitCount the value to set * @return this builder */ - public Builder replicationFactor(Integer replicationFactor) { - this.replicationFactor = replicationFactor; - this.__explicitlySet__.add("replicationFactor"); + 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; + /** - * The replication unit count for RAFT based distributed database. For RAFT replication - * based Globally distributed database, the value should be at least twice the number of - * shards. + * Collection of composite raft shards. + * + * @param compositeRaftShardSpaces the value to set + * @return this builder */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationUnit") - private Integer replicationUnit; + 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; /** - * The replication unit count for RAFT based distributed database. For RAFT replication - * based Globally distributed database, the value should be at least twice the number of - * shards. + * Collection of composite data guard shard spaces. * - * @param replicationUnit the value to set + * @param compositeDataGuardShardSpaces the value to set * @return this builder */ - public Builder replicationUnit(Integer replicationUnit) { - this.replicationUnit = replicationUnit; - this.__explicitlySet__.add("replicationUnit"); + public Builder compositeDataGuardShardSpaces( + java.util.List compositeDataGuardShardSpaces) { + this.compositeDataGuardShardSpaces = compositeDataGuardShardSpaces; + this.__explicitlySet__.add("compositeDataGuardShardSpaces"); return this; } - /** The distributed database deployment type. */ - @com.fasterxml.jackson.annotation.JsonProperty("dbDeploymentType") - private DbDeploymentType dbDeploymentType; + /** Collection of system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftClusters") + private java.util.List systemRaftClusters; /** - * The distributed database deployment type. + * Collection of system raft clusters. * - * @param dbDeploymentType the value to set + * @param systemRaftClusters the value to set * @return this builder */ - public Builder dbDeploymentType(DbDeploymentType dbDeploymentType) { - this.dbDeploymentType = dbDeploymentType; - this.__explicitlySet__.add("dbDeploymentType"); + 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 shards associated with the Globally distributed database. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardDetails") - private java.util.List shardDetails; + /** Collection of user defined shard spaces. */ + @com.fasterxml.jackson.annotation.JsonProperty("userShardSpaces") + private java.util.List userShardSpaces; /** - * Collection of shards associated with the Globally distributed database. + * Collection of user defined shard spaces. * - * @param shardDetails the value to set + * @param userShardSpaces the value to set * @return this builder */ - public Builder shardDetails(java.util.List shardDetails) { - this.shardDetails = shardDetails; - this.__explicitlySet__.add("shardDetails"); + public Builder userShardSpaces(java.util.List userShardSpaces) { + this.userShardSpaces = userShardSpaces; + this.__explicitlySet__.add("userShardSpaces"); return this; } - /** Collection of catalogs associated with the Globally distributed database. */ + /** Catalog details associated with the distributed database. */ @com.fasterxml.jackson.annotation.JsonProperty("catalogDetails") private java.util.List catalogDetails; /** - * Collection of catalogs associated with the Globally distributed database. + * Catalog details associated with the distributed database. * * @param catalogDetails the value to set * @return this builder @@ -578,12 +655,12 @@ public Builder catalogDetails(java.util.List catalog this.__explicitlySet__.add("catalogDetails"); return this; } - /** Collection of catalogs associated with the Globally distributed database. */ + /** Global Service Manager (GSM) instances associated with the distributed database. */ @com.fasterxml.jackson.annotation.JsonProperty("gsmDetails") private java.util.List gsmDetails; /** - * Collection of catalogs associated with the Globally distributed database. + * Global Service Manager (GSM) instances associated with the distributed database. * * @param gsmDetails the value to set * @return this builder @@ -593,6 +670,26 @@ public Builder gsmDetails(java.util.List 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; @@ -602,6 +699,16 @@ public Builder dbBackupConfig(DistributedDbBackupConfig 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; @@ -617,6 +724,25 @@ public Builder gsmSshPublicKey(String 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; @@ -698,29 +824,36 @@ public DistributedDatabase build() { 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.shardingMethod, this.characterSet, this.ncharacterSet, - this.chunks, this.listenerPort, this.listenerPortTls, this.onsPortLocal, this.onsPortRemote, this.scanListenerPort, - this.replicationMethod, - this.replicationFactor, - this.replicationUnit, - this.dbDeploymentType, - this.shardDetails, + 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, @@ -754,6 +887,15 @@ public Builder copy(DistributedDatabase model) { 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()); } @@ -766,21 +908,18 @@ public Builder copy(DistributedDatabase model) { 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("shardingMethod")) { - this.shardingMethod(model.getShardingMethod()); - } if (model.wasPropertyExplicitlySet("characterSet")) { this.characterSet(model.getCharacterSet()); } if (model.wasPropertyExplicitlySet("ncharacterSet")) { this.ncharacterSet(model.getNcharacterSet()); } - if (model.wasPropertyExplicitlySet("chunks")) { - this.chunks(model.getChunks()); - } if (model.wasPropertyExplicitlySet("listenerPort")) { this.listenerPort(model.getListenerPort()); } @@ -796,20 +935,26 @@ public Builder copy(DistributedDatabase model) { if (model.wasPropertyExplicitlySet("scanListenerPort")) { this.scanListenerPort(model.getScanListenerPort()); } - if (model.wasPropertyExplicitlySet("replicationMethod")) { - this.replicationMethod(model.getReplicationMethod()); + if (model.wasPropertyExplicitlySet("systemChunkCount")) { + this.systemChunkCount(model.getSystemChunkCount()); } - if (model.wasPropertyExplicitlySet("replicationFactor")) { - this.replicationFactor(model.getReplicationFactor()); + if (model.wasPropertyExplicitlySet("systemRaftReplicationUnitCount")) { + this.systemRaftReplicationUnitCount(model.getSystemRaftReplicationUnitCount()); } - if (model.wasPropertyExplicitlySet("replicationUnit")) { - this.replicationUnit(model.getReplicationUnit()); + if (model.wasPropertyExplicitlySet("compositeRaftShardSpaces")) { + this.compositeRaftShardSpaces(model.getCompositeRaftShardSpaces()); } - if (model.wasPropertyExplicitlySet("dbDeploymentType")) { - this.dbDeploymentType(model.getDbDeploymentType()); + if (model.wasPropertyExplicitlySet("compositeDataGuardShardSpaces")) { + this.compositeDataGuardShardSpaces(model.getCompositeDataGuardShardSpaces()); + } + if (model.wasPropertyExplicitlySet("systemRaftClusters")) { + this.systemRaftClusters(model.getSystemRaftClusters()); } - if (model.wasPropertyExplicitlySet("shardDetails")) { - this.shardDetails(model.getShardDetails()); + if (model.wasPropertyExplicitlySet("systemDataGuardDatabases")) { + this.systemDataGuardDatabases(model.getSystemDataGuardDatabases()); + } + if (model.wasPropertyExplicitlySet("userShardSpaces")) { + this.userShardSpaces(model.getUserShardSpaces()); } if (model.wasPropertyExplicitlySet("catalogDetails")) { this.catalogDetails(model.getCatalogDetails()); @@ -817,12 +962,21 @@ public Builder copy(DistributedDatabase model) { 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()); } @@ -896,13 +1050,13 @@ public String getDisplayName() { } /** - * The time the Globally distributed database was created. An RFC3339 formatted datetime string + * 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 + * The time the Globally distributed database was created. An RFC3339 formatted datetime string. * * @return the value */ @@ -912,14 +1066,14 @@ public java.util.Date getTimeCreated() { /** * The time the Globally distributed database was last updated. An RFC3339 formatted datetime - * string + * 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 + * string. * * @return the value */ @@ -1005,73 +1159,11 @@ public 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; - } - - @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; - } - - @com.fasterxml.jackson.annotation.JsonProperty("latestGsmImageDetails") - private final DistributedDbGsmImage latestGsmImageDetails; - - public DistributedDbGsmImage getLatestGsmImageDetails() { - return latestGsmImageDetails; - } - - /** Sharding Methods for the Globally distributed database. */ + /** 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 @@ -1114,12 +1206,12 @@ public static ShardingMethod create(String key) { return UnknownEnumValue; } }; - /** Sharding Methods for the Globally distributed database. */ + /** Sharding methods for the Globally distributed database. */ @com.fasterxml.jackson.annotation.JsonProperty("shardingMethod") private final ShardingMethod shardingMethod; /** - * Sharding Methods for the Globally distributed database. + * Sharding methods for the Globally distributed database. * * @return the value */ @@ -1127,47 +1219,245 @@ public ShardingMethod getShardingMethod() { return shardingMethod; } - /** 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 + * 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 String getCharacterSet() { - return characterSet; - } + public enum ReplicationMethod implements com.oracle.bmc.http.internal.BmcEnum { + Raft("RAFT"), + Dg("DG"), - /** The national character set for the database. */ - @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") - private final String ncharacterSet; + /** + * 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 national character set for the database. + * 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 String getNcharacterSet() { - return ncharacterSet; + 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 default number of unique chunks in a shardspace. The value of chunks must be greater than - * 2 times the size of the largest shardgroup in any shardspace. + * The distributed database deployment type. + * + * @return the value */ - @com.fasterxml.jackson.annotation.JsonProperty("chunks") - private final Integer chunks; + public DbDeploymentType getDbDeploymentType() { + return dbDeploymentType; + } + + /** The lifecycleDetails for the Globally distributed database. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; /** - * The default number of unique chunks in a shardspace. The value of chunks must be greater than - * 2 times the size of the largest shardgroup in any shardspace. + * The lifecycleDetails for the Globally distributed database. * * @return the value */ - public Integer getChunks() { - return chunks; + 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. */ @@ -1222,12 +1512,16 @@ public Integer getOnsPortRemote() { return onsPortRemote; } - /** The TCP Single Client Access Name (SCAN) port for Globally distributed database clusters. */ + /** + * 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 Single Client Access Name (SCAN) port for Globally distributed database clusters. + * The TCP SCAN listener port for database clusters with source type XS_NEW_VAULT_AND_CLUSTER or + * XS_NEW_CLUSTER. * * @return the value */ @@ -1235,183 +1529,97 @@ public Integer getScanListenerPort() { return scanListenerPort; } - /** - * The Replication method for Globally distributed database. Use RAFT for Raft replication, and - * DG for DataGuard. If replicationMethod is not provided, it defaults to DG. - */ - 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); + /** Count of chunks associated with system raft clusters or system data guard databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") + private final Integer systemChunkCount; - 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 replication, and - * DG for DataGuard. If replicationMethod is not provided, it defaults to DG. + * Count of chunks associated with system raft clusters or system data guard databases. + * + * @return the value */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") - private final ReplicationMethod replicationMethod; + public Integer getSystemChunkCount() { + return systemChunkCount; + } + + /** Number of replication units associated with system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftReplicationUnitCount") + private final Integer systemRaftReplicationUnitCount; /** - * The Replication method for Globally distributed database. Use RAFT for Raft replication, and - * DG for DataGuard. If replicationMethod is not provided, it defaults to DG. + * Number of replication units associated with system raft clusters. * * @return the value */ - public ReplicationMethod getReplicationMethod() { - return replicationMethod; + public Integer getSystemRaftReplicationUnitCount() { + return systemRaftReplicationUnitCount; } - /** - * The Replication factor for RAFT replication based Globally distributed database. Currently - * supported values are 3, 5 and 7. - */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private final Integer replicationFactor; + /** Collection of composite raft shards. */ + @com.fasterxml.jackson.annotation.JsonProperty("compositeRaftShardSpaces") + private final java.util.List compositeRaftShardSpaces; /** - * The Replication factor for RAFT replication based Globally distributed database. Currently - * supported values are 3, 5 and 7. + * Collection of composite raft shards. * * @return the value */ - public Integer getReplicationFactor() { - return replicationFactor; + public java.util.List getCompositeRaftShardSpaces() { + return compositeRaftShardSpaces; } - /** - * The replication unit count for RAFT based distributed database. For RAFT replication based - * Globally distributed database, the value should be at least twice the number of shards. - */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationUnit") - private final Integer replicationUnit; + /** Collection of composite data guard shard spaces. */ + @com.fasterxml.jackson.annotation.JsonProperty("compositeDataGuardShardSpaces") + private final java.util.List compositeDataGuardShardSpaces; /** - * The replication unit count for RAFT based distributed database. For RAFT replication based - * Globally distributed database, the value should be at least twice the number of shards. + * Collection of composite data guard shard spaces. * * @return the value */ - public Integer getReplicationUnit() { - return replicationUnit; + public java.util.List getCompositeDataGuardShardSpaces() { + return compositeDataGuardShardSpaces; } - /** The distributed database deployment type. */ - public enum DbDeploymentType implements com.oracle.bmc.http.internal.BmcEnum { - ExadbXs("EXADB_XS"), - - /** - * 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; + /** Collection of system raft clusters. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftClusters") + private final java.util.List systemRaftClusters; /** - * The distributed database deployment type. + * Collection of system raft clusters. * * @return the value */ - public DbDeploymentType getDbDeploymentType() { - return dbDeploymentType; + public java.util.List getSystemRaftClusters() { + return systemRaftClusters; } - /** Collection of shards associated with the Globally distributed database. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardDetails") - private final java.util.List shardDetails; + @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 shards associated with the Globally distributed database. + * Collection of user defined shard spaces. * * @return the value */ - public java.util.List getShardDetails() { - return shardDetails; + public java.util.List getUserShardSpaces() { + return userShardSpaces; } - /** Collection of catalogs associated with the Globally distributed database. */ + /** Catalog details associated with the distributed database. */ @com.fasterxml.jackson.annotation.JsonProperty("catalogDetails") private final java.util.List catalogDetails; /** - * Collection of catalogs associated with the Globally distributed database. + * Catalog details associated with the distributed database. * * @return the value */ @@ -1419,12 +1627,12 @@ public java.util.List getCatalogDetails() { return catalogDetails; } - /** Collection of catalogs associated with the Globally distributed database. */ + /** Global Service Manager (GSM) instances associated with the distributed database. */ @com.fasterxml.jackson.annotation.JsonProperty("gsmDetails") private final java.util.List gsmDetails; /** - * Collection of catalogs associated with the Globally distributed database. + * Global Service Manager (GSM) instances associated with the distributed database. * * @return the value */ @@ -1432,6 +1640,21 @@ 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; @@ -1439,6 +1662,13 @@ 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; @@ -1452,6 +1682,21 @@ 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; @@ -1532,29 +1777,41 @@ public String toString(boolean includeByteArrayContents) { 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(", shardingMethod=").append(String.valueOf(this.shardingMethod)); sb.append(", characterSet=").append(String.valueOf(this.characterSet)); sb.append(", ncharacterSet=").append(String.valueOf(this.ncharacterSet)); - sb.append(", chunks=").append(String.valueOf(this.chunks)); 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(", replicationMethod=").append(String.valueOf(this.replicationMethod)); - sb.append(", replicationFactor=").append(String.valueOf(this.replicationFactor)); - sb.append(", replicationUnit=").append(String.valueOf(this.replicationUnit)); - sb.append(", dbDeploymentType=").append(String.valueOf(this.dbDeploymentType)); - sb.append(", shardDetails=").append(String.valueOf(this.shardDetails)); + 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)); @@ -1580,29 +1837,41 @@ public boolean equals(Object o) { && 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.shardingMethod, other.shardingMethod) && java.util.Objects.equals(this.characterSet, other.characterSet) && java.util.Objects.equals(this.ncharacterSet, other.ncharacterSet) - && java.util.Objects.equals(this.chunks, other.chunks) && 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.replicationMethod, other.replicationMethod) - && java.util.Objects.equals(this.replicationFactor, other.replicationFactor) - && java.util.Objects.equals(this.replicationUnit, other.replicationUnit) - && java.util.Objects.equals(this.dbDeploymentType, other.dbDeploymentType) - && java.util.Objects.equals(this.shardDetails, other.shardDetails) + && 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) @@ -1627,6 +1896,15 @@ public int 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()); @@ -1641,17 +1919,18 @@ public int hashCode() { : this.privateEndpointIds.hashCode()); result = (result * PRIME) - + (this.latestGsmImageDetails == null + + (this.notificationTopicIds == null ? 43 - : this.latestGsmImageDetails.hashCode()); + : this.notificationTopicIds.hashCode()); result = (result * PRIME) - + (this.shardingMethod == null ? 43 : this.shardingMethod.hashCode()); + + (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.chunks == null ? 43 : this.chunks.hashCode()); result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); result = (result * PRIME) @@ -1665,27 +1944,56 @@ public int hashCode() { + (this.scanListenerPort == null ? 43 : this.scanListenerPort.hashCode()); result = (result * PRIME) - + (this.replicationMethod == null ? 43 : this.replicationMethod.hashCode()); + + (this.systemChunkCount == null ? 43 : this.systemChunkCount.hashCode()); + result = + (result * PRIME) + + (this.systemRaftReplicationUnitCount == null + ? 43 + : this.systemRaftReplicationUnitCount.hashCode()); result = (result * PRIME) - + (this.replicationFactor == null ? 43 : this.replicationFactor.hashCode()); + + (this.compositeRaftShardSpaces == null + ? 43 + : this.compositeRaftShardSpaces.hashCode()); result = (result * PRIME) - + (this.replicationUnit == null ? 43 : this.replicationUnit.hashCode()); + + (this.compositeDataGuardShardSpaces == null + ? 43 + : this.compositeDataGuardShardSpaces.hashCode()); result = (result * PRIME) - + (this.dbDeploymentType == null ? 43 : this.dbDeploymentType.hashCode()); - result = (result * PRIME) + (this.shardDetails == null ? 43 : this.shardDetails.hashCode()); + + (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()); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseAssociatedWithPrivateEndpoint.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseAssociatedWithPrivateEndpoint.java deleted file mode 100644 index cbc77b9462e..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseAssociatedWithPrivateEndpoint.java +++ /dev/null @@ -1,184 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.model; - -/** - * This field is deprecated. Support for this field will be removed after Mon, 1 Mar 2027 00:00:00 - * GMT.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabaseAssociatedWithPrivateEndpoint.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class DistributedDatabaseAssociatedWithPrivateEndpoint - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"id", "dbDeploymentType"}) - public DistributedDatabaseAssociatedWithPrivateEndpoint( - String id, DistributedDatabase.DbDeploymentType dbDeploymentType) { - super(); - this.id = id; - this.dbDeploymentType = dbDeploymentType; - } - - @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 - * 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 - * 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 dbDeploymentType associated with the distributed database. */ - @com.fasterxml.jackson.annotation.JsonProperty("dbDeploymentType") - private DistributedDatabase.DbDeploymentType dbDeploymentType; - - /** - * The dbDeploymentType associated with the distributed database. - * - * @param dbDeploymentType the value to set - * @return this builder - */ - public Builder dbDeploymentType(DistributedDatabase.DbDeploymentType dbDeploymentType) { - this.dbDeploymentType = dbDeploymentType; - this.__explicitlySet__.add("dbDeploymentType"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedDatabaseAssociatedWithPrivateEndpoint build() { - DistributedDatabaseAssociatedWithPrivateEndpoint model = - new DistributedDatabaseAssociatedWithPrivateEndpoint( - this.id, this.dbDeploymentType); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabaseAssociatedWithPrivateEndpoint model) { - if (model.wasPropertyExplicitlySet("id")) { - this.id(model.getId()); - } - if (model.wasPropertyExplicitlySet("dbDeploymentType")) { - this.dbDeploymentType(model.getDbDeploymentType()); - } - 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 - * 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 - * distributed database. - * - * @return the value - */ - public String getId() { - return id; - } - - /** The dbDeploymentType associated with the distributed database. */ - @com.fasterxml.jackson.annotation.JsonProperty("dbDeploymentType") - private final DistributedDatabase.DbDeploymentType dbDeploymentType; - - /** - * The dbDeploymentType associated with the distributed database. - * - * @return the value - */ - public DistributedDatabase.DbDeploymentType getDbDeploymentType() { - return dbDeploymentType; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabaseAssociatedWithPrivateEndpoint("); - sb.append("super=").append(super.toString()); - sb.append("id=").append(String.valueOf(this.id)); - sb.append(", dbDeploymentType=").append(String.valueOf(this.dbDeploymentType)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDatabaseAssociatedWithPrivateEndpoint)) { - return false; - } - - DistributedDatabaseAssociatedWithPrivateEndpoint other = - (DistributedDatabaseAssociatedWithPrivateEndpoint) o; - return java.util.Objects.equals(this.id, other.id) - && java.util.Objects.equals(this.dbDeploymentType, other.dbDeploymentType) - && 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.dbDeploymentType == null ? 43 : this.dbDeploymentType.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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseAutoResourceManagementDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseAutoResourceManagementDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseAutoResourceManagementDetails.java index 28a68c801ee..c2f71ab8b2f 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseAutoResourceManagementDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseAutoResourceManagementDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * AutoResourceManagement configuration details for the Globally distributed database.
diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalog.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalog.java index 45a0d3ad578..65c4fd7abaf 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalog.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalog.java @@ -5,7 +5,7 @@ package com.oracle.bmc.distributeddatabase.model; /** - * Globally distributed database catalog.
+ * 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 @@ -15,71 +15,102 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source", - defaultImpl = DistributedDatabaseCatalog.class) -@com.fasterxml.jackson.annotation.JsonSubTypes({ - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = DistributedDatabaseCatalogWithExadbXs.class, - name = "EXADB_XS"), - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = DistributedDatabaseCatalogWithExadbXsNewVaultAndCluster.class, - name = "NEW_VAULT_AND_CLUSTER") -}) +@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 class DistributedDatabaseCatalog +public final class DistributedDatabaseCatalog extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"name", "timeCreated", "timeUpdated"}) - protected DistributedDatabaseCatalog( - String name, java.util.Date timeCreated, java.util.Date timeUpdated) { + @java.beans.ConstructorProperties({"originalReplica", "dataGuardReplicas"}) + public DistributedDatabaseCatalog( + DistributedDatabaseCatalogReplicaDetails originalReplica, + java.util.List dataGuardReplicas) { super(); - this.name = name; - this.timeCreated = timeCreated; - this.timeUpdated = timeUpdated; + this.originalReplica = originalReplica; + this.dataGuardReplicas = dataGuardReplicas; } - /** The name of catalog. */ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { - /** - * The name of catalog. - * - * @return the value - */ - public String getName() { - return name; + @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; + } } - /** The time the catalog was created. An RFC3339 formatted datetime string */ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private final java.util.Date timeCreated; + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } - /** - * The time the catalog was created. An RFC3339 formatted datetime string - * - * @return the value - */ - public java.util.Date getTimeCreated() { - return timeCreated; + public Builder toBuilder() { + return new Builder().copy(this); + } + + @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") + private final DistributedDatabaseCatalogReplicaDetails originalReplica; + + public DistributedDatabaseCatalogReplicaDetails getOriginalReplica() { + return originalReplica; } - /** 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 details of data guard replicas for the catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") + private final java.util.List dataGuardReplicas; /** - * The time the catalog was last updated. An RFC3339 formatted datetime string + * The details of data guard replicas for the catalog. * * @return the value */ - public java.util.Date getTimeUpdated() { - return timeUpdated; + public java.util.List getDataGuardReplicas() { + return dataGuardReplicas; } @Override @@ -97,9 +128,8 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("DistributedDatabaseCatalog("); 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("originalReplica=").append(String.valueOf(this.originalReplica)); + sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); sb.append(")"); return sb.toString(); } @@ -114,9 +144,8 @@ public boolean equals(Object o) { } DistributedDatabaseCatalog other = (DistributedDatabaseCatalog) 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) + return java.util.Objects.equals(this.originalReplica, other.originalReplica) + && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) && super.equals(other); } @@ -124,63 +153,13 @@ public boolean equals(Object o) { 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.originalReplica == null ? 43 : this.originalReplica.hashCode()); + result = + (result * PRIME) + + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } - - /** - * Type of Globally distributed database Shard or Catalog. Use NEW_VAULT_AND_CLUSTER for a - * Globally distributed database on Exascale with new vaults and clusters created from scratch. - * Use EXISTING_CLUSTER for a Globally distributed database on Exascale based on pre-existing - * clusters. EXADB_XS is currently the same as EXISTING_CLUSTER and will be deprecated after the - * deprecation cycle. - */ - public enum Source implements com.oracle.bmc.http.internal.BmcEnum { - ExadbXs("EXADB_XS"), - NewVaultAndCluster("NEW_VAULT_AND_CLUSTER"), - ExistingCluster("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/DistributedDatabaseCatalogDatabase.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogDatabase.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabase.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogDatabase.java index 8cb26c34ed5..6445409c551 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabase.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogDatabase.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details of a distributed database catalog.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithDbHome.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogDatabaseWithDbHome.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithDbHome.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogDatabaseWithDbHome.java index 11d68f2446b..b2a9b74c812 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithDbHome.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogDatabaseWithDbHome.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details of a distributed database catalog using a pre-existing Database Home.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXd.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogDatabaseWithExadbXd.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXd.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogDatabaseWithExadbXd.java index 45967564dff..2b47d7a6e38 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXd.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogDatabaseWithExadbXd.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details of a distributed database catalog running on ExaDB-D.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXs.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogDatabaseWithExadbXs.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXs.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogDatabaseWithExadbXs.java index 370caa2cf62..f3633779379 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXs.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogDatabaseWithExadbXs.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details of a distributed database catalog running on ExaDB-XS.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster.java index 8882d78ee9a..55b230bcf17 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details of a distributed database catalog on ExaDB-XS with a new cluster.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster.java index 38eff79fc01..e38a3d758de 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details of a distributed database catalog on ExaDB-XS with a new cluster and storage vault.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogReplicaDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogReplicaDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogReplicaDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogReplicaDetails.java index 09269cc9bb4..b34e0a4a86b 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogReplicaDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogReplicaDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details of a catalog replica.
diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogWithExadbXs.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogWithExadbXs.java deleted file mode 100644 index d2fbe23598f..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogWithExadbXs.java +++ /dev/null @@ -1,647 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.model; - -/** - * Globally distributed database catalog based on exadbxs.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabaseCatalogWithExadbXs.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 DistributedDatabaseCatalogWithExadbXs extends DistributedDatabaseCatalog { - @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; - } - /** - * 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 name of the shardGroup for the catalog. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardGroup") - private String shardGroup; - - /** - * The name of the shardGroup for the catalog. - * - * @param shardGroup the value to set - * @return this builder - */ - public Builder shardGroup(String shardGroup) { - this.shardGroup = shardGroup; - this.__explicitlySet__.add("shardGroup"); - 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; - } - /** - * 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 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 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 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 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 EXADB_XS based catalog. */ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private Status status; - - /** - * Status of EXADB_XS based 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; - } - /** Peer details for the catalog. */ - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - private java.util.List peerDetails; - - /** - * Peer details for the catalog. - * - * @param peerDetails the value to set - * @return this builder - */ - public Builder peerDetails(java.util.List peerDetails) { - this.peerDetails = peerDetails; - this.__explicitlySet__.add("peerDetails"); - 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 DistributedDatabaseCatalogWithExadbXs build() { - DistributedDatabaseCatalogWithExadbXs model = - new DistributedDatabaseCatalogWithExadbXs( - this.name, - this.timeCreated, - this.timeUpdated, - this.dbHomeId, - this.shardGroup, - this.vmClusterId, - this.vaultId, - this.kmsKeyId, - this.kmsKeyVersionId, - this.status, - this.supportingResourceId, - this.containerDatabaseId, - this.peerDetails, - this.metadata); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabaseCatalogWithExadbXs 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("dbHomeId")) { - this.dbHomeId(model.getDbHomeId()); - } - if (model.wasPropertyExplicitlySet("shardGroup")) { - this.shardGroup(model.getShardGroup()); - } - if (model.wasPropertyExplicitlySet("vmClusterId")) { - this.vmClusterId(model.getVmClusterId()); - } - 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("peerDetails")) { - this.peerDetails(model.getPeerDetails()); - } - 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); - } - - @Deprecated - public DistributedDatabaseCatalogWithExadbXs( - String name, - java.util.Date timeCreated, - java.util.Date timeUpdated, - String dbHomeId, - String shardGroup, - String vmClusterId, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - Status status, - String supportingResourceId, - String containerDatabaseId, - java.util.List peerDetails, - DistributedDbMetadata metadata) { - super(name, timeCreated, timeUpdated); - this.dbHomeId = dbHomeId; - this.shardGroup = shardGroup; - this.vmClusterId = vmClusterId; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.status = status; - this.supportingResourceId = supportingResourceId; - this.containerDatabaseId = containerDatabaseId; - this.peerDetails = peerDetails; - this.metadata = metadata; - } - - /** - * 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 name of the shardGroup for the catalog. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardGroup") - private final String shardGroup; - - /** - * The name of the shardGroup for the catalog. - * - * @return the value - */ - public String getShardGroup() { - return shardGroup; - } - - /** - * 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 [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 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 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 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 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 EXADB_XS based 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 EXADB_XS based catalog. */ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private final Status status; - - /** - * Status of EXADB_XS based 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; - } - - /** Peer details for the catalog. */ - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - private final java.util.List peerDetails; - - /** - * Peer details for the catalog. - * - * @return the value - */ - public java.util.List getPeerDetails() { - return peerDetails; - } - - @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("DistributedDatabaseCatalogWithExadbXs("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); - sb.append(", shardGroup=").append(String.valueOf(this.shardGroup)); - sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); - 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(", peerDetails=").append(String.valueOf(this.peerDetails)); - 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 DistributedDatabaseCatalogWithExadbXs)) { - return false; - } - - DistributedDatabaseCatalogWithExadbXs other = (DistributedDatabaseCatalogWithExadbXs) o; - return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) - && java.util.Objects.equals(this.shardGroup, other.shardGroup) - && java.util.Objects.equals(this.vmClusterId, other.vmClusterId) - && 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.peerDetails, other.peerDetails) - && java.util.Objects.equals(this.metadata, other.metadata) - && 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.shardGroup == null ? 43 : this.shardGroup.hashCode()); - result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.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.peerDetails == null ? 43 : this.peerDetails.hashCode()); - result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogWithExadbXsNewVaultAndCluster.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogWithExadbXsNewVaultAndCluster.java deleted file mode 100644 index ab86bf2a029..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogWithExadbXsNewVaultAndCluster.java +++ /dev/null @@ -1,708 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.model; - -/** - * Globally distributed database catalog based on ExaDbXs.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabaseCatalogWithExadbXsNewVaultAndCluster.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 DistributedDatabaseCatalogWithExadbXsNewVaultAndCluster - extends DistributedDatabaseCatalog { - @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; - } - /** - * 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 name of the shardGroup for the catalog. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardGroup") - private String shardGroup; - - /** - * The name of the shardGroup for the catalog. - * - * @param shardGroup the value to set - * @return this builder - */ - public Builder shardGroup(String shardGroup) { - this.shardGroup = shardGroup; - this.__explicitlySet__.add("shardGroup"); - 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 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 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 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 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 EXADB_XS based catalog. */ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private Status status; - - /** - * Status of EXADB_XS based 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; - } - /** Peer details for the catalog. */ - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - private java.util.List peerDetails; - - /** - * Peer details for the catalog. - * - * @param peerDetails the value to set - * @return this builder - */ - public Builder peerDetails( - java.util.List peerDetails) { - this.peerDetails = peerDetails; - this.__explicitlySet__.add("peerDetails"); - 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 DistributedDatabaseCatalogWithExadbXsNewVaultAndCluster build() { - DistributedDatabaseCatalogWithExadbXsNewVaultAndCluster model = - new DistributedDatabaseCatalogWithExadbXsNewVaultAndCluster( - this.name, - this.timeCreated, - this.timeUpdated, - this.dbHomeId, - this.shardGroup, - this.vaultId, - this.kmsKeyId, - this.kmsKeyVersionId, - this.status, - this.supportingResourceId, - this.containerDatabaseId, - this.availabilityDomain, - this.dbStorageVaultDetails, - this.vmClusterDetails, - this.peerDetails, - this.metadata); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabaseCatalogWithExadbXsNewVaultAndCluster 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("dbHomeId")) { - this.dbHomeId(model.getDbHomeId()); - } - if (model.wasPropertyExplicitlySet("shardGroup")) { - this.shardGroup(model.getShardGroup()); - } - 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("peerDetails")) { - this.peerDetails(model.getPeerDetails()); - } - 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); - } - - @Deprecated - public DistributedDatabaseCatalogWithExadbXsNewVaultAndCluster( - String name, - java.util.Date timeCreated, - java.util.Date timeUpdated, - String dbHomeId, - String shardGroup, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - Status status, - String supportingResourceId, - String containerDatabaseId, - String availabilityDomain, - DistributedDbStorageVault dbStorageVaultDetails, - DistributedDbVmCluster vmClusterDetails, - java.util.List peerDetails, - DistributedDbMetadata metadata) { - super(name, timeCreated, timeUpdated); - this.dbHomeId = dbHomeId; - this.shardGroup = shardGroup; - 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.peerDetails = peerDetails; - this.metadata = metadata; - } - - /** - * 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 name of the shardGroup for the catalog. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardGroup") - private final String shardGroup; - - /** - * The name of the shardGroup for the catalog. - * - * @return the value - */ - public String getShardGroup() { - return shardGroup; - } - - /** - * 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 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 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 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 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 EXADB_XS based 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 EXADB_XS based catalog. */ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private final Status status; - - /** - * Status of EXADB_XS based 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; - } - - /** Peer details for the catalog. */ - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - private final java.util.List peerDetails; - - /** - * Peer details for the catalog. - * - * @return the value - */ - public java.util.List getPeerDetails() { - return peerDetails; - } - - @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("DistributedDatabaseCatalogWithExadbXsNewVaultAndCluster("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); - sb.append(", shardGroup=").append(String.valueOf(this.shardGroup)); - 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(", peerDetails=").append(String.valueOf(this.peerDetails)); - 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 DistributedDatabaseCatalogWithExadbXsNewVaultAndCluster)) { - return false; - } - - DistributedDatabaseCatalogWithExadbXsNewVaultAndCluster other = - (DistributedDatabaseCatalogWithExadbXsNewVaultAndCluster) o; - return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) - && java.util.Objects.equals(this.shardGroup, other.shardGroup) - && 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.peerDetails, other.peerDetails) - && java.util.Objects.equals(this.metadata, other.metadata) - && 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.shardGroup == null ? 43 : this.shardGroup.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.peerDetails == null ? 43 : this.peerDetails.hashCode()); - result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCollection.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCollection.java index d954c9bd746..c9f15c582dd 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCollection.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCollection.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDatabaseCollection.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseGdsControlNode.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseGdsControlNode.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseGdsControlNode.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseGdsControlNode.java index 3a0524b6bb4..b6383aafdad 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseGdsControlNode.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseGdsControlNode.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details of Global Database Services Control(GDS CTL) instances for the Globally distributed diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseGsm.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseGsm.java index bed560078be..ac36cf10ff2 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseGsm.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseGsm.java @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDatabaseGsm.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -111,14 +111,14 @@ public Builder dataStorageSizeInGbs(Double dataStorageSizeInGbs) { } /** * The time the Global service manager instance was created. An RFC3339 formatted datetime - * string + * 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 + * string. * * @param timeCreated the value to set * @return this builder @@ -130,14 +130,14 @@ public Builder timeCreated(java.util.Date timeCreated) { } /** * The time the Global service manager instance was last updated. An RFC3339 formatted - * datetime string + * 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 + * datetime string. * * @param timeUpdated the value to set * @return this builder @@ -323,14 +323,14 @@ public Double getDataStorageSizeInGbs() { /** * The time the Global service manager instance was created. An RFC3339 formatted datetime - * string + * 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 + * string. * * @return the value */ @@ -340,14 +340,14 @@ public java.util.Date getTimeCreated() { /** * The time the Global service manager instance was last updated. An RFC3339 formatted datetime - * string + * 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 + * string. * * @return the value */ diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabasePrivateEndpoint.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabasePrivateEndpoint.java index 4e20dcf57cc..f61bafd4b1c 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabasePrivateEndpoint.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabasePrivateEndpoint.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDatabasePrivateEndpoint.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -31,9 +31,7 @@ public final class DistributedDatabasePrivateEndpoint "displayName", "description", "privateIp", - "nsgIds", - "globallyDistributedDatabases", - "globallyDistributedAutonomousDatabases", + "vcnNsgIds", "timeCreated", "timeUpdated", "lifecycleState", @@ -51,11 +49,7 @@ public DistributedDatabasePrivateEndpoint( String displayName, String description, String privateIp, - java.util.List nsgIds, - java.util.List - globallyDistributedDatabases, - java.util.List - globallyDistributedAutonomousDatabases, + java.util.List vcnNsgIds, java.util.Date timeCreated, java.util.Date timeUpdated, LifecycleState lifecycleState, @@ -72,9 +66,7 @@ public DistributedDatabasePrivateEndpoint( this.displayName = displayName; this.description = description; this.privateIp = privateIp; - this.nsgIds = nsgIds; - this.globallyDistributedDatabases = globallyDistributedDatabases; - this.globallyDistributedAutonomousDatabases = globallyDistributedAutonomousDatabases; + this.vcnNsgIds = vcnNsgIds; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; @@ -192,63 +184,21 @@ public Builder privateIp(String privateIp) { this.__explicitlySet__.add("privateIp"); return this; } - /** The OCIDs of the network security groups that the private endpoint belongs to. */ - @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") - private java.util.List nsgIds; - - /** - * The OCIDs of the network security groups that the private endpoint belongs to. - * - * @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; - } - /** - * This field is deprecated. Support for this field will be removed after Mon, 1 Mar 2027 - * 00:00:00 GMT. - */ - @com.fasterxml.jackson.annotation.JsonProperty("globallyDistributedDatabases") - private java.util.List - globallyDistributedDatabases; - - /** - * This field is deprecated. Support for this field will be removed after Mon, 1 Mar 2027 - * 00:00:00 GMT. - * - * @param globallyDistributedDatabases the value to set - * @return this builder - */ - public Builder globallyDistributedDatabases( - java.util.List - globallyDistributedDatabases) { - this.globallyDistributedDatabases = globallyDistributedDatabases; - this.__explicitlySet__.add("globallyDistributedDatabases"); - return this; - } /** - * This field is deprecated. Support for this field will be removed after Mon, 1 Mar 2027 - * 00:00:00 GMT. + * The list of network security group (NSG) details associated with the private endpoint. */ - @com.fasterxml.jackson.annotation.JsonProperty("globallyDistributedAutonomousDatabases") - private java.util.List - globallyDistributedAutonomousDatabases; + @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") + private java.util.List vcnNsgIds; /** - * This field is deprecated. Support for this field will be removed after Mon, 1 Mar 2027 - * 00:00:00 GMT. + * The list of network security group (NSG) details associated with the private endpoint. * - * @param globallyDistributedAutonomousDatabases the value to set + * @param vcnNsgIds the value to set * @return this builder */ - public Builder globallyDistributedAutonomousDatabases( - java.util.List - globallyDistributedAutonomousDatabases) { - this.globallyDistributedAutonomousDatabases = globallyDistributedAutonomousDatabases; - this.__explicitlySet__.add("globallyDistributedAutonomousDatabases"); + public Builder vcnNsgIds(java.util.List vcnNsgIds) { + this.vcnNsgIds = vcnNsgIds; + this.__explicitlySet__.add("vcnNsgIds"); return this; } /** @@ -402,9 +352,7 @@ public DistributedDatabasePrivateEndpoint build() { this.displayName, this.description, this.privateIp, - this.nsgIds, - this.globallyDistributedDatabases, - this.globallyDistributedAutonomousDatabases, + this.vcnNsgIds, this.timeCreated, this.timeUpdated, this.lifecycleState, @@ -442,15 +390,8 @@ public Builder copy(DistributedDatabasePrivateEndpoint model) { if (model.wasPropertyExplicitlySet("privateIp")) { this.privateIp(model.getPrivateIp()); } - if (model.wasPropertyExplicitlySet("nsgIds")) { - this.nsgIds(model.getNsgIds()); - } - if (model.wasPropertyExplicitlySet("globallyDistributedDatabases")) { - this.globallyDistributedDatabases(model.getGloballyDistributedDatabases()); - } - if (model.wasPropertyExplicitlySet("globallyDistributedAutonomousDatabases")) { - this.globallyDistributedAutonomousDatabases( - model.getGloballyDistributedAutonomousDatabases()); + if (model.wasPropertyExplicitlySet("vcnNsgIds")) { + this.vcnNsgIds(model.getVcnNsgIds()); } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); @@ -580,55 +521,17 @@ public String getPrivateIp() { return privateIp; } - /** The OCIDs of the network security groups that the private endpoint belongs to. */ - @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") - private final java.util.List nsgIds; - - /** - * The OCIDs of the network security groups that the private endpoint belongs to. - * - * @return the value - */ - public java.util.List getNsgIds() { - return nsgIds; - } - - /** - * This field is deprecated. Support for this field will be removed after Mon, 1 Mar 2027 - * 00:00:00 GMT. - */ - @com.fasterxml.jackson.annotation.JsonProperty("globallyDistributedDatabases") - private final java.util.List - globallyDistributedDatabases; - - /** - * This field is deprecated. Support for this field will be removed after Mon, 1 Mar 2027 - * 00:00:00 GMT. - * - * @return the value - */ - public java.util.List - getGloballyDistributedDatabases() { - return globallyDistributedDatabases; - } - - /** - * This field is deprecated. Support for this field will be removed after Mon, 1 Mar 2027 - * 00:00:00 GMT. - */ - @com.fasterxml.jackson.annotation.JsonProperty("globallyDistributedAutonomousDatabases") - private final java.util.List - globallyDistributedAutonomousDatabases; + /** 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; /** - * This field is deprecated. Support for this field will be removed after Mon, 1 Mar 2027 - * 00:00:00 GMT. + * The list of network security group (NSG) details associated with the private endpoint. * * @return the value */ - public java.util.List - getGloballyDistributedAutonomousDatabases() { - return globallyDistributedAutonomousDatabases; + public java.util.List getVcnNsgIds() { + return vcnNsgIds; } /** @@ -824,11 +727,7 @@ public String toString(boolean includeByteArrayContents) { 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(", nsgIds=").append(String.valueOf(this.nsgIds)); - sb.append(", globallyDistributedDatabases=") - .append(String.valueOf(this.globallyDistributedDatabases)); - sb.append(", globallyDistributedAutonomousDatabases=") - .append(String.valueOf(this.globallyDistributedAutonomousDatabases)); + 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)); @@ -858,12 +757,7 @@ public boolean equals(Object o) { && 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.nsgIds, other.nsgIds) - && java.util.Objects.equals( - this.globallyDistributedDatabases, other.globallyDistributedDatabases) - && java.util.Objects.equals( - this.globallyDistributedAutonomousDatabases, - other.globallyDistributedAutonomousDatabases) + && 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) @@ -889,17 +783,7 @@ public int 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.nsgIds == null ? 43 : this.nsgIds.hashCode()); - result = - (result * PRIME) - + (this.globallyDistributedDatabases == null - ? 43 - : this.globallyDistributedDatabases.hashCode()); - result = - (result * PRIME) - + (this.globallyDistributedAutonomousDatabases == null - ? 43 - : this.globallyDistributedAutonomousDatabases.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 = diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabasePrivateEndpointCollection.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabasePrivateEndpointCollection.java index 1b9c7677e34..eda386cfae4 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabasePrivateEndpointCollection.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabasePrivateEndpointCollection.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDatabasePrivateEndpointCollection.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabasePrivateEndpointSummary.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabasePrivateEndpointSummary.java index 0951a55da88..6fc9378d1b0 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabasePrivateEndpointSummary.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabasePrivateEndpointSummary.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDatabasePrivateEndpointSummary.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -30,7 +30,7 @@ public final class DistributedDatabasePrivateEndpointSummary "subnetId", "vcnId", "displayName", - "nsgIds", + "vcnNsgIds", "timeCreated", "timeUpdated", "lifecycleState", @@ -46,7 +46,7 @@ public DistributedDatabasePrivateEndpointSummary( String subnetId, String vcnId, String displayName, - java.util.List nsgIds, + java.util.List vcnNsgIds, java.util.Date timeCreated, java.util.Date timeUpdated, DistributedDatabasePrivateEndpoint.LifecycleState lifecycleState, @@ -61,7 +61,7 @@ public DistributedDatabasePrivateEndpointSummary( this.subnetId = subnetId; this.vcnId = vcnId; this.displayName = displayName; - this.nsgIds = nsgIds; + this.vcnNsgIds = vcnNsgIds; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; @@ -163,19 +163,21 @@ public Builder displayName(String displayName) { this.__explicitlySet__.add("displayName"); return this; } - /** The OCIDs of the network security groups that the private endpoint belongs to. */ - @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") - private java.util.List nsgIds; + /** + * 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 OCIDs of the network security groups that the private endpoint belongs to. + * The list of network security group (NSG) details associated with the private endpoint. * - * @param nsgIds the value to set + * @param vcnNsgIds the value to set * @return this builder */ - public Builder nsgIds(java.util.List nsgIds) { - this.nsgIds = nsgIds; - this.__explicitlySet__.add("nsgIds"); + 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 */ @@ -310,7 +312,7 @@ public DistributedDatabasePrivateEndpointSummary build() { this.subnetId, this.vcnId, this.displayName, - this.nsgIds, + this.vcnNsgIds, this.timeCreated, this.timeUpdated, this.lifecycleState, @@ -344,8 +346,8 @@ public Builder copy(DistributedDatabasePrivateEndpointSummary model) { if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } - if (model.wasPropertyExplicitlySet("nsgIds")) { - this.nsgIds(model.getNsgIds()); + if (model.wasPropertyExplicitlySet("vcnNsgIds")) { + this.vcnNsgIds(model.getVcnNsgIds()); } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); @@ -459,17 +461,17 @@ public String getDisplayName() { return displayName; } - /** The OCIDs of the network security groups that the private endpoint belongs to. */ - @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") - private final java.util.List nsgIds; + /** 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 OCIDs of the network security groups that the private endpoint belongs to. + * The list of network security group (NSG) details associated with the private endpoint. * * @return the value */ - public java.util.List getNsgIds() { - return nsgIds; + public java.util.List getVcnNsgIds() { + return vcnNsgIds; } /** The time the the private endpoint was created. An RFC3339 formatted datetime string */ @@ -596,7 +598,7 @@ public String toString(boolean includeByteArrayContents) { 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(", nsgIds=").append(String.valueOf(this.nsgIds)); + 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)); @@ -625,7 +627,7 @@ public boolean equals(Object o) { && 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.nsgIds, other.nsgIds) + && 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) @@ -648,7 +650,7 @@ public int 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.nsgIds == null ? 43 : this.nsgIds.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 = diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseRaftMetric.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseRaftMetric.java index c573c901fb2..7381ea5ad80 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseRaftMetric.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseRaftMetric.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDatabaseRaftMetric.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRuChangeLog.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseRuChangeLog.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRuChangeLog.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseRuChangeLog.java index e6d2edbb500..bc8cfe2fbb2 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRuChangeLog.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseRuChangeLog.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Move RU invocation history for the Globally distributed database.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRuChangeLogSummary.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseRuChangeLogSummary.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRuChangeLogSummary.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseRuChangeLogSummary.java index b3a16c78bba..e7544621245 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRuChangeLogSummary.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseRuChangeLogSummary.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * One move RU invocation record for the Globally distributed database.
diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShard.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShard.java deleted file mode 100644 index be2892f7e22..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShard.java +++ /dev/null @@ -1,186 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.model; - -/** - * Globally 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: 20250101") -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source", - defaultImpl = DistributedDatabaseShard.class) -@com.fasterxml.jackson.annotation.JsonSubTypes({ - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = DistributedDatabaseShardWithExadbXsNewVaultAndCluster.class, - name = "NEW_VAULT_AND_CLUSTER"), - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = DistributedDatabaseShardWithExadbXs.class, - name = "EXADB_XS") -}) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public class DistributedDatabaseShard - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "timeCreated", "timeUpdated"}) - protected DistributedDatabaseShard( - String name, java.util.Date timeCreated, java.util.Date timeUpdated) { - super(); - this.name = name; - this.timeCreated = timeCreated; - this.timeUpdated = timeUpdated; - } - - /** 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; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabaseShard("); - 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(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDatabaseShard)) { - return false; - } - - DistributedDatabaseShard other = (DistributedDatabaseShard) 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) - && 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) + super.hashCode(); - return result; - } - - /** - * Type of Globally distributed database Shard or Catalog. Use NEW_VAULT_AND_CLUSTER for a - * Globally distributed database on Exascale with new vaults and clusters created from scratch. - * Use EXISTING_CLUSTER for a Globally distributed database on Exascale based on pre-existing - * clusters. EXADB_XS is currently the same as EXISTING_CLUSTER and will be deprecated after the - * deprecation cycle. - */ - public enum Source implements com.oracle.bmc.http.internal.BmcEnum { - ExadbXs("EXADB_XS"), - NewVaultAndCluster("NEW_VAULT_AND_CLUSTER"), - ExistingCluster("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/DistributedDatabaseShardDatabase.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardDatabase.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabase.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardDatabase.java index e3126ebcceb..c9949c52a50 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabase.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardDatabase.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details of a distributed database shard.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithDbHome.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardDatabaseWithDbHome.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithDbHome.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardDatabaseWithDbHome.java index 87588a56a74..1633956587d 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithDbHome.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardDatabaseWithDbHome.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details of a distributed database shard using a pre-existing Database Home.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXd.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardDatabaseWithExadbXd.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXd.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardDatabaseWithExadbXd.java index 53b488f483f..a01250171fa 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXd.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardDatabaseWithExadbXd.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details of a distributed database shard running on ExaDB-D.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXs.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardDatabaseWithExadbXs.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXs.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardDatabaseWithExadbXs.java index 1cc9346211b..a7265c63d01 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXs.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardDatabaseWithExadbXs.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details of a distributed database shard running on ExaDB-XS.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXsNewCluster.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardDatabaseWithExadbXsNewCluster.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXsNewCluster.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardDatabaseWithExadbXsNewCluster.java index 098558fb426..d5db423d7d0 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXsNewCluster.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardDatabaseWithExadbXsNewCluster.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details of a distributed database shard on ExaDB-XS with a new cluster.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster.java index 39b5008b6b1..5cc50364596 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details of a distributed database shard on ExaDB-XS with a new cluster and storage vault.
diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardWithExadbXs.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardWithExadbXs.java deleted file mode 100644 index 3657fec6f31..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardWithExadbXs.java +++ /dev/null @@ -1,696 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.model; - -/** - * Globally distributed database shard based on exadbxs.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabaseShardWithExadbXs.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 DistributedDatabaseShardWithExadbXs extends DistributedDatabaseShard { - @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; - } - /** - * 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 name of the shardGroup for the shard. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardGroup") - private String shardGroup; - - /** - * The name of the shardGroup for the shard. - * - * @param shardGroup the value to set - * @return this builder - */ - public Builder shardGroup(String shardGroup) { - this.shardGroup = shardGroup; - this.__explicitlySet__.add("shardGroup"); - 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; - } - /** - * The shard space name for the Globally distributed database. Shard space for existing - * shard cannot be changed, once shard is created. Shard space name shall be used while - * creation of new shards. - */ - @com.fasterxml.jackson.annotation.JsonProperty("shardSpace") - private String shardSpace; - - /** - * The shard space name for the Globally distributed database. Shard space for existing - * shard cannot be changed, once shard is created. Shard space name shall be used while - * creation of new shards. - * - * @param shardSpace the value to set - * @return this builder - */ - public Builder shardSpace(String shardSpace) { - this.shardSpace = shardSpace; - this.__explicitlySet__.add("shardSpace"); - 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 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 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 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 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 EXADB_XS based shard. */ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private Status status; - - /** - * Status of EXADB_XS based 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; - } - /** Peer details for the shard. */ - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - private java.util.List peerDetails; - - /** - * Peer details for the shard. - * - * @param peerDetails the value to set - * @return this builder - */ - public Builder peerDetails(java.util.List peerDetails) { - this.peerDetails = peerDetails; - this.__explicitlySet__.add("peerDetails"); - 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 DistributedDatabaseShardWithExadbXs build() { - DistributedDatabaseShardWithExadbXs model = - new DistributedDatabaseShardWithExadbXs( - this.name, - this.timeCreated, - this.timeUpdated, - this.dbHomeId, - this.shardGroup, - this.vmClusterId, - this.shardSpace, - this.vaultId, - this.kmsKeyId, - this.kmsKeyVersionId, - this.status, - this.supportingResourceId, - this.containerDatabaseId, - this.peerDetails, - this.metadata); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabaseShardWithExadbXs 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("dbHomeId")) { - this.dbHomeId(model.getDbHomeId()); - } - if (model.wasPropertyExplicitlySet("shardGroup")) { - this.shardGroup(model.getShardGroup()); - } - if (model.wasPropertyExplicitlySet("vmClusterId")) { - this.vmClusterId(model.getVmClusterId()); - } - if (model.wasPropertyExplicitlySet("shardSpace")) { - this.shardSpace(model.getShardSpace()); - } - 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("peerDetails")) { - this.peerDetails(model.getPeerDetails()); - } - 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); - } - - @Deprecated - public DistributedDatabaseShardWithExadbXs( - String name, - java.util.Date timeCreated, - java.util.Date timeUpdated, - String dbHomeId, - String shardGroup, - String vmClusterId, - String shardSpace, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - Status status, - String supportingResourceId, - String containerDatabaseId, - java.util.List peerDetails, - DistributedDbMetadata metadata) { - super(name, timeCreated, timeUpdated); - this.dbHomeId = dbHomeId; - this.shardGroup = shardGroup; - this.vmClusterId = vmClusterId; - this.shardSpace = shardSpace; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.status = status; - this.supportingResourceId = supportingResourceId; - this.containerDatabaseId = containerDatabaseId; - this.peerDetails = peerDetails; - this.metadata = metadata; - } - - /** - * 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 name of the shardGroup for the shard. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardGroup") - private final String shardGroup; - - /** - * The name of the shardGroup for the shard. - * - * @return the value - */ - public String getShardGroup() { - return shardGroup; - } - - /** - * 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 shard space name for the Globally distributed database. Shard space for existing shard - * cannot be changed, once shard is created. Shard space name shall be used while creation of - * new shards. - */ - @com.fasterxml.jackson.annotation.JsonProperty("shardSpace") - private final String shardSpace; - - /** - * The shard space name for the Globally distributed database. Shard space for existing shard - * cannot be changed, once shard is created. Shard space name shall be used while creation of - * new shards. - * - * @return the value - */ - public String getShardSpace() { - return shardSpace; - } - - /** - * 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 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 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 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 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 EXADB_XS based 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 EXADB_XS based shard. */ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private final Status status; - - /** - * Status of EXADB_XS based 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; - } - - /** Peer details for the shard. */ - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - private final java.util.List peerDetails; - - /** - * Peer details for the shard. - * - * @return the value - */ - public java.util.List getPeerDetails() { - return peerDetails; - } - - @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("DistributedDatabaseShardWithExadbXs("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); - sb.append(", shardGroup=").append(String.valueOf(this.shardGroup)); - sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); - sb.append(", shardSpace=").append(String.valueOf(this.shardSpace)); - 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(", peerDetails=").append(String.valueOf(this.peerDetails)); - 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 DistributedDatabaseShardWithExadbXs)) { - return false; - } - - DistributedDatabaseShardWithExadbXs other = (DistributedDatabaseShardWithExadbXs) o; - return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) - && java.util.Objects.equals(this.shardGroup, other.shardGroup) - && java.util.Objects.equals(this.vmClusterId, other.vmClusterId) - && java.util.Objects.equals(this.shardSpace, other.shardSpace) - && 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.peerDetails, other.peerDetails) - && java.util.Objects.equals(this.metadata, other.metadata) - && 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.shardGroup == null ? 43 : this.shardGroup.hashCode()); - result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); - result = (result * PRIME) + (this.shardSpace == null ? 43 : this.shardSpace.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.peerDetails == null ? 43 : this.peerDetails.hashCode()); - result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardWithExadbXsNewVaultAndCluster.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardWithExadbXsNewVaultAndCluster.java deleted file mode 100644 index 5e05e65a441..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardWithExadbXsNewVaultAndCluster.java +++ /dev/null @@ -1,757 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.model; - -/** - * Globally distributed database shard based on ExaDbXs.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabaseShardWithExadbXsNewVaultAndCluster.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 DistributedDatabaseShardWithExadbXsNewVaultAndCluster - extends DistributedDatabaseShard { - @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; - } - /** - * 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 name of the shardGroup for the shard. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardGroup") - private String shardGroup; - - /** - * The name of the shardGroup for the shard. - * - * @param shardGroup the value to set - * @return this builder - */ - public Builder shardGroup(String shardGroup) { - this.shardGroup = shardGroup; - this.__explicitlySet__.add("shardGroup"); - return this; - } - /** - * The shard space name for the Globally distributed database. Shard space for existing - * shard cannot be changed, once shard is created. Shard space name shall be used while - * creation of new shards. - */ - @com.fasterxml.jackson.annotation.JsonProperty("shardSpace") - private String shardSpace; - - /** - * The shard space name for the Globally distributed database. Shard space for existing - * shard cannot be changed, once shard is created. Shard space name shall be used while - * creation of new shards. - * - * @param shardSpace the value to set - * @return this builder - */ - public Builder shardSpace(String shardSpace) { - this.shardSpace = shardSpace; - this.__explicitlySet__.add("shardSpace"); - 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 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 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 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 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 EXADB_XS based shard. */ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private Status status; - - /** - * Status of EXADB_XS based 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; - } - /** Peer details for the shard. */ - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - private java.util.List peerDetails; - - /** - * Peer details for the shard. - * - * @param peerDetails the value to set - * @return this builder - */ - public Builder peerDetails( - java.util.List peerDetails) { - this.peerDetails = peerDetails; - this.__explicitlySet__.add("peerDetails"); - 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 DistributedDatabaseShardWithExadbXsNewVaultAndCluster build() { - DistributedDatabaseShardWithExadbXsNewVaultAndCluster model = - new DistributedDatabaseShardWithExadbXsNewVaultAndCluster( - this.name, - this.timeCreated, - this.timeUpdated, - this.dbHomeId, - this.shardGroup, - this.shardSpace, - this.vaultId, - this.kmsKeyId, - this.kmsKeyVersionId, - this.status, - this.supportingResourceId, - this.containerDatabaseId, - this.availabilityDomain, - this.dbStorageVaultDetails, - this.vmClusterDetails, - this.peerDetails, - this.metadata); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabaseShardWithExadbXsNewVaultAndCluster 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("dbHomeId")) { - this.dbHomeId(model.getDbHomeId()); - } - if (model.wasPropertyExplicitlySet("shardGroup")) { - this.shardGroup(model.getShardGroup()); - } - if (model.wasPropertyExplicitlySet("shardSpace")) { - this.shardSpace(model.getShardSpace()); - } - 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("peerDetails")) { - this.peerDetails(model.getPeerDetails()); - } - 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); - } - - @Deprecated - public DistributedDatabaseShardWithExadbXsNewVaultAndCluster( - String name, - java.util.Date timeCreated, - java.util.Date timeUpdated, - String dbHomeId, - String shardGroup, - String shardSpace, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - Status status, - String supportingResourceId, - String containerDatabaseId, - String availabilityDomain, - DistributedDbStorageVault dbStorageVaultDetails, - DistributedDbVmCluster vmClusterDetails, - java.util.List peerDetails, - DistributedDbMetadata metadata) { - super(name, timeCreated, timeUpdated); - this.dbHomeId = dbHomeId; - this.shardGroup = shardGroup; - this.shardSpace = shardSpace; - 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.peerDetails = peerDetails; - this.metadata = metadata; - } - - /** - * 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 name of the shardGroup for the shard. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardGroup") - private final String shardGroup; - - /** - * The name of the shardGroup for the shard. - * - * @return the value - */ - public String getShardGroup() { - return shardGroup; - } - - /** - * The shard space name for the Globally distributed database. Shard space for existing shard - * cannot be changed, once shard is created. Shard space name shall be used while creation of - * new shards. - */ - @com.fasterxml.jackson.annotation.JsonProperty("shardSpace") - private final String shardSpace; - - /** - * The shard space name for the Globally distributed database. Shard space for existing shard - * cannot be changed, once shard is created. Shard space name shall be used while creation of - * new shards. - * - * @return the value - */ - public String getShardSpace() { - return shardSpace; - } - - /** - * 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 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 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 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 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 EXADB_XS based 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 EXADB_XS based shard. */ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private final Status status; - - /** - * Status of EXADB_XS based 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; - } - - /** Peer details for the shard. */ - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - private final java.util.List peerDetails; - - /** - * Peer details for the shard. - * - * @return the value - */ - public java.util.List getPeerDetails() { - return peerDetails; - } - - @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("DistributedDatabaseShardWithExadbXsNewVaultAndCluster("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); - sb.append(", shardGroup=").append(String.valueOf(this.shardGroup)); - sb.append(", shardSpace=").append(String.valueOf(this.shardSpace)); - 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(", peerDetails=").append(String.valueOf(this.peerDetails)); - 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 DistributedDatabaseShardWithExadbXsNewVaultAndCluster)) { - return false; - } - - DistributedDatabaseShardWithExadbXsNewVaultAndCluster other = - (DistributedDatabaseShardWithExadbXsNewVaultAndCluster) o; - return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) - && java.util.Objects.equals(this.shardGroup, other.shardGroup) - && java.util.Objects.equals(this.shardSpace, other.shardSpace) - && 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.peerDetails, other.peerDetails) - && java.util.Objects.equals(this.metadata, other.metadata) - && 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.shardGroup == null ? 43 : this.shardGroup.hashCode()); - result = (result * PRIME) + (this.shardSpace == null ? 43 : this.shardSpace.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.peerDetails == null ? 43 : this.peerDetails.hashCode()); - result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseSummary.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseSummary.java index cf2f1e7ddf3..a5b8e3eea48 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseSummary.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseSummary.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDatabaseSummary.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -32,22 +32,22 @@ public final class DistributedDatabaseSummary "databaseVersion", "lifecycleState", "lifecycleDetails", - "connectionStrings", "prefix", "privateEndpointIds", - "shardingMethod", + "notificationTopicIds", "characterSet", "ncharacterSet", - "chunks", "listenerPort", "listenerPortTls", "onsPortLocal", "onsPortRemote", + "systemChunkCount", + "autoResourceManagementConfig", + "systemRaftReplicationUnitCount", + "metadata", + "shardingMethod", "replicationMethod", - "replicationFactor", - "replicationUnit", "dbDeploymentType", - "metadata", "freeformTags", "definedTags", "systemTags" @@ -61,22 +61,22 @@ public DistributedDatabaseSummary( String databaseVersion, DistributedDatabase.LifecycleState lifecycleState, String lifecycleDetails, - DistributedDbConnectionString connectionStrings, String prefix, java.util.List privateEndpointIds, - DistributedDatabase.ShardingMethod shardingMethod, + java.util.List notificationTopicIds, String characterSet, String ncharacterSet, - Integer chunks, Integer listenerPort, Integer listenerPortTls, Integer onsPortLocal, Integer onsPortRemote, - DistributedDatabase.ReplicationMethod replicationMethod, - Integer replicationFactor, - Integer replicationUnit, - DbDeploymentType dbDeploymentType, + 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) { @@ -89,22 +89,22 @@ public DistributedDatabaseSummary( this.databaseVersion = databaseVersion; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; - this.connectionStrings = connectionStrings; this.prefix = prefix; this.privateEndpointIds = privateEndpointIds; - this.shardingMethod = shardingMethod; + this.notificationTopicIds = notificationTopicIds; this.characterSet = characterSet; this.ncharacterSet = ncharacterSet; - this.chunks = chunks; 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.replicationFactor = replicationFactor; - this.replicationUnit = replicationUnit; this.dbDeploymentType = dbDeploymentType; - this.metadata = metadata; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -250,15 +250,6 @@ public Builder lifecycleDetails(String 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 @@ -301,19 +292,25 @@ public Builder privateEndpointIds(java.util.List privateEndpointIds) { this.__explicitlySet__.add("privateEndpointIds"); return this; } - /** Sharding Methods for the Globally distributed database. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardingMethod") - private DistributedDatabase.ShardingMethod shardingMethod; + /** + * 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; /** - * Sharding Methods for the Globally distributed database. + * 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 shardingMethod the value to set + * @param notificationTopicIds the value to set * @return this builder */ - public Builder shardingMethod(DistributedDatabase.ShardingMethod shardingMethod) { - this.shardingMethod = shardingMethod; - this.__explicitlySet__.add("shardingMethod"); + public Builder notificationTopicIds(java.util.List notificationTopicIds) { + this.notificationTopicIds = notificationTopicIds; + this.__explicitlySet__.add("notificationTopicIds"); return this; } /** The character set for the database. */ @@ -346,25 +343,6 @@ public Builder ncharacterSet(String ncharacterSet) { this.__explicitlySet__.add("ncharacterSet"); return this; } - /** - * The default number of unique chunks in a shardspace. The value of chunks must be greater - * than 2 times the size of the largest shardgroup in any shardspace. - */ - @com.fasterxml.jackson.annotation.JsonProperty("chunks") - private Integer chunks; - - /** - * The default number of unique chunks in a shardspace. The value of chunks must be greater - * than 2 times the size of the largest shardgroup in any shardspace. - * - * @param chunks the value to set - * @return this builder - */ - public Builder chunks(Integer chunks) { - this.chunks = chunks; - this.__explicitlySet__.add("chunks"); - return this; - } /** The listener port number for the Globally distributed database. */ @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") private Integer listenerPort; @@ -425,63 +403,93 @@ public Builder onsPortRemote(Integer onsPortRemote) { this.__explicitlySet__.add("onsPortRemote"); return this; } - /** - * The Replication method for Globally distributed database. Use RAFT for Raft replication, - * and DG for DataGuard. If replicationMethod is not provided, it defaults to DG. - */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") - private DistributedDatabase.ReplicationMethod replicationMethod; + /** Count of chunks associated with system raft clusters or system data guard databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") + private Integer systemChunkCount; /** - * The Replication method for Globally distributed database. Use RAFT for Raft replication, - * and DG for DataGuard. If replicationMethod is not provided, it defaults to DG. + * Count of chunks associated with system raft clusters or system data guard databases. * - * @param replicationMethod the value to set + * @param systemChunkCount the value to set * @return this builder */ - public Builder replicationMethod(DistributedDatabase.ReplicationMethod replicationMethod) { - this.replicationMethod = replicationMethod; - this.__explicitlySet__.add("replicationMethod"); + 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; + /** - * The Replication factor for RAFT replication based Globally distributed database. - * Currently supported values are 3, 5 and 7. + * Number of replication units associated with system raft clusters. + * + * @param systemRaftReplicationUnitCount the value to set + * @return this builder */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private Integer replicationFactor; + 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; /** - * The Replication factor for RAFT replication based Globally distributed database. - * Currently supported values are 3, 5 and 7. + * Sharding methods for the Globally distributed database. * - * @param replicationFactor the value to set + * @param shardingMethod the value to set * @return this builder */ - public Builder replicationFactor(Integer replicationFactor) { - this.replicationFactor = replicationFactor; - this.__explicitlySet__.add("replicationFactor"); + public Builder shardingMethod(ShardingMethod shardingMethod) { + this.shardingMethod = shardingMethod; + this.__explicitlySet__.add("shardingMethod"); return this; } /** - * The replication unit count for RAFT based distributed database. For RAFT replication - * based Globally distributed database, the value should be at least twice the number of - * shards. + * 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("replicationUnit") - private Integer replicationUnit; + @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") + private ReplicationMethod replicationMethod; /** - * The replication unit count for RAFT based distributed database. For RAFT replication - * based Globally distributed database, the value should be at least twice the number of - * shards. + * 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 replicationUnit the value to set + * @param replicationMethod the value to set * @return this builder */ - public Builder replicationUnit(Integer replicationUnit) { - this.replicationUnit = replicationUnit; - this.__explicitlySet__.add("replicationUnit"); + public Builder replicationMethod(ReplicationMethod replicationMethod) { + this.replicationMethod = replicationMethod; + this.__explicitlySet__.add("replicationMethod"); return this; } /** The distributed database deployment type. */ @@ -499,15 +507,6 @@ public Builder dbDeploymentType(DbDeploymentType dbDeploymentType) { this.__explicitlySet__.add("dbDeploymentType"); 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"}} @@ -581,22 +580,22 @@ public DistributedDatabaseSummary build() { this.databaseVersion, this.lifecycleState, this.lifecycleDetails, - this.connectionStrings, this.prefix, this.privateEndpointIds, - this.shardingMethod, + this.notificationTopicIds, this.characterSet, this.ncharacterSet, - this.chunks, this.listenerPort, this.listenerPortTls, this.onsPortLocal, this.onsPortRemote, + this.systemChunkCount, + this.autoResourceManagementConfig, + this.systemRaftReplicationUnitCount, + this.metadata, + this.shardingMethod, this.replicationMethod, - this.replicationFactor, - this.replicationUnit, this.dbDeploymentType, - this.metadata, this.freeformTags, this.definedTags, this.systemTags); @@ -632,17 +631,14 @@ public Builder copy(DistributedDatabaseSummary model) { 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("shardingMethod")) { - this.shardingMethod(model.getShardingMethod()); + if (model.wasPropertyExplicitlySet("notificationTopicIds")) { + this.notificationTopicIds(model.getNotificationTopicIds()); } if (model.wasPropertyExplicitlySet("characterSet")) { this.characterSet(model.getCharacterSet()); @@ -650,9 +646,6 @@ public Builder copy(DistributedDatabaseSummary model) { if (model.wasPropertyExplicitlySet("ncharacterSet")) { this.ncharacterSet(model.getNcharacterSet()); } - if (model.wasPropertyExplicitlySet("chunks")) { - this.chunks(model.getChunks()); - } if (model.wasPropertyExplicitlySet("listenerPort")) { this.listenerPort(model.getListenerPort()); } @@ -665,21 +658,27 @@ public Builder copy(DistributedDatabaseSummary model) { if (model.wasPropertyExplicitlySet("onsPortRemote")) { this.onsPortRemote(model.getOnsPortRemote()); } - if (model.wasPropertyExplicitlySet("replicationMethod")) { - this.replicationMethod(model.getReplicationMethod()); + if (model.wasPropertyExplicitlySet("systemChunkCount")) { + this.systemChunkCount(model.getSystemChunkCount()); } - if (model.wasPropertyExplicitlySet("replicationFactor")) { - this.replicationFactor(model.getReplicationFactor()); + if (model.wasPropertyExplicitlySet("autoResourceManagementConfig")) { + this.autoResourceManagementConfig(model.getAutoResourceManagementConfig()); } - if (model.wasPropertyExplicitlySet("replicationUnit")) { - this.replicationUnit(model.getReplicationUnit()); - } - if (model.wasPropertyExplicitlySet("dbDeploymentType")) { - this.dbDeploymentType(model.getDbDeploymentType()); + 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()); } @@ -820,13 +819,6 @@ 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. @@ -863,17 +855,23 @@ public java.util.List getPrivateEndpointIds() { return privateEndpointIds; } - /** Sharding Methods for the Globally distributed database. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardingMethod") - private final DistributedDatabase.ShardingMethod shardingMethod; + /** + * 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; /** - * Sharding Methods for the Globally distributed database. + * 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 DistributedDatabase.ShardingMethod getShardingMethod() { - return shardingMethod; + public java.util.List getNotificationTopicIds() { + return notificationTopicIds; } /** The character set for the database. */ @@ -902,23 +900,6 @@ public String getNcharacterSet() { return ncharacterSet; } - /** - * The default number of unique chunks in a shardspace. The value of chunks must be greater than - * 2 times the size of the largest shardgroup in any shardspace. - */ - @com.fasterxml.jackson.annotation.JsonProperty("chunks") - private final Integer chunks; - - /** - * The default number of unique chunks in a shardspace. The value of chunks must be greater than - * 2 times the size of the largest shardgroup in any shardspace. - * - * @return the value - */ - public Integer getChunks() { - return chunks; - } - /** The listener port number for the Globally distributed database. */ @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") private final Integer listenerPort; @@ -971,60 +952,184 @@ public Integer getOnsPortRemote() { return onsPortRemote; } - /** - * The Replication method for Globally distributed database. Use RAFT for Raft replication, and - * DG for DataGuard. If replicationMethod is not provided, it defaults to DG. - */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") - private final DistributedDatabase.ReplicationMethod replicationMethod; + /** Count of chunks associated with system raft clusters or system data guard databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") + private final Integer systemChunkCount; /** - * The Replication method for Globally distributed database. Use RAFT for Raft replication, and - * DG for DataGuard. If replicationMethod is not provided, it defaults to DG. + * Count of chunks associated with system raft clusters or system data guard databases. * * @return the value */ - public DistributedDatabase.ReplicationMethod getReplicationMethod() { - return replicationMethod; + 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; + /** - * The Replication factor for RAFT replication based Globally distributed database. Currently - * supported values are 3, 5 and 7. + * Number of replication units associated with system raft clusters. + * + * @return the value */ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private final Integer replicationFactor; + 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; /** - * The Replication factor for RAFT replication based Globally distributed database. Currently - * supported values are 3, 5 and 7. + * Sharding methods for the Globally distributed database. * * @return the value */ - public Integer getReplicationFactor() { - return replicationFactor; + public ShardingMethod getShardingMethod() { + return shardingMethod; } /** - * The replication unit count for RAFT based distributed database. For RAFT replication based - * Globally distributed database, the value should be at least twice the number of shards. + * 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("replicationUnit") - private final Integer replicationUnit; + 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 unit count for RAFT based distributed database. For RAFT replication based - * Globally distributed database, the value should be at least twice the number of shards. + * 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 Integer getReplicationUnit() { - return replicationUnit; + public ReplicationMethod getReplicationMethod() { + return replicationMethod; } /** The distributed database deployment type. */ public enum DbDeploymentType implements com.oracle.bmc.http.internal.BmcEnum { - ExadbXs("EXADB_XS"), + Exadb("EXADB"), /** * This value is used if a service returns a value for this enum that is not recognized by @@ -1080,13 +1185,6 @@ public DbDeploymentType getDbDeploymentType() { return dbDeploymentType; } - @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"}} @@ -1161,22 +1259,24 @@ public String toString(boolean includeByteArrayContents) { 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(", connectionStrings=").append(String.valueOf(this.connectionStrings)); sb.append(", prefix=").append(String.valueOf(this.prefix)); sb.append(", privateEndpointIds=").append(String.valueOf(this.privateEndpointIds)); - sb.append(", shardingMethod=").append(String.valueOf(this.shardingMethod)); + 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(", chunks=").append(String.valueOf(this.chunks)); 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(", replicationFactor=").append(String.valueOf(this.replicationFactor)); - sb.append(", replicationUnit=").append(String.valueOf(this.replicationUnit)); sb.append(", dbDeploymentType=").append(String.valueOf(this.dbDeploymentType)); - 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)); @@ -1202,22 +1302,24 @@ public boolean equals(Object o) { && 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.connectionStrings, other.connectionStrings) && java.util.Objects.equals(this.prefix, other.prefix) && java.util.Objects.equals(this.privateEndpointIds, other.privateEndpointIds) - && java.util.Objects.equals(this.shardingMethod, other.shardingMethod) + && 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.chunks, other.chunks) && 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.replicationFactor, other.replicationFactor) - && java.util.Objects.equals(this.replicationUnit, other.replicationUnit) && java.util.Objects.equals(this.dbDeploymentType, other.dbDeploymentType) - && 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) @@ -1244,9 +1346,6 @@ public int 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) @@ -1255,12 +1354,13 @@ public int hashCode() { : this.privateEndpointIds.hashCode()); result = (result * PRIME) - + (this.shardingMethod == null ? 43 : this.shardingMethod.hashCode()); + + (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.chunks == null ? 43 : this.chunks.hashCode()); result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); result = (result * PRIME) @@ -1271,17 +1371,27 @@ public int hashCode() { + (this.onsPortRemote == null ? 43 : this.onsPortRemote.hashCode()); result = (result * PRIME) - + (this.replicationMethod == null ? 43 : this.replicationMethod.hashCode()); + + (this.systemChunkCount == null ? 43 : this.systemChunkCount.hashCode()); + result = + (result * PRIME) + + (this.autoResourceManagementConfig == null + ? 43 + : this.autoResourceManagementConfig.hashCode()); result = (result * PRIME) - + (this.replicationFactor == null ? 43 : this.replicationFactor.hashCode()); + + (this.systemRaftReplicationUnitCount == null + ? 43 + : this.systemRaftReplicationUnitCount.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); result = (result * PRIME) - + (this.replicationUnit == null ? 43 : this.replicationUnit.hashCode()); + + (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.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()); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbBackupConfig.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbBackupConfig.java index 614a126bc83..51976f54602 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbBackupConfig.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbBackupConfig.java @@ -18,7 +18,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDbBackupConfig.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbBackupDestination.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbBackupDestination.java index 5e8df811ec3..21c2b41ee1b 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbBackupDestination.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbBackupDestination.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDbBackupDestination.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -26,9 +26,6 @@ public final class DistributedDbBackupDestination @java.beans.ConstructorProperties({ "type", "id", - "vpcUser", - "vpcPassword", - "isZeroDataLossEnabled", "internetProxy", "dbrsPolicyId", "isRemote", @@ -37,9 +34,6 @@ public final class DistributedDbBackupDestination public DistributedDbBackupDestination( Type type, String id, - String vpcUser, - String vpcPassword, - Boolean isZeroDataLossEnabled, String internetProxy, String dbrsPolicyId, Boolean isRemote, @@ -47,9 +41,6 @@ public DistributedDbBackupDestination( super(); this.type = type; this.id = id; - this.vpcUser = vpcUser; - this.vpcPassword = vpcPassword; - this.isZeroDataLossEnabled = isZeroDataLossEnabled; this.internetProxy = internetProxy; this.dbrsPolicyId = dbrsPolicyId; this.isRemote = isRemote; @@ -92,67 +83,6 @@ public Builder id(String id) { this.__explicitlySet__.add("id"); return this; } - /** - * For a RECOVERY_APPLIANCE backup destination, the Virtual Private Catalog (VPC) user that - * is used to access the Recovery Appliance. - */ - @com.fasterxml.jackson.annotation.JsonProperty("vpcUser") - private String vpcUser; - - /** - * For a RECOVERY_APPLIANCE backup destination, the Virtual Private Catalog (VPC) user that - * is used to access the Recovery Appliance. - * - * @param vpcUser the value to set - * @return this builder - */ - public Builder vpcUser(String vpcUser) { - this.vpcUser = vpcUser; - this.__explicitlySet__.add("vpcUser"); - return this; - } - /** - * For a RECOVERY_APPLIANCE backup destination, the password for the VPC user that is used - * to access the Recovery Appliance. - */ - @com.fasterxml.jackson.annotation.JsonProperty("vpcPassword") - private String vpcPassword; - - /** - * For a RECOVERY_APPLIANCE backup destination, the password for the VPC user that is used - * to access the Recovery Appliance. - * - * @param vpcPassword the value to set - * @return this builder - */ - public Builder vpcPassword(String vpcPassword) { - this.vpcPassword = vpcPassword; - this.__explicitlySet__.add("vpcPassword"); - return this; - } - /** - * Indicates whether Zero Data Loss functionality is enabled for a Recovery Appliance backup - * destination in an Autonomous Container Database. When enabled, the database automatically - * ships all redo logs in real-time to the Recovery Appliance for a Zero Data Loss recovery - * setup (sub-second RPO). Defaults to {@code TRUE} if no value is given. - */ - @com.fasterxml.jackson.annotation.JsonProperty("isZeroDataLossEnabled") - private Boolean isZeroDataLossEnabled; - - /** - * Indicates whether Zero Data Loss functionality is enabled for a Recovery Appliance backup - * destination in an Autonomous Container Database. When enabled, the database automatically - * ships all redo logs in real-time to the Recovery Appliance for a Zero Data Loss recovery - * setup (sub-second RPO). Defaults to {@code TRUE} if no value is given. - * - * @param isZeroDataLossEnabled the value to set - * @return this builder - */ - public Builder isZeroDataLossEnabled(Boolean isZeroDataLossEnabled) { - this.isZeroDataLossEnabled = isZeroDataLossEnabled; - this.__explicitlySet__.add("isZeroDataLossEnabled"); - return this; - } /** Proxy URL to connect to object store. */ @com.fasterxml.jackson.annotation.JsonProperty("internetProxy") private String internetProxy; @@ -232,9 +162,6 @@ public DistributedDbBackupDestination build() { new DistributedDbBackupDestination( this.type, this.id, - this.vpcUser, - this.vpcPassword, - this.isZeroDataLossEnabled, this.internetProxy, this.dbrsPolicyId, this.isRemote, @@ -253,15 +180,6 @@ public Builder copy(DistributedDbBackupDestination model) { if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } - if (model.wasPropertyExplicitlySet("vpcUser")) { - this.vpcUser(model.getVpcUser()); - } - if (model.wasPropertyExplicitlySet("vpcPassword")) { - this.vpcPassword(model.getVpcPassword()); - } - if (model.wasPropertyExplicitlySet("isZeroDataLossEnabled")) { - this.isZeroDataLossEnabled(model.getIsZeroDataLossEnabled()); - } if (model.wasPropertyExplicitlySet("internetProxy")) { this.internetProxy(model.getInternetProxy()); } @@ -290,7 +208,6 @@ public Builder toBuilder() { /** Type of the database backup destination. */ public enum Type implements com.oracle.bmc.http.internal.BmcEnum { Nfs("NFS"), - RecoveryAppliance("RECOVERY_APPLIANCE"), ObjectStore("OBJECT_STORE"), Local("LOCAL"), Dbrs("DBRS"), @@ -364,61 +281,6 @@ public String getId() { return id; } - /** - * For a RECOVERY_APPLIANCE backup destination, the Virtual Private Catalog (VPC) user that is - * used to access the Recovery Appliance. - */ - @com.fasterxml.jackson.annotation.JsonProperty("vpcUser") - private final String vpcUser; - - /** - * For a RECOVERY_APPLIANCE backup destination, the Virtual Private Catalog (VPC) user that is - * used to access the Recovery Appliance. - * - * @return the value - */ - public String getVpcUser() { - return vpcUser; - } - - /** - * For a RECOVERY_APPLIANCE backup destination, the password for the VPC user that is used to - * access the Recovery Appliance. - */ - @com.fasterxml.jackson.annotation.JsonProperty("vpcPassword") - private final String vpcPassword; - - /** - * For a RECOVERY_APPLIANCE backup destination, the password for the VPC user that is used to - * access the Recovery Appliance. - * - * @return the value - */ - public String getVpcPassword() { - return vpcPassword; - } - - /** - * Indicates whether Zero Data Loss functionality is enabled for a Recovery Appliance backup - * destination in an Autonomous Container Database. When enabled, the database automatically - * ships all redo logs in real-time to the Recovery Appliance for a Zero Data Loss recovery - * setup (sub-second RPO). Defaults to {@code TRUE} if no value is given. - */ - @com.fasterxml.jackson.annotation.JsonProperty("isZeroDataLossEnabled") - private final Boolean isZeroDataLossEnabled; - - /** - * Indicates whether Zero Data Loss functionality is enabled for a Recovery Appliance backup - * destination in an Autonomous Container Database. When enabled, the database automatically - * ships all redo logs in real-time to the Recovery Appliance for a Zero Data Loss recovery - * setup (sub-second RPO). Defaults to {@code TRUE} if no value is given. - * - * @return the value - */ - public Boolean getIsZeroDataLossEnabled() { - return isZeroDataLossEnabled; - } - /** Proxy URL to connect to object store. */ @com.fasterxml.jackson.annotation.JsonProperty("internetProxy") private final String internetProxy; @@ -498,9 +360,6 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("type=").append(String.valueOf(this.type)); sb.append(", id=").append(String.valueOf(this.id)); - sb.append(", vpcUser=").append(String.valueOf(this.vpcUser)); - sb.append(", vpcPassword=").append(String.valueOf(this.vpcPassword)); - sb.append(", isZeroDataLossEnabled=").append(String.valueOf(this.isZeroDataLossEnabled)); sb.append(", internetProxy=").append(String.valueOf(this.internetProxy)); sb.append(", dbrsPolicyId=").append(String.valueOf(this.dbrsPolicyId)); sb.append(", isRemote=").append(String.valueOf(this.isRemote)); @@ -521,9 +380,6 @@ public boolean equals(Object o) { 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.vpcUser, other.vpcUser) - && java.util.Objects.equals(this.vpcPassword, other.vpcPassword) - && java.util.Objects.equals(this.isZeroDataLossEnabled, other.isZeroDataLossEnabled) && java.util.Objects.equals(this.internetProxy, other.internetProxy) && java.util.Objects.equals(this.dbrsPolicyId, other.dbrsPolicyId) && java.util.Objects.equals(this.isRemote, other.isRemote) @@ -537,13 +393,6 @@ public int hashCode() { 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.vpcUser == null ? 43 : this.vpcUser.hashCode()); - result = (result * PRIME) + (this.vpcPassword == null ? 43 : this.vpcPassword.hashCode()); - result = - (result * PRIME) - + (this.isZeroDataLossEnabled == null - ? 43 - : this.isZeroDataLossEnabled.hashCode()); result = (result * PRIME) + (this.internetProxy == null ? 43 : this.internetProxy.hashCode()); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbConnectionString.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbConnectionString.java index 8ed71b54775..c882bf94fbe 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbConnectionString.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbConnectionString.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDbConnectionString.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbGdsControlNodeImage.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbGdsControlNodeImage.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbGdsControlNodeImage.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbGdsControlNodeImage.java index 9853c1b467b..c967307b915 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbGdsControlNodeImage.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbGdsControlNodeImage.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * The Global Database Services Control(GDS CTL) image details.
diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbGsmImage.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbGsmImage.java index 961c65b890d..6abeaa19ffd 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbGsmImage.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbGsmImage.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDbGsmImage.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -23,11 +23,11 @@ public final class DistributedDbGsmImage extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"id", "versionNumber"}) - public DistributedDbGsmImage(String id, Integer versionNumber) { + @java.beans.ConstructorProperties({"id", "version"}) + public DistributedDbGsmImage(String id, String version) { super(); this.id = id; - this.versionNumber = versionNumber; + this.version = version; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -51,19 +51,19 @@ public Builder id(String id) { this.__explicitlySet__.add("id"); return this; } - /** The version number associated with the image identified by id. */ - @com.fasterxml.jackson.annotation.JsonProperty("versionNumber") - private Integer versionNumber; + /** The version associated with the image identified by id. */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; /** - * The version number associated with the image identified by id. + * The version associated with the image identified by id. * - * @param versionNumber the value to set + * @param version the value to set * @return this builder */ - public Builder versionNumber(Integer versionNumber) { - this.versionNumber = versionNumber; - this.__explicitlySet__.add("versionNumber"); + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); return this; } @@ -71,7 +71,7 @@ public Builder versionNumber(Integer versionNumber) { private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public DistributedDbGsmImage build() { - DistributedDbGsmImage model = new DistributedDbGsmImage(this.id, this.versionNumber); + DistributedDbGsmImage model = new DistributedDbGsmImage(this.id, this.version); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -83,8 +83,8 @@ public Builder copy(DistributedDbGsmImage model) { if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } - if (model.wasPropertyExplicitlySet("versionNumber")) { - this.versionNumber(model.getVersionNumber()); + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); } return this; } @@ -116,17 +116,17 @@ public String getId() { return id; } - /** The version number associated with the image identified by id. */ - @com.fasterxml.jackson.annotation.JsonProperty("versionNumber") - private final Integer versionNumber; + /** The version associated with the image identified by id. */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; /** - * The version number associated with the image identified by id. + * The version associated with the image identified by id. * * @return the value */ - public Integer getVersionNumber() { - return versionNumber; + public String getVersion() { + return version; } @Override @@ -145,7 +145,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("DistributedDbGsmImage("); sb.append("super=").append(super.toString()); sb.append("id=").append(String.valueOf(this.id)); - sb.append(", versionNumber=").append(String.valueOf(this.versionNumber)); + sb.append(", version=").append(String.valueOf(this.version)); sb.append(")"); return sb.toString(); } @@ -161,7 +161,7 @@ public boolean equals(Object o) { DistributedDbGsmImage other = (DistributedDbGsmImage) o; return java.util.Objects.equals(this.id, other.id) - && java.util.Objects.equals(this.versionNumber, other.versionNumber) + && java.util.Objects.equals(this.version, other.version) && super.equals(other); } @@ -170,9 +170,7 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); - result = - (result * PRIME) - + (this.versionNumber == null ? 43 : this.versionNumber.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbMetadata.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbMetadata.java index 67e7bd0b45e..ccc9277fa99 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbMetadata.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbMetadata.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDbMetadata.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbProtectionMode.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbProtectionMode.java index cdaee4d1ba9..63f2d0566d4 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbProtectionMode.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbProtectionMode.java @@ -5,7 +5,7 @@ package com.oracle.bmc.distributeddatabase.model; /** The protection mode to set up between the primary and standby databases. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@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"), diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbStorageVault.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbStorageVault.java index d0a937d6e59..6fc0e188c84 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbStorageVault.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbStorageVault.java @@ -5,7 +5,7 @@ package com.oracle.bmc.distributeddatabase.model; /** - * The Storage Vault for Distributed Database Resource
+ * 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 @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDbStorageVault.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -24,25 +24,56 @@ public final class DistributedDbStorageVault extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ + "compartmentId", "displayName", "dbStorageVaultId", "highCapacityDatabaseStorage", - "additionalFlashCacheInPercent" + "additionalFlashCacheInPercent", + "subscriptionId", + "isAutoscaleEnabled", + "autoscaleLimitInGBs" }) public DistributedDbStorageVault( + String compartmentId, String displayName, String dbStorageVaultId, Integer highCapacityDatabaseStorage, - Integer additionalFlashCacheInPercent) { + 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. @@ -64,14 +95,14 @@ public Builder displayName(String displayName) { } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * Database Vault Storage. + * 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 - * Database Vault Storage. + * Exadata Database Storage Vault. * * @param dbStorageVaultId the value to set * @return this builder @@ -111,6 +142,63 @@ public Builder additionalFlashCacheInPercent(Integer additionalFlashCacheInPerce 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(); @@ -118,10 +206,14 @@ public Builder additionalFlashCacheInPercent(Integer additionalFlashCacheInPerce public DistributedDbStorageVault build() { DistributedDbStorageVault model = new DistributedDbStorageVault( + this.compartmentId, this.displayName, this.dbStorageVaultId, this.highCapacityDatabaseStorage, - this.additionalFlashCacheInPercent); + this.additionalFlashCacheInPercent, + this.subscriptionId, + this.isAutoscaleEnabled, + this.autoscaleLimitInGBs); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -130,6 +222,9 @@ public DistributedDbStorageVault build() { @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()); } @@ -142,6 +237,15 @@ public Builder copy(DistributedDbStorageVault model) { 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; } } @@ -155,6 +259,23 @@ 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. @@ -174,14 +295,14 @@ public String getDisplayName() { /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * Database Vault Storage. + * 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 - * Database Vault Storage. + * Exadata Database Storage Vault. * * @return the value */ @@ -215,6 +336,57 @@ 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); @@ -230,12 +402,16 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("DistributedDbStorageVault("); sb.append("super=").append(super.toString()); - sb.append("displayName=").append(String.valueOf(this.displayName)); + 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(); } @@ -250,12 +426,16 @@ public boolean equals(Object o) { } DistributedDbStorageVault other = (DistributedDbStorageVault) o; - return java.util.Objects.equals(this.displayName, other.displayName) + 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); } @@ -263,6 +443,9 @@ public boolean equals(Object o) { 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) @@ -277,6 +460,19 @@ public int hashCode() { + (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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbTransportType.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbTransportType.java index 81734848bfe..45d98903534 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbTransportType.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbTransportType.java @@ -4,8 +4,8 @@ */ package com.oracle.bmc.distributeddatabase.model; -/** The redo transport type to use for this Data Guard association. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +/** 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"), diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbVmCluster.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbVmCluster.java index e9389c8df49..732cfcb5cf5 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbVmCluster.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbVmCluster.java @@ -5,7 +5,7 @@ package com.oracle.bmc.distributeddatabase.model; /** - * The Exadata VM cluster for Distributed Database Resource
+ * 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 @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDbVmCluster.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -24,6 +24,7 @@ public final class DistributedDbVmCluster extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ + "compartmentId", "vmClusterId", "displayName", "subnetId", @@ -39,9 +40,11 @@ public final class DistributedDbVmCluster "backupNetworkNsgIds", "isDiagnosticsEventsEnabled", "isHealthMonitoringEnabled", - "isIncidentLogsEnabled" + "isIncidentLogsEnabled", + "subscriptionId" }) public DistributedDbVmCluster( + String compartmentId, String vmClusterId, String displayName, String subnetId, @@ -57,8 +60,10 @@ public DistributedDbVmCluster( java.util.List backupNetworkNsgIds, Boolean isDiagnosticsEventsEnabled, Boolean isHealthMonitoringEnabled, - Boolean isIncidentLogsEnabled) { + Boolean isIncidentLogsEnabled, + String subscriptionId) { super(); + this.compartmentId = compartmentId; this.vmClusterId = vmClusterId; this.displayName = displayName; this.subnetId = subnetId; @@ -75,20 +80,40 @@ public DistributedDbVmCluster( 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 - * Exadata VM cluster on Exascale Infrastructure. + * 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 - * Exadata VM cluster on Exascale Infrastructure. + * VM cluster. * * @param vmClusterId the value to set * @return this builder @@ -413,6 +438,25 @@ public Builder isIncidentLogsEnabled(Boolean 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(); @@ -420,6 +464,7 @@ public Builder isIncidentLogsEnabled(Boolean isIncidentLogsEnabled) { public DistributedDbVmCluster build() { DistributedDbVmCluster model = new DistributedDbVmCluster( + this.compartmentId, this.vmClusterId, this.displayName, this.subnetId, @@ -435,7 +480,8 @@ public DistributedDbVmCluster build() { this.backupNetworkNsgIds, this.isDiagnosticsEventsEnabled, this.isHealthMonitoringEnabled, - this.isIncidentLogsEnabled); + this.isIncidentLogsEnabled, + this.subscriptionId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -444,6 +490,9 @@ public DistributedDbVmCluster build() { @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()); } @@ -492,6 +541,9 @@ public Builder copy(DistributedDbVmCluster model) { if (model.wasPropertyExplicitlySet("isIncidentLogsEnabled")) { this.isIncidentLogsEnabled(model.getIsIncidentLogsEnabled()); } + if (model.wasPropertyExplicitlySet("subscriptionId")) { + this.subscriptionId(model.getSubscriptionId()); + } return this; } } @@ -507,14 +559,31 @@ public Builder toBuilder() { /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * Exadata VM cluster on Exascale Infrastructure. + * 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 - * Exadata VM cluster on Exascale Infrastructure. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM + * cluster. * * @return the value */ @@ -848,6 +917,23 @@ 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); @@ -863,7 +949,8 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("DistributedDbVmCluster("); sb.append("super=").append(super.toString()); - sb.append("vmClusterId=").append(String.valueOf(this.vmClusterId)); + 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)); @@ -882,6 +969,7 @@ public String toString(boolean includeByteArrayContents) { 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(); } @@ -896,7 +984,8 @@ public boolean equals(Object o) { } DistributedDbVmCluster other = (DistributedDbVmCluster) o; - return java.util.Objects.equals(this.vmClusterId, other.vmClusterId) + 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) @@ -915,6 +1004,7 @@ public boolean equals(Object o) { && 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); } @@ -922,6 +1012,9 @@ public boolean equals(Object o) { 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()); @@ -968,6 +1061,9 @@ public int hashCode() { + (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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/GenerateDistributedAutonomousDatabaseWalletDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/GenerateDistributedAutonomousDatabaseWalletDetails.java index 392287301aa..46a3e8ed2c7 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/GenerateDistributedAutonomousDatabaseWalletDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/GenerateDistributedAutonomousDatabaseWalletDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = GenerateDistributedAutonomousDatabaseWalletDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -23,8 +23,15 @@ public final class GenerateDistributedAutonomousDatabaseWalletDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"password"}) 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; } @@ -37,7 +44,7 @@ public static class Builder { * special character. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password to encrypt the keys inside the wallet. The password must be at least 8 @@ -47,12 +54,18 @@ public static class Builder { * @param password the value to set * @return this builder */ - public Builder password(String password) { + 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(); @@ -89,7 +102,7 @@ public Builder toBuilder() { * special character. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password to encrypt the keys inside the wallet. The password must be at least 8 @@ -97,8 +110,23 @@ public Builder toBuilder() { * 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; } @@ -117,7 +145,7 @@ 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(String.valueOf(this.password)); + sb.append("password=").append(""); sb.append(")"); return sb.toString(); } diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/GenerateDistributedDatabaseWalletDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/GenerateDistributedDatabaseWalletDetails.java index ff5f87ee12a..c6da1081658 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/GenerateDistributedDatabaseWalletDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/GenerateDistributedDatabaseWalletDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = GenerateDistributedDatabaseWalletDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -23,8 +23,15 @@ public final class GenerateDistributedDatabaseWalletDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"password"}) 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; } @@ -37,7 +44,7 @@ public static class Builder { * special character. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; + private char[] password; /** * The password to encrypt the keys inside the wallet. The password must be at least 8 @@ -47,12 +54,18 @@ public static class Builder { * @param password the value to set * @return this builder */ - public Builder password(String password) { + 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(); @@ -89,7 +102,7 @@ public Builder toBuilder() { * special character. */ @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; + private final char[] password; /** * The password to encrypt the keys inside the wallet. The password must be at least 8 @@ -97,8 +110,23 @@ public Builder toBuilder() { * 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; } @@ -117,7 +145,7 @@ 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(String.valueOf(this.password)); + sb.append("password=").append(""); sb.append(")"); return sb.toString(); } diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/MoveDistributedAutonomousDatabaseReplicationUnitDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/MoveDistributedAutonomousDatabaseReplicationUnitDetails.java index b9f6b91848c..f692d2bf6fb 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/MoveDistributedAutonomousDatabaseReplicationUnitDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/MoveDistributedAutonomousDatabaseReplicationUnitDetails.java @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = MoveDistributedAutonomousDatabaseReplicationUnitDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/MoveDistributedDatabaseReplicationUnitDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/MoveDistributedDatabaseReplicationUnitDetails.java index 3400078ea07..26c6eb919c9 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/MoveDistributedDatabaseReplicationUnitDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/MoveDistributedDatabaseReplicationUnitDetails.java @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = MoveDistributedDatabaseReplicationUnitDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/OperationStatus.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/OperationStatus.java index eb19ab9a1d7..c9cd4d5fe8a 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/OperationStatus.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/OperationStatus.java @@ -5,7 +5,7 @@ package com.oracle.bmc.distributeddatabase.model; /** Possible operation status. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public enum OperationStatus implements com.oracle.bmc.http.internal.BmcEnum { Accepted("ACCEPTED"), InProgress("IN_PROGRESS"), diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/OperationType.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/OperationType.java index d52b7c060fb..5b353348774 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/OperationType.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/OperationType.java @@ -5,17 +5,17 @@ package com.oracle.bmc.distributeddatabase.model; /** Possible operation types. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@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"), + PatchDistributedDbNsgids("PATCH_DISTRIBUTED_DB_NSGIDS"), DeleteDistributedDb("DELETE_DISTRIBUTED_DB"), ChangeDistributedDbCompartment("CHANGE_DISTRIBUTED_DB_COMPARTMENT"), ConfigureDistributedDbGsms("CONFIGURE_DISTRIBUTED_DB_GSMS"), ConfigureDistributedDbSharding("CONFIGURE_DISTRIBUTED_DB_SHARDING"), - GenerateDistributedDbGsmCertSigningReq("GENERATE_DISTRIBUTED_DB_GSM_CERT_SIGNING_REQ"), RotateDistributedDbPasswords("ROTATE_DISTRIBUTED_DB_PASSWORDS"), StartDistributedDb("START_DISTRIBUTED_DB"), StopDistributedDb("STOP_DISTRIBUTED_DB"), @@ -23,8 +23,6 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { StartDistributedDbCatalog("START_DISTRIBUTED_DB_CATALOG"), StopDistributedDbShard("STOP_DISTRIBUTED_DB_SHARD"), StopDistributedDbCatalog("STOP_DISTRIBUTED_DB_CATALOG"), - UploadDistributedDbSignedCertAndGenerateWallet( - "UPLOAD_DISTRIBUTED_DB_SIGNED_CERT_AND_GENERATE_WALLET"), CreateDistributedDbShard("CREATE_DISTRIBUTED_DB_SHARD"), CreateDistributedDbCatalog("CREATE_DISTRIBUTED_DB_CATALOG"), CreateDistributedDbGsm("CREATE_DISTRIBUTED_DB_GSM"), @@ -33,6 +31,7 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { ExecuteValidateNetworkTests("EXECUTE_VALIDATE_NETWORK_TESTS"), CreatePrivateEndpoint("CREATE_PRIVATE_ENDPOINT"), DeletePrivateEndpoint("DELETE_PRIVATE_ENDPOINT"), + PatchPrivateEndpoint("PATCH_PRIVATE_ENDPOINT"), ChangePrivateEndpointCompartment("CHANGE_PRIVATE_ENDPOINT_COMPARTMENT"), ReinstateProxyInstance("REINSTATE_PROXY_INSTANCE"), DeleteDistributedDbShard("DELETE_DISTRIBUTED_DB_SHARD"), @@ -40,8 +39,10 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { DeleteDistributedDbGsm("DELETE_DISTRIBUTED_DB_GSM"), AddGdscontrolNode("ADD_GDSCONTROL_NODE"), ChangeDistributedDbBackupConfig("CHANGE_DISTRIBUTED_DB_BACKUP_CONFIG"), - AddDistributedDbDg("ADD_DISTRIBUTED_DB_DG"), - RemoveDistributedDbDg("REMOVE_DISTRIBUTED_DB_DG"), + 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"), diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/PatchDistributedAutonomousDatabaseDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/PatchDistributedAutonomousDatabaseDetails.java index 5904a4cbca7..ff233d64fe0 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/PatchDistributedAutonomousDatabaseDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/PatchDistributedAutonomousDatabaseDetails.java @@ -5,8 +5,8 @@ package com.oracle.bmc.distributeddatabase.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 + * 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 @@ -18,7 +18,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = PatchDistributedAutonomousDatabaseDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/PatchDistributedDatabaseDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/PatchDistributedDatabaseDetails.java index dd155ce945b..1542de0ed5e 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/PatchDistributedDatabaseDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/PatchDistributedDatabaseDetails.java @@ -18,7 +18,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = PatchDistributedDatabaseDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedDatabasePrivateEndpointDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/PatchDistributedDatabasePrivateEndpointDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedDatabasePrivateEndpointDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/PatchDistributedDatabasePrivateEndpointDetails.java index 3b7920f7c20..28f3c44fc24 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedDatabasePrivateEndpointDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/PatchDistributedDatabasePrivateEndpointDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Provide PatchInstruction(s) in items array. All instructions in items have to be of same type. diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/PatchInsertInstruction.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/PatchInsertInstruction.java index 1a12a7039d4..73e6c595808 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/PatchInsertInstruction.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/PatchInsertInstruction.java @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = PatchInsertInstruction.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/PatchInstruction.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/PatchInstruction.java index 679e0f5fce2..75a1b49caff 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/PatchInstruction.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/PatchInstruction.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@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, diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/PatchMergeInstruction.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/PatchMergeInstruction.java index ba46c36bf93..66c72074b9d 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/PatchMergeInstruction.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/PatchMergeInstruction.java @@ -22,7 +22,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = PatchMergeInstruction.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/PatchRemoveInstruction.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/PatchRemoveInstruction.java index a5188244eb6..f90062e81d9 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/PatchRemoveInstruction.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/PatchRemoveInstruction.java @@ -17,7 +17,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = PatchRemoveInstruction.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedAutonomousDatabaseDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/RotateDistributedAutonomousDatabaseDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedAutonomousDatabaseDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/RotateDistributedAutonomousDatabaseDetails.java index 37d46de1c4a..938d5605ca7 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedAutonomousDatabaseDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/RotateDistributedAutonomousDatabaseDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details to rotate password for a shard or catalog in the Globally distributed autonomous diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedAutonomousDatabasePasswordsDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/RotateDistributedAutonomousDatabasePasswordsDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedAutonomousDatabasePasswordsDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/RotateDistributedAutonomousDatabasePasswordsDetails.java index e3d48e1c868..a7d49316bf9 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedAutonomousDatabasePasswordsDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/RotateDistributedAutonomousDatabasePasswordsDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Payload to rotate passwords for shards and catalogs in the Globally distributed autonomous diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedDatabaseDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/RotateDistributedDatabaseDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedDatabaseDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/RotateDistributedDatabaseDetails.java index d8454ab5b9a..54a61b1559f 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedDatabaseDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/RotateDistributedDatabaseDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details to rotate password for a shard or catalog in the Globally distributed database.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedDatabasePasswordsDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/RotateDistributedDatabasePasswordsDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedDatabasePasswordsDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/RotateDistributedDatabasePasswordsDetails.java index 18db4a072fe..46f4c47e3b1 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedDatabasePasswordsDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/RotateDistributedDatabasePasswordsDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Payload to rotate passwords for shards and catalogs in the Globally distributed database.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ScaleDistributedAutonomousDatabaseGsmsDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ScaleDistributedAutonomousDatabaseGsmsDetails.java similarity index 98% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ScaleDistributedAutonomousDatabaseGsmsDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ScaleDistributedAutonomousDatabaseGsmsDetails.java index ba250fddf3d..51d3821ac5b 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ScaleDistributedAutonomousDatabaseGsmsDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ScaleDistributedAutonomousDatabaseGsmsDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Empty payload to scale global service manager(GSM) instances for the distributed autonomous diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ScaleDistributedDatabaseGsmsDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ScaleDistributedDatabaseGsmsDetails.java similarity index 98% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ScaleDistributedDatabaseGsmsDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ScaleDistributedDatabaseGsmsDetails.java index 60925870d39..de2d2ed3012 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ScaleDistributedDatabaseGsmsDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ScaleDistributedDatabaseGsmsDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Empty payload to scale global service manager(GSM) instances for the distributed database.
diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ShardPeerWithDedicatedInfra.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ShardPeerWithDedicatedInfra.java deleted file mode 100644 index 2c739832fc7..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ShardPeerWithDedicatedInfra.java +++ /dev/null @@ -1,673 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.model; - -/** - * Details of the shard peer
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = ShardPeerWithDedicatedInfra.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class ShardPeerWithDedicatedInfra - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "cloudAutonomousVmClusterId", - "shardGroup", - "status", - "supportingResourceId", - "containerDatabaseId", - "timeCreated", - "timeUpdated", - "protectionMode", - "fastStartFailOverLagLimitInSeconds", - "isAutomaticFailoverEnabled", - "standbyMaintenanceBufferInDays", - "metadata" - }) - public ShardPeerWithDedicatedInfra( - String cloudAutonomousVmClusterId, - String shardGroup, - Status status, - String supportingResourceId, - String containerDatabaseId, - java.util.Date timeCreated, - java.util.Date timeUpdated, - DistributedAutonomousDbProtectionMode protectionMode, - Integer fastStartFailOverLagLimitInSeconds, - Boolean isAutomaticFailoverEnabled, - Integer standbyMaintenanceBufferInDays, - DistributedAutonomousDbMetadata metadata) { - super(); - this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; - this.shardGroup = shardGroup; - this.status = status; - this.supportingResourceId = supportingResourceId; - this.containerDatabaseId = containerDatabaseId; - this.timeCreated = timeCreated; - this.timeUpdated = timeUpdated; - this.protectionMode = protectionMode; - this.fastStartFailOverLagLimitInSeconds = fastStartFailOverLagLimitInSeconds; - this.isAutomaticFailoverEnabled = isAutomaticFailoverEnabled; - this.standbyMaintenanceBufferInDays = standbyMaintenanceBufferInDays; - this.metadata = metadata; - } - - @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 - * cloudAutonomousVmCluster. - */ - @com.fasterxml.jackson.annotation.JsonProperty("cloudAutonomousVmClusterId") - private String cloudAutonomousVmClusterId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * cloudAutonomousVmCluster. - * - * @param cloudAutonomousVmClusterId the value to set - * @return this builder - */ - public Builder cloudAutonomousVmClusterId(String cloudAutonomousVmClusterId) { - this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; - this.__explicitlySet__.add("cloudAutonomousVmClusterId"); - return this; - } - /** The name of the shardGroup for the peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardGroup") - private String shardGroup; - - /** - * The name of the shardGroup for the peer. - * - * @param shardGroup the value to set - * @return this builder - */ - public Builder shardGroup(String shardGroup) { - this.shardGroup = shardGroup; - this.__explicitlySet__.add("shardGroup"); - return this; - } - /** - * Status of shard with dedicated infrastructure for the Globally distributed autonomous - * database. - */ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private Status status; - - /** - * Status of shard with dedicated infrastructure 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 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 time the shard peer was created. An RFC3339 formatted datetime string */ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - /** - * The time the shard peer 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 shard peer was last updated. An RFC3339 formatted datetime string */ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - /** - * The time the shard peer 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 protectionMode for the shard peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedAutonomousDbProtectionMode protectionMode; - - /** - * The protectionMode 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 for my preference based on data loss tolerance in seconds. */ - @com.fasterxml.jackson.annotation.JsonProperty("fastStartFailOverLagLimitInSeconds") - private Integer fastStartFailOverLagLimitInSeconds; - - /** - * The lag time for my 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; - } - /** - * This field is deprecated. Support for this field will be removed after one year of - * deprecation cycle. - */ - @com.fasterxml.jackson.annotation.JsonProperty("isAutomaticFailoverEnabled") - private Boolean isAutomaticFailoverEnabled; - - /** - * This field is deprecated. Support for this field will be removed after one year of - * deprecation cycle. - * - * @param isAutomaticFailoverEnabled the value to set - * @return this builder - */ - public Builder isAutomaticFailoverEnabled(Boolean isAutomaticFailoverEnabled) { - this.isAutomaticFailoverEnabled = isAutomaticFailoverEnabled; - this.__explicitlySet__.add("isAutomaticFailoverEnabled"); - return this; - } - /** - * The scheduling detail for the quarterly maintenance window of the standby Autonomous - * Container Database. This value represents the number of days before schedlued 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 schedlued 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.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 ShardPeerWithDedicatedInfra build() { - ShardPeerWithDedicatedInfra model = - new ShardPeerWithDedicatedInfra( - this.cloudAutonomousVmClusterId, - this.shardGroup, - this.status, - this.supportingResourceId, - this.containerDatabaseId, - this.timeCreated, - this.timeUpdated, - this.protectionMode, - this.fastStartFailOverLagLimitInSeconds, - this.isAutomaticFailoverEnabled, - this.standbyMaintenanceBufferInDays, - this.metadata); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ShardPeerWithDedicatedInfra model) { - if (model.wasPropertyExplicitlySet("cloudAutonomousVmClusterId")) { - this.cloudAutonomousVmClusterId(model.getCloudAutonomousVmClusterId()); - } - if (model.wasPropertyExplicitlySet("shardGroup")) { - this.shardGroup(model.getShardGroup()); - } - 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("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("fastStartFailOverLagLimitInSeconds")) { - this.fastStartFailOverLagLimitInSeconds( - model.getFastStartFailOverLagLimitInSeconds()); - } - if (model.wasPropertyExplicitlySet("isAutomaticFailoverEnabled")) { - this.isAutomaticFailoverEnabled(model.getIsAutomaticFailoverEnabled()); - } - if (model.wasPropertyExplicitlySet("standbyMaintenanceBufferInDays")) { - this.standbyMaintenanceBufferInDays(model.getStandbyMaintenanceBufferInDays()); - } - 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 [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * cloudAutonomousVmCluster. - */ - @com.fasterxml.jackson.annotation.JsonProperty("cloudAutonomousVmClusterId") - private final String cloudAutonomousVmClusterId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * cloudAutonomousVmCluster. - * - * @return the value - */ - public String getCloudAutonomousVmClusterId() { - return cloudAutonomousVmClusterId; - } - - /** The name of the shardGroup for the peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardGroup") - private final String shardGroup; - - /** - * The name of the shardGroup for the peer. - * - * @return the value - */ - public String getShardGroup() { - return shardGroup; - } - - /** - * Status of shard with dedicated infrastructure 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 shard with dedicated infrastructure for the Globally distributed autonomous - * database. - */ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private final Status status; - - /** - * Status of shard with dedicated infrastructure for the Globally distributed autonomous - * database. - * - * @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 time the shard peer was created. An RFC3339 formatted datetime string */ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private final java.util.Date timeCreated; - - /** - * The time the shard peer was created. An RFC3339 formatted datetime string - * - * @return the value - */ - public java.util.Date getTimeCreated() { - return timeCreated; - } - - /** The time the shard peer was last updated. An RFC3339 formatted datetime string */ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private final java.util.Date timeUpdated; - - /** - * The time the shard peer was last updated. An RFC3339 formatted datetime string - * - * @return the value - */ - public java.util.Date getTimeUpdated() { - return timeUpdated; - } - - /** The protectionMode for the shard peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedAutonomousDbProtectionMode protectionMode; - - /** - * The protectionMode for the shard peer. - * - * @return the value - */ - public DistributedAutonomousDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** The lag time for my preference based on data loss tolerance in seconds. */ - @com.fasterxml.jackson.annotation.JsonProperty("fastStartFailOverLagLimitInSeconds") - private final Integer fastStartFailOverLagLimitInSeconds; - - /** - * The lag time for my preference based on data loss tolerance in seconds. - * - * @return the value - */ - public Integer getFastStartFailOverLagLimitInSeconds() { - return fastStartFailOverLagLimitInSeconds; - } - - /** - * This field is deprecated. Support for this field will be removed after one year of - * deprecation cycle. - */ - @com.fasterxml.jackson.annotation.JsonProperty("isAutomaticFailoverEnabled") - private final Boolean isAutomaticFailoverEnabled; - - /** - * This field is deprecated. Support for this field will be removed after one year of - * deprecation cycle. - * - * @return the value - */ - public Boolean getIsAutomaticFailoverEnabled() { - return isAutomaticFailoverEnabled; - } - - /** - * The scheduling detail for the quarterly maintenance window of the standby Autonomous - * Container Database. This value represents the number of days before schedlued 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 schedlued maintenance of - * the primary database. - * - * @return the value - */ - public Integer getStandbyMaintenanceBufferInDays() { - return standbyMaintenanceBufferInDays; - } - - @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("ShardPeerWithDedicatedInfra("); - sb.append("super=").append(super.toString()); - sb.append("cloudAutonomousVmClusterId=") - .append(String.valueOf(this.cloudAutonomousVmClusterId)); - sb.append(", shardGroup=").append(String.valueOf(this.shardGroup)); - 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(", timeCreated=").append(String.valueOf(this.timeCreated)); - sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", fastStartFailOverLagLimitInSeconds=") - .append(String.valueOf(this.fastStartFailOverLagLimitInSeconds)); - sb.append(", isAutomaticFailoverEnabled=") - .append(String.valueOf(this.isAutomaticFailoverEnabled)); - sb.append(", standbyMaintenanceBufferInDays=") - .append(String.valueOf(this.standbyMaintenanceBufferInDays)); - 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 ShardPeerWithDedicatedInfra)) { - return false; - } - - ShardPeerWithDedicatedInfra other = (ShardPeerWithDedicatedInfra) o; - return java.util.Objects.equals( - this.cloudAutonomousVmClusterId, other.cloudAutonomousVmClusterId) - && java.util.Objects.equals(this.shardGroup, other.shardGroup) - && 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.timeCreated, other.timeCreated) - && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals( - this.fastStartFailOverLagLimitInSeconds, - other.fastStartFailOverLagLimitInSeconds) - && java.util.Objects.equals( - this.isAutomaticFailoverEnabled, other.isAutomaticFailoverEnabled) - && java.util.Objects.equals( - this.standbyMaintenanceBufferInDays, other.standbyMaintenanceBufferInDays) - && 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.cloudAutonomousVmClusterId == null - ? 43 - : this.cloudAutonomousVmClusterId.hashCode()); - result = (result * PRIME) + (this.shardGroup == null ? 43 : this.shardGroup.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.timeCreated == null ? 43 : this.timeCreated.hashCode()); - result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.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.isAutomaticFailoverEnabled == null - ? 43 - : this.isAutomaticFailoverEnabled.hashCode()); - result = - (result * PRIME) - + (this.standbyMaintenanceBufferInDays == null - ? 43 - : this.standbyMaintenanceBufferInDays.hashCode()); - result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ShardPeerWithExadbXs.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ShardPeerWithExadbXs.java deleted file mode 100644 index 2546a4d6ad1..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ShardPeerWithExadbXs.java +++ /dev/null @@ -1,541 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.model; - -/** - * Details of the shard peer
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = ShardPeerWithExadbXs.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class ShardPeerWithExadbXs - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "vmClusterId", - "shardGroup", - "status", - "supportingResourceId", - "containerDatabaseId", - "timeCreated", - "timeUpdated", - "protectionMode", - "transportType", - "metadata" - }) - public ShardPeerWithExadbXs( - String vmClusterId, - String shardGroup, - Status status, - String supportingResourceId, - String containerDatabaseId, - java.util.Date timeCreated, - java.util.Date timeUpdated, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType, - DistributedDbMetadata metadata) { - super(); - this.vmClusterId = vmClusterId; - this.shardGroup = shardGroup; - this.status = status; - this.supportingResourceId = supportingResourceId; - this.containerDatabaseId = containerDatabaseId; - this.timeCreated = timeCreated; - this.timeUpdated = timeUpdated; - this.protectionMode = protectionMode; - this.transportType = transportType; - this.metadata = metadata; - } - - @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 name of the shardGroup for the peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardGroup") - private String shardGroup; - - /** - * The name of the shardGroup for the peer. - * - * @param shardGroup the value to set - * @return this builder - */ - public Builder shardGroup(String shardGroup) { - this.shardGroup = shardGroup; - this.__explicitlySet__.add("shardGroup"); - return this; - } - /** Status of EXADB_XS based shard peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private Status status; - - /** - * Status of EXADB_XS based shard peer. - * - * @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 time the shard peer was created. An RFC3339 formatted datetime string */ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - /** - * The time the shard peer 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 shard peer was last updated. An RFC3339 formatted datetime string */ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - /** - * The time the shard peer 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 protectionMode for the shard peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedDbProtectionMode protectionMode; - - /** - * The protectionMode for the shard peer. - * - * @param protectionMode the value to set - * @return this builder - */ - public Builder protectionMode(DistributedDbProtectionMode protectionMode) { - this.protectionMode = protectionMode; - this.__explicitlySet__.add("protectionMode"); - return this; - } - /** The redo transport type to use for this Data Guard association. */ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private DistributedDbTransportType transportType; - - /** - * The redo transport type to use for this 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.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 ShardPeerWithExadbXs build() { - ShardPeerWithExadbXs model = - new ShardPeerWithExadbXs( - this.vmClusterId, - this.shardGroup, - this.status, - this.supportingResourceId, - this.containerDatabaseId, - this.timeCreated, - this.timeUpdated, - this.protectionMode, - this.transportType, - this.metadata); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ShardPeerWithExadbXs model) { - if (model.wasPropertyExplicitlySet("vmClusterId")) { - this.vmClusterId(model.getVmClusterId()); - } - if (model.wasPropertyExplicitlySet("shardGroup")) { - this.shardGroup(model.getShardGroup()); - } - 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("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("transportType")) { - this.transportType(model.getTransportType()); - } - 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 [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 name of the shardGroup for the peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardGroup") - private final String shardGroup; - - /** - * The name of the shardGroup for the peer. - * - * @return the value - */ - public String getShardGroup() { - return shardGroup; - } - - /** Status of EXADB_XS based shard peer. */ - 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 EXADB_XS based shard peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private final Status status; - - /** - * Status of EXADB_XS based shard peer. - * - * @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 time the shard peer was created. An RFC3339 formatted datetime string */ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private final java.util.Date timeCreated; - - /** - * The time the shard peer was created. An RFC3339 formatted datetime string - * - * @return the value - */ - public java.util.Date getTimeCreated() { - return timeCreated; - } - - /** The time the shard peer was last updated. An RFC3339 formatted datetime string */ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private final java.util.Date timeUpdated; - - /** - * The time the shard peer was last updated. An RFC3339 formatted datetime string - * - * @return the value - */ - public java.util.Date getTimeUpdated() { - return timeUpdated; - } - - /** The protectionMode for the shard peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedDbProtectionMode protectionMode; - - /** - * The protectionMode for the shard peer. - * - * @return the value - */ - public DistributedDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** The redo transport type to use for this Data Guard association. */ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private final DistributedDbTransportType transportType; - - /** - * The redo transport type to use for this Data Guard association. - * - * @return the value - */ - public DistributedDbTransportType getTransportType() { - return transportType; - } - - @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("ShardPeerWithExadbXs("); - sb.append("super=").append(super.toString()); - sb.append("vmClusterId=").append(String.valueOf(this.vmClusterId)); - sb.append(", shardGroup=").append(String.valueOf(this.shardGroup)); - 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(", timeCreated=").append(String.valueOf(this.timeCreated)); - sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", transportType=").append(String.valueOf(this.transportType)); - 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 ShardPeerWithExadbXs)) { - return false; - } - - ShardPeerWithExadbXs other = (ShardPeerWithExadbXs) o; - return java.util.Objects.equals(this.vmClusterId, other.vmClusterId) - && java.util.Objects.equals(this.shardGroup, other.shardGroup) - && 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.timeCreated, other.timeCreated) - && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals(this.transportType, other.transportType) - && 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.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); - result = (result * PRIME) + (this.shardGroup == null ? 43 : this.shardGroup.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.timeCreated == null ? 43 : this.timeCreated.hashCode()); - result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.transportType == null ? 43 : this.transportType.hashCode()); - result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ShardPeerWithExadbXsNewVaultAndCluster.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ShardPeerWithExadbXsNewVaultAndCluster.java deleted file mode 100644 index b70bfafac8d..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ShardPeerWithExadbXsNewVaultAndCluster.java +++ /dev/null @@ -1,601 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.model; - -/** - * Details of the shard peer
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = ShardPeerWithExadbXsNewVaultAndCluster.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class ShardPeerWithExadbXsNewVaultAndCluster - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "shardGroup", - "status", - "supportingResourceId", - "containerDatabaseId", - "timeCreated", - "timeUpdated", - "protectionMode", - "transportType", - "availabilityDomain", - "dbStorageVaultDetails", - "vmClusterDetails", - "metadata" - }) - public ShardPeerWithExadbXsNewVaultAndCluster( - String shardGroup, - Status status, - String supportingResourceId, - String containerDatabaseId, - java.util.Date timeCreated, - java.util.Date timeUpdated, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType, - String availabilityDomain, - DistributedDbStorageVault dbStorageVaultDetails, - DistributedDbVmCluster vmClusterDetails, - DistributedDbMetadata metadata) { - super(); - this.shardGroup = shardGroup; - this.status = status; - this.supportingResourceId = supportingResourceId; - this.containerDatabaseId = containerDatabaseId; - this.timeCreated = timeCreated; - this.timeUpdated = timeUpdated; - this.protectionMode = protectionMode; - this.transportType = transportType; - this.availabilityDomain = availabilityDomain; - this.dbStorageVaultDetails = dbStorageVaultDetails; - this.vmClusterDetails = vmClusterDetails; - this.metadata = metadata; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** The name of the shardGroup for the peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardGroup") - private String shardGroup; - - /** - * The name of the shardGroup for the peer. - * - * @param shardGroup the value to set - * @return this builder - */ - public Builder shardGroup(String shardGroup) { - this.shardGroup = shardGroup; - this.__explicitlySet__.add("shardGroup"); - return this; - } - /** Status of EXADB_XS based shard peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private Status status; - - /** - * Status of EXADB_XS based shard peer. - * - * @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 time the shard peer was created. An RFC3339 formatted datetime string */ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - /** - * The time the shard peer 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 shard peer was last updated. An RFC3339 formatted datetime string */ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - /** - * The time the shard peer 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 protectionMode for the shard peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedDbProtectionMode protectionMode; - - /** - * The protectionMode for the shard peer. - * - * @param protectionMode the value to set - * @return this builder - */ - public Builder protectionMode(DistributedDbProtectionMode protectionMode) { - this.protectionMode = protectionMode; - this.__explicitlySet__.add("protectionMode"); - return this; - } - /** The redo transport type to use for this Data Guard association. */ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private DistributedDbTransportType transportType; - - /** - * The redo transport type to use for this 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; - } - /** - * 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; - } - - @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 ShardPeerWithExadbXsNewVaultAndCluster build() { - ShardPeerWithExadbXsNewVaultAndCluster model = - new ShardPeerWithExadbXsNewVaultAndCluster( - this.shardGroup, - this.status, - this.supportingResourceId, - this.containerDatabaseId, - this.timeCreated, - this.timeUpdated, - this.protectionMode, - this.transportType, - this.availabilityDomain, - this.dbStorageVaultDetails, - this.vmClusterDetails, - this.metadata); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ShardPeerWithExadbXsNewVaultAndCluster model) { - if (model.wasPropertyExplicitlySet("shardGroup")) { - this.shardGroup(model.getShardGroup()); - } - 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("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("transportType")) { - this.transportType(model.getTransportType()); - } - 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("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 name of the shardGroup for the peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("shardGroup") - private final String shardGroup; - - /** - * The name of the shardGroup for the peer. - * - * @return the value - */ - public String getShardGroup() { - return shardGroup; - } - - /** Status of EXADB_XS based shard peer. */ - 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 EXADB_XS based shard peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private final Status status; - - /** - * Status of EXADB_XS based shard peer. - * - * @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 time the shard peer was created. An RFC3339 formatted datetime string */ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private final java.util.Date timeCreated; - - /** - * The time the shard peer was created. An RFC3339 formatted datetime string - * - * @return the value - */ - public java.util.Date getTimeCreated() { - return timeCreated; - } - - /** The time the shard peer was last updated. An RFC3339 formatted datetime string */ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private final java.util.Date timeUpdated; - - /** - * The time the shard peer was last updated. An RFC3339 formatted datetime string - * - * @return the value - */ - public java.util.Date getTimeUpdated() { - return timeUpdated; - } - - /** The protectionMode for the shard peer. */ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedDbProtectionMode protectionMode; - - /** - * The protectionMode for the shard peer. - * - * @return the value - */ - public DistributedDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** The redo transport type to use for this Data Guard association. */ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private final DistributedDbTransportType transportType; - - /** - * The redo transport type to use for this Data Guard association. - * - * @return the value - */ - public DistributedDbTransportType getTransportType() { - return transportType; - } - - /** - * 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; - } - - @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("ShardPeerWithExadbXsNewVaultAndCluster("); - sb.append("super=").append(super.toString()); - sb.append("shardGroup=").append(String.valueOf(this.shardGroup)); - 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(", timeCreated=").append(String.valueOf(this.timeCreated)); - sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", transportType=").append(String.valueOf(this.transportType)); - 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(", 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 ShardPeerWithExadbXsNewVaultAndCluster)) { - return false; - } - - ShardPeerWithExadbXsNewVaultAndCluster other = (ShardPeerWithExadbXsNewVaultAndCluster) o; - return java.util.Objects.equals(this.shardGroup, other.shardGroup) - && 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.timeCreated, other.timeCreated) - && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals(this.transportType, other.transportType) - && 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.metadata, other.metadata) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.shardGroup == null ? 43 : this.shardGroup.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.timeCreated == null ? 43 : this.timeCreated.hashCode()); - result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.transportType == null ? 43 : this.transportType.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.metadata == null ? 43 : this.metadata.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/SortOrder.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/SortOrder.java index e6ebc9f19ed..cd7cc576df6 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/SortOrder.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/SortOrder.java @@ -5,7 +5,7 @@ package com.oracle.bmc.distributeddatabase.model; /** Sort orders. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public enum SortOrder implements com.oracle.bmc.http.internal.BmcEnum { Asc("ASC"), Desc("DESC"), diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemDataGuardDatabase.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/SystemDataGuardDatabase.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemDataGuardDatabase.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/SystemDataGuardDatabase.java index b94c7ae5211..1dde04fa0fe 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemDataGuardDatabase.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/SystemDataGuardDatabase.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * System data guard shard database details.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemDataGuardReplica.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/SystemDataGuardReplica.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemDataGuardReplica.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/SystemDataGuardReplica.java index 3878fd1b87a..43548898421 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemDataGuardReplica.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/SystemDataGuardReplica.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * System data guard replica details.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemRaftCluster.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/SystemRaftCluster.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemRaftCluster.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/SystemRaftCluster.java index cacf0cb3ad8..c5f727d77fd 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemRaftCluster.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/SystemRaftCluster.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * System raft cluster definition.
diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UpdateDistributedAutonomousDatabaseDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UpdateDistributedAutonomousDatabaseDetails.java index db273512fcf..36fa67ac411 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UpdateDistributedAutonomousDatabaseDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UpdateDistributedAutonomousDatabaseDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateDistributedAutonomousDatabaseDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -23,13 +23,20 @@ public final class UpdateDistributedAutonomousDatabaseDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"displayName", "freeformTags", "definedTags"}) + @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; } @@ -51,6 +58,31 @@ public Builder displayName(String 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"}} @@ -97,7 +129,10 @@ public Builder definedTags( public UpdateDistributedAutonomousDatabaseDetails build() { UpdateDistributedAutonomousDatabaseDetails model = new UpdateDistributedAutonomousDatabaseDetails( - this.displayName, this.freeformTags, this.definedTags); + this.displayName, + this.notificationTopicIds, + this.freeformTags, + this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -109,6 +144,9 @@ 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()); } @@ -141,6 +179,29 @@ 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"}} @@ -191,6 +252,7 @@ public String toString(boolean includeByteArrayContents) { 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(")"); @@ -209,6 +271,7 @@ public boolean equals(Object o) { 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); @@ -219,6 +282,11 @@ 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(); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UpdateDistributedDatabaseDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UpdateDistributedDatabaseDetails.java index 95e1a5afa37..10624c29314 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UpdateDistributedDatabaseDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UpdateDistributedDatabaseDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateDistributedDatabaseDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -23,13 +23,20 @@ public final class UpdateDistributedDatabaseDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"displayName", "freeformTags", "definedTags"}) + @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; } @@ -51,6 +58,31 @@ public Builder displayName(String 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"}} @@ -97,7 +129,10 @@ public Builder definedTags( public UpdateDistributedDatabaseDetails build() { UpdateDistributedDatabaseDetails model = new UpdateDistributedDatabaseDetails( - this.displayName, this.freeformTags, this.definedTags); + this.displayName, + this.notificationTopicIds, + this.freeformTags, + this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -109,6 +144,9 @@ 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()); } @@ -141,6 +179,29 @@ 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"}} @@ -191,6 +252,7 @@ public String toString(boolean includeByteArrayContents) { 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(")"); @@ -208,6 +270,7 @@ public boolean equals(Object o) { 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); @@ -218,6 +281,11 @@ 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(); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UpdateDistributedDatabasePrivateEndpointDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UpdateDistributedDatabasePrivateEndpointDetails.java index 17e831802f8..d21e6c12d08 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UpdateDistributedDatabasePrivateEndpointDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UpdateDistributedDatabasePrivateEndpointDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateDistributedDatabasePrivateEndpointDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -23,23 +23,15 @@ public final class UpdateDistributedDatabasePrivateEndpointDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({ - "displayName", - "description", - "nsgIds", - "freeformTags", - "definedTags" - }) + @java.beans.ConstructorProperties({"displayName", "description", "freeformTags", "definedTags"}) public UpdateDistributedDatabasePrivateEndpointDetails( String displayName, String description, - java.util.List nsgIds, java.util.Map freeformTags, java.util.Map> definedTags) { super(); this.displayName = displayName; this.description = description; - this.nsgIds = nsgIds; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -76,21 +68,6 @@ public Builder description(String description) { this.__explicitlySet__.add("description"); return this; } - /** The OCIDs of the network security groups that the private endpoint belongs to. */ - @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") - private java.util.List nsgIds; - - /** - * The OCIDs of the network security groups that the private endpoint belongs to. - * - * @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; - } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists * for cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -139,7 +116,6 @@ public UpdateDistributedDatabasePrivateEndpointDetails build() { new UpdateDistributedDatabasePrivateEndpointDetails( this.displayName, this.description, - this.nsgIds, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -156,9 +132,6 @@ public Builder copy(UpdateDistributedDatabasePrivateEndpointDetails model) { if (model.wasPropertyExplicitlySet("description")) { this.description(model.getDescription()); } - if (model.wasPropertyExplicitlySet("nsgIds")) { - this.nsgIds(model.getNsgIds()); - } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -204,19 +177,6 @@ public String getDescription() { return description; } - /** The OCIDs of the network security groups that the private endpoint belongs to. */ - @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") - private final java.util.List nsgIds; - - /** - * The OCIDs of the network security groups that the private endpoint belongs to. - * - * @return the value - */ - public java.util.List getNsgIds() { - return nsgIds; - } - /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for * cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -268,7 +228,6 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("displayName=").append(String.valueOf(this.displayName)); sb.append(", description=").append(String.valueOf(this.description)); - sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -288,7 +247,6 @@ public boolean equals(Object o) { (UpdateDistributedDatabasePrivateEndpointDetails) o; return java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.description, other.description) - && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -300,7 +258,6 @@ public int hashCode() { 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.nsgIds == null ? 43 : this.nsgIds.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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails.java deleted file mode 100644 index 32175032062..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails.java +++ /dev/null @@ -1,150 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.model; - -/** - * Details of the request to upload the CA signed certificates to GSMs and generate wallets for GSMs - * 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: 20250101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails.Builder - .class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"caSignedCertificate"}) - public UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails( - String caSignedCertificate) { - super(); - this.caSignedCertificate = caSignedCertificate; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** The CA signed certificate key. */ - @com.fasterxml.jackson.annotation.JsonProperty("caSignedCertificate") - private String caSignedCertificate; - - /** - * The CA signed certificate key. - * - * @param caSignedCertificate the value to set - * @return this builder - */ - public Builder caSignedCertificate(String caSignedCertificate) { - this.caSignedCertificate = caSignedCertificate; - this.__explicitlySet__.add("caSignedCertificate"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails - build() { - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails model = - new UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails( - this.caSignedCertificate); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy( - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails - model) { - if (model.wasPropertyExplicitlySet("caSignedCertificate")) { - this.caSignedCertificate(model.getCaSignedCertificate()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** The CA signed certificate key. */ - @com.fasterxml.jackson.annotation.JsonProperty("caSignedCertificate") - private final String caSignedCertificate; - - /** - * The CA signed certificate key. - * - * @return the value - */ - public String getCaSignedCertificate() { - return caSignedCertificate; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails("); - sb.append("super=").append(super.toString()); - sb.append("caSignedCertificate=").append(String.valueOf(this.caSignedCertificate)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o - instanceof - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails)) { - return false; - } - - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails other = - (UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails) o; - return java.util.Objects.equals(this.caSignedCertificate, other.caSignedCertificate) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.caSignedCertificate == null - ? 43 - : this.caSignedCertificate.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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UserShardSpace.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UserShardSpace.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UserShardSpace.java index 03fbf5bf419..522341e5e54 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UserShardSpace.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UserShardSpace.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Distributed database user shard space details.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UserShardSpaceReplica.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UserShardSpaceReplica.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UserShardSpaceReplica.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UserShardSpaceReplica.java index 0fb308f0edb..30bd8262bba 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UserShardSpaceReplica.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UserShardSpaceReplica.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Details of user shard space.
diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/VcnNsgIdsDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/VcnNsgIdsDetails.java similarity index 99% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/VcnNsgIdsDetails.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/VcnNsgIdsDetails.java index 4aa2e11ab2b..ece6540b501 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/VcnNsgIdsDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/VcnNsgIdsDetails.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.model; /** * Specifies the Virtual Cloud Network (VCN) and the list of associated Network Security Group (NSG) diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/VmClusterDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/VmClusterDetails.java index 6a994ccc010..e8ed02ba428 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/VmClusterDetails.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/VmClusterDetails.java @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@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) @@ -24,6 +24,7 @@ public final class VmClusterDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ + "compartmentId", "subnetId", "backupSubnetId", "enabledECpuCount", @@ -37,9 +38,11 @@ public final class VmClusterDetails "isHealthMonitoringEnabled", "isIncidentLogsEnabled", "nsgIds", - "backupNetworkNsgIds" + "backupNetworkNsgIds", + "subscriptionId" }) public VmClusterDetails( + String compartmentId, String subnetId, String backupSubnetId, Integer enabledECpuCount, @@ -53,8 +56,10 @@ public VmClusterDetails( Boolean isHealthMonitoringEnabled, Boolean isIncidentLogsEnabled, java.util.List nsgIds, - java.util.List backupNetworkNsgIds) { + java.util.List backupNetworkNsgIds, + String subscriptionId) { super(); + this.compartmentId = compartmentId; this.subnetId = subnetId; this.backupSubnetId = backupSubnetId; this.enabledECpuCount = enabledECpuCount; @@ -69,10 +74,30 @@ public VmClusterDetails( 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. @@ -369,6 +394,25 @@ public Builder backupNetworkNsgIds(java.util.List 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(); @@ -376,6 +420,7 @@ public Builder backupNetworkNsgIds(java.util.List backupNetworkNsgIds) { public VmClusterDetails build() { VmClusterDetails model = new VmClusterDetails( + this.compartmentId, this.subnetId, this.backupSubnetId, this.enabledECpuCount, @@ -389,7 +434,8 @@ public VmClusterDetails build() { this.isHealthMonitoringEnabled, this.isIncidentLogsEnabled, this.nsgIds, - this.backupNetworkNsgIds); + this.backupNetworkNsgIds, + this.subscriptionId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -398,6 +444,9 @@ public VmClusterDetails build() { @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()); } @@ -440,6 +489,9 @@ public Builder copy(VmClusterDetails model) { if (model.wasPropertyExplicitlySet("backupNetworkNsgIds")) { this.backupNetworkNsgIds(model.getBackupNetworkNsgIds()); } + if (model.wasPropertyExplicitlySet("subscriptionId")) { + this.subscriptionId(model.getSubscriptionId()); + } return this; } } @@ -453,6 +505,23 @@ 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. @@ -749,6 +818,23 @@ 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); @@ -764,7 +850,8 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("VmClusterDetails("); sb.append("super=").append(super.toString()); - sb.append("subnetId=").append(String.valueOf(this.subnetId)); + 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)); @@ -781,6 +868,7 @@ public String toString(boolean includeByteArrayContents) { 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(); } @@ -795,7 +883,8 @@ public boolean equals(Object o) { } VmClusterDetails other = (VmClusterDetails) o; - return java.util.Objects.equals(this.subnetId, other.subnetId) + 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) @@ -812,6 +901,7 @@ public boolean equals(Object o) { && 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); } @@ -819,6 +909,9 @@ public boolean equals(Object o) { 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) @@ -863,6 +956,9 @@ public int hashCode() { + (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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequest.java index 1a254c9dc6a..7a5e218587a 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequest.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@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) diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestError.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestError.java index 0c8d68e2930..e05e460b254 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestError.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestError.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@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) diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestErrorCollection.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestErrorCollection.java index 86fdfe80270..61deac98129 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestErrorCollection.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestErrorCollection.java @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestErrorCollection.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestLogEntry.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestLogEntry.java index 5eb1c946d95..23a7a673aa7 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestLogEntry.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestLogEntry.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestLogEntry.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestLogEntryCollection.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestLogEntryCollection.java index b896ee2763b..8766b5d4bd8 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestLogEntryCollection.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestLogEntryCollection.java @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestLogEntryCollection.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestResource.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestResource.java index f7ae30b8b75..5a1924c63db 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestResource.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestResource.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestResource.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestResourceMetadataKey.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestResourceMetadataKey.java index 94dc2b618b8..d4df9a69bba 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestResourceMetadataKey.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestResourceMetadataKey.java @@ -5,7 +5,7 @@ package com.oracle.bmc.distributeddatabase.model; /** Possible Metadata keys for workRequest resource metadata */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public enum WorkRequestResourceMetadataKey implements com.oracle.bmc.http.internal.BmcEnum { IsDryRun("IS_DRY_RUN"), diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestSummary.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestSummary.java index 0c4c3245746..c5c30516355 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestSummary.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestSummary.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestSummary.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestSummaryCollection.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestSummaryCollection.java index c5b9c6f7105..49854c25fa1 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestSummaryCollection.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/WorkRequestSummaryCollection.java @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestSummaryCollection.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/AddDistributedAutonomousDatabaseGdsControlNodeRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/AddDistributedAutonomousDatabaseGdsControlNodeRequest.java index ca68aa2d60e..c3575731c88 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/AddDistributedAutonomousDatabaseGdsControlNodeRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/AddDistributedAutonomousDatabaseGdsControlNodeRequest.java @@ -11,16 +11,16 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * AddDistributedAutonomousDatabaseGdsControlNodeRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class AddDistributedAutonomousDatabaseGdsControlNodeRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.distributeddatabase.model .AddDistributedAutonomousDatabaseGdsControlNodeDetails> { - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ public String getDistributedAutonomousDatabaseId() { return distributedAutonomousDatabaseId; } @@ -106,11 +106,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId = null; /** - * Globally distributed autonomous database identifier + * Globally distributed autonomous database identifier. * * @param distributedAutonomousDatabaseId the value to set * @return this builder instance diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/AddDistributedDatabaseGdsControlNodeRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/AddDistributedDatabaseGdsControlNodeRequest.java index bc3b91177de..b1c1cbae0c5 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/AddDistributedDatabaseGdsControlNodeRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/AddDistributedDatabaseGdsControlNodeRequest.java @@ -11,16 +11,16 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * AddDistributedDatabaseGdsControlNodeRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class AddDistributedDatabaseGdsControlNodeRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.distributeddatabase.model .AddDistributedDatabaseGdsControlNodeDetails> { - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ public String getDistributedDatabaseId() { return distributedDatabaseId; } @@ -103,11 +103,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId = null; /** - * Globally distributed database identifier + * Globally distributed database identifier. * * @param distributedDatabaseId the value to set * @return this builder instance diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ChangeDistributedAutonomousDatabaseCompartmentRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ChangeDistributedAutonomousDatabaseCompartmentRequest.java index 6ed3c92ebae..bf04ebf8e79 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ChangeDistributedAutonomousDatabaseCompartmentRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ChangeDistributedAutonomousDatabaseCompartmentRequest.java @@ -11,7 +11,7 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * ChangeDistributedAutonomousDatabaseCompartmentRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ChangeDistributedAutonomousDatabaseCompartmentRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.distributeddatabase.model @@ -28,10 +28,10 @@ public class ChangeDistributedAutonomousDatabaseCompartmentRequest getChangeDistributedAutonomousDatabaseCompartmentDetails() { return changeDistributedAutonomousDatabaseCompartmentDetails; } - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ public String getDistributedAutonomousDatabaseId() { return distributedAutonomousDatabaseId; } @@ -122,11 +122,11 @@ public Builder changeDistributedAutonomousDatabaseCompartmentDetails( return this; } - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId = null; /** - * Globally distributed autonomous database identifier + * Globally distributed autonomous database identifier. * * @param distributedAutonomousDatabaseId the value to set * @return this builder instance diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ChangeDistributedAutonomousDbBackupConfigRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ChangeDistributedAutonomousDbBackupConfigRequest.java index a32c0b59c87..5271a3a42db 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ChangeDistributedAutonomousDbBackupConfigRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ChangeDistributedAutonomousDbBackupConfigRequest.java @@ -11,16 +11,16 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * ChangeDistributedAutonomousDbBackupConfigRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ChangeDistributedAutonomousDbBackupConfigRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.distributeddatabase.model .ChangeDistributedAutonomousDbBackupConfigDetails> { - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ public String getDistributedAutonomousDatabaseId() { return distributedAutonomousDatabaseId; } @@ -104,11 +104,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId = null; /** - * Globally distributed autonomous database identifier + * Globally distributed autonomous database identifier. * * @param distributedAutonomousDatabaseId the value to set * @return this builder instance diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ChangeDistributedDatabaseCompartmentRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ChangeDistributedDatabaseCompartmentRequest.java index 5a34905b648..2b3cc3de13e 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ChangeDistributedDatabaseCompartmentRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ChangeDistributedDatabaseCompartmentRequest.java @@ -11,7 +11,7 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * ChangeDistributedDatabaseCompartmentRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ChangeDistributedDatabaseCompartmentRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.distributeddatabase.model @@ -26,10 +26,10 @@ public class ChangeDistributedDatabaseCompartmentRequest getChangeDistributedDatabaseCompartmentDetails() { return changeDistributedDatabaseCompartmentDetails; } - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ public String getDistributedDatabaseId() { return distributedDatabaseId; } @@ -115,11 +115,11 @@ public Builder changeDistributedDatabaseCompartmentDetails( return this; } - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId = null; /** - * Globally distributed database identifier + * Globally distributed database identifier. * * @param distributedDatabaseId the value to set * @return this builder instance diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ChangeDistributedDatabasePrivateEndpointCompartmentRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ChangeDistributedDatabasePrivateEndpointCompartmentRequest.java index 641f7a08264..06e1d79db86 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ChangeDistributedDatabasePrivateEndpointCompartmentRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ChangeDistributedDatabasePrivateEndpointCompartmentRequest.java @@ -11,7 +11,7 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * ChangeDistributedDatabasePrivateEndpointCompartmentRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ChangeDistributedDatabasePrivateEndpointCompartmentRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.distributeddatabase.model diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ChangeDistributedDbBackupConfigRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ChangeDistributedDbBackupConfigRequest.java index 7c9a945b145..73f408e2aa0 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ChangeDistributedDbBackupConfigRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ChangeDistributedDbBackupConfigRequest.java @@ -11,15 +11,15 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * ChangeDistributedDbBackupConfigRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ChangeDistributedDbBackupConfigRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.distributeddatabase.model.ChangeDistributedDbBackupConfigDetails> { - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ public String getDistributedDatabaseId() { return distributedDatabaseId; } @@ -96,11 +96,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId = null; /** - * Globally distributed database identifier + * Globally distributed database identifier. * * @param distributedDatabaseId the value to set * @return this builder instance diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest.java similarity index 96% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest.java index 1e052af64b7..fe9f06af5ef 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest.java @@ -2,19 +2,19 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.distributeddatabase.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 + com.oracle.bmc.distributeddatabase.model .ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails> { /** Globally distributed autonomous database identifier. */ @@ -25,12 +25,12 @@ public String getDistributedAutonomousDatabaseId() { return distributedAutonomousDatabaseId; } /** The payload for configuring autoResourceManagement for autonomous distributed database. */ - private com.oracle.bmc.distributeddatabasev26.model + private com.oracle.bmc.distributeddatabase.model .ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails configureDistributedAutonomousDatabaseAutoResourceManagementDetails; /** The payload for configuring autoResourceManagement for autonomous distributed database. */ - public com.oracle.bmc.distributeddatabasev26.model + public com.oracle.bmc.distributeddatabase.model .ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails getConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails() { return configureDistributedAutonomousDatabaseAutoResourceManagementDetails; @@ -86,7 +86,7 @@ public String getIfMatch() { */ @Override @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model + public com.oracle.bmc.distributeddatabase.model .ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails getBody$() { return configureDistributedAutonomousDatabaseAutoResourceManagementDetails; @@ -95,7 +95,7 @@ public String getIfMatch() { public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest, - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails> { private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; @@ -117,7 +117,7 @@ public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatab /** * The payload for configuring autoResourceManagement for autonomous distributed database. */ - private com.oracle.bmc.distributeddatabasev26.model + private com.oracle.bmc.distributeddatabase.model .ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails configureDistributedAutonomousDatabaseAutoResourceManagementDetails = null; @@ -129,7 +129,7 @@ public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatab * @return this builder instance */ public Builder configureDistributedAutonomousDatabaseAutoResourceManagementDetails( - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails configureDistributedAutonomousDatabaseAutoResourceManagementDetails) { this.configureDistributedAutonomousDatabaseAutoResourceManagementDetails = @@ -266,7 +266,7 @@ public ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest build */ @com.oracle.bmc.InternalSdk public Builder body$( - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails body) { configureDistributedAutonomousDatabaseAutoResourceManagementDetails(body); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ConfigureDistributedAutonomousDatabaseGsmWalletRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ConfigureDistributedAutonomousDatabaseGsmWalletRequest.java index a91a41057c2..a9fb6dc398b 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ConfigureDistributedAutonomousDatabaseGsmWalletRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ConfigureDistributedAutonomousDatabaseGsmWalletRequest.java @@ -11,7 +11,7 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * ConfigureDistributedAutonomousDatabaseGsmWalletRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ConfigureDistributedAutonomousDatabaseGsmWalletRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.distributeddatabase.model @@ -28,10 +28,10 @@ public class ConfigureDistributedAutonomousDatabaseGsmWalletRequest getConfigureDistributedAutonomousDatabaseGsmWalletDetails() { return configureDistributedAutonomousDatabaseGsmWalletDetails; } - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ public String getDistributedAutonomousDatabaseId() { return distributedAutonomousDatabaseId; } @@ -122,11 +122,11 @@ public Builder configureDistributedAutonomousDatabaseGsmWalletDetails( return this; } - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId = null; /** - * Globally distributed autonomous database identifier + * Globally distributed autonomous database identifier. * * @param distributedAutonomousDatabaseId the value to set * @return this builder instance diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ConfigureDistributedAutonomousDatabaseGsmsRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ConfigureDistributedAutonomousDatabaseGsmsRequest.java index 50691da909d..218ee977ad1 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ConfigureDistributedAutonomousDatabaseGsmsRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ConfigureDistributedAutonomousDatabaseGsmsRequest.java @@ -11,7 +11,7 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * ConfigureDistributedAutonomousDatabaseGsmsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ConfigureDistributedAutonomousDatabaseGsmsRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.distributeddatabase.model @@ -28,10 +28,10 @@ public class ConfigureDistributedAutonomousDatabaseGsmsRequest getConfigureDistributedAutonomousDatabaseGsmsDetails() { return configureDistributedAutonomousDatabaseGsmsDetails; } - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ public String getDistributedAutonomousDatabaseId() { return distributedAutonomousDatabaseId; } @@ -120,11 +120,11 @@ public Builder configureDistributedAutonomousDatabaseGsmsDetails( return this; } - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId = null; /** - * Globally distributed autonomous database identifier + * Globally distributed autonomous database identifier. * * @param distributedAutonomousDatabaseId the value to set * @return this builder instance diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ConfigureDistributedAutonomousDatabaseShardingRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ConfigureDistributedAutonomousDatabaseShardingRequest.java index 3eded032b3d..8d741bbd8ac 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ConfigureDistributedAutonomousDatabaseShardingRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ConfigureDistributedAutonomousDatabaseShardingRequest.java @@ -11,14 +11,14 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * ConfigureDistributedAutonomousDatabaseShardingRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ConfigureDistributedAutonomousDatabaseShardingRequest extends com.oracle.bmc.requests.BmcRequest { - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ public String getDistributedAutonomousDatabaseId() { return distributedAutonomousDatabaseId; } @@ -99,11 +99,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId = null; /** - * Globally distributed autonomous database identifier + * Globally distributed autonomous database identifier. * * @param distributedAutonomousDatabaseId the value to set * @return this builder instance diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseAutoResourceManagementRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ConfigureDistributedDatabaseAutoResourceManagementRequest.java similarity index 96% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseAutoResourceManagementRequest.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ConfigureDistributedDatabaseAutoResourceManagementRequest.java index 00bbcd76a6f..136382c23f2 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseAutoResourceManagementRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ConfigureDistributedDatabaseAutoResourceManagementRequest.java @@ -2,19 +2,19 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.distributeddatabase.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 + com.oracle.bmc.distributeddatabase.model .ConfigureDistributedDatabaseAutoResourceManagementDetails> { /** Globally distributed database identifier. */ @@ -25,12 +25,12 @@ public String getDistributedDatabaseId() { return distributedDatabaseId; } /** The payload for configuring autoResourceManagement for distributed database. */ - private com.oracle.bmc.distributeddatabasev26.model + private com.oracle.bmc.distributeddatabase.model .ConfigureDistributedDatabaseAutoResourceManagementDetails configureDistributedDatabaseAutoResourceManagementDetails; /** The payload for configuring autoResourceManagement for distributed database. */ - public com.oracle.bmc.distributeddatabasev26.model + public com.oracle.bmc.distributeddatabase.model .ConfigureDistributedDatabaseAutoResourceManagementDetails getConfigureDistributedDatabaseAutoResourceManagementDetails() { return configureDistributedDatabaseAutoResourceManagementDetails; @@ -86,7 +86,7 @@ public String getIfMatch() { */ @Override @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model + public com.oracle.bmc.distributeddatabase.model .ConfigureDistributedDatabaseAutoResourceManagementDetails getBody$() { return configureDistributedDatabaseAutoResourceManagementDetails; @@ -95,7 +95,7 @@ public String getIfMatch() { public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< ConfigureDistributedDatabaseAutoResourceManagementRequest, - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .ConfigureDistributedDatabaseAutoResourceManagementDetails> { private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; @@ -115,7 +115,7 @@ public Builder distributedDatabaseId(String distributedDatabaseId) { } /** The payload for configuring autoResourceManagement for distributed database. */ - private com.oracle.bmc.distributeddatabasev26.model + private com.oracle.bmc.distributeddatabase.model .ConfigureDistributedDatabaseAutoResourceManagementDetails configureDistributedDatabaseAutoResourceManagementDetails = null; @@ -126,7 +126,7 @@ public Builder distributedDatabaseId(String distributedDatabaseId) { * @return this builder instance */ public Builder configureDistributedDatabaseAutoResourceManagementDetails( - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .ConfigureDistributedDatabaseAutoResourceManagementDetails configureDistributedDatabaseAutoResourceManagementDetails) { this.configureDistributedDatabaseAutoResourceManagementDetails = @@ -263,7 +263,7 @@ public ConfigureDistributedDatabaseAutoResourceManagementRequest build() { */ @com.oracle.bmc.InternalSdk public Builder body$( - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .ConfigureDistributedDatabaseAutoResourceManagementDetails body) { configureDistributedDatabaseAutoResourceManagementDetails(body); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ConfigureDistributedDatabaseGsmsRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ConfigureDistributedDatabaseGsmsRequest.java index 88ec252ead9..1faa9285907 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ConfigureDistributedDatabaseGsmsRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ConfigureDistributedDatabaseGsmsRequest.java @@ -11,7 +11,7 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * ConfigureDistributedDatabaseGsmsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ConfigureDistributedDatabaseGsmsRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.distributeddatabase.model.ConfigureDistributedDatabaseGsmsDetails> { @@ -25,10 +25,10 @@ public class ConfigureDistributedDatabaseGsmsRequest getConfigureDistributedDatabaseGsmsDetails() { return configureDistributedDatabaseGsmsDetails; } - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ public String getDistributedDatabaseId() { return distributedDatabaseId; } @@ -113,11 +113,11 @@ public Builder configureDistributedDatabaseGsmsDetails( return this; } - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId = null; /** - * Globally distributed database identifier + * Globally distributed database identifier. * * @param distributedDatabaseId the value to set * @return this builder instance diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ConfigureDistributedDatabaseShardingRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ConfigureDistributedDatabaseShardingRequest.java index 9bb82bd3cc4..6e2f97f989b 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ConfigureDistributedDatabaseShardingRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ConfigureDistributedDatabaseShardingRequest.java @@ -11,14 +11,14 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * ConfigureDistributedDatabaseShardingRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ConfigureDistributedDatabaseShardingRequest extends com.oracle.bmc.requests.BmcRequest { - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ public String getDistributedDatabaseId() { return distributedDatabaseId; } @@ -85,11 +85,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId = null; /** - * Globally distributed database identifier + * Globally distributed database identifier. * * @param distributedDatabaseId the value to set * @return this builder instance diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/CreateDistributedAutonomousDatabaseRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/CreateDistributedAutonomousDatabaseRequest.java index 91b0a698738..124eea60cb2 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/CreateDistributedAutonomousDatabaseRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/CreateDistributedAutonomousDatabaseRequest.java @@ -11,7 +11,7 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * CreateDistributedAutonomousDatabaseRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class CreateDistributedAutonomousDatabaseRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.distributeddatabase.model diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/CreateDistributedDatabasePrivateEndpointRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/CreateDistributedDatabasePrivateEndpointRequest.java index 28193fca83d..5aa3889ca01 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/CreateDistributedDatabasePrivateEndpointRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/CreateDistributedDatabasePrivateEndpointRequest.java @@ -11,7 +11,7 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * CreateDistributedDatabasePrivateEndpointRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class CreateDistributedDatabasePrivateEndpointRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.distributeddatabase.model diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/CreateDistributedDatabaseRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/CreateDistributedDatabaseRequest.java index ddcc0c25b04..805947c470c 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/CreateDistributedDatabaseRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/CreateDistributedDatabaseRequest.java @@ -11,7 +11,7 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * CreateDistributedDatabaseRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class CreateDistributedDatabaseRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseDetails> { diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DeleteDistributedAutonomousDatabaseRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DeleteDistributedAutonomousDatabaseRequest.java index 43a75084a55..7eb875d2fbf 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DeleteDistributedAutonomousDatabaseRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DeleteDistributedAutonomousDatabaseRequest.java @@ -11,14 +11,14 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * DeleteDistributedAutonomousDatabaseRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DeleteDistributedAutonomousDatabaseRequest extends com.oracle.bmc.requests.BmcRequest { - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ public String getDistributedAutonomousDatabaseId() { return distributedAutonomousDatabaseId; } @@ -72,11 +72,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId = null; /** - * Globally distributed autonomous database identifier + * Globally distributed autonomous database identifier. * * @param distributedAutonomousDatabaseId the value to set * @return this builder instance diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DeleteDistributedDatabasePrivateEndpointRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DeleteDistributedDatabasePrivateEndpointRequest.java index 836ed5a314a..edb7423fb88 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DeleteDistributedDatabasePrivateEndpointRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DeleteDistributedDatabasePrivateEndpointRequest.java @@ -11,7 +11,7 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * DeleteDistributedDatabasePrivateEndpointRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DeleteDistributedDatabasePrivateEndpointRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DeleteDistributedDatabaseRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DeleteDistributedDatabaseRequest.java index a7dde3bcc8a..ee5bb96483f 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DeleteDistributedDatabaseRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DeleteDistributedDatabaseRequest.java @@ -11,30 +11,17 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * DeleteDistributedDatabaseRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DeleteDistributedDatabaseRequest extends com.oracle.bmc.requests.BmcRequest { - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ public String getDistributedDatabaseId() { return distributedDatabaseId; } - /** - * The flag to indicate if infra like VmCluster & DbStorageVault associated with the resource - * should be deleted. - */ - private Boolean mustDeleteInfra; - - /** - * The flag to indicate if infra like VmCluster & DbStorageVault associated with the resource - * should be deleted. - */ - public Boolean getMustDeleteInfra() { - return mustDeleteInfra; - } /** The client request ID for tracing. */ private String opcRequestId; @@ -85,11 +72,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId = null; /** - * Globally distributed database identifier + * Globally distributed database identifier. * * @param distributedDatabaseId the value to set * @return this builder instance @@ -99,24 +86,6 @@ public Builder distributedDatabaseId(String distributedDatabaseId) { return this; } - /** - * The flag to indicate if infra like VmCluster & DbStorageVault associated with the - * resource should be deleted. - */ - private Boolean mustDeleteInfra = null; - - /** - * The flag to indicate if infra like VmCluster & DbStorageVault associated with the - * resource should be deleted. - * - * @param mustDeleteInfra the value to set - * @return this builder instance - */ - public Builder mustDeleteInfra(Boolean mustDeleteInfra) { - this.mustDeleteInfra = mustDeleteInfra; - return this; - } - /** The client request ID for tracing. */ private String opcRequestId = null; @@ -208,7 +177,6 @@ public Builder retryConfiguration( */ public Builder copy(DeleteDistributedDatabaseRequest o) { distributedDatabaseId(o.getDistributedDatabaseId()); - mustDeleteInfra(o.getMustDeleteInfra()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); ifMatch(o.getIfMatch()); @@ -247,13 +215,12 @@ public DeleteDistributedDatabaseRequest build() { public DeleteDistributedDatabaseRequest buildWithoutInvocationCallback() { DeleteDistributedDatabaseRequest request = new DeleteDistributedDatabaseRequest(); request.distributedDatabaseId = distributedDatabaseId; - request.mustDeleteInfra = mustDeleteInfra; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; request.ifMatch = ifMatch; return request; - // new DeleteDistributedDatabaseRequest(distributedDatabaseId, mustDeleteInfra, - // opcRequestId, opcRetryToken, ifMatch); + // new DeleteDistributedDatabaseRequest(distributedDatabaseId, opcRequestId, + // opcRetryToken, ifMatch); } } @@ -265,7 +232,6 @@ public DeleteDistributedDatabaseRequest buildWithoutInvocationCallback() { public Builder toBuilder() { return new Builder() .distributedDatabaseId(distributedDatabaseId) - .mustDeleteInfra(mustDeleteInfra) .opcRequestId(opcRequestId) .opcRetryToken(opcRetryToken) .ifMatch(ifMatch); @@ -286,7 +252,6 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); - sb.append(",mustDeleteInfra=").append(String.valueOf(this.mustDeleteInfra)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); @@ -306,7 +271,6 @@ public boolean equals(Object o) { DeleteDistributedDatabaseRequest other = (DeleteDistributedDatabaseRequest) o; return super.equals(o) && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) - && java.util.Objects.equals(this.mustDeleteInfra, other.mustDeleteInfra) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.ifMatch, other.ifMatch); @@ -321,9 +285,6 @@ public int hashCode() { + (this.distributedDatabaseId == null ? 43 : this.distributedDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.mustDeleteInfra == null ? 43 : this.mustDeleteInfra.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.java deleted file mode 100644 index b8fe6b13fb4..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.java +++ /dev/null @@ -1,311 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.requests; - -import com.oracle.bmc.distributeddatabase.model.*; -/** - * Example: Click here to see how to use - * DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest. - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - 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; - } - /** - * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code - * if-match} parameter to the value of the etag from a previous GET or POST 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< - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest, - 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; - } - - /** - * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the - * {@code if-match} parameter to the value of the etag from a previous GET or POST 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( - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest o) { - distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); - opcRequestId(o.getOpcRequestId()); - ifMatch(o.getIfMatch()); - opcRetryToken(o.getOpcRetryToken()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of - * DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest 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 - * DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - */ - public DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest build() { - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest request = - buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Build the instance of - * DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest 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 - * DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - */ - public DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - buildWithoutInvocationCallback() { - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest request = - new DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest(); - request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - request.opcRetryToken = opcRetryToken; - return request; - // new - // DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest(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() - .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(",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 - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest)) { - return false; - } - - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest other = - (DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest) 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.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.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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DownloadDistributedDatabaseGsmCertificateSigningRequestRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DownloadDistributedDatabaseGsmCertificateSigningRequestRequest.java deleted file mode 100644 index d6e7ae7ed66..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DownloadDistributedDatabaseGsmCertificateSigningRequestRequest.java +++ /dev/null @@ -1,303 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.requests; - -import com.oracle.bmc.distributeddatabase.model.*; -/** - * Example: Click here to see how to use - * DownloadDistributedDatabaseGsmCertificateSigningRequestRequest. - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class DownloadDistributedDatabaseGsmCertificateSigningRequestRequest - 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; - } - /** - * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code - * if-match} parameter to the value of the etag from a previous GET or POST 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< - DownloadDistributedDatabaseGsmCertificateSigningRequestRequest, - 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; - } - - /** - * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the - * {@code if-match} parameter to the value of the etag from a previous GET or POST 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(DownloadDistributedDatabaseGsmCertificateSigningRequestRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - opcRequestId(o.getOpcRequestId()); - ifMatch(o.getIfMatch()); - opcRetryToken(o.getOpcRetryToken()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of DownloadDistributedDatabaseGsmCertificateSigningRequestRequest 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 DownloadDistributedDatabaseGsmCertificateSigningRequestRequest - */ - public DownloadDistributedDatabaseGsmCertificateSigningRequestRequest build() { - DownloadDistributedDatabaseGsmCertificateSigningRequestRequest request = - buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Build the instance of DownloadDistributedDatabaseGsmCertificateSigningRequestRequest 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 DownloadDistributedDatabaseGsmCertificateSigningRequestRequest - */ - public DownloadDistributedDatabaseGsmCertificateSigningRequestRequest - buildWithoutInvocationCallback() { - DownloadDistributedDatabaseGsmCertificateSigningRequestRequest request = - new DownloadDistributedDatabaseGsmCertificateSigningRequestRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - request.opcRetryToken = opcRetryToken; - return request; - // new - // DownloadDistributedDatabaseGsmCertificateSigningRequestRequest(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() - .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(",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 DownloadDistributedDatabaseGsmCertificateSigningRequestRequest)) { - return false; - } - - DownloadDistributedDatabaseGsmCertificateSigningRequestRequest other = - (DownloadDistributedDatabaseGsmCertificateSigningRequestRequest) 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.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.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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.java deleted file mode 100644 index b7232918679..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.java +++ /dev/null @@ -1,338 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.requests; - -import com.oracle.bmc.distributeddatabase.model.*; -/** - * Example: Click here to see how to use - * GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest. - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - 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; - } - /** - * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code - * if-match} parameter to the value of the etag from a previous GET or POST 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 ID of the Ca Bundle. */ - private String caBundleId; - - /** The ID of the Ca Bundle. */ - public String getCaBundleId() { - return caBundleId; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest, - 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; - } - - /** - * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the - * {@code if-match} parameter to the value of the etag from a previous GET or POST 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 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; - } - - /** - * 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( - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest o) { - distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); - opcRequestId(o.getOpcRequestId()); - ifMatch(o.getIfMatch()); - opcRetryToken(o.getOpcRetryToken()); - caBundleId(o.getCaBundleId()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of - * GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest 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 - * GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - */ - public GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest build() { - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest request = - buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Build the instance of - * GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest 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 - * GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - */ - public GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - buildWithoutInvocationCallback() { - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest request = - new GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest(); - request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - request.opcRetryToken = opcRetryToken; - request.caBundleId = caBundleId; - return request; - // new - // GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest(distributedAutonomousDatabaseId, opcRequestId, ifMatch, opcRetryToken, caBundleId); - } - } - - /** - * 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) - .ifMatch(ifMatch) - .opcRetryToken(opcRetryToken) - .caBundleId(caBundleId); - } - - /** - * 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(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - 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 - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest)) { - return false; - } - - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest other = - (GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest) 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.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.caBundleId, other.caBundleId); - } - - @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.ifMatch == null ? 43 : this.ifMatch.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.caBundleId == null ? 43 : this.caBundleId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedAutonomousDatabaseWalletRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedAutonomousDatabaseWalletRequest.java index fd103da32e3..c64f4e4d9fa 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedAutonomousDatabaseWalletRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedAutonomousDatabaseWalletRequest.java @@ -11,16 +11,16 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * GenerateDistributedAutonomousDatabaseWalletRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class GenerateDistributedAutonomousDatabaseWalletRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.distributeddatabase.model .GenerateDistributedAutonomousDatabaseWalletDetails> { - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ public String getDistributedAutonomousDatabaseId() { return distributedAutonomousDatabaseId; } @@ -100,11 +100,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId = null; /** - * Globally distributed autonomous database identifier + * Globally distributed autonomous database identifier. * * @param distributedAutonomousDatabaseId the value to set * @return this builder instance diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedDatabaseGsmCertificateSigningRequestRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedDatabaseGsmCertificateSigningRequestRequest.java deleted file mode 100644 index 95adfa76053..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedDatabaseGsmCertificateSigningRequestRequest.java +++ /dev/null @@ -1,330 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.requests; - -import com.oracle.bmc.distributeddatabase.model.*; -/** - * Example: Click here to see how to use - * GenerateDistributedDatabaseGsmCertificateSigningRequestRequest. - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class GenerateDistributedDatabaseGsmCertificateSigningRequestRequest - extends com.oracle.bmc.requests.BmcRequest { - - /** Globally distributed database identifier */ - private String distributedDatabaseId; - - /** Globally distributed database identifier */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; - } - /** The ID of the Ca Bundle. */ - private String caBundleId; - - /** The ID of the Ca Bundle. */ - public String getCaBundleId() { - return caBundleId; - } - /** 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< - GenerateDistributedDatabaseGsmCertificateSigningRequestRequest, - 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 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; - } - - /** 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(GenerateDistributedDatabaseGsmCertificateSigningRequestRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - caBundleId(o.getCaBundleId()); - opcRequestId(o.getOpcRequestId()); - ifMatch(o.getIfMatch()); - opcRetryToken(o.getOpcRetryToken()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of GenerateDistributedDatabaseGsmCertificateSigningRequestRequest 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 GenerateDistributedDatabaseGsmCertificateSigningRequestRequest - */ - public GenerateDistributedDatabaseGsmCertificateSigningRequestRequest build() { - GenerateDistributedDatabaseGsmCertificateSigningRequestRequest request = - buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Build the instance of GenerateDistributedDatabaseGsmCertificateSigningRequestRequest 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 GenerateDistributedDatabaseGsmCertificateSigningRequestRequest - */ - public GenerateDistributedDatabaseGsmCertificateSigningRequestRequest - buildWithoutInvocationCallback() { - GenerateDistributedDatabaseGsmCertificateSigningRequestRequest request = - new GenerateDistributedDatabaseGsmCertificateSigningRequestRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.caBundleId = caBundleId; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - request.opcRetryToken = opcRetryToken; - return request; - // new - // GenerateDistributedDatabaseGsmCertificateSigningRequestRequest(distributedDatabaseId, - // caBundleId, 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) - .caBundleId(caBundleId) - .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(",caBundleId=").append(String.valueOf(this.caBundleId)); - 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 GenerateDistributedDatabaseGsmCertificateSigningRequestRequest)) { - return false; - } - - GenerateDistributedDatabaseGsmCertificateSigningRequestRequest other = - (GenerateDistributedDatabaseGsmCertificateSigningRequestRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) - && java.util.Objects.equals(this.caBundleId, other.caBundleId) - && 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.caBundleId == null ? 43 : this.caBundleId.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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedDatabaseWalletRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedDatabaseWalletRequest.java index dabbae1b62c..1cefa1f322f 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedDatabaseWalletRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedDatabaseWalletRequest.java @@ -11,15 +11,15 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * GenerateDistributedDatabaseWalletRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class GenerateDistributedDatabaseWalletRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.distributeddatabase.model.GenerateDistributedDatabaseWalletDetails> { - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ public String getDistributedDatabaseId() { return distributedDatabaseId; } @@ -96,11 +96,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId = null; /** - * Globally distributed database identifier + * Globally distributed database identifier. * * @param distributedDatabaseId the value to set * @return this builder instance diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetDistributedAutonomousDatabaseRaftMetricRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetDistributedAutonomousDatabaseRaftMetricRequest.java index 6e092a424c5..5414aae6b86 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetDistributedAutonomousDatabaseRaftMetricRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetDistributedAutonomousDatabaseRaftMetricRequest.java @@ -11,14 +11,14 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * GetDistributedAutonomousDatabaseRaftMetricRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class GetDistributedAutonomousDatabaseRaftMetricRequest extends com.oracle.bmc.requests.BmcRequest { - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ public String getDistributedAutonomousDatabaseId() { return distributedAutonomousDatabaseId; } @@ -36,11 +36,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId = null; /** - * Globally distributed autonomous database identifier + * Globally distributed autonomous database identifier. * * @param distributedAutonomousDatabaseId the value to set * @return this builder instance diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetDistributedAutonomousDatabaseRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetDistributedAutonomousDatabaseRequest.java index faf54789ceb..1718e483d80 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetDistributedAutonomousDatabaseRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetDistributedAutonomousDatabaseRequest.java @@ -11,21 +11,21 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * GetDistributedAutonomousDatabaseRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class GetDistributedAutonomousDatabaseRequest extends com.oracle.bmc.requests.BmcRequest { - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ public String getDistributedAutonomousDatabaseId() { return distributedAutonomousDatabaseId; } - /** Comma separated names of argument corresponding to which metadata need to be retrived. */ + /** Comma-separated argument names for which metadata should be retrieved. */ private String metadata; - /** Comma separated names of argument corresponding to which metadata need to be retrived. */ + /** Comma-separated argument names for which metadata should be retrieved. */ public String getMetadata() { return metadata; } @@ -60,11 +60,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId = null; /** - * Globally distributed autonomous database identifier + * Globally distributed autonomous database identifier. * * @param distributedAutonomousDatabaseId the value to set * @return this builder instance @@ -74,13 +74,11 @@ public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatab return this; } - /** - * Comma separated names of argument corresponding to which metadata need to be retrived. - */ + /** Comma-separated argument names for which metadata should be retrieved. */ private String metadata = null; /** - * Comma separated names of argument corresponding to which metadata need to be retrived. + * Comma-separated argument names for which metadata should be retrieved. * * @param metadata the value to set * @return this builder instance diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRuChangeLogRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetDistributedAutonomousDatabaseRuChangeLogRequest.java similarity index 97% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRuChangeLogRequest.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetDistributedAutonomousDatabaseRuChangeLogRequest.java index 7cd9616fe68..a07e0f2ece8 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRuChangeLogRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetDistributedAutonomousDatabaseRuChangeLogRequest.java @@ -2,12 +2,12 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.distributeddatabase.model.*; /** * Example: Click here to see how to use * GetDistributedAutonomousDatabaseRuChangeLogRequest. */ diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetDistributedDatabasePrivateEndpointRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetDistributedDatabasePrivateEndpointRequest.java index e5b94d2d9be..3f21504f185 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetDistributedDatabasePrivateEndpointRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetDistributedDatabasePrivateEndpointRequest.java @@ -11,7 +11,7 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * GetDistributedDatabasePrivateEndpointRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class GetDistributedDatabasePrivateEndpointRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetDistributedDatabaseRaftMetricRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetDistributedDatabaseRaftMetricRequest.java index 3d019688bf5..05dc0b118a5 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetDistributedDatabaseRaftMetricRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetDistributedDatabaseRaftMetricRequest.java @@ -11,14 +11,14 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * GetDistributedDatabaseRaftMetricRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class GetDistributedDatabaseRaftMetricRequest extends com.oracle.bmc.requests.BmcRequest { - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ public String getDistributedDatabaseId() { return distributedDatabaseId; } @@ -36,11 +36,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId = null; /** - * Globally distributed database identifier + * Globally distributed database identifier. * * @param distributedDatabaseId the value to set * @return this builder instance diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetDistributedDatabaseRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetDistributedDatabaseRequest.java index a35d56a8cd4..e18ac67708b 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetDistributedDatabaseRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetDistributedDatabaseRequest.java @@ -11,21 +11,21 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * GetDistributedDatabaseRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class GetDistributedDatabaseRequest extends com.oracle.bmc.requests.BmcRequest { - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ public String getDistributedDatabaseId() { return distributedDatabaseId; } - /** Comma separated names of argument corresponding to which metadata need to be retrived. */ + /** Comma-separated argument names for which metadata should be retrieved. */ private String metadata; - /** Comma separated names of argument corresponding to which metadata need to be retrived. */ + /** Comma-separated argument names for which metadata should be retrieved. */ public String getMetadata() { return metadata; } @@ -60,11 +60,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId = null; /** - * Globally distributed database identifier + * Globally distributed database identifier. * * @param distributedDatabaseId the value to set * @return this builder instance @@ -74,13 +74,11 @@ public Builder distributedDatabaseId(String distributedDatabaseId) { return this; } - /** - * Comma separated names of argument corresponding to which metadata need to be retrived. - */ + /** Comma-separated argument names for which metadata should be retrieved. */ private String metadata = null; /** - * Comma separated names of argument corresponding to which metadata need to be retrived. + * Comma-separated argument names for which metadata should be retrieved. * * @param metadata the value to set * @return this builder instance diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRuChangeLogRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetDistributedDatabaseRuChangeLogRequest.java similarity index 97% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRuChangeLogRequest.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetDistributedDatabaseRuChangeLogRequest.java index 1f490305a96..03a39c7ad11 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRuChangeLogRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetDistributedDatabaseRuChangeLogRequest.java @@ -2,12 +2,12 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.distributeddatabase.model.*; /** * Example: Click here to see how to use * GetDistributedDatabaseRuChangeLogRequest. */ diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetWorkRequestRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetWorkRequestRequest.java index ff189352acc..02fb531cb28 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetWorkRequestRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GetWorkRequestRequest.java @@ -10,7 +10,7 @@ * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/distributeddatabase/GetWorkRequestExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use GetWorkRequestRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class GetWorkRequestRequest extends com.oracle.bmc.requests.BmcRequest { /** The ID of the asynchronous request. */ diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ListDistributedAutonomousDatabasesRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ListDistributedAutonomousDatabasesRequest.java index e495bd18367..6cdc134dec6 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ListDistributedAutonomousDatabasesRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ListDistributedAutonomousDatabasesRequest.java @@ -11,7 +11,7 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * ListDistributedAutonomousDatabasesRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ListDistributedAutonomousDatabasesRequest extends com.oracle.bmc.requests.BmcRequest { @@ -22,6 +22,19 @@ public class ListDistributedAutonomousDatabasesRequest 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; @@ -29,11 +42,11 @@ public String getCompartmentId() { public String getPrivateEndpointId() { return privateEndpointId; } - /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + /** A filter to return only resources whose lifecycleState matches the specified value. */ private com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabase.LifecycleState lifecycleState; - /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + /** A filter to return only resources whose lifecycleState matches the specified value. */ public com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabase.LifecycleState getLifecycleState() { return lifecycleState; @@ -122,6 +135,21 @@ public SortBy getSortBy() { 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. @@ -135,23 +163,17 @@ public String getOpcRequestId() { public String getDisplayName() { return displayName; } - /** - * A filter to return only resources their dbDeploymentType matches the given dbDeploymentType. - */ - private com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabase.DbDeploymentType - dbDeploymentType; + /** A filter to return only resources whose dbDeploymentType matches the specified value. */ + private String dbDeploymentType; - /** - * A filter to return only resources their dbDeploymentType matches the given dbDeploymentType. - */ - public com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabase.DbDeploymentType - getDbDeploymentType() { + /** A filter to return only resources whose dbDeploymentType matches the specified value. */ + public String getDbDeploymentType() { return dbDeploymentType; } - /** Comma separated names of argument corresponding to which metadata need to be retrived. */ + /** Comma-separated argument names for which metadata should be retrieved. */ private String metadata; - /** Comma separated names of argument corresponding to which metadata need to be retrived. */ + /** Comma-separated argument names for which metadata should be retrieved. */ public String getMetadata() { return metadata; } @@ -176,6 +198,24 @@ public Builder compartmentId(String 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. */ @@ -192,15 +232,13 @@ public Builder privateEndpointId(String privateEndpointId) { return this; } - /** - * A filter to return only resources their lifecycleState matches the given lifecycleState. - */ + /** A filter to return only resources whose lifecycleState matches the specified value. */ private com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabase .LifecycleState lifecycleState = null; /** - * A filter to return only resources their lifecycleState matches the given lifecycleState. + * A filter to return only resources whose lifecycleState matches the specified value. * * @param lifecycleState the value to set * @return this builder instance @@ -291,6 +329,26 @@ public Builder opcRequestId(String 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. @@ -309,36 +367,25 @@ public Builder displayName(String displayName) { return this; } - /** - * A filter to return only resources their dbDeploymentType matches the given - * dbDeploymentType. - */ - private com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabase - .DbDeploymentType - dbDeploymentType = null; + /** A filter to return only resources whose dbDeploymentType matches the specified value. */ + private String dbDeploymentType = null; /** - * A filter to return only resources their dbDeploymentType matches the given - * dbDeploymentType. + * 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( - com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabase - .DbDeploymentType - dbDeploymentType) { + public Builder dbDeploymentType(String dbDeploymentType) { this.dbDeploymentType = dbDeploymentType; return this; } - /** - * Comma separated names of argument corresponding to which metadata need to be retrived. - */ + /** Comma-separated argument names for which metadata should be retrieved. */ private String metadata = null; /** - * Comma separated names of argument corresponding to which metadata need to be retrived. + * Comma-separated argument names for which metadata should be retrieved. * * @param metadata the value to set * @return this builder instance @@ -379,6 +426,7 @@ public Builder retryConfiguration( */ public Builder copy(ListDistributedAutonomousDatabasesRequest o) { compartmentId(o.getCompartmentId()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); privateEndpointId(o.getPrivateEndpointId()); lifecycleState(o.getLifecycleState()); limit(o.getLimit()); @@ -386,6 +434,7 @@ public Builder copy(ListDistributedAutonomousDatabasesRequest o) { sortOrder(o.getSortOrder()); sortBy(o.getSortBy()); opcRequestId(o.getOpcRequestId()); + isAutoResourceManagementEnabled(o.getIsAutoResourceManagementEnabled()); displayName(o.getDisplayName()); dbDeploymentType(o.getDbDeploymentType()); metadata(o.getMetadata()); @@ -427,6 +476,7 @@ public ListDistributedAutonomousDatabasesRequest buildWithoutInvocationCallback( ListDistributedAutonomousDatabasesRequest request = new ListDistributedAutonomousDatabasesRequest(); request.compartmentId = compartmentId; + request.compartmentIdInSubtree = compartmentIdInSubtree; request.privateEndpointId = privateEndpointId; request.lifecycleState = lifecycleState; request.limit = limit; @@ -434,13 +484,14 @@ public ListDistributedAutonomousDatabasesRequest buildWithoutInvocationCallback( 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, privateEndpointId, - // lifecycleState, limit, page, sortOrder, sortBy, opcRequestId, displayName, - // dbDeploymentType, metadata); + // new ListDistributedAutonomousDatabasesRequest(compartmentId, compartmentIdInSubtree, + // privateEndpointId, lifecycleState, limit, page, sortOrder, sortBy, opcRequestId, + // isAutoResourceManagementEnabled, displayName, dbDeploymentType, metadata); } } @@ -452,6 +503,7 @@ public ListDistributedAutonomousDatabasesRequest buildWithoutInvocationCallback( public Builder toBuilder() { return new Builder() .compartmentId(compartmentId) + .compartmentIdInSubtree(compartmentIdInSubtree) .privateEndpointId(privateEndpointId) .lifecycleState(lifecycleState) .limit(limit) @@ -459,6 +511,7 @@ public Builder toBuilder() { .sortOrder(sortOrder) .sortBy(sortBy) .opcRequestId(opcRequestId) + .isAutoResourceManagementEnabled(isAutoResourceManagementEnabled) .displayName(displayName) .dbDeploymentType(dbDeploymentType) .metadata(metadata); @@ -479,6 +532,7 @@ public String toString() { 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)); @@ -486,6 +540,8 @@ public String toString() { 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)); @@ -506,6 +562,8 @@ public boolean equals(Object o) { (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) @@ -513,6 +571,8 @@ public boolean equals(Object o) { && 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); @@ -525,6 +585,11 @@ public int 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()); @@ -536,6 +601,11 @@ public int 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) diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ListDistributedDatabasePrivateEndpointsRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ListDistributedDatabasePrivateEndpointsRequest.java index f755750ab51..5180b171f59 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ListDistributedDatabasePrivateEndpointsRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ListDistributedDatabasePrivateEndpointsRequest.java @@ -11,7 +11,7 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * ListDistributedDatabasePrivateEndpointsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ListDistributedDatabasePrivateEndpointsRequest extends com.oracle.bmc.requests.BmcRequest { @@ -22,6 +22,19 @@ public class ListDistributedDatabasePrivateEndpointsRequest 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.distributeddatabase.model.DistributedDatabasePrivateEndpoint .LifecycleState @@ -151,6 +164,24 @@ public Builder compartmentId(String 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. */ @@ -299,6 +330,7 @@ public Builder retryConfiguration( */ public Builder copy(ListDistributedDatabasePrivateEndpointsRequest o) { compartmentId(o.getCompartmentId()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); lifecycleState(o.getLifecycleState()); limit(o.getLimit()); page(o.getPage()); @@ -345,6 +377,7 @@ public ListDistributedDatabasePrivateEndpointsRequest buildWithoutInvocationCall ListDistributedDatabasePrivateEndpointsRequest request = new ListDistributedDatabasePrivateEndpointsRequest(); request.compartmentId = compartmentId; + request.compartmentIdInSubtree = compartmentIdInSubtree; request.lifecycleState = lifecycleState; request.limit = limit; request.page = page; @@ -353,8 +386,9 @@ public ListDistributedDatabasePrivateEndpointsRequest buildWithoutInvocationCall request.opcRequestId = opcRequestId; request.displayName = displayName; return request; - // new ListDistributedDatabasePrivateEndpointsRequest(compartmentId, lifecycleState, - // limit, page, sortOrder, sortBy, opcRequestId, displayName); + // new ListDistributedDatabasePrivateEndpointsRequest(compartmentId, + // compartmentIdInSubtree, lifecycleState, limit, page, sortOrder, sortBy, opcRequestId, + // displayName); } } @@ -366,6 +400,7 @@ public ListDistributedDatabasePrivateEndpointsRequest buildWithoutInvocationCall public Builder toBuilder() { return new Builder() .compartmentId(compartmentId) + .compartmentIdInSubtree(compartmentIdInSubtree) .lifecycleState(lifecycleState) .limit(limit) .page(page) @@ -390,6 +425,7 @@ public String toString() { 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)); @@ -414,6 +450,8 @@ public boolean equals(Object o) { (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) @@ -430,6 +468,11 @@ public int 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()); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ListDistributedDatabasesRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ListDistributedDatabasesRequest.java index 5743ae6a622..c74ec49582d 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ListDistributedDatabasesRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ListDistributedDatabasesRequest.java @@ -11,7 +11,7 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * ListDistributedDatabasesRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ListDistributedDatabasesRequest extends com.oracle.bmc.requests.BmcRequest { @@ -22,6 +22,19 @@ public class ListDistributedDatabasesRequest 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; @@ -29,11 +42,11 @@ public String getCompartmentId() { public String getPrivateEndpointId() { return privateEndpointId; } - /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + /** A filter to return only resources whose lifecycleState matches the specified value. */ private com.oracle.bmc.distributeddatabase.model.DistributedDatabase.LifecycleState lifecycleState; - /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + /** A filter to return only resources whose lifecycleState matches the specified value. */ public com.oracle.bmc.distributeddatabase.model.DistributedDatabase.LifecycleState getLifecycleState() { return lifecycleState; @@ -122,6 +135,21 @@ public SortBy getSortBy() { 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. @@ -135,23 +163,17 @@ public String getOpcRequestId() { public String getDisplayName() { return displayName; } - /** - * A filter to return only resources their dbDeploymentType matches the given dbDeploymentType. - */ - private com.oracle.bmc.distributeddatabase.model.DistributedDatabase.DbDeploymentType - dbDeploymentType; + /** A filter to return only resources whose dbDeploymentType matches the specified value. */ + private String dbDeploymentType; - /** - * A filter to return only resources their dbDeploymentType matches the given dbDeploymentType. - */ - public com.oracle.bmc.distributeddatabase.model.DistributedDatabase.DbDeploymentType - getDbDeploymentType() { + /** A filter to return only resources whose dbDeploymentType matches the specified value. */ + public String getDbDeploymentType() { return dbDeploymentType; } - /** Comma separated names of argument corresponding to which metadata need to be retrived. */ + /** Comma-separated argument names for which metadata should be retrieved. */ private String metadata; - /** Comma separated names of argument corresponding to which metadata need to be retrived. */ + /** Comma-separated argument names for which metadata should be retrieved. */ public String getMetadata() { return metadata; } @@ -176,6 +198,24 @@ public Builder compartmentId(String 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. */ @@ -192,14 +232,12 @@ public Builder privateEndpointId(String privateEndpointId) { return this; } - /** - * A filter to return only resources their lifecycleState matches the given lifecycleState. - */ + /** A filter to return only resources whose lifecycleState matches the specified value. */ private com.oracle.bmc.distributeddatabase.model.DistributedDatabase.LifecycleState lifecycleState = null; /** - * A filter to return only resources their lifecycleState matches the given lifecycleState. + * A filter to return only resources whose lifecycleState matches the specified value. * * @param lifecycleState the value to set * @return this builder instance @@ -289,6 +327,26 @@ public Builder opcRequestId(String 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. @@ -307,34 +365,25 @@ public Builder displayName(String displayName) { return this; } - /** - * A filter to return only resources their dbDeploymentType matches the given - * dbDeploymentType. - */ - private com.oracle.bmc.distributeddatabase.model.DistributedDatabase.DbDeploymentType - dbDeploymentType = null; + /** A filter to return only resources whose dbDeploymentType matches the specified value. */ + private String dbDeploymentType = null; /** - * A filter to return only resources their dbDeploymentType matches the given - * dbDeploymentType. + * 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( - com.oracle.bmc.distributeddatabase.model.DistributedDatabase.DbDeploymentType - dbDeploymentType) { + public Builder dbDeploymentType(String dbDeploymentType) { this.dbDeploymentType = dbDeploymentType; return this; } - /** - * Comma separated names of argument corresponding to which metadata need to be retrived. - */ + /** Comma-separated argument names for which metadata should be retrieved. */ private String metadata = null; /** - * Comma separated names of argument corresponding to which metadata need to be retrived. + * Comma-separated argument names for which metadata should be retrieved. * * @param metadata the value to set * @return this builder instance @@ -375,6 +424,7 @@ public Builder retryConfiguration( */ public Builder copy(ListDistributedDatabasesRequest o) { compartmentId(o.getCompartmentId()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); privateEndpointId(o.getPrivateEndpointId()); lifecycleState(o.getLifecycleState()); limit(o.getLimit()); @@ -382,6 +432,7 @@ public Builder copy(ListDistributedDatabasesRequest o) { sortOrder(o.getSortOrder()); sortBy(o.getSortBy()); opcRequestId(o.getOpcRequestId()); + isAutoResourceManagementEnabled(o.getIsAutoResourceManagementEnabled()); displayName(o.getDisplayName()); dbDeploymentType(o.getDbDeploymentType()); metadata(o.getMetadata()); @@ -420,6 +471,7 @@ public ListDistributedDatabasesRequest build() { public ListDistributedDatabasesRequest buildWithoutInvocationCallback() { ListDistributedDatabasesRequest request = new ListDistributedDatabasesRequest(); request.compartmentId = compartmentId; + request.compartmentIdInSubtree = compartmentIdInSubtree; request.privateEndpointId = privateEndpointId; request.lifecycleState = lifecycleState; request.limit = limit; @@ -427,13 +479,14 @@ public ListDistributedDatabasesRequest buildWithoutInvocationCallback() { 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, privateEndpointId, lifecycleState, - // limit, page, sortOrder, sortBy, opcRequestId, displayName, dbDeploymentType, - // metadata); + // new ListDistributedDatabasesRequest(compartmentId, compartmentIdInSubtree, + // privateEndpointId, lifecycleState, limit, page, sortOrder, sortBy, opcRequestId, + // isAutoResourceManagementEnabled, displayName, dbDeploymentType, metadata); } } @@ -445,6 +498,7 @@ public ListDistributedDatabasesRequest buildWithoutInvocationCallback() { public Builder toBuilder() { return new Builder() .compartmentId(compartmentId) + .compartmentIdInSubtree(compartmentIdInSubtree) .privateEndpointId(privateEndpointId) .lifecycleState(lifecycleState) .limit(limit) @@ -452,6 +506,7 @@ public Builder toBuilder() { .sortOrder(sortOrder) .sortBy(sortBy) .opcRequestId(opcRequestId) + .isAutoResourceManagementEnabled(isAutoResourceManagementEnabled) .displayName(displayName) .dbDeploymentType(dbDeploymentType) .metadata(metadata); @@ -472,6 +527,7 @@ public String toString() { 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)); @@ -479,6 +535,8 @@ public String toString() { 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)); @@ -498,6 +556,8 @@ public boolean equals(Object o) { 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) @@ -505,6 +565,8 @@ public boolean equals(Object o) { && 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); @@ -517,6 +579,11 @@ public int 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()); @@ -528,6 +595,11 @@ public int 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) diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ListWorkRequestErrorsRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ListWorkRequestErrorsRequest.java index 56e88dda852..d36e779d904 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ListWorkRequestErrorsRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ListWorkRequestErrorsRequest.java @@ -11,7 +11,7 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * ListWorkRequestErrorsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ListWorkRequestErrorsRequest extends com.oracle.bmc.requests.BmcRequest { @@ -50,17 +50,17 @@ public Integer getLimit() { return limit; } /** - * The field to sort by. Only one sort order may be provided. Default order for timeAccepted is + * 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 timeAccepted is + * 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 { - TimeAccepted("timeAccepted"), + Timestamp("timestamp"), ; private final String value; @@ -92,7 +92,7 @@ public static SortBy create(String key) { }; /** - * The field to sort by. Only one sort order may be provided. Default order for timeAccepted is + * The field to sort by. Only one sort order may be provided. Default order for timestamp is * descending. */ public SortBy getSortBy() { @@ -173,14 +173,14 @@ public Builder limit(Integer limit) { } /** - * The field to sort by. Only one sort order may be provided. Default order for timeAccepted - * is descending. + * 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 timeAccepted - * is descending. + * 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 diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ListWorkRequestLogsRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ListWorkRequestLogsRequest.java index 98a26dc6273..ad3896597ac 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ListWorkRequestLogsRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ListWorkRequestLogsRequest.java @@ -10,7 +10,7 @@ * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/distributeddatabase/ListWorkRequestLogsExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use ListWorkRequestLogsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ListWorkRequestLogsRequest extends com.oracle.bmc.requests.BmcRequest { /** The ID of the asynchronous request. */ @@ -48,17 +48,17 @@ public Integer getLimit() { return limit; } /** - * The field to sort by. Only one sort order may be provided. Default order for timeAccepted is + * 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 timeAccepted is + * 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 { - TimeAccepted("timeAccepted"), + Timestamp("timestamp"), ; private final String value; @@ -90,7 +90,7 @@ public static SortBy create(String key) { }; /** - * The field to sort by. Only one sort order may be provided. Default order for timeAccepted is + * The field to sort by. Only one sort order may be provided. Default order for timestamp is * descending. */ public SortBy getSortBy() { @@ -171,14 +171,14 @@ public Builder limit(Integer limit) { } /** - * The field to sort by. Only one sort order may be provided. Default order for timeAccepted - * is descending. + * 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 timeAccepted - * is descending. + * 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 diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ListWorkRequestsRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ListWorkRequestsRequest.java index a8d6b801f12..ff4b2fd4428 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ListWorkRequestsRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ListWorkRequestsRequest.java @@ -10,7 +10,7 @@ * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/distributeddatabase/ListWorkRequestsExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use ListWorkRequestsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@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. */ diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/MoveDistributedAutonomousDatabaseReplicationUnitRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/MoveDistributedAutonomousDatabaseReplicationUnitRequest.java index 2f124d95a3c..5b3a9a8e05e 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/MoveDistributedAutonomousDatabaseReplicationUnitRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/MoveDistributedAutonomousDatabaseReplicationUnitRequest.java @@ -11,16 +11,16 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * MoveDistributedAutonomousDatabaseReplicationUnitRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class MoveDistributedAutonomousDatabaseReplicationUnitRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.distributeddatabase.model .MoveDistributedAutonomousDatabaseReplicationUnitDetails> { - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ public String getDistributedAutonomousDatabaseId() { return distributedAutonomousDatabaseId; } @@ -104,11 +104,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId = null; /** - * Globally distributed autonomous database identifier + * Globally distributed autonomous database identifier. * * @param distributedAutonomousDatabaseId the value to set * @return this builder instance diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/MoveDistributedDatabaseReplicationUnitRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/MoveDistributedDatabaseReplicationUnitRequest.java index 4ad164a0e45..d1af72d7c3a 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/MoveDistributedDatabaseReplicationUnitRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/MoveDistributedDatabaseReplicationUnitRequest.java @@ -11,16 +11,16 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * MoveDistributedDatabaseReplicationUnitRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class MoveDistributedDatabaseReplicationUnitRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.distributeddatabase.model .MoveDistributedDatabaseReplicationUnitDetails> { - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ public String getDistributedDatabaseId() { return distributedDatabaseId; } @@ -97,11 +97,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId = null; /** - * Globally distributed database identifier + * Globally distributed database identifier. * * @param distributedDatabaseId the value to set * @return this builder instance diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/PatchDistributedAutonomousDatabaseRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/PatchDistributedAutonomousDatabaseRequest.java index 5197655816c..279ca256f4a 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/PatchDistributedAutonomousDatabaseRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/PatchDistributedAutonomousDatabaseRequest.java @@ -11,16 +11,16 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * PatchDistributedAutonomousDatabaseRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class PatchDistributedAutonomousDatabaseRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.distributeddatabase.model .PatchDistributedAutonomousDatabaseDetails> { - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ public String getDistributedAutonomousDatabaseId() { return distributedAutonomousDatabaseId; } @@ -101,11 +101,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId = null; /** - * Globally distributed autonomous database identifier + * Globally distributed autonomous database identifier. * * @param distributedAutonomousDatabaseId the value to set * @return this builder instance diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedDatabasePrivateEndpointRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/PatchDistributedDatabasePrivateEndpointRequest.java similarity index 94% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedDatabasePrivateEndpointRequest.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/PatchDistributedDatabasePrivateEndpointRequest.java index 929111394fa..d4dc5f67ff5 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedDatabasePrivateEndpointRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/PatchDistributedDatabasePrivateEndpointRequest.java @@ -2,19 +2,19 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.distributeddatabase.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 + com.oracle.bmc.distributeddatabase.model .PatchDistributedDatabasePrivateEndpointDetails> { /** Distributed Database PrivateEndpoint identifier */ @@ -25,13 +25,11 @@ public String getDistributedDatabasePrivateEndpointId() { return distributedDatabasePrivateEndpointId; } /** The payload containing instructions to patch the DistributedDatabasePrivateEndpoint. */ - private com.oracle.bmc.distributeddatabasev26.model - .PatchDistributedDatabasePrivateEndpointDetails + private com.oracle.bmc.distributeddatabase.model.PatchDistributedDatabasePrivateEndpointDetails patchDistributedDatabasePrivateEndpointDetails; /** The payload containing instructions to patch the DistributedDatabasePrivateEndpoint. */ - public com.oracle.bmc.distributeddatabasev26.model - .PatchDistributedDatabasePrivateEndpointDetails + public com.oracle.bmc.distributeddatabase.model.PatchDistributedDatabasePrivateEndpointDetails getPatchDistributedDatabasePrivateEndpointDetails() { return patchDistributedDatabasePrivateEndpointDetails; } @@ -86,8 +84,7 @@ public String getOpcRequestId() { */ @Override @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model - .PatchDistributedDatabasePrivateEndpointDetails + public com.oracle.bmc.distributeddatabase.model.PatchDistributedDatabasePrivateEndpointDetails getBody$() { return patchDistributedDatabasePrivateEndpointDetails; } @@ -95,7 +92,7 @@ public String getOpcRequestId() { public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< PatchDistributedDatabasePrivateEndpointRequest, - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .PatchDistributedDatabasePrivateEndpointDetails> { private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; @@ -116,7 +113,7 @@ public Builder distributedDatabasePrivateEndpointId( } /** The payload containing instructions to patch the DistributedDatabasePrivateEndpoint. */ - private com.oracle.bmc.distributeddatabasev26.model + private com.oracle.bmc.distributeddatabase.model .PatchDistributedDatabasePrivateEndpointDetails patchDistributedDatabasePrivateEndpointDetails = null; @@ -127,7 +124,7 @@ public Builder distributedDatabasePrivateEndpointId( * @return this builder instance */ public Builder patchDistributedDatabasePrivateEndpointDetails( - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .PatchDistributedDatabasePrivateEndpointDetails patchDistributedDatabasePrivateEndpointDetails) { this.patchDistributedDatabasePrivateEndpointDetails = @@ -264,7 +261,7 @@ public PatchDistributedDatabasePrivateEndpointRequest build() { */ @com.oracle.bmc.InternalSdk public Builder body$( - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .PatchDistributedDatabasePrivateEndpointDetails body) { patchDistributedDatabasePrivateEndpointDetails(body); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/PatchDistributedDatabaseRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/PatchDistributedDatabaseRequest.java index c8252c6b9fa..90f73d670f9 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/PatchDistributedDatabaseRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/PatchDistributedDatabaseRequest.java @@ -11,15 +11,15 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * PatchDistributedDatabaseRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class PatchDistributedDatabaseRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.distributeddatabase.model.PatchDistributedDatabaseDetails> { - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ public String getDistributedDatabaseId() { return distributedDatabaseId; } @@ -94,11 +94,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId = null; /** - * Globally distributed database identifier + * Globally distributed database identifier. * * @param distributedDatabaseId the value to set * @return this builder instance diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/RecreateFailedDistributedAutonomousDatabaseResourceRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/RecreateFailedDistributedAutonomousDatabaseResourceRequest.java index 50c63c881be..8d10e8025e3 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/RecreateFailedDistributedAutonomousDatabaseResourceRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/RecreateFailedDistributedAutonomousDatabaseResourceRequest.java @@ -11,31 +11,24 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * RecreateFailedDistributedAutonomousDatabaseResourceRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class RecreateFailedDistributedAutonomousDatabaseResourceRequest extends com.oracle.bmc.requests.BmcRequest { - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ public String getDistributedAutonomousDatabaseId() { return distributedAutonomousDatabaseId; } - /** Specify the name of Shard, Catalog or GSM. */ + /** Specify the name of the shard, catalog, or GSM. */ private String resourceName; - /** Specify the name of Shard, Catalog or GSM. */ + /** Specify the name of the shard, catalog, or GSM. */ public String getResourceName() { return resourceName; } - /** The shardGroup name example Shardgroupa, Shardgroupb. */ - private String shardGroup; - - /** The shardGroup name example Shardgroupa, Shardgroupb. */ - public String getShardGroup() { - return shardGroup; - } /** The client request ID for tracing. */ private String opcRequestId; @@ -86,11 +79,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId = null; /** - * Globally distributed autonomous database identifier + * Globally distributed autonomous database identifier. * * @param distributedAutonomousDatabaseId the value to set * @return this builder instance @@ -100,11 +93,11 @@ public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatab return this; } - /** Specify the name of Shard, Catalog or GSM. */ + /** Specify the name of the shard, catalog, or GSM. */ private String resourceName = null; /** - * Specify the name of Shard, Catalog or GSM. + * Specify the name of the shard, catalog, or GSM. * * @param resourceName the value to set * @return this builder instance @@ -114,20 +107,6 @@ public Builder resourceName(String resourceName) { return this; } - /** The shardGroup name example Shardgroupa, Shardgroupb. */ - private String shardGroup = null; - - /** - * The shardGroup name example Shardgroupa, Shardgroupb. - * - * @param shardGroup the value to set - * @return this builder instance - */ - public Builder shardGroup(String shardGroup) { - this.shardGroup = shardGroup; - return this; - } - /** The client request ID for tracing. */ private String opcRequestId = null; @@ -220,7 +199,6 @@ public Builder retryConfiguration( public Builder copy(RecreateFailedDistributedAutonomousDatabaseResourceRequest o) { distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); resourceName(o.getResourceName()); - shardGroup(o.getShardGroup()); opcRequestId(o.getOpcRequestId()); ifMatch(o.getIfMatch()); opcRetryToken(o.getOpcRetryToken()); @@ -265,13 +243,12 @@ public RecreateFailedDistributedAutonomousDatabaseResourceRequest build() { new RecreateFailedDistributedAutonomousDatabaseResourceRequest(); request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; request.resourceName = resourceName; - request.shardGroup = shardGroup; request.opcRequestId = opcRequestId; request.ifMatch = ifMatch; request.opcRetryToken = opcRetryToken; return request; // new - // RecreateFailedDistributedAutonomousDatabaseResourceRequest(distributedAutonomousDatabaseId, resourceName, shardGroup, opcRequestId, ifMatch, opcRetryToken); + // RecreateFailedDistributedAutonomousDatabaseResourceRequest(distributedAutonomousDatabaseId, resourceName, opcRequestId, ifMatch, opcRetryToken); } } @@ -284,7 +261,6 @@ public Builder toBuilder() { return new Builder() .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) .resourceName(resourceName) - .shardGroup(shardGroup) .opcRequestId(opcRequestId) .ifMatch(ifMatch) .opcRetryToken(opcRetryToken); @@ -307,7 +283,6 @@ public String toString() { sb.append(",distributedAutonomousDatabaseId=") .append(String.valueOf(this.distributedAutonomousDatabaseId)); sb.append(",resourceName=").append(String.valueOf(this.resourceName)); - sb.append(",shardGroup=").append(String.valueOf(this.shardGroup)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); @@ -330,7 +305,6 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) && java.util.Objects.equals(this.resourceName, other.resourceName) - && java.util.Objects.equals(this.shardGroup, other.shardGroup) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); @@ -346,7 +320,6 @@ public int hashCode() { ? 43 : this.distributedAutonomousDatabaseId.hashCode()); result = (result * PRIME) + (this.resourceName == null ? 43 : this.resourceName.hashCode()); - result = (result * PRIME) + (this.shardGroup == null ? 43 : this.shardGroup.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); result = diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/RecreateFailedDistributedDatabaseResourceRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/RecreateFailedDistributedDatabaseResourceRequest.java index 12a18a40a49..100034a5331 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/RecreateFailedDistributedDatabaseResourceRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/RecreateFailedDistributedDatabaseResourceRequest.java @@ -11,31 +11,24 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * RecreateFailedDistributedDatabaseResourceRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class RecreateFailedDistributedDatabaseResourceRequest extends com.oracle.bmc.requests.BmcRequest { - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ public String getDistributedDatabaseId() { return distributedDatabaseId; } - /** Specify the name of Shard, Catalog or GSM. */ + /** Specify the name of the shard, catalog, or GSM. */ private String resourceName; - /** Specify the name of Shard, Catalog or GSM. */ + /** Specify the name of the shard, catalog, or GSM. */ public String getResourceName() { return resourceName; } - /** The shardGroup name example Shardgroupa, Shardgroupb. */ - private String shardGroup; - - /** The shardGroup name example Shardgroupa, Shardgroupb. */ - public String getShardGroup() { - return shardGroup; - } /** * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code * if-match} parameter to the value of the etag from a previous GET or POST response for that @@ -86,11 +79,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId = null; /** - * Globally distributed database identifier + * Globally distributed database identifier. * * @param distributedDatabaseId the value to set * @return this builder instance @@ -100,11 +93,11 @@ public Builder distributedDatabaseId(String distributedDatabaseId) { return this; } - /** Specify the name of Shard, Catalog or GSM. */ + /** Specify the name of the shard, catalog, or GSM. */ private String resourceName = null; /** - * Specify the name of Shard, Catalog or GSM. + * Specify the name of the shard, catalog, or GSM. * * @param resourceName the value to set * @return this builder instance @@ -114,20 +107,6 @@ public Builder resourceName(String resourceName) { return this; } - /** The shardGroup name example Shardgroupa, Shardgroupb. */ - private String shardGroup = null; - - /** - * The shardGroup name example Shardgroupa, Shardgroupb. - * - * @param shardGroup the value to set - * @return this builder instance - */ - public Builder shardGroup(String shardGroup) { - this.shardGroup = shardGroup; - 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 @@ -220,7 +199,6 @@ public Builder retryConfiguration( public Builder copy(RecreateFailedDistributedDatabaseResourceRequest o) { distributedDatabaseId(o.getDistributedDatabaseId()); resourceName(o.getResourceName()); - shardGroup(o.getShardGroup()); ifMatch(o.getIfMatch()); opcRetryToken(o.getOpcRetryToken()); opcRequestId(o.getOpcRequestId()); @@ -264,13 +242,12 @@ public RecreateFailedDistributedDatabaseResourceRequest buildWithoutInvocationCa new RecreateFailedDistributedDatabaseResourceRequest(); request.distributedDatabaseId = distributedDatabaseId; request.resourceName = resourceName; - request.shardGroup = shardGroup; request.ifMatch = ifMatch; request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; return request; // new RecreateFailedDistributedDatabaseResourceRequest(distributedDatabaseId, - // resourceName, shardGroup, ifMatch, opcRetryToken, opcRequestId); + // resourceName, ifMatch, opcRetryToken, opcRequestId); } } @@ -283,7 +260,6 @@ public Builder toBuilder() { return new Builder() .distributedDatabaseId(distributedDatabaseId) .resourceName(resourceName) - .shardGroup(shardGroup) .ifMatch(ifMatch) .opcRetryToken(opcRetryToken) .opcRequestId(opcRequestId); @@ -305,7 +281,6 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); sb.append(",resourceName=").append(String.valueOf(this.resourceName)); - sb.append(",shardGroup=").append(String.valueOf(this.shardGroup)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); @@ -327,7 +302,6 @@ public boolean equals(Object 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.shardGroup, other.shardGroup) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); @@ -343,7 +317,6 @@ public int hashCode() { ? 43 : this.distributedDatabaseId.hashCode()); result = (result * PRIME) + (this.resourceName == null ? 43 : this.resourceName.hashCode()); - result = (result * PRIME) + (this.shardGroup == null ? 43 : this.shardGroup.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); result = (result * PRIME) diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ReinstateProxyInstanceRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ReinstateProxyInstanceRequest.java index 96ddcb1f25b..62287779eb7 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ReinstateProxyInstanceRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ReinstateProxyInstanceRequest.java @@ -11,7 +11,7 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * ReinstateProxyInstanceRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ReinstateProxyInstanceRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/RotateDistributedAutonomousDatabasePasswordsRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/RotateDistributedAutonomousDatabasePasswordsRequest.java index c05360b258b..475dd20bb3e 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/RotateDistributedAutonomousDatabasePasswordsRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/RotateDistributedAutonomousDatabasePasswordsRequest.java @@ -11,17 +11,55 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * RotateDistributedAutonomousDatabasePasswordsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class RotateDistributedAutonomousDatabasePasswordsRequest - extends com.oracle.bmc.requests.BmcRequest { + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabase.model + .RotateDistributedAutonomousDatabasePasswordsDetails> { - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId; - /** Globally distributed autonomous database identifier */ + /** 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.distributeddatabase.model + .RotateDistributedAutonomousDatabasePasswordsDetails + rotateDistributedAutonomousDatabasePasswordsDetails; + + /** + * Details to rotate passwords for shards and catalogs in the Globally distributed autonomous + * database. + */ + public com.oracle.bmc.distributeddatabase.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; @@ -46,37 +84,33 @@ public String getOpcRequestId() { 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. + * Alternative accessor for the body parameter. + * + * @return body parameter */ - public String getOpcRetryToken() { - return opcRetryToken; + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabase.model + .RotateDistributedAutonomousDatabasePasswordsDetails + getBody$() { + return rotateDistributedAutonomousDatabasePasswordsDetails; } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - RotateDistributedAutonomousDatabasePasswordsRequest, java.lang.Void> { + RotateDistributedAutonomousDatabasePasswordsRequest, + com.oracle.bmc.distributeddatabase.model + .RotateDistributedAutonomousDatabasePasswordsDetails> { private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId = null; /** - * Globally distributed autonomous database identifier + * Globally distributed autonomous database identifier. * * @param distributedAutonomousDatabaseId the value to set * @return this builder instance @@ -86,6 +120,54 @@ public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatab return this; } + /** + * Details to rotate passwords for shards and catalogs in the Globally distributed + * autonomous database. + */ + private com.oracle.bmc.distributeddatabase.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.distributeddatabase.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; @@ -122,30 +204,6 @@ public Builder ifMatch(String 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. * @@ -177,9 +235,11 @@ public Builder retryConfiguration( */ public Builder copy(RotateDistributedAutonomousDatabasePasswordsRequest o) { distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); + rotateDistributedAutonomousDatabasePasswordsDetails( + o.getRotateDistributedAutonomousDatabasePasswordsDetails()); + opcRetryToken(o.getOpcRetryToken()); opcRequestId(o.getOpcRequestId()); ifMatch(o.getIfMatch()); - opcRetryToken(o.getOpcRetryToken()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -205,6 +265,21 @@ public RotateDistributedAutonomousDatabasePasswordsRequest build() { 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.distributeddatabase.model + .RotateDistributedAutonomousDatabasePasswordsDetails + body) { + rotateDistributedAutonomousDatabasePasswordsDetails(body); + return this; + } + /** * Build the instance of RotateDistributedAutonomousDatabasePasswordsRequest as configured * by this builder @@ -220,13 +295,16 @@ public RotateDistributedAutonomousDatabasePasswordsRequest build() { RotateDistributedAutonomousDatabasePasswordsRequest request = new RotateDistributedAutonomousDatabasePasswordsRequest(); request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + request.rotateDistributedAutonomousDatabasePasswordsDetails = + rotateDistributedAutonomousDatabasePasswordsDetails; + request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; request.ifMatch = ifMatch; - request.opcRetryToken = opcRetryToken; return request; // new // RotateDistributedAutonomousDatabasePasswordsRequest(distributedAutonomousDatabaseId, - // opcRequestId, ifMatch, opcRetryToken); + // rotateDistributedAutonomousDatabasePasswordsDetails, opcRetryToken, opcRequestId, + // ifMatch); } } @@ -238,9 +316,11 @@ public RotateDistributedAutonomousDatabasePasswordsRequest build() { public Builder toBuilder() { return new Builder() .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .rotateDistributedAutonomousDatabasePasswordsDetails( + rotateDistributedAutonomousDatabasePasswordsDetails) + .opcRetryToken(opcRetryToken) .opcRequestId(opcRequestId) - .ifMatch(ifMatch) - .opcRetryToken(opcRetryToken); + .ifMatch(ifMatch); } /** @@ -259,9 +339,11 @@ public String toString() { 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(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(")"); return sb.toString(); } @@ -280,9 +362,12 @@ public boolean equals(Object 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) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + && java.util.Objects.equals(this.ifMatch, other.ifMatch); } @Override @@ -294,11 +379,17 @@ public int hashCode() { + (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.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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/RotateDistributedDatabasePasswordsRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/RotateDistributedDatabasePasswordsRequest.java index 12270b128b2..990ffb1c3fb 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/RotateDistributedDatabasePasswordsRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/RotateDistributedDatabasePasswordsRequest.java @@ -11,17 +11,47 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * RotateDistributedDatabasePasswordsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class RotateDistributedDatabasePasswordsRequest - extends com.oracle.bmc.requests.BmcRequest { + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.distributeddatabase.model + .RotateDistributedDatabasePasswordsDetails> { - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId; - /** Globally distributed database identifier */ + /** 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.distributeddatabase.model.RotateDistributedDatabasePasswordsDetails + rotateDistributedDatabasePasswordsDetails; + + /** Details to rotate passwords for shards and catalogs in the Globally distributed database. */ + public com.oracle.bmc.distributeddatabase.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; @@ -46,37 +76,32 @@ public String getOpcRequestId() { 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. + * Alternative accessor for the body parameter. + * + * @return body parameter */ - public String getOpcRetryToken() { - return opcRetryToken; + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.distributeddatabase.model.RotateDistributedDatabasePasswordsDetails + getBody$() { + return rotateDistributedDatabasePasswordsDetails; } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - RotateDistributedDatabasePasswordsRequest, java.lang.Void> { + RotateDistributedDatabasePasswordsRequest, + com.oracle.bmc.distributeddatabase.model + .RotateDistributedDatabasePasswordsDetails> { private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId = null; /** - * Globally distributed database identifier + * Globally distributed database identifier. * * @param distributedDatabaseId the value to set * @return this builder instance @@ -86,6 +111,50 @@ public Builder distributedDatabaseId(String distributedDatabaseId) { return this; } + /** + * Details to rotate passwords for shards and catalogs in the Globally distributed database. + */ + private com.oracle.bmc.distributeddatabase.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.distributeddatabase.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; @@ -122,30 +191,6 @@ public Builder ifMatch(String 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. * @@ -177,9 +222,11 @@ public Builder retryConfiguration( */ public Builder copy(RotateDistributedDatabasePasswordsRequest o) { distributedDatabaseId(o.getDistributedDatabaseId()); + rotateDistributedDatabasePasswordsDetails( + o.getRotateDistributedDatabasePasswordsDetails()); + opcRetryToken(o.getOpcRetryToken()); opcRequestId(o.getOpcRequestId()); ifMatch(o.getIfMatch()); - opcRetryToken(o.getOpcRetryToken()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -204,6 +251,20 @@ public RotateDistributedDatabasePasswordsRequest build() { 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.distributeddatabase.model.RotateDistributedDatabasePasswordsDetails + body) { + rotateDistributedDatabasePasswordsDetails(body); + return this; + } + /** * Build the instance of RotateDistributedDatabasePasswordsRequest as configured by this * builder @@ -218,12 +279,14 @@ public RotateDistributedDatabasePasswordsRequest buildWithoutInvocationCallback( RotateDistributedDatabasePasswordsRequest request = new RotateDistributedDatabasePasswordsRequest(); request.distributedDatabaseId = distributedDatabaseId; + request.rotateDistributedDatabasePasswordsDetails = + rotateDistributedDatabasePasswordsDetails; + request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; request.ifMatch = ifMatch; - request.opcRetryToken = opcRetryToken; return request; - // new RotateDistributedDatabasePasswordsRequest(distributedDatabaseId, opcRequestId, - // ifMatch, opcRetryToken); + // new RotateDistributedDatabasePasswordsRequest(distributedDatabaseId, + // rotateDistributedDatabasePasswordsDetails, opcRetryToken, opcRequestId, ifMatch); } } @@ -235,9 +298,11 @@ public RotateDistributedDatabasePasswordsRequest buildWithoutInvocationCallback( public Builder toBuilder() { return new Builder() .distributedDatabaseId(distributedDatabaseId) + .rotateDistributedDatabasePasswordsDetails( + rotateDistributedDatabasePasswordsDetails) + .opcRetryToken(opcRetryToken) .opcRequestId(opcRequestId) - .ifMatch(ifMatch) - .opcRetryToken(opcRetryToken); + .ifMatch(ifMatch); } /** @@ -255,9 +320,11 @@ public String toString() { 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(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(")"); return sb.toString(); } @@ -275,9 +342,12 @@ public boolean equals(Object o) { (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) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + && java.util.Objects.equals(this.ifMatch, other.ifMatch); } @Override @@ -289,11 +359,16 @@ public int hashCode() { + (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.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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ScaleDistributedAutonomousDatabaseGsmsRequest.java similarity index 95% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ScaleDistributedAutonomousDatabaseGsmsRequest.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ScaleDistributedAutonomousDatabaseGsmsRequest.java index 488e44e91fb..4b8d95a6d08 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ScaleDistributedAutonomousDatabaseGsmsRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ScaleDistributedAutonomousDatabaseGsmsRequest.java @@ -2,28 +2,27 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.distributeddatabase.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 + com.oracle.bmc.distributeddatabase.model .ScaleDistributedAutonomousDatabaseGsmsDetails> { /** Empty payload to scale GSM instances for the distributed autonomous database. */ - private com.oracle.bmc.distributeddatabasev26.model - .ScaleDistributedAutonomousDatabaseGsmsDetails + private com.oracle.bmc.distributeddatabase.model.ScaleDistributedAutonomousDatabaseGsmsDetails scaleDistributedAutonomousDatabaseGsmsDetails; /** Empty payload to scale GSM instances for the distributed autonomous database. */ - public com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedAutonomousDatabaseGsmsDetails + public com.oracle.bmc.distributeddatabase.model.ScaleDistributedAutonomousDatabaseGsmsDetails getScaleDistributedAutonomousDatabaseGsmsDetails() { return scaleDistributedAutonomousDatabaseGsmsDetails; } @@ -85,7 +84,7 @@ public String getIfMatch() { */ @Override @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedAutonomousDatabaseGsmsDetails + public com.oracle.bmc.distributeddatabase.model.ScaleDistributedAutonomousDatabaseGsmsDetails getBody$() { return scaleDistributedAutonomousDatabaseGsmsDetails; } @@ -93,13 +92,13 @@ public String getIfMatch() { public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< ScaleDistributedAutonomousDatabaseGsmsRequest, - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.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 + private com.oracle.bmc.distributeddatabase.model .ScaleDistributedAutonomousDatabaseGsmsDetails scaleDistributedAutonomousDatabaseGsmsDetails = null; @@ -110,7 +109,7 @@ public static class Builder * @return this builder instance */ public Builder scaleDistributedAutonomousDatabaseGsmsDetails( - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .ScaleDistributedAutonomousDatabaseGsmsDetails scaleDistributedAutonomousDatabaseGsmsDetails) { this.scaleDistributedAutonomousDatabaseGsmsDetails = @@ -261,7 +260,7 @@ public ScaleDistributedAutonomousDatabaseGsmsRequest build() { */ @com.oracle.bmc.InternalSdk public Builder body$( - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .ScaleDistributedAutonomousDatabaseGsmsDetails body) { scaleDistributedAutonomousDatabaseGsmsDetails(body); diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ScaleDistributedDatabaseGsmsRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ScaleDistributedDatabaseGsmsRequest.java similarity index 93% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ScaleDistributedDatabaseGsmsRequest.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ScaleDistributedDatabaseGsmsRequest.java index aa158460ba1..060f940797b 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ScaleDistributedDatabaseGsmsRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ScaleDistributedDatabaseGsmsRequest.java @@ -2,26 +2,26 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.distributeddatabase.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.distributeddatabase.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> { + com.oracle.bmc.distributeddatabase.model.ScaleDistributedDatabaseGsmsDetails> { /** Empty payload to scale GSM instances for the distributed database. */ - private com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedDatabaseGsmsDetails + private com.oracle.bmc.distributeddatabase.model.ScaleDistributedDatabaseGsmsDetails scaleDistributedDatabaseGsmsDetails; /** Empty payload to scale GSM instances for the distributed database. */ - public com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedDatabaseGsmsDetails + public com.oracle.bmc.distributeddatabase.model.ScaleDistributedDatabaseGsmsDetails getScaleDistributedDatabaseGsmsDetails() { return scaleDistributedDatabaseGsmsDetails; } @@ -83,21 +83,19 @@ public String getIfMatch() { */ @Override @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedDatabaseGsmsDetails - getBody$() { + public com.oracle.bmc.distributeddatabase.model.ScaleDistributedDatabaseGsmsDetails getBody$() { return scaleDistributedDatabaseGsmsDetails; } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< ScaleDistributedDatabaseGsmsRequest, - com.oracle.bmc.distributeddatabasev26.model - .ScaleDistributedDatabaseGsmsDetails> { + com.oracle.bmc.distributeddatabase.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 + private com.oracle.bmc.distributeddatabase.model.ScaleDistributedDatabaseGsmsDetails scaleDistributedDatabaseGsmsDetails = null; /** @@ -107,7 +105,7 @@ public static class Builder * @return this builder instance */ public Builder scaleDistributedDatabaseGsmsDetails( - com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedDatabaseGsmsDetails + com.oracle.bmc.distributeddatabase.model.ScaleDistributedDatabaseGsmsDetails scaleDistributedDatabaseGsmsDetails) { this.scaleDistributedDatabaseGsmsDetails = scaleDistributedDatabaseGsmsDetails; return this; @@ -253,8 +251,7 @@ public ScaleDistributedDatabaseGsmsRequest build() { */ @com.oracle.bmc.InternalSdk public Builder body$( - com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedDatabaseGsmsDetails - body) { + com.oracle.bmc.distributeddatabase.model.ScaleDistributedDatabaseGsmsDetails body) { scaleDistributedDatabaseGsmsDetails(body); return this; } diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/StartDistributedAutonomousDatabaseRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/StartDistributedAutonomousDatabaseRequest.java index 097492c4a05..cabefc0aabb 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/StartDistributedAutonomousDatabaseRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/StartDistributedAutonomousDatabaseRequest.java @@ -11,14 +11,14 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * StartDistributedAutonomousDatabaseRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class StartDistributedAutonomousDatabaseRequest extends com.oracle.bmc.requests.BmcRequest { - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ public String getDistributedAutonomousDatabaseId() { return distributedAutonomousDatabaseId; } @@ -72,11 +72,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId = null; /** - * Globally distributed autonomous database identifier + * Globally distributed autonomous database identifier. * * @param distributedAutonomousDatabaseId the value to set * @return this builder instance diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/StartDistributedDatabaseRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/StartDistributedDatabaseRequest.java index 77433040127..745dcc6937d 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/StartDistributedDatabaseRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/StartDistributedDatabaseRequest.java @@ -11,14 +11,14 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * StartDistributedDatabaseRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class StartDistributedDatabaseRequest extends com.oracle.bmc.requests.BmcRequest { - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ public String getDistributedDatabaseId() { return distributedDatabaseId; } @@ -72,11 +72,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId = null; /** - * Globally distributed database identifier + * Globally distributed database identifier. * * @param distributedDatabaseId the value to set * @return this builder instance diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/StopDistributedAutonomousDatabaseRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/StopDistributedAutonomousDatabaseRequest.java index 36e013366e7..f23c12273ba 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/StopDistributedAutonomousDatabaseRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/StopDistributedAutonomousDatabaseRequest.java @@ -11,14 +11,14 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * StopDistributedAutonomousDatabaseRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class StopDistributedAutonomousDatabaseRequest extends com.oracle.bmc.requests.BmcRequest { - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ public String getDistributedAutonomousDatabaseId() { return distributedAutonomousDatabaseId; } @@ -72,11 +72,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId = null; /** - * Globally distributed autonomous database identifier + * Globally distributed autonomous database identifier. * * @param distributedAutonomousDatabaseId the value to set * @return this builder instance diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/StopDistributedDatabaseRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/StopDistributedDatabaseRequest.java index f51914db760..d7f87f983fd 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/StopDistributedDatabaseRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/StopDistributedDatabaseRequest.java @@ -11,14 +11,14 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * StopDistributedDatabaseRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class StopDistributedDatabaseRequest extends com.oracle.bmc.requests.BmcRequest { - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ public String getDistributedDatabaseId() { return distributedDatabaseId; } @@ -72,11 +72,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId = null; /** - * Globally distributed database identifier + * Globally distributed database identifier. * * @param distributedDatabaseId the value to set * @return this builder instance diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/UpdateDistributedAutonomousDatabaseRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/UpdateDistributedAutonomousDatabaseRequest.java index 01bc16d2cf6..2d01562c312 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/UpdateDistributedAutonomousDatabaseRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/UpdateDistributedAutonomousDatabaseRequest.java @@ -11,16 +11,16 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * UpdateDistributedAutonomousDatabaseRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class UpdateDistributedAutonomousDatabaseRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.distributeddatabase.model .UpdateDistributedAutonomousDatabaseDetails> { - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ public String getDistributedAutonomousDatabaseId() { return distributedAutonomousDatabaseId; } @@ -78,11 +78,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId = null; /** - * Globally distributed autonomous database identifier + * Globally distributed autonomous database identifier. * * @param distributedAutonomousDatabaseId the value to set * @return this builder instance diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/UpdateDistributedDatabasePrivateEndpointRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/UpdateDistributedDatabasePrivateEndpointRequest.java index 990acfefdd1..c248faff428 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/UpdateDistributedDatabasePrivateEndpointRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/UpdateDistributedDatabasePrivateEndpointRequest.java @@ -11,7 +11,7 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * UpdateDistributedDatabasePrivateEndpointRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class UpdateDistributedDatabasePrivateEndpointRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.distributeddatabase.model diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/UpdateDistributedDatabaseRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/UpdateDistributedDatabaseRequest.java index 3f2009bcb0d..74d44e3425b 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/UpdateDistributedDatabaseRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/UpdateDistributedDatabaseRequest.java @@ -11,15 +11,15 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * UpdateDistributedDatabaseRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class UpdateDistributedDatabaseRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.distributeddatabase.model.UpdateDistributedDatabaseDetails> { - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ public String getDistributedDatabaseId() { return distributedDatabaseId; } @@ -75,11 +75,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId = null; /** - * Globally distributed database identifier + * Globally distributed database identifier. * * @param distributedDatabaseId the value to set * @return this builder instance diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest.java deleted file mode 100644 index 884f00bb182..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest.java +++ /dev/null @@ -1,410 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.requests; - -import com.oracle.bmc.distributeddatabase.model.*; -/** - * Example: Click here to see how to use - * UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest. - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest - extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabase.model - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails> { - - /** Globally distributed autonomous database identifier */ - private String distributedAutonomousDatabaseId; - - /** Globally distributed autonomous database identifier */ - public String getDistributedAutonomousDatabaseId() { - return distributedAutonomousDatabaseId; - } - /** - * Details required to upload the CA signed certificates to GSM instances of Globally - * distributed autonomous database and generate the wallets. - */ - private com.oracle.bmc.distributeddatabase.model - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails - uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails; - - /** - * Details required to upload the CA signed certificates to GSM instances of Globally - * distributed autonomous database and generate the wallets. - */ - public com.oracle.bmc.distributeddatabase.model - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails - getUploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails() { - return uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails; - } - /** 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.distributeddatabase.model - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails - getBody$() { - return uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest, - com.oracle.bmc.distributeddatabase.model - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails> { - 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 upload the CA signed certificates to GSM instances of Globally - * distributed autonomous database and generate the wallets. - */ - private com.oracle.bmc.distributeddatabase.model - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails - uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails = null; - - /** - * Details required to upload the CA signed certificates to GSM instances of Globally - * distributed autonomous database and generate the wallets. - * - * @param uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails the - * value to set - * @return this builder instance - */ - public Builder uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails( - com.oracle.bmc.distributeddatabase.model - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails - uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails) { - this.uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails = - uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails; - 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( - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest o) { - distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); - uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails( - o - .getUploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails()); - opcRequestId(o.getOpcRequestId()); - ifMatch(o.getIfMatch()); - opcRetryToken(o.getOpcRetryToken()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of - * UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest 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 - * UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest - */ - public UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest - build() { - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest 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.distributeddatabase.model - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails - body) { - uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails(body); - return this; - } - - /** - * Build the instance of - * UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest 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 - * UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest - */ - public UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest - buildWithoutInvocationCallback() { - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest request = - new UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest(); - request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; - request.uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails = - uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - request.opcRetryToken = opcRetryToken; - return request; - // new - // UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest(distributedAutonomousDatabaseId, uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails, 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) - .uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails( - uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails) - .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(",uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails=") - .append( - String.valueOf( - this - .uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails)); - 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 - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest)) { - return false; - } - - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest other = - (UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest) o; - return super.equals(o) - && java.util.Objects.equals( - this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) - && java.util.Objects.equals( - this - .uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails, - other.uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails) - && 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 - .uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails - == null - ? 43 - : this - .uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails - .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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest.java deleted file mode 100644 index dc8741500fa..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest.java +++ /dev/null @@ -1,397 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.requests; - -import com.oracle.bmc.distributeddatabase.model.*; -/** - * Example: Click here to see how to use - * UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest. - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest - extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabase.model - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails> { - - /** Globally distributed database identifier */ - private String distributedDatabaseId; - - /** Globally distributed database identifier */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; - } - /** - * Details required to upload the CA signed certificates to GSM instances of Globally - * distributed database and generate the wallets. - */ - private com.oracle.bmc.distributeddatabase.model - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails - uploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails; - - /** - * Details required to upload the CA signed certificates to GSM instances of Globally - * distributed database and generate the wallets. - */ - public com.oracle.bmc.distributeddatabase.model - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails - getUploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails() { - return uploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails; - } - /** 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.distributeddatabase.model - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails - getBody$() { - return uploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest, - com.oracle.bmc.distributeddatabase.model - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails> { - 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 upload the CA signed certificates to GSM instances of Globally - * distributed database and generate the wallets. - */ - private com.oracle.bmc.distributeddatabase.model - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails - uploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails = null; - - /** - * Details required to upload the CA signed certificates to GSM instances of Globally - * distributed database and generate the wallets. - * - * @param uploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails the value to - * set - * @return this builder instance - */ - public Builder uploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails( - com.oracle.bmc.distributeddatabase.model - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails - uploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails) { - this.uploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails = - uploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails; - 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(UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - uploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails( - o.getUploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails()); - opcRequestId(o.getOpcRequestId()); - ifMatch(o.getIfMatch()); - opcRetryToken(o.getOpcRetryToken()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest - * 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 UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest - */ - public UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest build() { - UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest 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.distributeddatabase.model - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails - body) { - uploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails(body); - return this; - } - - /** - * Build the instance of UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest - * 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 UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest - */ - public UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest - buildWithoutInvocationCallback() { - UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest request = - new UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.uploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails = - uploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - request.opcRetryToken = opcRetryToken; - return request; - // new - // UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest(distributedDatabaseId, uploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails, 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) - .uploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails( - uploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails) - .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(",uploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails=") - .append( - String.valueOf( - this - .uploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails)); - 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 UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest)) { - return false; - } - - UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest other = - (UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) - && java.util.Objects.equals( - this.uploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails, - other.uploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails) - && 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.uploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails - == null - ? 43 - : this - .uploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails - .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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ValidateDistributedAutonomousDatabaseCaBundleRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ValidateDistributedAutonomousDatabaseCaBundleRequest.java index 260943e4afb..eddd950bb73 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ValidateDistributedAutonomousDatabaseCaBundleRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ValidateDistributedAutonomousDatabaseCaBundleRequest.java @@ -11,14 +11,14 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * ValidateDistributedAutonomousDatabaseCaBundleRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ValidateDistributedAutonomousDatabaseCaBundleRequest extends com.oracle.bmc.requests.BmcRequest { - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ public String getDistributedAutonomousDatabaseId() { return distributedAutonomousDatabaseId; } @@ -72,11 +72,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId = null; /** - * Globally distributed autonomous database identifier + * Globally distributed autonomous database identifier. * * @param distributedAutonomousDatabaseId the value to set * @return this builder instance diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ValidateDistributedAutonomousDatabaseNetworkRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ValidateDistributedAutonomousDatabaseNetworkRequest.java index db05d7241e1..2c8349529fd 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ValidateDistributedAutonomousDatabaseNetworkRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ValidateDistributedAutonomousDatabaseNetworkRequest.java @@ -11,14 +11,14 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * ValidateDistributedAutonomousDatabaseNetworkRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ValidateDistributedAutonomousDatabaseNetworkRequest extends com.oracle.bmc.requests.BmcRequest { - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ public String getDistributedAutonomousDatabaseId() { return distributedAutonomousDatabaseId; } @@ -29,20 +29,6 @@ public String getDistributedAutonomousDatabaseId() { public Boolean getIsSurrogate() { return isSurrogate; } - /** Specify the name of shard or catalog. */ - private String resourceName; - - /** Specify the name of shard or catalog. */ - public String getResourceName() { - return resourceName; - } - /** The shardGroup name example Shardgroupa, Shardgroupb. */ - private String shardGroup; - - /** The shardGroup name example Shardgroupa, Shardgroupb. */ - public String getShardGroup() { - return shardGroup; - } /** * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code * if-match} parameter to the value of the etag from a previous GET or POST response for that @@ -93,11 +79,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed autonomous database identifier */ + /** Globally distributed autonomous database identifier. */ private String distributedAutonomousDatabaseId = null; /** - * Globally distributed autonomous database identifier + * Globally distributed autonomous database identifier. * * @param distributedAutonomousDatabaseId the value to set * @return this builder instance @@ -121,34 +107,6 @@ public Builder isSurrogate(Boolean isSurrogate) { return this; } - /** Specify the name of shard or catalog. */ - private String resourceName = null; - - /** - * Specify the name of shard or catalog. - * - * @param resourceName the value to set - * @return this builder instance - */ - public Builder resourceName(String resourceName) { - this.resourceName = resourceName; - return this; - } - - /** The shardGroup name example Shardgroupa, Shardgroupb. */ - private String shardGroup = null; - - /** - * The shardGroup name example Shardgroupa, Shardgroupb. - * - * @param shardGroup the value to set - * @return this builder instance - */ - public Builder shardGroup(String shardGroup) { - this.shardGroup = shardGroup; - 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 @@ -241,8 +199,6 @@ public Builder retryConfiguration( public Builder copy(ValidateDistributedAutonomousDatabaseNetworkRequest o) { distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); isSurrogate(o.getIsSurrogate()); - resourceName(o.getResourceName()); - shardGroup(o.getShardGroup()); ifMatch(o.getIfMatch()); opcRetryToken(o.getOpcRetryToken()); opcRequestId(o.getOpcRequestId()); @@ -287,15 +243,13 @@ public ValidateDistributedAutonomousDatabaseNetworkRequest build() { new ValidateDistributedAutonomousDatabaseNetworkRequest(); request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; request.isSurrogate = isSurrogate; - request.resourceName = resourceName; - request.shardGroup = shardGroup; request.ifMatch = ifMatch; request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; return request; // new // ValidateDistributedAutonomousDatabaseNetworkRequest(distributedAutonomousDatabaseId, - // isSurrogate, resourceName, shardGroup, ifMatch, opcRetryToken, opcRequestId); + // isSurrogate, ifMatch, opcRetryToken, opcRequestId); } } @@ -308,8 +262,6 @@ public Builder toBuilder() { return new Builder() .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) .isSurrogate(isSurrogate) - .resourceName(resourceName) - .shardGroup(shardGroup) .ifMatch(ifMatch) .opcRetryToken(opcRetryToken) .opcRequestId(opcRequestId); @@ -332,8 +284,6 @@ public String toString() { sb.append(",distributedAutonomousDatabaseId=") .append(String.valueOf(this.distributedAutonomousDatabaseId)); sb.append(",isSurrogate=").append(String.valueOf(this.isSurrogate)); - sb.append(",resourceName=").append(String.valueOf(this.resourceName)); - sb.append(",shardGroup=").append(String.valueOf(this.shardGroup)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); @@ -356,8 +306,6 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) && java.util.Objects.equals(this.isSurrogate, other.isSurrogate) - && java.util.Objects.equals(this.resourceName, other.resourceName) - && java.util.Objects.equals(this.shardGroup, other.shardGroup) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); @@ -373,8 +321,6 @@ public int hashCode() { ? 43 : this.distributedAutonomousDatabaseId.hashCode()); result = (result * PRIME) + (this.isSurrogate == null ? 43 : this.isSurrogate.hashCode()); - result = (result * PRIME) + (this.resourceName == null ? 43 : this.resourceName.hashCode()); - result = (result * PRIME) + (this.shardGroup == null ? 43 : this.shardGroup.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); result = (result * PRIME) diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ValidateDistributedDatabaseNetworkRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ValidateDistributedDatabaseNetworkRequest.java index 88570330eb9..bd796ad0a54 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ValidateDistributedDatabaseNetworkRequest.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/ValidateDistributedDatabaseNetworkRequest.java @@ -11,14 +11,14 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * ValidateDistributedDatabaseNetworkRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ValidateDistributedDatabaseNetworkRequest extends com.oracle.bmc.requests.BmcRequest { - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ public String getDistributedDatabaseId() { return distributedDatabaseId; } @@ -29,20 +29,6 @@ public String getDistributedDatabaseId() { public Boolean getIsSurrogate() { return isSurrogate; } - /** Specify the name of shard or catalog. */ - private String resourceName; - - /** Specify the name of shard or catalog. */ - public String getResourceName() { - return resourceName; - } - /** The shardGroup name example Shardgroupa, Shardgroupb. */ - private String shardGroup; - - /** The shardGroup name example Shardgroupa, Shardgroupb. */ - public String getShardGroup() { - return shardGroup; - } /** * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code * if-match} parameter to the value of the etag from a previous GET or POST response for that @@ -93,11 +79,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Globally distributed database identifier */ + /** Globally distributed database identifier. */ private String distributedDatabaseId = null; /** - * Globally distributed database identifier + * Globally distributed database identifier. * * @param distributedDatabaseId the value to set * @return this builder instance @@ -121,34 +107,6 @@ public Builder isSurrogate(Boolean isSurrogate) { return this; } - /** Specify the name of shard or catalog. */ - private String resourceName = null; - - /** - * Specify the name of shard or catalog. - * - * @param resourceName the value to set - * @return this builder instance - */ - public Builder resourceName(String resourceName) { - this.resourceName = resourceName; - return this; - } - - /** The shardGroup name example Shardgroupa, Shardgroupb. */ - private String shardGroup = null; - - /** - * The shardGroup name example Shardgroupa, Shardgroupb. - * - * @param shardGroup the value to set - * @return this builder instance - */ - public Builder shardGroup(String shardGroup) { - this.shardGroup = shardGroup; - 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 @@ -241,8 +199,6 @@ public Builder retryConfiguration( public Builder copy(ValidateDistributedDatabaseNetworkRequest o) { distributedDatabaseId(o.getDistributedDatabaseId()); isSurrogate(o.getIsSurrogate()); - resourceName(o.getResourceName()); - shardGroup(o.getShardGroup()); ifMatch(o.getIfMatch()); opcRetryToken(o.getOpcRetryToken()); opcRequestId(o.getOpcRequestId()); @@ -285,14 +241,12 @@ public ValidateDistributedDatabaseNetworkRequest buildWithoutInvocationCallback( new ValidateDistributedDatabaseNetworkRequest(); request.distributedDatabaseId = distributedDatabaseId; request.isSurrogate = isSurrogate; - request.resourceName = resourceName; - request.shardGroup = shardGroup; request.ifMatch = ifMatch; request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; return request; // new ValidateDistributedDatabaseNetworkRequest(distributedDatabaseId, isSurrogate, - // resourceName, shardGroup, ifMatch, opcRetryToken, opcRequestId); + // ifMatch, opcRetryToken, opcRequestId); } } @@ -305,8 +259,6 @@ public Builder toBuilder() { return new Builder() .distributedDatabaseId(distributedDatabaseId) .isSurrogate(isSurrogate) - .resourceName(resourceName) - .shardGroup(shardGroup) .ifMatch(ifMatch) .opcRetryToken(opcRetryToken) .opcRequestId(opcRequestId); @@ -328,8 +280,6 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); sb.append(",isSurrogate=").append(String.valueOf(this.isSurrogate)); - sb.append(",resourceName=").append(String.valueOf(this.resourceName)); - sb.append(",shardGroup=").append(String.valueOf(this.shardGroup)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); @@ -351,8 +301,6 @@ public boolean equals(Object 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.resourceName, other.resourceName) - && java.util.Objects.equals(this.shardGroup, other.shardGroup) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); @@ -368,8 +316,6 @@ public int hashCode() { ? 43 : this.distributedDatabaseId.hashCode()); result = (result * PRIME) + (this.isSurrogate == null ? 43 : this.isSurrogate.hashCode()); - result = (result * PRIME) + (this.resourceName == null ? 43 : this.resourceName.hashCode()); - result = (result * PRIME) + (this.shardGroup == null ? 43 : this.shardGroup.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); result = (result * PRIME) diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/AddDistributedAutonomousDatabaseGdsControlNodeResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/AddDistributedAutonomousDatabaseGdsControlNodeResponse.java index 499e266da86..678a690ab0d 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/AddDistributedAutonomousDatabaseGdsControlNodeResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/AddDistributedAutonomousDatabaseGdsControlNodeResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class AddDistributedAutonomousDatabaseGdsControlNodeResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/AddDistributedDatabaseGdsControlNodeResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/AddDistributedDatabaseGdsControlNodeResponse.java index 64d096f906b..8aa76e209ac 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/AddDistributedDatabaseGdsControlNodeResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/AddDistributedDatabaseGdsControlNodeResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class AddDistributedDatabaseGdsControlNodeResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ChangeDistributedAutonomousDatabaseCompartmentResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ChangeDistributedAutonomousDatabaseCompartmentResponse.java index 9548dfc1cb3..b62aa12de70 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ChangeDistributedAutonomousDatabaseCompartmentResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ChangeDistributedAutonomousDatabaseCompartmentResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ChangeDistributedAutonomousDatabaseCompartmentResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ChangeDistributedAutonomousDbBackupConfigResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ChangeDistributedAutonomousDbBackupConfigResponse.java index 95b260bb7c1..fea952b4b05 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ChangeDistributedAutonomousDbBackupConfigResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ChangeDistributedAutonomousDbBackupConfigResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ChangeDistributedAutonomousDbBackupConfigResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ChangeDistributedDatabaseCompartmentResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ChangeDistributedDatabaseCompartmentResponse.java index 2bbc224344f..6e6bf9e7fa4 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ChangeDistributedDatabaseCompartmentResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ChangeDistributedDatabaseCompartmentResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ChangeDistributedDatabaseCompartmentResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ChangeDistributedDatabasePrivateEndpointCompartmentResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ChangeDistributedDatabasePrivateEndpointCompartmentResponse.java index 95eb40e8b06..970f057863c 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ChangeDistributedDatabasePrivateEndpointCompartmentResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ChangeDistributedDatabasePrivateEndpointCompartmentResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ChangeDistributedDatabasePrivateEndpointCompartmentResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ChangeDistributedDbBackupConfigResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ChangeDistributedDbBackupConfigResponse.java index 6a59a90a6f9..1e4ed2c6944 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ChangeDistributedDbBackupConfigResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ChangeDistributedDbBackupConfigResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@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 diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse.java similarity index 95% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse.java index 4c9cf788dbe..ca4e26a4e15 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse.java @@ -2,9 +2,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. */ -package com.oracle.bmc.distributeddatabasev26.responses; +package com.oracle.bmc.distributeddatabase.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.distributeddatabase.model.*; @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse @@ -38,7 +38,7 @@ public String getEtag() { } /** The returned {@code DistributedAutonomousDatabaseAutoResourceManagementDetails} instance. */ - private com.oracle.bmc.distributeddatabasev26.model + private com.oracle.bmc.distributeddatabase.model .DistributedAutonomousDatabaseAutoResourceManagementDetails distributedAutonomousDatabaseAutoResourceManagementDetails; @@ -47,7 +47,7 @@ public String getEtag() { * * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model + public com.oracle.bmc.distributeddatabase.model .DistributedAutonomousDatabaseAutoResourceManagementDetails getDistributedAutonomousDatabaseAutoResourceManagementDetails() { return distributedAutonomousDatabaseAutoResourceManagementDetails; @@ -65,7 +65,7 @@ private ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse( java.util.Map> headers, String opcRequestId, String etag, - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .DistributedAutonomousDatabaseAutoResourceManagementDetails distributedAutonomousDatabaseAutoResourceManagementDetails) { super(__httpStatusCode__, headers); @@ -129,7 +129,7 @@ public Builder etag(String etag) { /** * The returned {@code DistributedAutonomousDatabaseAutoResourceManagementDetails} instance. */ - private com.oracle.bmc.distributeddatabasev26.model + private com.oracle.bmc.distributeddatabase.model .DistributedAutonomousDatabaseAutoResourceManagementDetails distributedAutonomousDatabaseAutoResourceManagementDetails; @@ -140,7 +140,7 @@ public Builder etag(String etag) { * @return this builder */ public Builder distributedAutonomousDatabaseAutoResourceManagementDetails( - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .DistributedAutonomousDatabaseAutoResourceManagementDetails distributedAutonomousDatabaseAutoResourceManagementDetails) { this.distributedAutonomousDatabaseAutoResourceManagementDetails = diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ConfigureDistributedAutonomousDatabaseGsmWalletResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ConfigureDistributedAutonomousDatabaseGsmWalletResponse.java index 29eb57b13e7..cc109a14037 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ConfigureDistributedAutonomousDatabaseGsmWalletResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ConfigureDistributedAutonomousDatabaseGsmWalletResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ConfigureDistributedAutonomousDatabaseGsmWalletResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ConfigureDistributedAutonomousDatabaseGsmsResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ConfigureDistributedAutonomousDatabaseGsmsResponse.java index 8afc1588dc7..ba5ef4f503d 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ConfigureDistributedAutonomousDatabaseGsmsResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ConfigureDistributedAutonomousDatabaseGsmsResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ConfigureDistributedAutonomousDatabaseGsmsResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ConfigureDistributedAutonomousDatabaseShardingResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ConfigureDistributedAutonomousDatabaseShardingResponse.java index 58e66c4b18c..fb5138dbf02 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ConfigureDistributedAutonomousDatabaseShardingResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ConfigureDistributedAutonomousDatabaseShardingResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ConfigureDistributedAutonomousDatabaseShardingResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseAutoResourceManagementResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ConfigureDistributedDatabaseAutoResourceManagementResponse.java similarity index 94% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseAutoResourceManagementResponse.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ConfigureDistributedDatabaseAutoResourceManagementResponse.java index 28612d14ceb..7f9bacc7226 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseAutoResourceManagementResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ConfigureDistributedDatabaseAutoResourceManagementResponse.java @@ -2,9 +2,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. */ -package com.oracle.bmc.distributeddatabasev26.responses; +package com.oracle.bmc.distributeddatabase.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.distributeddatabase.model.*; @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ConfigureDistributedDatabaseAutoResourceManagementResponse @@ -38,7 +38,7 @@ public String getEtag() { } /** The returned {@code DistributedDatabaseAutoResourceManagementDetails} instance. */ - private com.oracle.bmc.distributeddatabasev26.model + private com.oracle.bmc.distributeddatabase.model .DistributedDatabaseAutoResourceManagementDetails distributedDatabaseAutoResourceManagementDetails; @@ -47,8 +47,7 @@ public String getEtag() { * * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseAutoResourceManagementDetails + public com.oracle.bmc.distributeddatabase.model.DistributedDatabaseAutoResourceManagementDetails getDistributedDatabaseAutoResourceManagementDetails() { return distributedDatabaseAutoResourceManagementDetails; } @@ -65,7 +64,7 @@ private ConfigureDistributedDatabaseAutoResourceManagementResponse( java.util.Map> headers, String opcRequestId, String etag, - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .DistributedDatabaseAutoResourceManagementDetails distributedDatabaseAutoResourceManagementDetails) { super(__httpStatusCode__, headers); @@ -127,7 +126,7 @@ public Builder etag(String etag) { } /** The returned {@code DistributedDatabaseAutoResourceManagementDetails} instance. */ - private com.oracle.bmc.distributeddatabasev26.model + private com.oracle.bmc.distributeddatabase.model .DistributedDatabaseAutoResourceManagementDetails distributedDatabaseAutoResourceManagementDetails; @@ -138,7 +137,7 @@ public Builder etag(String etag) { * @return this builder */ public Builder distributedDatabaseAutoResourceManagementDetails( - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .DistributedDatabaseAutoResourceManagementDetails distributedDatabaseAutoResourceManagementDetails) { this.distributedDatabaseAutoResourceManagementDetails = diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ConfigureDistributedDatabaseGsmsResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ConfigureDistributedDatabaseGsmsResponse.java index aa900557577..82ad98366d1 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ConfigureDistributedDatabaseGsmsResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ConfigureDistributedDatabaseGsmsResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@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 diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ConfigureDistributedDatabaseShardingResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ConfigureDistributedDatabaseShardingResponse.java index 59d3a5fd056..6ecc71ebea8 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ConfigureDistributedDatabaseShardingResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ConfigureDistributedDatabaseShardingResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ConfigureDistributedDatabaseShardingResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/CreateDistributedAutonomousDatabaseResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/CreateDistributedAutonomousDatabaseResponse.java index 9d5b2895604..5fb0cf867a3 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/CreateDistributedAutonomousDatabaseResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/CreateDistributedAutonomousDatabaseResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class CreateDistributedAutonomousDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/CreateDistributedDatabasePrivateEndpointResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/CreateDistributedDatabasePrivateEndpointResponse.java index 48ad39ceb12..fbfcc0b03e1 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/CreateDistributedDatabasePrivateEndpointResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/CreateDistributedDatabasePrivateEndpointResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class CreateDistributedDatabasePrivateEndpointResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/CreateDistributedDatabaseResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/CreateDistributedDatabaseResponse.java index ebcd91f07b4..d5d6de277f1 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/CreateDistributedDatabaseResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/CreateDistributedDatabaseResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@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 diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DeleteDistributedAutonomousDatabaseResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DeleteDistributedAutonomousDatabaseResponse.java index de24ff54567..62f78cdb006 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DeleteDistributedAutonomousDatabaseResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DeleteDistributedAutonomousDatabaseResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DeleteDistributedAutonomousDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DeleteDistributedDatabasePrivateEndpointResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DeleteDistributedDatabasePrivateEndpointResponse.java index 88b29f4c450..fe24c9db46d 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DeleteDistributedDatabasePrivateEndpointResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DeleteDistributedDatabasePrivateEndpointResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DeleteDistributedDatabasePrivateEndpointResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DeleteDistributedDatabaseResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DeleteDistributedDatabaseResponse.java index 42fdf9a6e84..bdf9f8c9041 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DeleteDistributedDatabaseResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DeleteDistributedDatabaseResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@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 diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse.java deleted file mode 100644 index 1850c1729a1..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse.java +++ /dev/null @@ -1,288 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.responses; - -import com.oracle.bmc.distributeddatabase.model.*; - -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - 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 certificate signing request was created. */ - private java.util.Date lastModified; - - /** - * The date and time the certificate signing request 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 DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse( - 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< - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> { - 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 certificate signing request was created. */ - private java.util.Date lastModified; - - /** - * The date and time the certificate signing request 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( - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse 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 DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse build() { - return new DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse( - __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 - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse)) { - return false; - } - - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse other = - (DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse) 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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DownloadDistributedDatabaseGsmCertificateSigningRequestResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DownloadDistributedDatabaseGsmCertificateSigningRequestResponse.java deleted file mode 100644 index 4bb4133bc74..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DownloadDistributedDatabaseGsmCertificateSigningRequestResponse.java +++ /dev/null @@ -1,285 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.responses; - -import com.oracle.bmc.distributeddatabase.model.*; - -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class DownloadDistributedDatabaseGsmCertificateSigningRequestResponse - 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 certificate signing request was created. */ - private java.util.Date lastModified; - - /** - * The date and time the certificate signing request 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 DownloadDistributedDatabaseGsmCertificateSigningRequestResponse( - 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< - DownloadDistributedDatabaseGsmCertificateSigningRequestResponse> { - 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 certificate signing request was created. */ - private java.util.Date lastModified; - - /** - * The date and time the certificate signing request 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(DownloadDistributedDatabaseGsmCertificateSigningRequestResponse 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 DownloadDistributedDatabaseGsmCertificateSigningRequestResponse build() { - return new DownloadDistributedDatabaseGsmCertificateSigningRequestResponse( - __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 DownloadDistributedDatabaseGsmCertificateSigningRequestResponse)) { - return false; - } - - DownloadDistributedDatabaseGsmCertificateSigningRequestResponse other = - (DownloadDistributedDatabaseGsmCertificateSigningRequestResponse) 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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse.java deleted file mode 100644 index 259ef102b7e..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse.java +++ /dev/null @@ -1,191 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.responses; - -import com.oracle.bmc.distributeddatabase.model.*; - -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - 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 GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse( - 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< - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> { - 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( - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse 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 GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse build() { - return new GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse( - __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 - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse)) { - return false; - } - - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse other = - (GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse) 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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GenerateDistributedAutonomousDatabaseWalletResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GenerateDistributedAutonomousDatabaseWalletResponse.java index 440f3fbbda2..870fcdf51dd 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GenerateDistributedAutonomousDatabaseWalletResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GenerateDistributedAutonomousDatabaseWalletResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class GenerateDistributedAutonomousDatabaseWalletResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GenerateDistributedDatabaseGsmCertificateSigningRequestResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GenerateDistributedDatabaseGsmCertificateSigningRequestResponse.java deleted file mode 100644 index 63a4d446aab..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GenerateDistributedDatabaseGsmCertificateSigningRequestResponse.java +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.responses; - -import com.oracle.bmc.distributeddatabase.model.*; - -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class GenerateDistributedDatabaseGsmCertificateSigningRequestResponse - 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 GenerateDistributedDatabaseGsmCertificateSigningRequestResponse( - 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< - GenerateDistributedDatabaseGsmCertificateSigningRequestResponse> { - 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(GenerateDistributedDatabaseGsmCertificateSigningRequestResponse 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 GenerateDistributedDatabaseGsmCertificateSigningRequestResponse build() { - return new GenerateDistributedDatabaseGsmCertificateSigningRequestResponse( - __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 GenerateDistributedDatabaseGsmCertificateSigningRequestResponse)) { - return false; - } - - GenerateDistributedDatabaseGsmCertificateSigningRequestResponse other = - (GenerateDistributedDatabaseGsmCertificateSigningRequestResponse) 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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GenerateDistributedDatabaseWalletResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GenerateDistributedDatabaseWalletResponse.java index 2731f36f8c6..7b4794980ab 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GenerateDistributedDatabaseWalletResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GenerateDistributedDatabaseWalletResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class GenerateDistributedDatabaseWalletResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetDistributedAutonomousDatabaseRaftMetricResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetDistributedAutonomousDatabaseRaftMetricResponse.java index 653a1a733a1..aee4a8eddee 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetDistributedAutonomousDatabaseRaftMetricResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetDistributedAutonomousDatabaseRaftMetricResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class GetDistributedAutonomousDatabaseRaftMetricResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetDistributedAutonomousDatabaseResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetDistributedAutonomousDatabaseResponse.java index 9325ff64e5c..eea50f22c51 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetDistributedAutonomousDatabaseResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetDistributedAutonomousDatabaseResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@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 diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseRuChangeLogResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetDistributedAutonomousDatabaseRuChangeLogResponse.java similarity index 91% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseRuChangeLogResponse.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetDistributedAutonomousDatabaseRuChangeLogResponse.java index b787e5f9fea..624c2a868bd 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseRuChangeLogResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetDistributedAutonomousDatabaseRuChangeLogResponse.java @@ -2,9 +2,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. */ -package com.oracle.bmc.distributeddatabasev26.responses; +package com.oracle.bmc.distributeddatabase.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.distributeddatabase.model.*; @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class GetDistributedAutonomousDatabaseRuChangeLogResponse @@ -26,7 +26,7 @@ public String getOpcRequestId() { } /** The returned {@code DistributedAutonomousDatabaseRuChangeLog} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRuChangeLog + private com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseRuChangeLog distributedAutonomousDatabaseRuChangeLog; /** @@ -34,7 +34,7 @@ public String getOpcRequestId() { * * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRuChangeLog + public com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseRuChangeLog getDistributedAutonomousDatabaseRuChangeLog() { return distributedAutonomousDatabaseRuChangeLog; } @@ -49,7 +49,7 @@ private GetDistributedAutonomousDatabaseRuChangeLogResponse( int __httpStatusCode__, java.util.Map> headers, String opcRequestId, - com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRuChangeLog + com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseRuChangeLog distributedAutonomousDatabaseRuChangeLog) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; @@ -94,7 +94,7 @@ public Builder opcRequestId(String opcRequestId) { } /** The returned {@code DistributedAutonomousDatabaseRuChangeLog} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRuChangeLog + private com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseRuChangeLog distributedAutonomousDatabaseRuChangeLog; /** @@ -104,7 +104,7 @@ public Builder opcRequestId(String opcRequestId) { * @return this builder */ public Builder distributedAutonomousDatabaseRuChangeLog( - com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRuChangeLog + com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseRuChangeLog distributedAutonomousDatabaseRuChangeLog) { this.distributedAutonomousDatabaseRuChangeLog = distributedAutonomousDatabaseRuChangeLog; diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetDistributedDatabasePrivateEndpointResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetDistributedDatabasePrivateEndpointResponse.java index 6c20d48c249..c44760734e8 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetDistributedDatabasePrivateEndpointResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetDistributedDatabasePrivateEndpointResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class GetDistributedDatabasePrivateEndpointResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetDistributedDatabaseRaftMetricResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetDistributedDatabaseRaftMetricResponse.java index 6d4cc4d4edb..28677b3c9df 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetDistributedDatabaseRaftMetricResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetDistributedDatabaseRaftMetricResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@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 diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetDistributedDatabaseResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetDistributedDatabaseResponse.java index 3e4fe37b577..be3009ceaa5 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetDistributedDatabaseResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetDistributedDatabaseResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@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 diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseRuChangeLogResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetDistributedDatabaseRuChangeLogResponse.java similarity index 92% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseRuChangeLogResponse.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetDistributedDatabaseRuChangeLogResponse.java index eeeddd85ce4..bd149f9a95f 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseRuChangeLogResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetDistributedDatabaseRuChangeLogResponse.java @@ -2,9 +2,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. */ -package com.oracle.bmc.distributeddatabasev26.responses; +package com.oracle.bmc.distributeddatabase.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.distributeddatabase.model.*; @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class GetDistributedDatabaseRuChangeLogResponse @@ -26,7 +26,7 @@ public String getOpcRequestId() { } /** The returned {@code DistributedDatabaseRuChangeLog} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRuChangeLog + private com.oracle.bmc.distributeddatabase.model.DistributedDatabaseRuChangeLog distributedDatabaseRuChangeLog; /** @@ -34,7 +34,7 @@ public String getOpcRequestId() { * * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRuChangeLog + public com.oracle.bmc.distributeddatabase.model.DistributedDatabaseRuChangeLog getDistributedDatabaseRuChangeLog() { return distributedDatabaseRuChangeLog; } @@ -49,7 +49,7 @@ private GetDistributedDatabaseRuChangeLogResponse( int __httpStatusCode__, java.util.Map> headers, String opcRequestId, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRuChangeLog + com.oracle.bmc.distributeddatabase.model.DistributedDatabaseRuChangeLog distributedDatabaseRuChangeLog) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; @@ -94,7 +94,7 @@ public Builder opcRequestId(String opcRequestId) { } /** The returned {@code DistributedDatabaseRuChangeLog} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRuChangeLog + private com.oracle.bmc.distributeddatabase.model.DistributedDatabaseRuChangeLog distributedDatabaseRuChangeLog; /** @@ -104,7 +104,7 @@ public Builder opcRequestId(String opcRequestId) { * @return this builder */ public Builder distributedDatabaseRuChangeLog( - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRuChangeLog + com.oracle.bmc.distributeddatabase.model.DistributedDatabaseRuChangeLog distributedDatabaseRuChangeLog) { this.distributedDatabaseRuChangeLog = distributedDatabaseRuChangeLog; return this; diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetWorkRequestResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetWorkRequestResponse.java index bbd793a15d5..56136b9c3de 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetWorkRequestResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GetWorkRequestResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@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 diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ListDistributedAutonomousDatabasesResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ListDistributedAutonomousDatabasesResponse.java index 9b559e11000..fb37a773f54 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ListDistributedAutonomousDatabasesResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ListDistributedAutonomousDatabasesResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ListDistributedAutonomousDatabasesResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ListDistributedDatabasePrivateEndpointsResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ListDistributedDatabasePrivateEndpointsResponse.java index 42868683045..dea036671c7 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ListDistributedDatabasePrivateEndpointsResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ListDistributedDatabasePrivateEndpointsResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ListDistributedDatabasePrivateEndpointsResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ListDistributedDatabasesResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ListDistributedDatabasesResponse.java index ff9f4ef8080..7c0f606fb5a 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ListDistributedDatabasesResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ListDistributedDatabasesResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@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 diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ListWorkRequestErrorsResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ListWorkRequestErrorsResponse.java index 63962640a64..fb8dd7cd912 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ListWorkRequestErrorsResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ListWorkRequestErrorsResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@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 diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ListWorkRequestLogsResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ListWorkRequestLogsResponse.java index 9dfabffb843..73431417e29 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ListWorkRequestLogsResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ListWorkRequestLogsResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@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 diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ListWorkRequestsResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ListWorkRequestsResponse.java index 3011c5cdc3d..8051d0ec361 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ListWorkRequestsResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ListWorkRequestsResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@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 diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/MoveDistributedAutonomousDatabaseReplicationUnitResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/MoveDistributedAutonomousDatabaseReplicationUnitResponse.java index 2d11905a468..7ae49e873b6 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/MoveDistributedAutonomousDatabaseReplicationUnitResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/MoveDistributedAutonomousDatabaseReplicationUnitResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class MoveDistributedAutonomousDatabaseReplicationUnitResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/MoveDistributedDatabaseReplicationUnitResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/MoveDistributedDatabaseReplicationUnitResponse.java index 7236776cbba..883eb20e17c 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/MoveDistributedDatabaseReplicationUnitResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/MoveDistributedDatabaseReplicationUnitResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class MoveDistributedDatabaseReplicationUnitResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/PatchDistributedAutonomousDatabaseResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/PatchDistributedAutonomousDatabaseResponse.java index a56105a00f9..150bbecc327 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/PatchDistributedAutonomousDatabaseResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/PatchDistributedAutonomousDatabaseResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class PatchDistributedAutonomousDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedDatabasePrivateEndpointResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/PatchDistributedDatabasePrivateEndpointResponse.java similarity index 98% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedDatabasePrivateEndpointResponse.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/PatchDistributedDatabasePrivateEndpointResponse.java index 25859298ffc..23732e6c424 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedDatabasePrivateEndpointResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/PatchDistributedDatabasePrivateEndpointResponse.java @@ -2,9 +2,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. */ -package com.oracle.bmc.distributeddatabasev26.responses; +package com.oracle.bmc.distributeddatabase.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.distributeddatabase.model.*; @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class PatchDistributedDatabasePrivateEndpointResponse diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/PatchDistributedDatabaseResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/PatchDistributedDatabaseResponse.java index c1dea3df686..2b1975cfc73 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/PatchDistributedDatabaseResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/PatchDistributedDatabaseResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@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 diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/RecreateFailedDistributedAutonomousDatabaseResourceResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/RecreateFailedDistributedAutonomousDatabaseResourceResponse.java index 36760524d48..e7e75b3bab9 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/RecreateFailedDistributedAutonomousDatabaseResourceResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/RecreateFailedDistributedAutonomousDatabaseResourceResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class RecreateFailedDistributedAutonomousDatabaseResourceResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/RecreateFailedDistributedDatabaseResourceResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/RecreateFailedDistributedDatabaseResourceResponse.java index 7ae066f3af0..72e558ee0b0 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/RecreateFailedDistributedDatabaseResourceResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/RecreateFailedDistributedDatabaseResourceResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class RecreateFailedDistributedDatabaseResourceResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ReinstateProxyInstanceResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ReinstateProxyInstanceResponse.java index 8c1079ab16a..4e868440e84 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ReinstateProxyInstanceResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ReinstateProxyInstanceResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@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 diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/RotateDistributedAutonomousDatabasePasswordsResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/RotateDistributedAutonomousDatabasePasswordsResponse.java index 924c2248a5a..0457af403bb 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/RotateDistributedAutonomousDatabasePasswordsResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/RotateDistributedAutonomousDatabasePasswordsResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class RotateDistributedAutonomousDatabasePasswordsResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/RotateDistributedDatabasePasswordsResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/RotateDistributedDatabasePasswordsResponse.java index 8feec76186e..9d2aeb843ce 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/RotateDistributedDatabasePasswordsResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/RotateDistributedDatabasePasswordsResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class RotateDistributedDatabasePasswordsResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ScaleDistributedAutonomousDatabaseGsmsResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ScaleDistributedAutonomousDatabaseGsmsResponse.java similarity index 98% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ScaleDistributedAutonomousDatabaseGsmsResponse.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ScaleDistributedAutonomousDatabaseGsmsResponse.java index 70947ba61cb..55700aa2a2d 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ScaleDistributedAutonomousDatabaseGsmsResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ScaleDistributedAutonomousDatabaseGsmsResponse.java @@ -2,9 +2,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. */ -package com.oracle.bmc.distributeddatabasev26.responses; +package com.oracle.bmc.distributeddatabase.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.distributeddatabase.model.*; @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ScaleDistributedAutonomousDatabaseGsmsResponse diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ScaleDistributedDatabaseGsmsResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ScaleDistributedDatabaseGsmsResponse.java similarity index 98% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ScaleDistributedDatabaseGsmsResponse.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ScaleDistributedDatabaseGsmsResponse.java index dfb55a11f48..92f8c7bc29a 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ScaleDistributedDatabaseGsmsResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ScaleDistributedDatabaseGsmsResponse.java @@ -2,9 +2,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. */ -package com.oracle.bmc.distributeddatabasev26.responses; +package com.oracle.bmc.distributeddatabase.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.distributeddatabase.model.*; @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ScaleDistributedDatabaseGsmsResponse extends com.oracle.bmc.responses.BmcResponse { diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/StartDistributedAutonomousDatabaseResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/StartDistributedAutonomousDatabaseResponse.java index f452efa6093..546c1e02cce 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/StartDistributedAutonomousDatabaseResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/StartDistributedAutonomousDatabaseResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class StartDistributedAutonomousDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/StartDistributedDatabaseResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/StartDistributedDatabaseResponse.java index 503f2d37f7a..0f33061254c 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/StartDistributedDatabaseResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/StartDistributedDatabaseResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@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 diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/StopDistributedAutonomousDatabaseResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/StopDistributedAutonomousDatabaseResponse.java index 9064cd44a41..eec3c3b4a74 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/StopDistributedAutonomousDatabaseResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/StopDistributedAutonomousDatabaseResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class StopDistributedAutonomousDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/StopDistributedDatabaseResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/StopDistributedDatabaseResponse.java index a22d6263453..96c526e77d9 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/StopDistributedDatabaseResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/StopDistributedDatabaseResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@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 diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UpdateDistributedAutonomousDatabaseResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UpdateDistributedAutonomousDatabaseResponse.java index 0e92f4f0e24..49696491f39 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UpdateDistributedAutonomousDatabaseResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UpdateDistributedAutonomousDatabaseResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class UpdateDistributedAutonomousDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UpdateDistributedDatabasePrivateEndpointResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UpdateDistributedDatabasePrivateEndpointResponse.java index cb8e1eb0871..cf50d3e3f28 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UpdateDistributedDatabasePrivateEndpointResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UpdateDistributedDatabasePrivateEndpointResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class UpdateDistributedDatabasePrivateEndpointResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UpdateDistributedDatabaseResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UpdateDistributedDatabaseResponse.java index 3496873b11b..1debf2b99f8 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UpdateDistributedDatabaseResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UpdateDistributedDatabaseResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@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 diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse.java deleted file mode 100644 index d72642f274b..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse.java +++ /dev/null @@ -1,192 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.responses; - -import com.oracle.bmc.distributeddatabase.model.*; - -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse - 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 UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse( - 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< - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse> { - 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( - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse 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 UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse - build() { - return new UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse( - __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 - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse)) { - return false; - } - - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse other = - (UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse) 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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse.java deleted file mode 100644 index c1e5e09cf67..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse.java +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.responses; - -import com.oracle.bmc.distributeddatabase.model.*; - -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse - 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 UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse( - 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< - UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse> { - 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(UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse 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 UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse build() { - return new UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse( - __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 UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse)) { - return false; - } - - UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse other = - (UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse) 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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ValidateDistributedAutonomousDatabaseCaBundleResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ValidateDistributedAutonomousDatabaseCaBundleResponse.java index 380759b8453..c7d81de4798 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ValidateDistributedAutonomousDatabaseCaBundleResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ValidateDistributedAutonomousDatabaseCaBundleResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ValidateDistributedAutonomousDatabaseCaBundleResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ValidateDistributedAutonomousDatabaseNetworkResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ValidateDistributedAutonomousDatabaseNetworkResponse.java index 6fb9294a0f2..893cd2129d3 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ValidateDistributedAutonomousDatabaseNetworkResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ValidateDistributedAutonomousDatabaseNetworkResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ValidateDistributedAutonomousDatabaseNetworkResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ValidateDistributedDatabaseNetworkResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ValidateDistributedDatabaseNetworkResponse.java index a864607cf58..99a328df823 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ValidateDistributedDatabaseNetworkResponse.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/ValidateDistributedDatabaseNetworkResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.distributeddatabase.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ValidateDistributedDatabaseNetworkResponse extends com.oracle.bmc.responses.BmcResponse { /** diff --git a/bmc-distributeddatabase/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-distributeddatabase/reflect-config.json b/bmc-distributeddatabase/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-distributeddatabase/reflect-config.json index 1da5c9b6350..2416b2a80b3 100644 --- a/bmc-distributeddatabase/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-distributeddatabase/reflect-config.json +++ b/bmc-distributeddatabase/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-distributeddatabase/reflect-config.json @@ -35,64 +35,174 @@ }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CatalogPeerWithDedicatedInfra", + "name": "com.oracle.bmc.distributeddatabase.model.AutoResourceManagementConfigurationDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CatalogPeerWithDedicatedInfra$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.AutoResourceManagementConfigurationDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CatalogPeerWithDedicatedInfra$Status", + "name": "com.oracle.bmc.distributeddatabase.model.AutoResourceManagementConfigurationDetails$MaxMoveRuUnit", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CatalogPeerWithExadbXs", + "name": "com.oracle.bmc.distributeddatabase.model.AutoResourceManagementConfigurationDetails$Mode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.AutoResourceManagementConfigurationDetails$ActionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.AutonomousCompositeDataGuardShardSpace", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.AutonomousCompositeDataGuardShardSpace$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.AutonomousCompositeDataGuardShardSpaceReplica", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.AutonomousCompositeDataGuardShardSpaceReplica$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.AutonomousCompositeRaftShardSpace", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.AutonomousCompositeRaftShardSpace$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.AutonomousCompositeShardSpaceRaftCluster", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CatalogPeerWithExadbXs$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.AutonomousCompositeShardSpaceRaftCluster$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CatalogPeerWithExadbXs$Status", + "name": "com.oracle.bmc.distributeddatabase.model.AutonomousCompositeShardSpaceRaftCluster$RuMode", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CatalogPeerWithExadbXsNewVaultAndCluster", + "name": "com.oracle.bmc.distributeddatabase.model.AutonomousSystemDataGuardDatabase", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.AutonomousSystemDataGuardDatabase$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.AutonomousSystemDataGuardReplica", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.AutonomousSystemDataGuardReplica$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.AutonomousSystemRaftCluster", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CatalogPeerWithExadbXsNewVaultAndCluster$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.AutonomousSystemRaftCluster$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CatalogPeerWithExadbXsNewVaultAndCluster$Status", + "name": "com.oracle.bmc.distributeddatabase.model.AutonomousSystemRaftCluster$RuMode", "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.AutonomousUserShardSpace", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.AutonomousUserShardSpace$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.AutonomousUserShardSpaceReplica", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.AutonomousUserShardSpaceReplica$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.distributeddatabase.model.ChangeDistributedAutonomousDatabaseCompartmentDetails", @@ -165,889 +275,1645 @@ }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.ConfigureDistributedAutonomousDatabaseGsmWalletDetails", + "name": "com.oracle.bmc.distributeddatabase.model.CompositeDataGuardShardSpace", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.ConfigureDistributedAutonomousDatabaseGsmWalletDetails$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.CompositeDataGuardShardSpace$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.ConfigureDistributedAutonomousDatabaseGsmsDetails", + "name": "com.oracle.bmc.distributeddatabase.model.CompositeDataGuardShardSpaceReplica", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.ConfigureDistributedAutonomousDatabaseGsmsDetails$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.CompositeDataGuardShardSpaceReplica$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.ConfigureDistributedDatabaseGsmsDetails", + "name": "com.oracle.bmc.distributeddatabase.model.CompositeRaftShardSpace", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.ConfigureDistributedDatabaseGsmsDetails$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.CompositeRaftShardSpace$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateCatalogPeerWithDedicatedInfraDetails", + "name": "com.oracle.bmc.distributeddatabase.model.CompositeShardSpaceRaftCluster", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateCatalogPeerWithDedicatedInfraDetails$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.CompositeShardSpaceRaftCluster$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateCatalogPeerWithExadbXsDetails", + "name": "com.oracle.bmc.distributeddatabase.model.CompositeShardSpaceRaftCluster$RuMode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateCatalogPeerWithExadbXsDetails$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateCatalogPeerWithExadbXsNewVaultAndClusterDetails", + "name": "com.oracle.bmc.distributeddatabase.model.ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails$MaxMoveRuUnit", "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateCatalogPeerWithExadbXsNewVaultAndClusterDetails$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails$Mode", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails$ActionType", + "allDeclaredFields": true, + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedAutonomousDatabaseCatalogDetails", + "name": "com.oracle.bmc.distributeddatabase.model.ConfigureDistributedAutonomousDatabaseGsmWalletDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedAutonomousDatabaseCatalogDetails$Source", + "name": "com.oracle.bmc.distributeddatabase.model.ConfigureDistributedAutonomousDatabaseGsmWalletDetails$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails", + "name": "com.oracle.bmc.distributeddatabase.model.ConfigureDistributedAutonomousDatabaseGsmsDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.ConfigureDistributedAutonomousDatabaseGsmsDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedAutonomousDatabaseDetails", + "name": "com.oracle.bmc.distributeddatabase.model.ConfigureDistributedDatabaseAutoResourceManagementDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedAutonomousDatabaseDetails$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.ConfigureDistributedDatabaseAutoResourceManagementDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedAutonomousDatabaseDetails$ShardingMethod", + "name": "com.oracle.bmc.distributeddatabase.model.ConfigureDistributedDatabaseAutoResourceManagementDetails$MaxMoveRuUnit", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedAutonomousDatabaseDetails$DbWorkload", + "name": "com.oracle.bmc.distributeddatabase.model.ConfigureDistributedDatabaseAutoResourceManagementDetails$Mode", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedAutonomousDatabaseDetails$ReplicationMethod", + "name": "com.oracle.bmc.distributeddatabase.model.ConfigureDistributedDatabaseAutoResourceManagementDetails$ActionType", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedAutonomousDatabaseDetails$DbDeploymentType", + "name": "com.oracle.bmc.distributeddatabase.model.ConfigureDistributedDatabaseGsmsDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.ConfigureDistributedDatabaseGsmsDetails$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedAutonomousDatabaseShardDetails", + "name": "com.oracle.bmc.distributeddatabase.model.CreateAutonomousCatalogDatabaseDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedAutonomousDatabaseShardDetails$Source", + "name": "com.oracle.bmc.distributeddatabase.model.CreateAutonomousCatalogDatabaseDetails$Source", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails", + "name": "com.oracle.bmc.distributeddatabase.model.CreateAutonomousCatalogDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.CreateAutonomousCatalogDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseCatalogDetails", + "name": "com.oracle.bmc.distributeddatabase.model.CreateAutonomousCatalogReplicaDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseCatalogDetails$Source", + "name": "com.oracle.bmc.distributeddatabase.model.CreateAutonomousCatalogReplicaDetails$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseCatalogWithExadbXsDetails", + "name": "com.oracle.bmc.distributeddatabase.model.CreateAutonomousCompositeDataGuardShardSpaceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseCatalogWithExadbXsDetails$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.CreateAutonomousCompositeDataGuardShardSpaceDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails", + "name": "com.oracle.bmc.distributeddatabase.model.CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseDetails", + "name": "com.oracle.bmc.distributeddatabase.model.CreateAutonomousCompositeRaftShardSpaceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseDetails$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.CreateAutonomousCompositeRaftShardSpaceDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseDetails$ShardingMethod", + "name": "com.oracle.bmc.distributeddatabase.model.CreateAutonomousCompositeShardSpaceRaftClusterDetails", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseDetails$ReplicationMethod", + "name": "com.oracle.bmc.distributeddatabase.model.CreateAutonomousCompositeShardSpaceRaftClusterDetails$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseDetails$DbDeploymentType", + "name": "com.oracle.bmc.distributeddatabase.model.CreateAutonomousCompositeShardSpaceRaftClusterDetails$RuMode", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabasePrivateEndpointDetails", + "name": "com.oracle.bmc.distributeddatabase.model.CreateAutonomousSystemDataGuardDatabaseDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabasePrivateEndpointDetails$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.CreateAutonomousSystemDataGuardDatabaseDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseShardDetails", + "name": "com.oracle.bmc.distributeddatabase.model.CreateAutonomousSystemDataGuardReplicaDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseShardDetails$Source", + "name": "com.oracle.bmc.distributeddatabase.model.CreateAutonomousSystemDataGuardReplicaDetails$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseShardWithExadbXsDetails", + "name": "com.oracle.bmc.distributeddatabase.model.CreateAutonomousSystemRaftClusterDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseShardWithExadbXsDetails$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.CreateAutonomousSystemRaftClusterDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails", + "name": "com.oracle.bmc.distributeddatabase.model.CreateAutonomousSystemRaftClusterDetails$RuMode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateAutonomousUserShardSpaceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.CreateAutonomousUserShardSpaceDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateShardPeerWithDedicatedInfraDetails", + "name": "com.oracle.bmc.distributeddatabase.model.CreateAutonomousUserShardSpaceReplicaDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateShardPeerWithDedicatedInfraDetails$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.CreateAutonomousUserShardSpaceReplicaDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateShardPeerWithExadbXsDetails", + "name": "com.oracle.bmc.distributeddatabase.model.CreateCompositeDataGuardShardSpaceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateShardPeerWithExadbXsDetails$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.CreateCompositeDataGuardShardSpaceDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateShardPeerWithExadbXsNewVaultAndClusterDetails", + "name": "com.oracle.bmc.distributeddatabase.model.CreateCompositeDataGuardShardSpaceReplicaDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.CreateShardPeerWithExadbXsNewVaultAndClusterDetails$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.CreateCompositeDataGuardShardSpaceReplicaDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DbStorageVaultDetails", + "name": "com.oracle.bmc.distributeddatabase.model.CreateCompositeRaftShardSpaceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DbStorageVaultDetails$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.CreateCompositeRaftShardSpaceDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabase", + "name": "com.oracle.bmc.distributeddatabase.model.CreateCompositeShardSpaceRaftClusterDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabase$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.CreateCompositeShardSpaceRaftClusterDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabase$LifecycleState", + "name": "com.oracle.bmc.distributeddatabase.model.CreateCompositeShardSpaceRaftClusterDetails$RuMode", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabase$ShardingMethod", + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedAutonomousDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedAutonomousDatabaseDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedAutonomousDatabaseDetails$DbWorkloadType", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabase$DbWorkload", + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedAutonomousDatabaseShardDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedAutonomousDatabaseShardDatabaseDetails$Source", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabase$ReplicationMethod", + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseCatalogDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseCatalogDatabaseDetails$Source", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabase$DbDeploymentType", + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseCatalogDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseCatalogDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseCatalogReplicaDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseCatalogReplicaDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabasePrivateEndpointDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabasePrivateEndpointDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseShardDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseShardDatabaseDetails$Source", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseShardDatabaseWithDbHomeDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseShardDatabaseWithDbHomeDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseShardDatabaseWithExadbXdDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseShardDatabaseWithExadbXdDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseShardDatabaseWithExadbXsDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseShardDatabaseWithExadbXsDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseShardWithExadbXsNewClusterDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseShardWithExadbXsNewClusterDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateSystemDataGuardDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateSystemDataGuardDatabaseDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateSystemDataGuardReplicaDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateSystemDataGuardReplicaDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateSystemRaftClusterDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateSystemRaftClusterDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateSystemRaftClusterDetails$RuMode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateUserShardSpaceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateUserShardSpaceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateUserShardSpaceReplicaDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.CreateUserShardSpaceReplicaDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DbStorageVaultDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DbStorageVaultDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabase", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabase$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabase$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabase$ShardingMethod", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabase$ReplicationMethod", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabase$DbDeploymentType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabase$DbWorkloadType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseAutoResourceManagementDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseAutoResourceManagementDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseAutoResourceManagementDetails$MaxMoveRuUnit", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseAutoResourceManagementDetails$Mode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseAutoResourceManagementDetails$ActionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseCatalog", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseCatalog$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseCatalogDatabase", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseCatalogDatabase$Source", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseCatalogReplica", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseCatalogReplica$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseCatalogWithDedicatedInfra", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseCatalogWithDedicatedInfra$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseCatalogWithDedicatedInfra$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseConnectionString", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseConnectionString$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseGdsControlNode", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseGdsControlNode$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseGdsControlNodeImage", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseGdsControlNodeImage$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseGsm", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseGsm$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseGsm$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseGsmImage", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseGsmImage$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseRaftMetric", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseRaftMetric$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseRuChangeLog", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseRuChangeLog$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseRuChangeLogSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseRuChangeLogSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseRuChangeLogSummary$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseShardDatabase", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseShardDatabase$Source", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseShardWithDedicatedInfra", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseShardWithDedicatedInfra$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseShardWithDedicatedInfra$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseSummary$ShardingMethod", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseSummary$ReplicationMethod", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseSummary$DbDeploymentType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDbBackupConfig", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDbBackupConfig$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDbBackupDestination", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDbBackupDestination$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDbBackupDestination$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDbMetadata", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDbMetadata$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDbProtectionMode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabase", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabase$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabase$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabase$ShardingMethod", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseAssociatedWithPrivateEndpoint", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabase$ReplicationMethod", "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseAssociatedWithPrivateEndpoint$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabase$DbDeploymentType", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseCatalog", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseAutoResourceManagementDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseCatalog$Source", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseAutoResourceManagementDetails$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseCatalogWithDedicatedInfra", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseAutoResourceManagementDetails$MaxMoveRuUnit", "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseCatalogWithDedicatedInfra$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseAutoResourceManagementDetails$Mode", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseCatalogWithDedicatedInfra$Status", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseAutoResourceManagementDetails$ActionType", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseCollection", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalog", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseCollection$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalog$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseConnectionString", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalogDatabase", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseConnectionString$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalogDatabase$Source", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseGsm", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalogDatabaseWithDbHome", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseGsm$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalogDatabaseWithDbHome$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseGsm$Status", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalogDatabaseWithDbHome$Status", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseGsmImage", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalogDatabaseWithExadbXd", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseGsmImage$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalogDatabaseWithExadbXd$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseRaftMetric", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalogDatabaseWithExadbXd$Status", "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseRaftMetric$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalogDatabaseWithExadbXs", "allDeclaredFields": true, "allDeclaredMethods": true, - "allDeclaredConstructors": true + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseShard", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalogDatabaseWithExadbXs$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseShard$Source", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalogDatabaseWithExadbXs$Status", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseShardWithDedicatedInfra", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseShardWithDedicatedInfra$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseShardWithDedicatedInfra$Status", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster$Status", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseSummary", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseSummary$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseSummary$DbDeploymentType", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster$Status", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDbBackupConfig", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalogReplicaDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDbBackupConfig$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalogReplicaDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDbBackupDestination", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCollection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDbBackupDestination$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCollection$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDbBackupDestination$Type", - "allDeclaredFields": true, - "allDeclaredMethods": true - }, - { - "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDbMetadata", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseGdsControlNode", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDbMetadata$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseGdsControlNode$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDbProtectionMode", - "allDeclaredFields": true, - "allDeclaredMethods": true - }, - { - "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabase", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseGsm", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabase$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseGsm$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabase$LifecycleState", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseGsm$Status", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabase$ShardingMethod", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabasePrivateEndpoint", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabase$ReplicationMethod", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabasePrivateEndpoint$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabase$DbDeploymentType", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabasePrivateEndpoint$LifecycleState", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseAssociatedWithPrivateEndpoint", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabasePrivateEndpointCollection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseAssociatedWithPrivateEndpoint$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabasePrivateEndpointCollection$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalog", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabasePrivateEndpointSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalog$Source", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabasePrivateEndpointSummary$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalogWithExadbXs", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseRaftMetric", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalogWithExadbXs$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseRaftMetric$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalogWithExadbXs$Status", - "allDeclaredFields": true, - "allDeclaredMethods": true - }, - { - "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalogWithExadbXsNewVaultAndCluster", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseRuChangeLog", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalogWithExadbXsNewVaultAndCluster$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseRuChangeLog$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCatalogWithExadbXsNewVaultAndCluster$Status", - "allDeclaredFields": true, - "allDeclaredMethods": true - }, - { - "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCollection", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseRuChangeLogSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseCollection$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseRuChangeLogSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseGsm", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseRuChangeLogSummary$Status", "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseGsm$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseShardDatabase", "allDeclaredFields": true, "allDeclaredMethods": true, - "allDeclaredConstructors": true + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseGsm$Status", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseShardDatabase$Source", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabasePrivateEndpoint", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseShardDatabaseWithDbHome", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabasePrivateEndpoint$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseShardDatabaseWithDbHome$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabasePrivateEndpoint$LifecycleState", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseShardDatabaseWithDbHome$Status", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabasePrivateEndpointCollection", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseShardDatabaseWithExadbXd", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabasePrivateEndpointCollection$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseShardDatabaseWithExadbXd$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabasePrivateEndpointSummary", - "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true - }, - { - "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabasePrivateEndpointSummary$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseShardDatabaseWithExadbXd$Status", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseRaftMetric", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseShardDatabaseWithExadbXs", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseRaftMetric$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseShardDatabaseWithExadbXs$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseShard", - "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true - }, - { - "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseShard$Source", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseShardDatabaseWithExadbXs$Status", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseShardWithExadbXs", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseShardDatabaseWithExadbXsNewCluster", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseShardWithExadbXs$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseShardDatabaseWithExadbXsNewCluster$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseShardWithExadbXs$Status", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseShardDatabaseWithExadbXsNewCluster$Status", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseShardWithExadbXsNewVaultAndCluster", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseShardWithExadbXsNewVaultAndCluster$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseShardWithExadbXsNewVaultAndCluster$Status", + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster$Status", "allDeclaredFields": true, "allDeclaredMethods": true }, @@ -1065,6 +1931,18 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseSummary$ShardingMethod", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseSummary$ReplicationMethod", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.distributeddatabase.model.DistributedDatabaseSummary$DbDeploymentType", @@ -1143,6 +2021,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDbGdsControlNodeImage", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.DistributedDbGdsControlNodeImage$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.distributeddatabase.model.DistributedDbGsmImage", @@ -1313,6 +2205,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.PatchDistributedDatabasePrivateEndpointDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.PatchDistributedDatabasePrivateEndpointDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.distributeddatabase.model.PatchInsertInstruction", @@ -1370,63 +2276,87 @@ }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.ShardPeerWithDedicatedInfra", + "name": "com.oracle.bmc.distributeddatabase.model.RotateDistributedAutonomousDatabaseDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.ShardPeerWithDedicatedInfra$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.RotateDistributedAutonomousDatabaseDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.ShardPeerWithDedicatedInfra$Status", + "name": "com.oracle.bmc.distributeddatabase.model.RotateDistributedAutonomousDatabasePasswordsDetails", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.RotateDistributedAutonomousDatabasePasswordsDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.ShardPeerWithExadbXs", + "name": "com.oracle.bmc.distributeddatabase.model.RotateDistributedDatabaseDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.ShardPeerWithExadbXs$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.RotateDistributedDatabaseDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.ShardPeerWithExadbXs$Status", + "name": "com.oracle.bmc.distributeddatabase.model.RotateDistributedDatabasePasswordsDetails", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.RotateDistributedDatabasePasswordsDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.ShardPeerWithExadbXsNewVaultAndCluster", + "name": "com.oracle.bmc.distributeddatabase.model.ScaleDistributedAutonomousDatabaseGsmsDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.ShardPeerWithExadbXsNewVaultAndCluster$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.ScaleDistributedAutonomousDatabaseGsmsDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.ShardPeerWithExadbXsNewVaultAndCluster$Status", + "name": "com.oracle.bmc.distributeddatabase.model.ScaleDistributedDatabaseGsmsDetails", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.ScaleDistributedDatabaseGsmsDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, @@ -1434,6 +2364,54 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.SystemDataGuardDatabase", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.SystemDataGuardDatabase$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.SystemDataGuardReplica", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.SystemDataGuardReplica$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.SystemRaftCluster", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.SystemRaftCluster$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.SystemRaftCluster$RuMode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.distributeddatabase.model.UpdateDistributedAutonomousDatabaseDetails", @@ -1478,28 +2456,42 @@ }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails", + "name": "com.oracle.bmc.distributeddatabase.model.UserShardSpace", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.UserShardSpace$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.distributeddatabase.model.UserShardSpaceReplica", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.UserShardSpaceReplica$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails", + "name": "com.oracle.bmc.distributeddatabase.model.VcnNsgIdsDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.distributeddatabase.model.UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails$Builder", + "name": "com.oracle.bmc.distributeddatabase.model.VcnNsgIdsDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true diff --git a/bmc-distributeddatabase/src/main/resources/com/oracle/bmc/distributeddatabase/client.properties b/bmc-distributeddatabase/src/main/resources/com/oracle/bmc/distributeddatabase/client.properties index 19d48b521a9..f74355d134a 100644 --- a/bmc-distributeddatabase/src/main/resources/com/oracle/bmc/distributeddatabase/client.properties +++ b/bmc-distributeddatabase/src/main/resources/com/oracle/bmc/distributeddatabase/client.properties @@ -6,4 +6,4 @@ java.client.codegen.version = 2.170 java.minimum.client.codegen.version.from.client = 2.170 -# @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") \ No newline at end of file +# @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") \ No newline at end of file diff --git a/bmc-distributeddatabasev26/pom.xml b/bmc-distributeddatabasev26/pom.xml deleted file mode 100644 index 279ce496454..00000000000 --- a/bmc-distributeddatabasev26/pom.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - 4.0.0 - - com.oracle.oci.sdk - oci-java-sdk - 3.96.0 - ../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.96.0 - - - \ 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 deleted file mode 100644 index 67586ebdf9b..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbService.java +++ /dev/null @@ -1,520 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 99da9a54ef0..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceAsync.java +++ /dev/null @@ -1,517 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 62d09d97a19..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceAsyncClient.java +++ /dev/null @@ -1,1326 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 3c569f64379..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceClient.java +++ /dev/null @@ -1,1326 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index f8211d50375..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServicePaginators.java +++ /dev/null @@ -1,179 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 701fbca60f0..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceWaiters.java +++ /dev/null @@ -1,158 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index d10c024af27..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointService.java +++ /dev/null @@ -1,219 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 5b31c185ad7..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceAsync.java +++ /dev/null @@ -1,207 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 772978577c3..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceAsyncClient.java +++ /dev/null @@ -1,591 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 953a0a963cb..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceClient.java +++ /dev/null @@ -1,648 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index a0c78d8d4ba..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServicePaginators.java +++ /dev/null @@ -1,184 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 24d9b84473a..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceWaiters.java +++ /dev/null @@ -1,160 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/DistributedDbServiceAsync.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceAsync.java deleted file mode 100644 index b43c0ac9754..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceAsync.java +++ /dev/null @@ -1,457 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 8e458aab4a3..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceAsyncClient.java +++ /dev/null @@ -1,1161 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 9c95a872d28..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceClient.java +++ /dev/null @@ -1,1172 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 00f1090285f..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServicePaginators.java +++ /dev/null @@ -1,169 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index e771ad6b2cd..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceWaiters.java +++ /dev/null @@ -1,147 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/model/AddDistributedAutonomousDatabaseGdsControlNodeDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AddDistributedAutonomousDatabaseGdsControlNodeDetails.java deleted file mode 100644 index 8e85821f073..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AddDistributedAutonomousDatabaseGdsControlNodeDetails.java +++ /dev/null @@ -1,181 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index f7488aa0a42..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AddDistributedDatabaseGdsControlNodeDetails.java +++ /dev/null @@ -1,180 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/ChangeDistributedAutonomousDbBackupConfigDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedAutonomousDbBackupConfigDetails.java deleted file mode 100644 index d9cecd47644..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedAutonomousDbBackupConfigDetails.java +++ /dev/null @@ -1,128 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/ChangeDistributedDbBackupConfigDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDbBackupConfigDetails.java deleted file mode 100644 index 1756a3280ea..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDbBackupConfigDetails.java +++ /dev/null @@ -1,125 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/ConfigureDistributedAutonomousDatabaseGsmWalletDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseGsmWalletDetails.java deleted file mode 100644 index 28645ec668b..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseGsmWalletDetails.java +++ /dev/null @@ -1,192 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 4c83cf7dae2..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseGsmsDetails.java +++ /dev/null @@ -1,192 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/ConfigureDistributedDatabaseGsmsDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedDatabaseGsmsDetails.java deleted file mode 100644 index 3ec36eb5d38..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedDatabaseGsmsDetails.java +++ /dev/null @@ -1,191 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails.java deleted file mode 100644 index f88461669bd..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails.java +++ /dev/null @@ -1,764 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 49fad27d097..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseDetails.java +++ /dev/null @@ -1,1267 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails.java deleted file mode 100644 index fb2846647ad..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails.java +++ /dev/null @@ -1,815 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/CreateDistributedDatabaseCatalogDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDetails.java deleted file mode 100644 index d47498685eb..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDetails.java +++ /dev/null @@ -1,167 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.java deleted file mode 100644 index 688fc7fc461..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.java +++ /dev/null @@ -1,528 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index f4762c714a1..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseDetails.java +++ /dev/null @@ -1,1270 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.java deleted file mode 100644 index 88313709ac5..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.java +++ /dev/null @@ -1,527 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/DbStorageVaultDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DbStorageVaultDetails.java deleted file mode 100644 index da0bba1d489..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DbStorageVaultDetails.java +++ /dev/null @@ -1,386 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index f14a9455d1b..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabase.java +++ /dev/null @@ -1,2026 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/DistributedAutonomousDatabaseCatalog.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalog.java deleted file mode 100644 index 1cdb7034e90..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalog.java +++ /dev/null @@ -1,167 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/DistributedAutonomousDatabaseCatalogWithDedicatedInfra.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogWithDedicatedInfra.java deleted file mode 100644 index 6bc58703875..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogWithDedicatedInfra.java +++ /dev/null @@ -1,888 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/DistributedAutonomousDatabaseGsm.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGsm.java deleted file mode 100644 index ff11fbd2196..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGsm.java +++ /dev/null @@ -1,552 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index c2288fea98a..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGsmImage.java +++ /dev/null @@ -1,178 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 5a7055d918e..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRaftMetric.java +++ /dev/null @@ -1,171 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/DistributedAutonomousDatabaseShardWithDedicatedInfra.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseShardWithDedicatedInfra.java deleted file mode 100644 index 3083c0f5a72..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseShardWithDedicatedInfra.java +++ /dev/null @@ -1,884 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index ae7759936da..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseSummary.java +++ /dev/null @@ -1,1451 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 93a86f37bcb..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbBackupConfig.java +++ /dev/null @@ -1,200 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 84ee0b71682..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbBackupDestination.java +++ /dev/null @@ -1,406 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/DistributedDatabase.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabase.java deleted file mode 100644 index 7ab1f3a6db0..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabase.java +++ /dev/null @@ -1,2004 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/DistributedDatabaseCatalog.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalog.java deleted file mode 100644 index afc9bd5fb58..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalog.java +++ /dev/null @@ -1,165 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/DistributedDatabaseGsm.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseGsm.java deleted file mode 100644 index 7763038ac81..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseGsm.java +++ /dev/null @@ -1,552 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/DistributedDatabaseRaftMetric.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRaftMetric.java deleted file mode 100644 index fe7da894641..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRaftMetric.java +++ /dev/null @@ -1,171 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/DistributedDatabaseSummary.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseSummary.java deleted file mode 100644 index 4a9d43b6fa0..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseSummary.java +++ /dev/null @@ -1,1401 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 0928a332bb2..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbBackupConfig.java +++ /dev/null @@ -1,887 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 5b1e74014a8..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbBackupDestination.java +++ /dev/null @@ -1,405 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/DistributedDbStorageVault.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbStorageVault.java deleted file mode 100644 index e5c87497ebd..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbStorageVault.java +++ /dev/null @@ -1,479 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/DistributedDbVmCluster.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbVmCluster.java deleted file mode 100644 index e15f25f6340..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbVmCluster.java +++ /dev/null @@ -1,1070 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 717d49f7565..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/GenerateDistributedAutonomousDatabaseWalletDetails.java +++ /dev/null @@ -1,175 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 4a01dea6a58..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/GenerateDistributedDatabaseWalletDetails.java +++ /dev/null @@ -1,175 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index a45bee400fc..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/MoveDistributedAutonomousDatabaseReplicationUnitDetails.java +++ /dev/null @@ -1,239 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index f8ad52ea7ad..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/MoveDistributedDatabaseReplicationUnitDetails.java +++ /dev/null @@ -1,239 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/OperationType.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/OperationType.java deleted file mode 100644 index 033914424dc..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/OperationType.java +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 4550666caea..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedAutonomousDatabaseDetails.java +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/PatchInstruction.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchInstruction.java deleted file mode 100644 index 017e31e18ee..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchInstruction.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/SortOrder.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SortOrder.java deleted file mode 100644 index f7af678784c..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SortOrder.java +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/UpdateDistributedAutonomousDatabaseDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedAutonomousDatabaseDetails.java deleted file mode 100644 index f3def5333d5..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedAutonomousDatabaseDetails.java +++ /dev/null @@ -1,295 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index fc8fa13ccaf..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedDatabaseDetails.java +++ /dev/null @@ -1,294 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/VmClusterDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/VmClusterDetails.java deleted file mode 100644 index 2ba34e7b3a7..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/VmClusterDetails.java +++ /dev/null @@ -1,965 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/requests/AddDistributedAutonomousDatabaseGdsControlNodeRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/AddDistributedAutonomousDatabaseGdsControlNodeRequest.java deleted file mode 100644 index 8fb56f5e0df..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/AddDistributedAutonomousDatabaseGdsControlNodeRequest.java +++ /dev/null @@ -1,393 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/ChangeDistributedAutonomousDatabaseCompartmentRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedAutonomousDatabaseCompartmentRequest.java deleted file mode 100644 index 12375e90c7e..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedAutonomousDatabaseCompartmentRequest.java +++ /dev/null @@ -1,385 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index ce6497ad3b9..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedAutonomousDbBackupConfigRequest.java +++ /dev/null @@ -1,392 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index c14bf7f9d2d..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDatabaseCompartmentRequest.java +++ /dev/null @@ -1,375 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index ee503c5dee3..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDatabasePrivateEndpointCompartmentRequest.java +++ /dev/null @@ -1,387 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/ConfigureDistributedAutonomousDatabaseGsmWalletRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseGsmWalletRequest.java deleted file mode 100644 index 10aa868b238..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseGsmWalletRequest.java +++ /dev/null @@ -1,387 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index ce2897782d0..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseGsmsRequest.java +++ /dev/null @@ -1,382 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 345da5269c0..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseShardingRequest.java +++ /dev/null @@ -1,400 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/ConfigureDistributedDatabaseGsmsRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseGsmsRequest.java deleted file mode 100644 index f25fb53387d..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseGsmsRequest.java +++ /dev/null @@ -1,368 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/DeleteDistributedAutonomousDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedAutonomousDatabaseRequest.java deleted file mode 100644 index 226ddfebc39..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedAutonomousDatabaseRequest.java +++ /dev/null @@ -1,301 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index e8a18057716..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedDatabasePrivateEndpointRequest.java +++ /dev/null @@ -1,305 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/GenerateDistributedAutonomousDatabaseWalletRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GenerateDistributedAutonomousDatabaseWalletRequest.java deleted file mode 100644 index 6629083a70e..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GenerateDistributedAutonomousDatabaseWalletRequest.java +++ /dev/null @@ -1,384 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/GetDistributedAutonomousDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRequest.java deleted file mode 100644 index 72c3d3c5a59..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRequest.java +++ /dev/null @@ -1,276 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/GetDistributedDatabasePrivateEndpointRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabasePrivateEndpointRequest.java deleted file mode 100644 index 5840a8934ce..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabasePrivateEndpointRequest.java +++ /dev/null @@ -1,253 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/GetDistributedDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRequest.java deleted file mode 100644 index d391a8d0d2c..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRequest.java +++ /dev/null @@ -1,271 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/ListDistributedAutonomousDatabasesRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedAutonomousDatabasesRequest.java deleted file mode 100644 index 89760700a27..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedAutonomousDatabasesRequest.java +++ /dev/null @@ -1,616 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/MoveDistributedAutonomousDatabaseReplicationUnitRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/MoveDistributedAutonomousDatabaseReplicationUnitRequest.java deleted file mode 100644 index f285e6d8773..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/MoveDistributedAutonomousDatabaseReplicationUnitRequest.java +++ /dev/null @@ -1,393 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 44a3720ff12..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/MoveDistributedDatabaseReplicationUnitRequest.java +++ /dev/null @@ -1,379 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 6cd683e349b..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedAutonomousDatabaseRequest.java +++ /dev/null @@ -1,385 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/RecreateFailedDistributedAutonomousDatabaseResourceRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RecreateFailedDistributedAutonomousDatabaseResourceRequest.java deleted file mode 100644 index fca6be2d275..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RecreateFailedDistributedAutonomousDatabaseResourceRequest.java +++ /dev/null @@ -1,330 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index f115bd242eb..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RecreateFailedDistributedDatabaseResourceRequest.java +++ /dev/null @@ -1,327 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/RotateDistributedAutonomousDatabasePasswordsRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RotateDistributedAutonomousDatabasePasswordsRequest.java deleted file mode 100644 index 5c5c9df28eb..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RotateDistributedAutonomousDatabasePasswordsRequest.java +++ /dev/null @@ -1,395 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 582f0637ca0..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RotateDistributedDatabasePasswordsRequest.java +++ /dev/null @@ -1,377 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/StopDistributedAutonomousDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StopDistributedAutonomousDatabaseRequest.java deleted file mode 100644 index 559d769f45a..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StopDistributedAutonomousDatabaseRequest.java +++ /dev/null @@ -1,301 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/UpdateDistributedAutonomousDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedAutonomousDatabaseRequest.java deleted file mode 100644 index 5f506edf667..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedAutonomousDatabaseRequest.java +++ /dev/null @@ -1,326 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 611226ec6e3..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedDatabasePrivateEndpointRequest.java +++ /dev/null @@ -1,385 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/ValidateDistributedAutonomousDatabaseNetworkRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseNetworkRequest.java deleted file mode 100644 index 31ea4d30d09..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseNetworkRequest.java +++ /dev/null @@ -1,331 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 08785c5367a..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedDatabaseNetworkRequest.java +++ /dev/null @@ -1,326 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 0bd5fd0af66..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/AddDistributedAutonomousDatabaseGdsControlNodeResponse.java +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/ChangeDistributedAutonomousDatabaseCompartmentResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedAutonomousDatabaseCompartmentResponse.java deleted file mode 100644 index a099bbd7d25..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedAutonomousDatabaseCompartmentResponse.java +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/ChangeDistributedDatabaseCompartmentResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDatabaseCompartmentResponse.java deleted file mode 100644 index 3178873c0e2..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDatabaseCompartmentResponse.java +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 77a42cde7ea..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDatabasePrivateEndpointCompartmentResponse.java +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/ConfigureDistributedAutonomousDatabaseGsmWalletResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseGsmWalletResponse.java deleted file mode 100644 index f340e8f4e5f..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseGsmWalletResponse.java +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 62deafb90c0..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseGsmsResponse.java +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 99cf4573726..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseShardingResponse.java +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/ConfigureDistributedDatabaseShardingResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseShardingResponse.java deleted file mode 100644 index 0ae64e392ac..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseShardingResponse.java +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 31d2933aa51..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedAutonomousDatabaseResponse.java +++ /dev/null @@ -1,271 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 05e0db77c20..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedDatabasePrivateEndpointResponse.java +++ /dev/null @@ -1,272 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 7a7628d4ef3..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedDatabaseResponse.java +++ /dev/null @@ -1,264 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 2afd2b2b5e6..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedAutonomousDatabaseResponse.java +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index c6b2fa0fbb9..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedDatabasePrivateEndpointResponse.java +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 91a21ea3297..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedDatabaseResponse.java +++ /dev/null @@ -1,186 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index d6cf8a21b99..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GenerateDistributedAutonomousDatabaseWalletResponse.java +++ /dev/null @@ -1,285 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/GetDistributedAutonomousDatabaseRaftMetricResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseRaftMetricResponse.java deleted file mode 100644 index 56b163671ae..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseRaftMetricResponse.java +++ /dev/null @@ -1,194 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/MoveDistributedAutonomousDatabaseReplicationUnitResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/MoveDistributedAutonomousDatabaseReplicationUnitResponse.java deleted file mode 100644 index e60b455f0ce..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/MoveDistributedAutonomousDatabaseReplicationUnitResponse.java +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/RecreateFailedDistributedAutonomousDatabaseResourceResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RecreateFailedDistributedAutonomousDatabaseResourceResponse.java deleted file mode 100644 index cd415580f1e..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RecreateFailedDistributedAutonomousDatabaseResourceResponse.java +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index f52d49c481d..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RecreateFailedDistributedDatabaseResourceResponse.java +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/RotateDistributedAutonomousDatabasePasswordsResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RotateDistributedAutonomousDatabasePasswordsResponse.java deleted file mode 100644 index b5f85b76635..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RotateDistributedAutonomousDatabasePasswordsResponse.java +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index e723addacc0..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RotateDistributedDatabasePasswordsResponse.java +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/StartDistributedAutonomousDatabaseResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StartDistributedAutonomousDatabaseResponse.java deleted file mode 100644 index 4ae21039b8a..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StartDistributedAutonomousDatabaseResponse.java +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/UpdateDistributedDatabasePrivateEndpointResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabasePrivateEndpointResponse.java deleted file mode 100644 index ef4e3a7a142..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabasePrivateEndpointResponse.java +++ /dev/null @@ -1,228 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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/ValidateDistributedAutonomousDatabaseCaBundleResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedAutonomousDatabaseCaBundleResponse.java deleted file mode 100644 index f4f8972aaa7..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedAutonomousDatabaseCaBundleResponse.java +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 52eb16308cd..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedAutonomousDatabaseNetworkResponse.java +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index b7ccc48af3b..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedDatabaseNetworkResponse.java +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.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 deleted file mode 100644 index 33b233496bd..00000000000 --- a/bmc-distributeddatabasev26/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-distributeddatabasev26/reflect-config.json +++ /dev/null @@ -1,2637 +0,0 @@ -[ - { - "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 deleted file mode 100644 index f74355d134a..00000000000 --- a/bmc-distributeddatabasev26/src/main/resources/com/oracle/bmc/distributeddatabasev26/client.properties +++ /dev/null @@ -1,9 +0,0 @@ -# -# Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. -# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -# - -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 c8d4f67e84b..8c89115289b 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.96.0 + 3.97.0 diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index 2d843c283c8..784a24b19b6 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 diff --git a/bmc-emaildataplane/pom.xml b/bmc-emaildataplane/pom.xml index cc653781130..0ca35c30032 100644 --- a/bmc-emaildataplane/pom.xml +++ b/bmc-emaildataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-emaildataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-emwarehouse/pom.xml b/bmc-emwarehouse/pom.xml index 0a89f993bfa..99cb1ed4bc7 100644 --- a/bmc-emwarehouse/pom.xml +++ b/bmc-emwarehouse/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-emwarehouse @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml index ad38b61d6a5..e70c3ef0659 100644 --- a/bmc-encryption/pom.xml +++ b/bmc-encryption/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.96.0 + 3.97.0 com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.96.0 + 3.97.0 com.fasterxml.jackson.core @@ -48,7 +48,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.96.0 + 3.97.0 test diff --git a/bmc-enforcer-rules/pom.xml b/bmc-enforcer-rules/pom.xml index 0ae6b58e7a4..b623ae1f1ba 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.96.0 + 3.97.0 oci-java-sdk-enforcer-rules diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index a0447d63bf1..b42b2bebaa0 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-events @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index d75b53239ad..d16f2ca1f78 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-examples @@ -71,14 +71,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.96.0 + 3.97.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.96.0 + 3.97.0 pom import @@ -725,10 +725,6 @@ com.oracle.oci.sdk oci-java-sdk-modeldeployment - - com.oracle.oci.sdk - oci-java-sdk-distributeddatabase - com.oracle.oci.sdk oci-java-sdk-apiaccesscontrol @@ -823,11 +819,11 @@ com.oracle.oci.sdk - oci-java-sdk-distributeddatabasev26 + oci-java-sdk-clusterhealth com.oracle.oci.sdk - oci-java-sdk-clusterhealth + oci-java-sdk-distributeddatabase \ No newline at end of file diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index cdf7cf4c37c..fba74fd3bf9 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 diff --git a/bmc-fleetappsmanagement/pom.xml b/bmc-fleetappsmanagement/pom.xml index 61fcd006519..3b6bba9a8ba 100644 --- a/bmc-fleetappsmanagement/pom.xml +++ b/bmc-fleetappsmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-fleetappsmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-fleetsoftwareupdate/pom.xml b/bmc-fleetsoftwareupdate/pom.xml index ab0ac0b7fd8..6086bc385bb 100644 --- a/bmc-fleetsoftwareupdate/pom.xml +++ b/bmc-fleetsoftwareupdate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-fleetsoftwareupdate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index 14a6ebc0704..7736bacb27d 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.96.0 + 3.97.0 pom import @@ -611,10 +611,6 @@ com.oracle.oci.sdk oci-java-sdk-modeldeployment - - com.oracle.oci.sdk - oci-java-sdk-distributeddatabase - com.oracle.oci.sdk oci-java-sdk-apiaccesscontrol @@ -709,11 +705,11 @@ com.oracle.oci.sdk - oci-java-sdk-distributeddatabasev26 + oci-java-sdk-clusterhealth com.oracle.oci.sdk - oci-java-sdk-clusterhealth + oci-java-sdk-distributeddatabase \ No newline at end of file diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index 18775fd3a6d..9aba0a4879e 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-functions @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsInvoke.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsInvoke.java index fa850f4f973..d12cf8022ca 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsInvoke.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsInvoke.java @@ -13,7 +13,7 @@ *

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: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public interface FunctionsInvoke extends AutoCloseable { /** Rebuilds the client from scratch. Useful to refresh certificates. */ @@ -65,7 +65,7 @@ public interface FunctionsInvoke extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Note: Deprecated. Use the new operation instead. \"Invokes a function\" + * Invokes a function * *

Note: This operation consumes a stream. * diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsInvokeAsync.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsInvokeAsync.java index 72bf74cdd38..0af7f8970bf 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsInvokeAsync.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsInvokeAsync.java @@ -8,7 +8,7 @@ import com.oracle.bmc.functions.responses.*; /** API for the Functions service. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public interface FunctionsInvokeAsync extends AutoCloseable { /** Rebuilds the client from scratch. Useful to refresh certificates. */ @@ -60,7 +60,7 @@ public interface FunctionsInvokeAsync extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Note: Deprecated. Use the new operation instead. \"Invokes a function\" + * Invokes a function * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsInvokeAsyncClient.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsInvokeAsyncClient.java index 6cc106bbc34..f82055e172d 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsInvokeAsyncClient.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsInvokeAsyncClient.java @@ -25,7 +25,7 @@ * 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: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class FunctionsInvokeAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient implements FunctionsInvokeAsync { /** Service instance for FunctionsInvoke. */ @@ -137,10 +137,10 @@ public java.util.concurrent.Future invokeFunction( .serviceDetails( "FunctionsInvoke", "InvokeFunction", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Function/InvokeFunction") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Function/InvokeFunction") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(InvokeFunctionRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("functions") .appendPathParam(request.getFunctionId()) .appendPathParam("actions") diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsInvokeClient.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsInvokeClient.java index 3d073836637..dfe3940661d 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsInvokeClient.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsInvokeClient.java @@ -12,7 +12,7 @@ import java.util.Objects; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class FunctionsInvokeClient extends com.oracle.bmc.http.internal.BaseSyncClient implements FunctionsInvoke { /** Service instance for FunctionsInvoke. */ @@ -122,10 +122,10 @@ public InvokeFunctionResponse invokeFunction(InvokeFunctionRequest request) { .serviceDetails( "FunctionsInvoke", "InvokeFunction", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Function/InvokeFunction") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Function/InvokeFunction") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(InvokeFunctionRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("functions") .appendPathParam(request.getFunctionId()) .appendPathParam("actions") diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagement.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagement.java index 54eaa99d25b..da79ad3d949 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagement.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagement.java @@ -13,7 +13,7 @@ *

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: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public interface FunctionsManagement extends AutoCloseable { /** Rebuilds the client from scratch. Useful to refresh certificates. */ @@ -65,9 +65,8 @@ public interface FunctionsManagement extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Note: Deprecated. Use the new operation instead. Moves an application into a different - * compartment within the same tenancy. For information about moving resources between - * compartments, see [Moving Resources Between + * Moves an application into a different compartment within the same tenancy. For information + * about moving resources between compartments, see [Moving Resources Between * Compartments](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). * * @param request The request object containing the details to send @@ -85,7 +84,7 @@ ChangeApplicationCompartmentResponse changeApplicationCompartment( ChangeApplicationCompartmentRequest request); /** - * Note: Deprecated. Use the new operation instead. \"Creates a new application.\" + * Creates a new application. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -101,7 +100,7 @@ ChangeApplicationCompartmentResponse changeApplicationCompartment( CreateApplicationResponse createApplication(CreateApplicationRequest request); /** - * Note: Deprecated. Use the new operation instead. \"Creates a new function.\" + * Creates a new function. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -116,7 +115,7 @@ ChangeApplicationCompartmentResponse changeApplicationCompartment( CreateFunctionResponse createFunction(CreateFunctionRequest request); /** - * Note: Deprecated. Use the new operation instead. Deletes an application. + * Deletes an application. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -132,7 +131,7 @@ ChangeApplicationCompartmentResponse changeApplicationCompartment( DeleteApplicationResponse deleteApplication(DeleteApplicationRequest request); /** - * Note: Deprecated. Use the new operation instead. Deletes a function. + * Deletes a function. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -147,7 +146,7 @@ ChangeApplicationCompartmentResponse changeApplicationCompartment( DeleteFunctionResponse deleteFunction(DeleteFunctionRequest request); /** - * Note: Deprecated. Use the new operation instead. \"Retrieves an application.\" + * Retrieves an application. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -162,7 +161,7 @@ ChangeApplicationCompartmentResponse changeApplicationCompartment( GetApplicationResponse getApplication(GetApplicationRequest request); /** - * Note: Deprecated. Use the new operation instead. \"Retrieves a function.\" + * Retrieves a function. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -177,8 +176,40 @@ ChangeApplicationCompartmentResponse changeApplicationCompartment( GetFunctionResponse getFunction(GetFunctionRequest request); /** - * Note: Deprecated. Use the new operation instead. Fetches a Pre-built Function(PBF) Listing. - * Returns a PbfListing response model. + * Fetches a FunctionsRuntime by ID. Returns a FunctionsRuntime response model. + * + * @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 GetFunctionsRuntime + * API. + */ + GetFunctionsRuntimeResponse getFunctionsRuntime(GetFunctionsRuntimeRequest request); + + /** + * Fetches a FunctionsRuntimeVersion by ID. Returns a FunctionsRuntimeVersion response model. + * + * @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 + * GetFunctionsRuntimeVersion API. + */ + GetFunctionsRuntimeVersionResponse getFunctionsRuntimeVersion( + GetFunctionsRuntimeVersionRequest request); + + /** + * Fetches a Pre-built Function(PBF) Listing. Returns a PbfListing response model. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -193,8 +224,7 @@ ChangeApplicationCompartmentResponse changeApplicationCompartment( GetPbfListingResponse getPbfListing(GetPbfListingRequest request); /** - * Note: Deprecated. Use the new operation instead. Gets a PbfListingVersion by identifier for a - * PbfListing. + * Gets a PbfListingVersion by identifier for a PbfListing. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -210,7 +240,7 @@ ChangeApplicationCompartmentResponse changeApplicationCompartment( GetPbfListingVersionResponse getPbfListingVersion(GetPbfListingVersionRequest request); /** - * Note: Deprecated. Use the new operation instead. \"Lists applications for a compartment.\" + * Lists applications for a compartment. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -226,7 +256,7 @@ ChangeApplicationCompartmentResponse changeApplicationCompartment( ListApplicationsResponse listApplications(ListApplicationsRequest request); /** - * Note: Deprecated. Use the new operation instead. \"Lists functions for an application.\" + * Lists functions for an application. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -241,9 +271,44 @@ ChangeApplicationCompartmentResponse changeApplicationCompartment( ListFunctionsResponse listFunctions(ListFunctionsRequest request); /** - * Note: Deprecated. Use the new operation instead. Fetches a wrapped list of all Pre-built - * Function(PBF) Listing versions. Returns a PbfListingVersionCollection containing an array of - * PbfListingVersionSummary response models. + * Fetches a wrapped list of all FunctionsRuntimeVersions. Returns a + * FunctionsRuntimeVersionCollection containing an array of FunctionsRuntimeVersionSummary + * response models. + * + * @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 + * ListFunctionsRuntimeVersions API. + */ + ListFunctionsRuntimeVersionsResponse listFunctionsRuntimeVersions( + ListFunctionsRuntimeVersionsRequest request); + + /** + * Fetches a wrapped list of all FunctionsRuntimes. Returns a FunctionsRuntimeCollection + * containing an array of FunctionsRuntimeSummary response models. + * + * @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 + * ListFunctionsRuntimes API. + */ + ListFunctionsRuntimesResponse listFunctionsRuntimes(ListFunctionsRuntimesRequest request); + + /** + * Fetches a wrapped list of all Pre-built Function(PBF) Listing versions. Returns a + * PbfListingVersionCollection containing an array of PbfListingVersionSummary response models. * *

Note that the PbfListingIdentifier must be provided as a query parameter, otherwise an * exception shall be thrown. @@ -262,9 +327,8 @@ ChangeApplicationCompartmentResponse changeApplicationCompartment( ListPbfListingVersionsResponse listPbfListingVersions(ListPbfListingVersionsRequest request); /** - * Note: Deprecated. Use the new operation instead. Fetches a wrapped list of all Pre-built - * Function(PBF) Listings. Returns a PbfListingCollection containing an array of - * PbfListingSummary response models. + * Fetches a wrapped list of all Pre-built Function(PBF) Listings. Returns a + * PbfListingCollection containing an array of PbfListingSummary response models. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -280,7 +344,7 @@ ChangeApplicationCompartmentResponse changeApplicationCompartment( ListPbfListingsResponse listPbfListings(ListPbfListingsRequest request); /** - * Note: Deprecated. Use the new operation instead. Returns a list of Triggers. + * Returns a list of Triggers. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -295,7 +359,7 @@ ChangeApplicationCompartmentResponse changeApplicationCompartment( ListTriggersResponse listTriggers(ListTriggersRequest request); /** - * Note: Deprecated. Use the new operation instead. \"Modifies an application\" + * Modifies an application * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -311,7 +375,7 @@ ChangeApplicationCompartmentResponse changeApplicationCompartment( UpdateApplicationResponse updateApplication(UpdateApplicationRequest request); /** - * Note: Deprecated. Use the new operation instead. \"Modifies a function\" + * Modifies a function * * @param request The request object containing the details to send * @return A response object containing details about the completed operation diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagementAsync.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagementAsync.java index 74744a2a57d..a4b73167fbd 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagementAsync.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagementAsync.java @@ -8,7 +8,7 @@ import com.oracle.bmc.functions.responses.*; /** API for the Functions service. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public interface FunctionsManagementAsync extends AutoCloseable { /** Rebuilds the client from scratch. Useful to refresh certificates. */ @@ -60,9 +60,8 @@ public interface FunctionsManagementAsync extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Note: Deprecated. Use the new operation instead. Moves an application into a different - * compartment within the same tenancy. For information about moving resources between - * compartments, see [Moving Resources Between + * Moves an application into a different compartment within the same tenancy. For information + * about moving resources between compartments, see [Moving Resources Between * Compartments](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). * * @param request The request object containing the details to send @@ -80,7 +79,7 @@ java.util.concurrent.Future changeApplicat handler); /** - * Note: Deprecated. Use the new operation instead. \"Creates a new application.\" + * Creates a new application. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -96,7 +95,7 @@ java.util.concurrent.Future createApplication( handler); /** - * Note: Deprecated. Use the new operation instead. \"Creates a new function.\" + * Creates a new function. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -111,7 +110,7 @@ java.util.concurrent.Future createFunction( handler); /** - * Note: Deprecated. Use the new operation instead. Deletes an application. + * Deletes an application. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -127,7 +126,7 @@ java.util.concurrent.Future deleteApplication( handler); /** - * Note: Deprecated. Use the new operation instead. Deletes a function. + * Deletes a function. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -142,7 +141,7 @@ java.util.concurrent.Future deleteFunction( handler); /** - * Note: Deprecated. Use the new operation instead. \"Retrieves an application.\" + * Retrieves an application. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -157,7 +156,7 @@ java.util.concurrent.Future getApplication( handler); /** - * Note: Deprecated. Use the new operation instead. \"Retrieves a function.\" + * Retrieves a function. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -171,8 +170,39 @@ java.util.concurrent.Future getFunction( com.oracle.bmc.responses.AsyncHandler handler); /** - * Note: Deprecated. Use the new operation instead. Fetches a Pre-built Function(PBF) Listing. - * Returns a PbfListing response model. + * Fetches a FunctionsRuntime by ID. Returns a FunctionsRuntime response model. + * + * @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 getFunctionsRuntime( + GetFunctionsRuntimeRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetFunctionsRuntimeRequest, GetFunctionsRuntimeResponse> + handler); + + /** + * Fetches a FunctionsRuntimeVersion by ID. Returns a FunctionsRuntimeVersion response model. + * + * @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 getFunctionsRuntimeVersion( + GetFunctionsRuntimeVersionRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetFunctionsRuntimeVersionRequest, GetFunctionsRuntimeVersionResponse> + handler); + + /** + * Fetches a Pre-built Function(PBF) Listing. Returns a PbfListing response model. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -187,8 +217,7 @@ java.util.concurrent.Future getPbfListing( handler); /** - * Note: Deprecated. Use the new operation instead. Gets a PbfListingVersion by identifier for a - * PbfListing. + * Gets a PbfListingVersion by identifier for a PbfListing. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -204,7 +233,7 @@ java.util.concurrent.Future getPbfListingVersion( handler); /** - * Note: Deprecated. Use the new operation instead. \"Lists applications for a compartment.\" + * Lists applications for a compartment. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -219,7 +248,7 @@ java.util.concurrent.Future listApplications( handler); /** - * Note: Deprecated. Use the new operation instead. \"Lists functions for an application.\" + * Lists functions for an application. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -234,9 +263,44 @@ java.util.concurrent.Future listFunctions( handler); /** - * Note: Deprecated. Use the new operation instead. Fetches a wrapped list of all Pre-built - * Function(PBF) Listing versions. Returns a PbfListingVersionCollection containing an array of - * PbfListingVersionSummary response models. + * Fetches a wrapped list of all FunctionsRuntimeVersions. Returns a + * FunctionsRuntimeVersionCollection containing an array of FunctionsRuntimeVersionSummary + * response models. + * + * @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 listFunctionsRuntimeVersions( + ListFunctionsRuntimeVersionsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListFunctionsRuntimeVersionsRequest, + ListFunctionsRuntimeVersionsResponse> + handler); + + /** + * Fetches a wrapped list of all FunctionsRuntimes. Returns a FunctionsRuntimeCollection + * containing an array of FunctionsRuntimeSummary response models. + * + * @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 listFunctionsRuntimes( + ListFunctionsRuntimesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListFunctionsRuntimesRequest, ListFunctionsRuntimesResponse> + handler); + + /** + * Fetches a wrapped list of all Pre-built Function(PBF) Listing versions. Returns a + * PbfListingVersionCollection containing an array of PbfListingVersionSummary response models. * *

Note that the PbfListingIdentifier must be provided as a query parameter, otherwise an * exception shall be thrown. @@ -255,9 +319,8 @@ java.util.concurrent.Future listPbfListingVersio handler); /** - * Note: Deprecated. Use the new operation instead. Fetches a wrapped list of all Pre-built - * Function(PBF) Listings. Returns a PbfListingCollection containing an array of - * PbfListingSummary response models. + * Fetches a wrapped list of all Pre-built Function(PBF) Listings. Returns a + * PbfListingCollection containing an array of PbfListingSummary response models. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -272,7 +335,7 @@ java.util.concurrent.Future listPbfListings( handler); /** - * Note: Deprecated. Use the new operation instead. Returns a list of Triggers. + * Returns a list of Triggers. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -287,7 +350,7 @@ java.util.concurrent.Future listTriggers( handler); /** - * Note: Deprecated. Use the new operation instead. \"Modifies an application\" + * Modifies an application * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -303,7 +366,7 @@ java.util.concurrent.Future updateApplication( handler); /** - * Note: Deprecated. Use the new operation instead. \"Modifies a function\" + * Modifies a function * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagementAsyncClient.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagementAsyncClient.java index fa05c60defc..1cc1ed92807 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagementAsyncClient.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagementAsyncClient.java @@ -25,7 +25,7 @@ * 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: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class FunctionsManagementAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient implements FunctionsManagementAsync { /** Service instance for FunctionsManagement. */ @@ -115,10 +115,10 @@ public void setRegion(String regionId) { .serviceDetails( "FunctionsManagement", "ChangeApplicationCompartment", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Application/ChangeApplicationCompartment") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Application/ChangeApplicationCompartment") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeApplicationCompartmentRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("applications") .appendPathParam(request.getApplicationId()) .appendPathParam("actions") @@ -130,6 +130,9 @@ public void setRegion(String regionId) { .handleResponseHeaderString( "opc-request-id", ChangeApplicationCompartmentResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ChangeApplicationCompartmentResponse.Builder::opcWorkRequestId) .callAsync(handler); } @@ -144,13 +147,10 @@ public java.util.concurrent.Future createApplication( return clientCall(request, CreateApplicationResponse::builder) .logger(LOG, "createApplication") - .serviceDetails( - "FunctionsManagement", - "CreateApplication", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Application/CreateApplication") + .serviceDetails("FunctionsManagement", "CreateApplication", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateApplicationRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("applications") .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) @@ -161,6 +161,8 @@ public java.util.concurrent.Future createApplication( .handleResponseHeaderString("etag", CreateApplicationResponse.Builder::etag) .handleResponseHeaderString( "opc-request-id", CreateApplicationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", CreateApplicationResponse.Builder::opcWorkRequestId) .callAsync(handler); } @@ -175,13 +177,10 @@ public java.util.concurrent.Future createFunction( return clientCall(request, CreateFunctionResponse::builder) .logger(LOG, "createFunction") - .serviceDetails( - "FunctionsManagement", - "CreateFunction", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Function/CreateFunction") + .serviceDetails("FunctionsManagement", "CreateFunction", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateFunctionRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("functions") .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) @@ -192,6 +191,8 @@ public java.util.concurrent.Future createFunction( .handleResponseHeaderString("etag", CreateFunctionResponse.Builder::etag) .handleResponseHeaderString( "opc-request-id", CreateFunctionResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", CreateFunctionResponse.Builder::opcWorkRequestId) .callAsync(handler); } @@ -209,10 +210,10 @@ public java.util.concurrent.Future deleteApplication( .serviceDetails( "FunctionsManagement", "DeleteApplication", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Application/DeleteApplication") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Application/DeleteApplication") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteApplicationRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("applications") .appendPathParam(request.getApplicationId()) .accept("application/json") @@ -220,6 +221,8 @@ public java.util.concurrent.Future deleteApplication( .appendHeader("opc-request-id", request.getOpcRequestId()) .handleResponseHeaderString( "opc-request-id", DeleteApplicationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", DeleteApplicationResponse.Builder::opcWorkRequestId) .callAsync(handler); } @@ -237,10 +240,10 @@ public java.util.concurrent.Future deleteFunction( .serviceDetails( "FunctionsManagement", "DeleteFunction", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Function/DeleteFunction") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Function/DeleteFunction") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteFunctionRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("functions") .appendPathParam(request.getFunctionId()) .accept("application/json") @@ -248,6 +251,8 @@ public java.util.concurrent.Future deleteFunction( .appendHeader("opc-request-id", request.getOpcRequestId()) .handleResponseHeaderString( "opc-request-id", DeleteFunctionResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", DeleteFunctionResponse.Builder::opcWorkRequestId) .callAsync(handler); } @@ -265,10 +270,10 @@ public java.util.concurrent.Future getApplication( .serviceDetails( "FunctionsManagement", "GetApplication", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Application/GetApplication") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Application/GetApplication") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetApplicationRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("applications") .appendPathParam(request.getApplicationId()) .accept("application/json") @@ -295,10 +300,10 @@ public java.util.concurrent.Future getFunction( .serviceDetails( "FunctionsManagement", "GetFunction", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Function/GetFunction") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Function/GetFunction") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetFunctionRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("functions") .appendPathParam(request.getFunctionId()) .accept("application/json") @@ -312,6 +317,73 @@ public java.util.concurrent.Future getFunction( .callAsync(handler); } + @Override + public java.util.concurrent.Future getFunctionsRuntime( + GetFunctionsRuntimeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetFunctionsRuntimeRequest, GetFunctionsRuntimeResponse> + handler) { + + Validate.notBlank(request.getFunctionsRuntimeId(), "functionsRuntimeId must not be blank"); + + return clientCall(request, GetFunctionsRuntimeResponse::builder) + .logger(LOG, "getFunctionsRuntime") + .serviceDetails( + "FunctionsManagement", + "GetFunctionsRuntime", + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/FunctionsRuntime/GetFunctionsRuntime") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetFunctionsRuntimeRequest::builder) + .basePath("/20260325") + .appendPathParam("functionsRuntimes") + .appendPathParam(request.getFunctionsRuntimeId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.functions.model.FunctionsRuntime.class, + GetFunctionsRuntimeResponse.Builder::functionsRuntime) + .handleResponseHeaderString("etag", GetFunctionsRuntimeResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetFunctionsRuntimeResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getFunctionsRuntimeVersion( + GetFunctionsRuntimeVersionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetFunctionsRuntimeVersionRequest, + GetFunctionsRuntimeVersionResponse> + handler) { + + Validate.notBlank( + request.getFunctionsRuntimeVersionId(), + "functionsRuntimeVersionId must not be blank"); + + return clientCall(request, GetFunctionsRuntimeVersionResponse::builder) + .logger(LOG, "getFunctionsRuntimeVersion") + .serviceDetails( + "FunctionsManagement", + "GetFunctionsRuntimeVersion", + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/FunctionsRuntimeVersion/GetFunctionsRuntimeVersion") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetFunctionsRuntimeVersionRequest::builder) + .basePath("/20260325") + .appendPathParam("functionsRuntimeVersions") + .appendPathParam(request.getFunctionsRuntimeVersionId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.functions.model.FunctionsRuntimeVersion.class, + GetFunctionsRuntimeVersionResponse.Builder::functionsRuntimeVersion) + .handleResponseHeaderString( + "etag", GetFunctionsRuntimeVersionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetFunctionsRuntimeVersionResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getPbfListing( GetPbfListingRequest request, @@ -325,10 +397,10 @@ public java.util.concurrent.Future getPbfListing( .serviceDetails( "FunctionsManagement", "GetPbfListing", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/PbfListing/GetPbfListing") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/PbfListing/GetPbfListing") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetPbfListingRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("pbfListings") .appendPathParam(request.getPbfListingId()) .accept("application/json") @@ -357,10 +429,10 @@ public java.util.concurrent.Future getPbfListingVe .serviceDetails( "FunctionsManagement", "GetPbfListingVersion", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/PbfListingVersion/GetPbfListingVersion") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/PbfListingVersion/GetPbfListingVersion") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetPbfListingVersionRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("pbfListingVersions") .appendPathParam(request.getPbfListingVersionId()) .accept("application/json") @@ -387,10 +459,10 @@ public java.util.concurrent.Future listApplications( .serviceDetails( "FunctionsManagement", "ListApplications", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/ApplicationSummary/ListApplications") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/ApplicationSummary/ListApplications") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListApplicationsRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("applications") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("limit", request.getLimit()) @@ -424,10 +496,10 @@ public java.util.concurrent.Future listFunctions( .serviceDetails( "FunctionsManagement", "ListFunctions", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/FunctionSummary/ListFunctions") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/FunctionSummary/ListFunctions") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListFunctionsRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("functions") .appendQueryParam("applicationId", request.getApplicationId()) .appendQueryParam("limit", request.getLimit()) @@ -449,6 +521,92 @@ public java.util.concurrent.Future listFunctions( .callAsync(handler); } + @Override + public java.util.concurrent.Future + listFunctionsRuntimeVersions( + ListFunctionsRuntimeVersionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListFunctionsRuntimeVersionsRequest, + ListFunctionsRuntimeVersionsResponse> + handler) { + + return clientCall(request, ListFunctionsRuntimeVersionsResponse::builder) + .logger(LOG, "listFunctionsRuntimeVersions") + .serviceDetails( + "FunctionsManagement", + "ListFunctionsRuntimeVersions", + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/FunctionsRuntimeVersion/ListFunctionsRuntimeVersions") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListFunctionsRuntimeVersionsRequest::builder) + .basePath("/20260325") + .appendPathParam("functionsRuntimeVersions") + .appendQueryParam("functionsRuntimeId", request.getFunctionsRuntimeId()) + .appendQueryParam("functionsRuntimeName", request.getFunctionsRuntimeName()) + .appendQueryParam( + "functionsRuntimeVersionId", request.getFunctionsRuntimeVersionId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("osVersion", request.getOsVersion()) + .appendQueryParam("languageVersion", request.getLanguageVersion()) + .appendQueryParam("isCurrentVersion", request.getIsCurrentVersion()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.functions.model.FunctionsRuntimeVersionCollection.class, + ListFunctionsRuntimeVersionsResponse.Builder + ::functionsRuntimeVersionCollection) + .handleResponseHeaderString( + "opc-request-id", + ListFunctionsRuntimeVersionsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListFunctionsRuntimeVersionsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listFunctionsRuntimes( + ListFunctionsRuntimesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListFunctionsRuntimesRequest, ListFunctionsRuntimesResponse> + handler) { + + return clientCall(request, ListFunctionsRuntimesResponse::builder) + .logger(LOG, "listFunctionsRuntimes") + .serviceDetails( + "FunctionsManagement", + "ListFunctionsRuntimes", + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/FunctionsRuntime/ListFunctionsRuntimes") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListFunctionsRuntimesRequest::builder) + .basePath("/20260325") + .appendPathParam("functionsRuntimes") + .appendQueryParam("functionsRuntimeId", request.getFunctionsRuntimeId()) + .appendQueryParam("name", request.getName()) + .appendQueryParam("nameContains", request.getNameContains()) + .appendQueryParam("nameStartsWith", request.getNameStartsWith()) + .appendQueryParam("os", request.getOs()) + .appendQueryParam("language", request.getLanguage()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.functions.model.FunctionsRuntimeCollection.class, + ListFunctionsRuntimesResponse.Builder::functionsRuntimeCollection) + .handleResponseHeaderString( + "opc-request-id", ListFunctionsRuntimesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListFunctionsRuntimesResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listPbfListingVersions( ListPbfListingVersionsRequest request, @@ -462,10 +620,10 @@ public java.util.concurrent.Future listPbfListin .serviceDetails( "FunctionsManagement", "ListPbfListingVersions", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/PbfListingVersion/ListPbfListingVersions") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/PbfListingVersion/ListPbfListingVersions") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListPbfListingVersionsRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("pbfListingVersions") .appendQueryParam("pbfListingId", request.getPbfListingId()) .appendQueryParam("pbfListingVersionId", request.getPbfListingVersionId()) @@ -500,10 +658,10 @@ public java.util.concurrent.Future listPbfListings( .serviceDetails( "FunctionsManagement", "ListPbfListings", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/PbfListing/ListPbfListings") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/PbfListing/ListPbfListings") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListPbfListingsRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("pbfListings") .appendQueryParam("pbfListingId", request.getPbfListingId()) .appendQueryParam("name", request.getName()) @@ -541,10 +699,10 @@ public java.util.concurrent.Future listTriggers( .serviceDetails( "FunctionsManagement", "ListTriggers", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/TriggersCollection/ListTriggers") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/TriggersCollection/ListTriggers") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListTriggersRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("pbfListings") .appendPathParam("triggers") .appendQueryParam("name", request.getName()) @@ -579,22 +737,20 @@ public java.util.concurrent.Future updateApplication( .serviceDetails( "FunctionsManagement", "UpdateApplication", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Application/UpdateApplication") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Application/UpdateApplication") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateApplicationRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("applications") .appendPathParam(request.getApplicationId()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .hasBody() - .handleBody( - com.oracle.bmc.functions.model.Application.class, - UpdateApplicationResponse.Builder::application) - .handleResponseHeaderString("etag", UpdateApplicationResponse.Builder::etag) .handleResponseHeaderString( "opc-request-id", UpdateApplicationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", UpdateApplicationResponse.Builder::opcWorkRequestId) .callAsync(handler); } @@ -614,22 +770,20 @@ public java.util.concurrent.Future updateFunction( .serviceDetails( "FunctionsManagement", "UpdateFunction", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Function/UpdateFunction") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Function/UpdateFunction") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateFunctionRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("functions") .appendPathParam(request.getFunctionId()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .hasBody() - .handleBody( - com.oracle.bmc.functions.model.Function.class, - UpdateFunctionResponse.Builder::function) - .handleResponseHeaderString("etag", UpdateFunctionResponse.Builder::etag) .handleResponseHeaderString( "opc-request-id", UpdateFunctionResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", UpdateFunctionResponse.Builder::opcWorkRequestId) .callAsync(handler); } diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagementClient.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagementClient.java index 19cc7842de0..53908c31c53 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagementClient.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagementClient.java @@ -12,7 +12,7 @@ import java.util.Objects; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class FunctionsManagementClient extends com.oracle.bmc.http.internal.BaseSyncClient implements FunctionsManagement { /** Service instance for FunctionsManagement. */ @@ -139,10 +139,10 @@ public ChangeApplicationCompartmentResponse changeApplicationCompartment( .serviceDetails( "FunctionsManagement", "ChangeApplicationCompartment", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Application/ChangeApplicationCompartment") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Application/ChangeApplicationCompartment") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeApplicationCompartmentRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("applications") .appendPathParam(request.getApplicationId()) .appendPathParam("actions") @@ -155,6 +155,9 @@ public ChangeApplicationCompartmentResponse changeApplicationCompartment( .handleResponseHeaderString( "opc-request-id", ChangeApplicationCompartmentResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ChangeApplicationCompartmentResponse.Builder::opcWorkRequestId) .callSync(); } @@ -165,13 +168,10 @@ public CreateApplicationResponse createApplication(CreateApplicationRequest requ return clientCall(request, CreateApplicationResponse::builder) .logger(LOG, "createApplication") - .serviceDetails( - "FunctionsManagement", - "CreateApplication", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Application/CreateApplication") + .serviceDetails("FunctionsManagement", "CreateApplication", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateApplicationRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("applications") .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) @@ -183,6 +183,8 @@ public CreateApplicationResponse createApplication(CreateApplicationRequest requ .handleResponseHeaderString("etag", CreateApplicationResponse.Builder::etag) .handleResponseHeaderString( "opc-request-id", CreateApplicationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", CreateApplicationResponse.Builder::opcWorkRequestId) .callSync(); } @@ -193,13 +195,10 @@ public CreateFunctionResponse createFunction(CreateFunctionRequest request) { return clientCall(request, CreateFunctionResponse::builder) .logger(LOG, "createFunction") - .serviceDetails( - "FunctionsManagement", - "CreateFunction", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Function/CreateFunction") + .serviceDetails("FunctionsManagement", "CreateFunction", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateFunctionRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("functions") .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) @@ -211,6 +210,8 @@ public CreateFunctionResponse createFunction(CreateFunctionRequest request) { .handleResponseHeaderString("etag", CreateFunctionResponse.Builder::etag) .handleResponseHeaderString( "opc-request-id", CreateFunctionResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", CreateFunctionResponse.Builder::opcWorkRequestId) .callSync(); } @@ -224,10 +225,10 @@ public DeleteApplicationResponse deleteApplication(DeleteApplicationRequest requ .serviceDetails( "FunctionsManagement", "DeleteApplication", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Application/DeleteApplication") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Application/DeleteApplication") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteApplicationRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("applications") .appendPathParam(request.getApplicationId()) .accept("application/json") @@ -236,6 +237,8 @@ public DeleteApplicationResponse deleteApplication(DeleteApplicationRequest requ .operationUsesDefaultRetries() .handleResponseHeaderString( "opc-request-id", DeleteApplicationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", DeleteApplicationResponse.Builder::opcWorkRequestId) .callSync(); } @@ -249,10 +252,10 @@ public DeleteFunctionResponse deleteFunction(DeleteFunctionRequest request) { .serviceDetails( "FunctionsManagement", "DeleteFunction", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Function/DeleteFunction") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Function/DeleteFunction") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteFunctionRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("functions") .appendPathParam(request.getFunctionId()) .accept("application/json") @@ -261,6 +264,8 @@ public DeleteFunctionResponse deleteFunction(DeleteFunctionRequest request) { .operationUsesDefaultRetries() .handleResponseHeaderString( "opc-request-id", DeleteFunctionResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", DeleteFunctionResponse.Builder::opcWorkRequestId) .callSync(); } @@ -274,10 +279,10 @@ public GetApplicationResponse getApplication(GetApplicationRequest request) { .serviceDetails( "FunctionsManagement", "GetApplication", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Application/GetApplication") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Application/GetApplication") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetApplicationRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("applications") .appendPathParam(request.getApplicationId()) .accept("application/json") @@ -302,10 +307,10 @@ public GetFunctionResponse getFunction(GetFunctionRequest request) { .serviceDetails( "FunctionsManagement", "GetFunction", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Function/GetFunction") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Function/GetFunction") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetFunctionRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("functions") .appendPathParam(request.getFunctionId()) .accept("application/json") @@ -320,6 +325,66 @@ public GetFunctionResponse getFunction(GetFunctionRequest request) { .callSync(); } + @Override + public GetFunctionsRuntimeResponse getFunctionsRuntime(GetFunctionsRuntimeRequest request) { + + Validate.notBlank(request.getFunctionsRuntimeId(), "functionsRuntimeId must not be blank"); + + return clientCall(request, GetFunctionsRuntimeResponse::builder) + .logger(LOG, "getFunctionsRuntime") + .serviceDetails( + "FunctionsManagement", + "GetFunctionsRuntime", + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/FunctionsRuntime/GetFunctionsRuntime") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetFunctionsRuntimeRequest::builder) + .basePath("/20260325") + .appendPathParam("functionsRuntimes") + .appendPathParam(request.getFunctionsRuntimeId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.functions.model.FunctionsRuntime.class, + GetFunctionsRuntimeResponse.Builder::functionsRuntime) + .handleResponseHeaderString("etag", GetFunctionsRuntimeResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetFunctionsRuntimeResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetFunctionsRuntimeVersionResponse getFunctionsRuntimeVersion( + GetFunctionsRuntimeVersionRequest request) { + + Validate.notBlank( + request.getFunctionsRuntimeVersionId(), + "functionsRuntimeVersionId must not be blank"); + + return clientCall(request, GetFunctionsRuntimeVersionResponse::builder) + .logger(LOG, "getFunctionsRuntimeVersion") + .serviceDetails( + "FunctionsManagement", + "GetFunctionsRuntimeVersion", + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/FunctionsRuntimeVersion/GetFunctionsRuntimeVersion") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetFunctionsRuntimeVersionRequest::builder) + .basePath("/20260325") + .appendPathParam("functionsRuntimeVersions") + .appendPathParam(request.getFunctionsRuntimeVersionId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.functions.model.FunctionsRuntimeVersion.class, + GetFunctionsRuntimeVersionResponse.Builder::functionsRuntimeVersion) + .handleResponseHeaderString( + "etag", GetFunctionsRuntimeVersionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetFunctionsRuntimeVersionResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetPbfListingResponse getPbfListing(GetPbfListingRequest request) { @@ -330,10 +395,10 @@ public GetPbfListingResponse getPbfListing(GetPbfListingRequest request) { .serviceDetails( "FunctionsManagement", "GetPbfListing", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/PbfListing/GetPbfListing") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/PbfListing/GetPbfListing") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetPbfListingRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("pbfListings") .appendPathParam(request.getPbfListingId()) .accept("application/json") @@ -359,10 +424,10 @@ public GetPbfListingVersionResponse getPbfListingVersion(GetPbfListingVersionReq .serviceDetails( "FunctionsManagement", "GetPbfListingVersion", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/PbfListingVersion/GetPbfListingVersion") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/PbfListingVersion/GetPbfListingVersion") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetPbfListingVersionRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("pbfListingVersions") .appendPathParam(request.getPbfListingVersionId()) .accept("application/json") @@ -386,10 +451,10 @@ public ListApplicationsResponse listApplications(ListApplicationsRequest request .serviceDetails( "FunctionsManagement", "ListApplications", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/ApplicationSummary/ListApplications") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/ApplicationSummary/ListApplications") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListApplicationsRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("applications") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("limit", request.getLimit()) @@ -421,10 +486,10 @@ public ListFunctionsResponse listFunctions(ListFunctionsRequest request) { .serviceDetails( "FunctionsManagement", "ListFunctions", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/FunctionSummary/ListFunctions") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/FunctionSummary/ListFunctions") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListFunctionsRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("functions") .appendQueryParam("applicationId", request.getApplicationId()) .appendQueryParam("limit", request.getLimit()) @@ -447,6 +512,86 @@ public ListFunctionsResponse listFunctions(ListFunctionsRequest request) { .callSync(); } + @Override + public ListFunctionsRuntimeVersionsResponse listFunctionsRuntimeVersions( + ListFunctionsRuntimeVersionsRequest request) { + + return clientCall(request, ListFunctionsRuntimeVersionsResponse::builder) + .logger(LOG, "listFunctionsRuntimeVersions") + .serviceDetails( + "FunctionsManagement", + "ListFunctionsRuntimeVersions", + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/FunctionsRuntimeVersion/ListFunctionsRuntimeVersions") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListFunctionsRuntimeVersionsRequest::builder) + .basePath("/20260325") + .appendPathParam("functionsRuntimeVersions") + .appendQueryParam("functionsRuntimeId", request.getFunctionsRuntimeId()) + .appendQueryParam("functionsRuntimeName", request.getFunctionsRuntimeName()) + .appendQueryParam( + "functionsRuntimeVersionId", request.getFunctionsRuntimeVersionId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("osVersion", request.getOsVersion()) + .appendQueryParam("languageVersion", request.getLanguageVersion()) + .appendQueryParam("isCurrentVersion", request.getIsCurrentVersion()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.functions.model.FunctionsRuntimeVersionCollection.class, + ListFunctionsRuntimeVersionsResponse.Builder + ::functionsRuntimeVersionCollection) + .handleResponseHeaderString( + "opc-request-id", + ListFunctionsRuntimeVersionsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListFunctionsRuntimeVersionsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListFunctionsRuntimesResponse listFunctionsRuntimes( + ListFunctionsRuntimesRequest request) { + + return clientCall(request, ListFunctionsRuntimesResponse::builder) + .logger(LOG, "listFunctionsRuntimes") + .serviceDetails( + "FunctionsManagement", + "ListFunctionsRuntimes", + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/FunctionsRuntime/ListFunctionsRuntimes") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListFunctionsRuntimesRequest::builder) + .basePath("/20260325") + .appendPathParam("functionsRuntimes") + .appendQueryParam("functionsRuntimeId", request.getFunctionsRuntimeId()) + .appendQueryParam("name", request.getName()) + .appendQueryParam("nameContains", request.getNameContains()) + .appendQueryParam("nameStartsWith", request.getNameStartsWith()) + .appendQueryParam("os", request.getOs()) + .appendQueryParam("language", request.getLanguage()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.functions.model.FunctionsRuntimeCollection.class, + ListFunctionsRuntimesResponse.Builder::functionsRuntimeCollection) + .handleResponseHeaderString( + "opc-request-id", ListFunctionsRuntimesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListFunctionsRuntimesResponse.Builder::opcNextPage) + .callSync(); + } + @Override public ListPbfListingVersionsResponse listPbfListingVersions( ListPbfListingVersionsRequest request) { @@ -457,10 +602,10 @@ public ListPbfListingVersionsResponse listPbfListingVersions( .serviceDetails( "FunctionsManagement", "ListPbfListingVersions", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/PbfListingVersion/ListPbfListingVersions") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/PbfListingVersion/ListPbfListingVersions") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListPbfListingVersionsRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("pbfListingVersions") .appendQueryParam("pbfListingId", request.getPbfListingId()) .appendQueryParam("pbfListingVersionId", request.getPbfListingVersionId()) @@ -492,10 +637,10 @@ public ListPbfListingsResponse listPbfListings(ListPbfListingsRequest request) { .serviceDetails( "FunctionsManagement", "ListPbfListings", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/PbfListing/ListPbfListings") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/PbfListing/ListPbfListings") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListPbfListingsRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("pbfListings") .appendQueryParam("pbfListingId", request.getPbfListingId()) .appendQueryParam("name", request.getName()) @@ -531,10 +676,10 @@ public ListTriggersResponse listTriggers(ListTriggersRequest request) { .serviceDetails( "FunctionsManagement", "ListTriggers", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/TriggersCollection/ListTriggers") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/TriggersCollection/ListTriggers") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListTriggersRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("pbfListings") .appendPathParam("triggers") .appendQueryParam("name", request.getName()) @@ -566,10 +711,10 @@ public UpdateApplicationResponse updateApplication(UpdateApplicationRequest requ .serviceDetails( "FunctionsManagement", "UpdateApplication", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Application/UpdateApplication") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Application/UpdateApplication") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateApplicationRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("applications") .appendPathParam(request.getApplicationId()) .accept("application/json") @@ -577,12 +722,10 @@ public UpdateApplicationResponse updateApplication(UpdateApplicationRequest requ .appendHeader("opc-request-id", request.getOpcRequestId()) .operationUsesDefaultRetries() .hasBody() - .handleBody( - com.oracle.bmc.functions.model.Application.class, - UpdateApplicationResponse.Builder::application) - .handleResponseHeaderString("etag", UpdateApplicationResponse.Builder::etag) .handleResponseHeaderString( "opc-request-id", UpdateApplicationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", UpdateApplicationResponse.Builder::opcWorkRequestId) .callSync(); } @@ -598,10 +741,10 @@ public UpdateFunctionResponse updateFunction(UpdateFunctionRequest request) { .serviceDetails( "FunctionsManagement", "UpdateFunction", - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Function/UpdateFunction") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Function/UpdateFunction") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateFunctionRequest::builder) - .basePath("/20181201") + .basePath("/20260325") .appendPathParam("functions") .appendPathParam(request.getFunctionId()) .accept("application/json") @@ -609,12 +752,10 @@ public UpdateFunctionResponse updateFunction(UpdateFunctionRequest request) { .appendHeader("opc-request-id", request.getOpcRequestId()) .operationUsesDefaultRetries() .hasBody() - .handleBody( - com.oracle.bmc.functions.model.Function.class, - UpdateFunctionResponse.Builder::function) - .handleResponseHeaderString("etag", UpdateFunctionResponse.Builder::etag) .handleResponseHeaderString( "opc-request-id", UpdateFunctionResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", UpdateFunctionResponse.Builder::opcWorkRequestId) .callSync(); } diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagementPaginators.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagementPaginators.java index 6557c2c3791..a51958f25cb 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagementPaginators.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagementPaginators.java @@ -33,7 +33,7 @@ * 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: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class FunctionsManagementPaginators { private final FunctionsManagement client; @@ -271,6 +271,256 @@ public java.util.List apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listFunctionsRuntimeVersions 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 + listFunctionsRuntimeVersionsResponseIterator( + final ListFunctionsRuntimeVersionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListFunctionsRuntimeVersionsRequest.Builder, + ListFunctionsRuntimeVersionsRequest, + ListFunctionsRuntimeVersionsResponse>( + new java.util.function.Supplier() { + @Override + public ListFunctionsRuntimeVersionsRequest.Builder get() { + return ListFunctionsRuntimeVersionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListFunctionsRuntimeVersionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFunctionsRuntimeVersionsRequest.Builder>, + ListFunctionsRuntimeVersionsRequest>() { + @Override + public ListFunctionsRuntimeVersionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFunctionsRuntimeVersionsRequest.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< + ListFunctionsRuntimeVersionsRequest, + ListFunctionsRuntimeVersionsResponse>() { + @Override + public ListFunctionsRuntimeVersionsResponse apply( + ListFunctionsRuntimeVersionsRequest request) { + return client.listFunctionsRuntimeVersions(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.functions.model.FunctionsRuntimeVersionSummary} objects contained in responses + * from the listFunctionsRuntimeVersions 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.functions.model.FunctionsRuntimeVersionSummary} objects contained in + * responses received from the service. + */ + public Iterable + listFunctionsRuntimeVersionsRecordIterator( + final ListFunctionsRuntimeVersionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListFunctionsRuntimeVersionsRequest.Builder, + ListFunctionsRuntimeVersionsRequest, + ListFunctionsRuntimeVersionsResponse, + com.oracle.bmc.functions.model.FunctionsRuntimeVersionSummary>( + new java.util.function.Supplier() { + @Override + public ListFunctionsRuntimeVersionsRequest.Builder get() { + return ListFunctionsRuntimeVersionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListFunctionsRuntimeVersionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFunctionsRuntimeVersionsRequest.Builder>, + ListFunctionsRuntimeVersionsRequest>() { + @Override + public ListFunctionsRuntimeVersionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFunctionsRuntimeVersionsRequest.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< + ListFunctionsRuntimeVersionsRequest, + ListFunctionsRuntimeVersionsResponse>() { + @Override + public ListFunctionsRuntimeVersionsResponse apply( + ListFunctionsRuntimeVersionsRequest request) { + return client.listFunctionsRuntimeVersions(request); + } + }, + new java.util.function.Function< + ListFunctionsRuntimeVersionsResponse, + java.util.List< + com.oracle.bmc.functions.model.FunctionsRuntimeVersionSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.functions.model.FunctionsRuntimeVersionSummary> + apply(ListFunctionsRuntimeVersionsResponse response) { + return response.getFunctionsRuntimeVersionCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listFunctionsRuntimes 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 listFunctionsRuntimesResponseIterator( + final ListFunctionsRuntimesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListFunctionsRuntimesRequest.Builder, + ListFunctionsRuntimesRequest, + ListFunctionsRuntimesResponse>( + new java.util.function.Supplier() { + @Override + public ListFunctionsRuntimesRequest.Builder get() { + return ListFunctionsRuntimesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListFunctionsRuntimesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFunctionsRuntimesRequest.Builder>, + ListFunctionsRuntimesRequest>() { + @Override + public ListFunctionsRuntimesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFunctionsRuntimesRequest.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< + ListFunctionsRuntimesRequest, ListFunctionsRuntimesResponse>() { + @Override + public ListFunctionsRuntimesResponse apply( + ListFunctionsRuntimesRequest request) { + return client.listFunctionsRuntimes(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.functions.model.FunctionsRuntimeSummary} objects contained in responses from + * the listFunctionsRuntimes 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.functions.model.FunctionsRuntimeSummary} objects contained in responses + * received from the service. + */ + public Iterable + listFunctionsRuntimesRecordIterator(final ListFunctionsRuntimesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListFunctionsRuntimesRequest.Builder, + ListFunctionsRuntimesRequest, + ListFunctionsRuntimesResponse, + com.oracle.bmc.functions.model.FunctionsRuntimeSummary>( + new java.util.function.Supplier() { + @Override + public ListFunctionsRuntimesRequest.Builder get() { + return ListFunctionsRuntimesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListFunctionsRuntimesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFunctionsRuntimesRequest.Builder>, + ListFunctionsRuntimesRequest>() { + @Override + public ListFunctionsRuntimesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFunctionsRuntimesRequest.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< + ListFunctionsRuntimesRequest, ListFunctionsRuntimesResponse>() { + @Override + public ListFunctionsRuntimesResponse apply( + ListFunctionsRuntimesRequest request) { + return client.listFunctionsRuntimes(request); + } + }, + new java.util.function.Function< + ListFunctionsRuntimesResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListFunctionsRuntimesResponse response) { + return response.getFunctionsRuntimeCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the * listPbfListingVersions operation. This iterable will fetch more data from the server as diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagementWaiters.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagementWaiters.java index 84c36af7e51..205ecb89368 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagementWaiters.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagementWaiters.java @@ -14,7 +14,7 @@ *

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: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class FunctionsManagementWaiters { private final java.util.concurrent.ExecutorService executorService; private final FunctionsManagement client; @@ -229,6 +229,226 @@ public boolean test(GetFunctionResponse response) { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forFunctionsRuntime( + GetFunctionsRuntimeRequest request, + com.oracle.bmc.functions.model.FunctionsRuntime.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 forFunctionsRuntime( + 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 + forFunctionsRuntime( + GetFunctionsRuntimeRequest request, + com.oracle.bmc.functions.model.FunctionsRuntime.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 forFunctionsRuntime( + 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 + forFunctionsRuntime( + GetFunctionsRuntimeRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.functions.model.FunctionsRuntime.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 forFunctionsRuntime( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for FunctionsRuntime. + private com.oracle.bmc.waiter.Waiter + forFunctionsRuntime( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetFunctionsRuntimeRequest request, + final com.oracle.bmc.functions.model.FunctionsRuntime.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< + GetFunctionsRuntimeRequest, GetFunctionsRuntimeResponse>() { + @Override + public GetFunctionsRuntimeResponse apply( + GetFunctionsRuntimeRequest request) { + return client.getFunctionsRuntime(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetFunctionsRuntimeResponse response) { + return targetStatesSet.contains( + response.getFunctionsRuntime().getLifecycleState()); + } + }, + false), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetFunctionsRuntimeVersionRequest, GetFunctionsRuntimeVersionResponse> + forFunctionsRuntimeVersion( + GetFunctionsRuntimeVersionRequest request, + com.oracle.bmc.functions.model.FunctionsRuntimeVersion.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 forFunctionsRuntimeVersion( + 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< + GetFunctionsRuntimeVersionRequest, GetFunctionsRuntimeVersionResponse> + forFunctionsRuntimeVersion( + GetFunctionsRuntimeVersionRequest request, + com.oracle.bmc.functions.model.FunctionsRuntimeVersion.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 forFunctionsRuntimeVersion( + 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< + GetFunctionsRuntimeVersionRequest, GetFunctionsRuntimeVersionResponse> + forFunctionsRuntimeVersion( + GetFunctionsRuntimeVersionRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.functions.model.FunctionsRuntimeVersion.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 forFunctionsRuntimeVersion( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for FunctionsRuntimeVersion. + private com.oracle.bmc.waiter.Waiter< + GetFunctionsRuntimeVersionRequest, GetFunctionsRuntimeVersionResponse> + forFunctionsRuntimeVersion( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetFunctionsRuntimeVersionRequest request, + final com.oracle.bmc.functions.model.FunctionsRuntimeVersion.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< + GetFunctionsRuntimeVersionRequest, + GetFunctionsRuntimeVersionResponse>() { + @Override + public GetFunctionsRuntimeVersionResponse apply( + GetFunctionsRuntimeVersionRequest request) { + return client.getFunctionsRuntimeVersion(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetFunctionsRuntimeVersionResponse response) { + return targetStatesSet.contains( + response.getFunctionsRuntimeVersion().getLifecycleState()); + } + }, + false), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestService.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagement.java similarity index 76% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestService.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagement.java index 887316c3f38..3040d20365a 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestService.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagement.java @@ -2,18 +2,19 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -package com.oracle.bmc.distributeddatabasev26; +package com.oracle.bmc.functions; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.functions.requests.*; +import com.oracle.bmc.functions.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. + * API for the Functions service. + * + *

This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by + * default if no circuit breaker configuration is defined by the user. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public interface DistributedDbWorkRequestService extends AutoCloseable { +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public interface WorkRequestManagement extends AutoCloseable { /** Rebuilds the client from scratch. Useful to refresh certificates. */ void refreshClient(); @@ -64,7 +65,23 @@ public interface DistributedDbWorkRequestService extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Gets details of the work request with the given ID. + * 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 will not retry by default, users + * can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to + * enable retries for it. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use CancelWorkRequest + * API. + */ + CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest 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 @@ -73,13 +90,13 @@ public interface DistributedDbWorkRequestService extends AutoCloseable { * 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. + * 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 @@ -88,14 +105,14 @@ public interface DistributedDbWorkRequestService extends AutoCloseable { * 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. + * 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 @@ -104,7 +121,7 @@ public interface DistributedDbWorkRequestService extends AutoCloseable { * 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. */ @@ -120,7 +137,7 @@ public interface DistributedDbWorkRequestService extends AutoCloseable { * 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. */ @@ -131,7 +148,7 @@ public interface DistributedDbWorkRequestService extends AutoCloseable { * * @return The service waiters. */ - DistributedDbWorkRequestServiceWaiters getWaiters(); + WorkRequestManagementWaiters getWaiters(); /** * Gets the pre-configured paginators available for list operations in this service which may @@ -141,5 +158,5 @@ public interface DistributedDbWorkRequestService extends AutoCloseable { * * @return The service paginators. */ - DistributedDbWorkRequestServicePaginators getPaginators(); + WorkRequestManagementPaginators getPaginators(); } diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceAsync.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagementAsync.java similarity index 81% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceAsync.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagementAsync.java index 55fb3791198..bd17084b6c4 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceAsync.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagementAsync.java @@ -2,17 +2,14 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -package com.oracle.bmc.distributeddatabasev26; +package com.oracle.bmc.functions; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.functions.requests.*; +import com.oracle.bmc.functions.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 { +/** API for the Functions service. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public interface WorkRequestManagementAsync extends AutoCloseable { /** Rebuilds the client from scratch. Useful to refresh certificates. */ void refreshClient(); @@ -63,7 +60,23 @@ public interface DistributedDbWorkRequestServiceAsync extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Gets details of the work request with the given ID. + * 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); + + /** + * 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. @@ -78,7 +91,7 @@ java.util.concurrent.Future getWorkRequest( handler); /** - * Returns a (paginated) list of errors for the work request with the given ID. + * 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. @@ -94,7 +107,7 @@ java.util.concurrent.Future listWorkRequestErrors handler); /** - * Returns a (paginated) list of logs for the work request with the given ID. + * 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. diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceAsyncClient.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagementAsyncClient.java similarity index 81% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceAsyncClient.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagementAsyncClient.java index 8856b80eb44..87926a5a324 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceAsyncClient.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagementAsyncClient.java @@ -2,16 +2,16 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -package com.oracle.bmc.distributeddatabasev26; +package com.oracle.bmc.functions; import com.oracle.bmc.util.internal.Validate; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.functions.requests.*; +import com.oracle.bmc.functions.responses.*; import java.util.Objects; /** - * Async client implementation for DistributedDbWorkRequestService service.
+ * Async client implementation for WorkRequestManagement 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 @@ -25,22 +25,21 @@ * 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. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class WorkRequestManagementAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient + implements WorkRequestManagementAsync { + /** Service instance for WorkRequestManagement. */ public static final com.oracle.bmc.Service SERVICE = com.oracle.bmc.Services.serviceBuilder() - .serviceName(DistributedDbWorkRequestServiceClient.class.getName()) + .serviceName(WorkRequestManagementClient.class.getName()) .serviceEndpointPrefix("") - .serviceEndpointTemplate("https://globaldb.{region}.oci.{secondLevelDomain}") + .serviceEndpointTemplate("https://functions.{region}.oci.{secondLevelDomain}") .build(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DistributedDbWorkRequestServiceAsyncClient.class); + org.slf4j.LoggerFactory.getLogger(WorkRequestManagementAsyncClient.class); - DistributedDbWorkRequestServiceAsyncClient( + WorkRequestManagementAsyncClient( com.oracle.bmc.common.ClientBuilderBase builder, com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { @@ -62,10 +61,10 @@ public static Builder builder() { */ public static class Builder extends com.oracle.bmc.common.RegionalClientBuilder< - Builder, DistributedDbWorkRequestServiceAsyncClient> { + Builder, WorkRequestManagementAsyncClient> { private Builder(com.oracle.bmc.Service service) { super(service); - final String packageName = "distributeddatabasev26"; + final String packageName = "functions"; com.oracle.bmc.internal.DeveloperToolConfiguration .throwDisabledServiceExceptionIfAppropriate(packageName); requestSignerFactory = @@ -79,12 +78,11 @@ private Builder(com.oracle.bmc.Service service) { * @param authenticationDetailsProvider authentication details provider * @return the client */ - public DistributedDbWorkRequestServiceAsyncClient build( + public WorkRequestManagementAsyncClient build( @jakarta.annotation.Nonnull com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { - return new DistributedDbWorkRequestServiceAsyncClient( - this, authenticationDetailsProvider); + return new WorkRequestManagementAsyncClient(this, authenticationDetailsProvider); } } @@ -98,6 +96,34 @@ 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( + "WorkRequestManagement", + "CancelWorkRequest", + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/WorkRequest/CancelWorkRequest") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(CancelWorkRequestRequest::builder) + .basePath("/20260325") + .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 getWorkRequest( GetWorkRequestRequest request, @@ -110,19 +136,20 @@ public java.util.concurrent.Future getWorkRequest( return clientCall(request, GetWorkRequestResponse::builder) .logger(LOG, "getWorkRequest") .serviceDetails( - "DistributedDbWorkRequestService", + "WorkRequestManagement", "GetWorkRequest", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequest/GetWorkRequest") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/WorkRequest/GetWorkRequest") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetWorkRequestRequest::builder) - .basePath("/20260101") + .basePath("/20260325") .appendPathParam("workRequests") .appendPathParam(request.getWorkRequestId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( - com.oracle.bmc.distributeddatabasev26.model.WorkRequest.class, + com.oracle.bmc.functions.model.WorkRequest.class, GetWorkRequestResponse.Builder::workRequest) + .handleResponseHeaderString("etag", GetWorkRequestResponse.Builder::etag) .handleResponseHeaderString( "opc-request-id", GetWorkRequestResponse.Builder::opcRequestId) .handleResponseHeaderInteger( @@ -142,12 +169,12 @@ public java.util.concurrent.Future listWorkReques return clientCall(request, ListWorkRequestErrorsResponse::builder) .logger(LOG, "listWorkRequestErrors") .serviceDetails( - "DistributedDbWorkRequestService", + "WorkRequestManagement", "ListWorkRequestErrors", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequestError/ListWorkRequestErrors") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/WorkRequestError/ListWorkRequestErrors") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestErrorsRequest::builder) - .basePath("/20260101") + .basePath("/20260325") .appendPathParam("workRequests") .appendPathParam(request.getWorkRequestId()) .appendPathParam("errors") @@ -158,13 +185,12 @@ public java.util.concurrent.Future listWorkReques .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( - com.oracle.bmc.distributeddatabasev26.model.WorkRequestErrorCollection - .class, + com.oracle.bmc.functions.model.WorkRequestErrorCollection.class, ListWorkRequestErrorsResponse.Builder::workRequestErrorCollection) - .handleResponseHeaderString( - "opc-next-page", ListWorkRequestErrorsResponse.Builder::opcNextPage) .handleResponseHeaderString( "opc-request-id", ListWorkRequestErrorsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestErrorsResponse.Builder::opcNextPage) .callAsync(handler); } @@ -180,12 +206,12 @@ public java.util.concurrent.Future listWorkRequestL return clientCall(request, ListWorkRequestLogsResponse::builder) .logger(LOG, "listWorkRequestLogs") .serviceDetails( - "DistributedDbWorkRequestService", + "WorkRequestManagement", "ListWorkRequestLogs", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequestLogEntry/ListWorkRequestLogs") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/WorkRequestLogEntry/ListWorkRequestLogs") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestLogsRequest::builder) - .basePath("/20260101") + .basePath("/20260325") .appendPathParam("workRequests") .appendPathParam(request.getWorkRequestId()) .appendPathParam("logs") @@ -196,13 +222,12 @@ public java.util.concurrent.Future listWorkRequestL .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( - com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntryCollection - .class, + com.oracle.bmc.functions.model.WorkRequestLogEntryCollection.class, ListWorkRequestLogsResponse.Builder::workRequestLogEntryCollection) - .handleResponseHeaderString( - "opc-next-page", ListWorkRequestLogsResponse.Builder::opcNextPage) .handleResponseHeaderString( "opc-request-id", ListWorkRequestLogsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestLogsResponse.Builder::opcNextPage) .callAsync(handler); } @@ -217,12 +242,12 @@ public java.util.concurrent.Future listWorkRequests( return clientCall(request, ListWorkRequestsResponse::builder) .logger(LOG, "listWorkRequests") .serviceDetails( - "DistributedDbWorkRequestService", + "WorkRequestManagement", "ListWorkRequests", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequest/ListWorkRequests") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/WorkRequest/ListWorkRequests") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestsRequest::builder) - .basePath("/20260101") + .basePath("/20260325") .appendPathParam("workRequests") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("workRequestId", request.getWorkRequestId()) @@ -235,8 +260,7 @@ public java.util.concurrent.Future listWorkRequests( .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( - com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummaryCollection - .class, + com.oracle.bmc.functions.model.WorkRequestSummaryCollection.class, ListWorkRequestsResponse.Builder::workRequestSummaryCollection) .handleResponseHeaderString( "opc-request-id", ListWorkRequestsResponse.Builder::opcRequestId) @@ -252,7 +276,7 @@ public java.util.concurrent.Future listWorkRequests( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public DistributedDbWorkRequestServiceAsyncClient( + public WorkRequestManagementAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { this(builder(), authenticationDetailsProvider); } @@ -265,7 +289,7 @@ public DistributedDbWorkRequestServiceAsyncClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public DistributedDbWorkRequestServiceAsyncClient( + public WorkRequestManagementAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration) { this(builder().configuration(configuration), authenticationDetailsProvider); @@ -280,7 +304,7 @@ public DistributedDbWorkRequestServiceAsyncClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public DistributedDbWorkRequestServiceAsyncClient( + public WorkRequestManagementAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator) { @@ -299,7 +323,7 @@ public DistributedDbWorkRequestServiceAsyncClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public DistributedDbWorkRequestServiceAsyncClient( + public WorkRequestManagementAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -323,7 +347,7 @@ public DistributedDbWorkRequestServiceAsyncClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public DistributedDbWorkRequestServiceAsyncClient( + public WorkRequestManagementAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -350,7 +374,7 @@ public DistributedDbWorkRequestServiceAsyncClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public DistributedDbWorkRequestServiceAsyncClient( + public WorkRequestManagementAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -381,7 +405,7 @@ public DistributedDbWorkRequestServiceAsyncClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public DistributedDbWorkRequestServiceAsyncClient( + public WorkRequestManagementAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceClient.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagementClient.java similarity index 83% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceClient.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagementClient.java index b7b542ec7bb..2f2c5b3ad50 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceClient.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagementClient.java @@ -2,36 +2,35 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -package com.oracle.bmc.distributeddatabasev26; +package com.oracle.bmc.functions; import com.oracle.bmc.util.internal.Validate; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.functions.requests.*; +import com.oracle.bmc.functions.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. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class WorkRequestManagementClient extends com.oracle.bmc.http.internal.BaseSyncClient + implements WorkRequestManagement { + /** Service instance for WorkRequestManagement. */ public static final com.oracle.bmc.Service SERVICE = com.oracle.bmc.Services.serviceBuilder() - .serviceName(DistributedDbWorkRequestServiceClient.class.getName()) + .serviceName(WorkRequestManagementClient.class.getName()) .serviceEndpointPrefix("") - .serviceEndpointTemplate("https://globaldb.{region}.oci.{secondLevelDomain}") + .serviceEndpointTemplate("https://functions.{region}.oci.{secondLevelDomain}") .build(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DistributedDbWorkRequestServiceClient.class); + org.slf4j.LoggerFactory.getLogger(WorkRequestManagementClient.class); - private final DistributedDbWorkRequestServiceWaiters waiters; + private final WorkRequestManagementWaiters waiters; - private final DistributedDbWorkRequestServicePaginators paginators; + private final WorkRequestManagementPaginators paginators; - DistributedDbWorkRequestServiceClient( + WorkRequestManagementClient( com.oracle.bmc.common.ClientBuilderBase builder, com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, java.util.concurrent.ExecutorService executorService) { @@ -51,15 +50,15 @@ public class DistributedDbWorkRequestServiceClient new java.util.concurrent.LinkedBlockingQueue(), com.oracle.bmc.internal.ClientThreadFactory.builder() .isDaemon(true) - .nameFormat("DistributedDbWorkRequestService-waiters-%d") + .nameFormat("WorkRequestManagement-waiters-%d") .build()); threadPoolExecutor.allowCoreThreadTimeOut(true); executorService = threadPoolExecutor; } - this.waiters = new DistributedDbWorkRequestServiceWaiters(executorService, this); + this.waiters = new WorkRequestManagementWaiters(executorService, this); - this.paginators = new DistributedDbWorkRequestServicePaginators(this); + this.paginators = new WorkRequestManagementPaginators(this); } /** @@ -77,12 +76,12 @@ public static Builder builder() { */ public static class Builder extends com.oracle.bmc.common.RegionalClientBuilder< - Builder, DistributedDbWorkRequestServiceClient> { + Builder, WorkRequestManagementClient> { private java.util.concurrent.ExecutorService executorService; private Builder(com.oracle.bmc.Service service) { super(service); - final String packageName = "distributeddatabasev26"; + final String packageName = "functions"; com.oracle.bmc.internal.DeveloperToolConfiguration .throwDisabledServiceExceptionIfAppropriate(packageName); requestSignerFactory = @@ -107,11 +106,11 @@ public Builder executorService(java.util.concurrent.ExecutorService executorServ * @param authenticationDetailsProvider authentication details provider * @return the client */ - public DistributedDbWorkRequestServiceClient build( + public WorkRequestManagementClient build( @jakarta.annotation.Nonnull com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { - return new DistributedDbWorkRequestServiceClient( + return new WorkRequestManagementClient( this, authenticationDetailsProvider, executorService); } } @@ -126,6 +125,30 @@ 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( + "WorkRequestManagement", + "CancelWorkRequest", + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/WorkRequest/CancelWorkRequest") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(CancelWorkRequestRequest::builder) + .basePath("/20260325") + .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) + .callSync(); + } + @Override public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { @@ -134,20 +157,21 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { return clientCall(request, GetWorkRequestResponse::builder) .logger(LOG, "getWorkRequest") .serviceDetails( - "DistributedDbWorkRequestService", + "WorkRequestManagement", "GetWorkRequest", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequest/GetWorkRequest") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/WorkRequest/GetWorkRequest") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetWorkRequestRequest::builder) - .basePath("/20260101") + .basePath("/20260325") .appendPathParam("workRequests") .appendPathParam(request.getWorkRequestId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .operationUsesDefaultRetries() .handleBody( - com.oracle.bmc.distributeddatabasev26.model.WorkRequest.class, + com.oracle.bmc.functions.model.WorkRequest.class, GetWorkRequestResponse.Builder::workRequest) + .handleResponseHeaderString("etag", GetWorkRequestResponse.Builder::etag) .handleResponseHeaderString( "opc-request-id", GetWorkRequestResponse.Builder::opcRequestId) .handleResponseHeaderInteger( @@ -164,12 +188,12 @@ public ListWorkRequestErrorsResponse listWorkRequestErrors( return clientCall(request, ListWorkRequestErrorsResponse::builder) .logger(LOG, "listWorkRequestErrors") .serviceDetails( - "DistributedDbWorkRequestService", + "WorkRequestManagement", "ListWorkRequestErrors", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequestError/ListWorkRequestErrors") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/WorkRequestError/ListWorkRequestErrors") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestErrorsRequest::builder) - .basePath("/20260101") + .basePath("/20260325") .appendPathParam("workRequests") .appendPathParam(request.getWorkRequestId()) .appendPathParam("errors") @@ -181,13 +205,12 @@ public ListWorkRequestErrorsResponse listWorkRequestErrors( .appendHeader("opc-request-id", request.getOpcRequestId()) .operationUsesDefaultRetries() .handleBody( - com.oracle.bmc.distributeddatabasev26.model.WorkRequestErrorCollection - .class, + com.oracle.bmc.functions.model.WorkRequestErrorCollection.class, ListWorkRequestErrorsResponse.Builder::workRequestErrorCollection) - .handleResponseHeaderString( - "opc-next-page", ListWorkRequestErrorsResponse.Builder::opcNextPage) .handleResponseHeaderString( "opc-request-id", ListWorkRequestErrorsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestErrorsResponse.Builder::opcNextPage) .callSync(); } @@ -199,12 +222,12 @@ public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsReques return clientCall(request, ListWorkRequestLogsResponse::builder) .logger(LOG, "listWorkRequestLogs") .serviceDetails( - "DistributedDbWorkRequestService", + "WorkRequestManagement", "ListWorkRequestLogs", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequestLogEntry/ListWorkRequestLogs") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/WorkRequestLogEntry/ListWorkRequestLogs") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestLogsRequest::builder) - .basePath("/20260101") + .basePath("/20260325") .appendPathParam("workRequests") .appendPathParam(request.getWorkRequestId()) .appendPathParam("logs") @@ -216,13 +239,12 @@ public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsReques .appendHeader("opc-request-id", request.getOpcRequestId()) .operationUsesDefaultRetries() .handleBody( - com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntryCollection - .class, + com.oracle.bmc.functions.model.WorkRequestLogEntryCollection.class, ListWorkRequestLogsResponse.Builder::workRequestLogEntryCollection) - .handleResponseHeaderString( - "opc-next-page", ListWorkRequestLogsResponse.Builder::opcNextPage) .handleResponseHeaderString( "opc-request-id", ListWorkRequestLogsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestLogsResponse.Builder::opcNextPage) .callSync(); } @@ -233,12 +255,12 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request return clientCall(request, ListWorkRequestsResponse::builder) .logger(LOG, "listWorkRequests") .serviceDetails( - "DistributedDbWorkRequestService", + "WorkRequestManagement", "ListWorkRequests", - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequest/ListWorkRequests") + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/WorkRequest/ListWorkRequests") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestsRequest::builder) - .basePath("/20260101") + .basePath("/20260325") .appendPathParam("workRequests") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("workRequestId", request.getWorkRequestId()) @@ -252,8 +274,7 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request .appendHeader("opc-request-id", request.getOpcRequestId()) .operationUsesDefaultRetries() .handleBody( - com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummaryCollection - .class, + com.oracle.bmc.functions.model.WorkRequestSummaryCollection.class, ListWorkRequestsResponse.Builder::workRequestSummaryCollection) .handleResponseHeaderString( "opc-request-id", ListWorkRequestsResponse.Builder::opcRequestId) @@ -263,12 +284,12 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request } @Override - public DistributedDbWorkRequestServiceWaiters getWaiters() { + public WorkRequestManagementWaiters getWaiters() { return waiters; } @Override - public DistributedDbWorkRequestServicePaginators getPaginators() { + public WorkRequestManagementPaginators getPaginators() { return paginators; } @@ -279,7 +300,7 @@ public DistributedDbWorkRequestServicePaginators getPaginators() { * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public DistributedDbWorkRequestServiceClient( + public WorkRequestManagementClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { this(builder(), authenticationDetailsProvider, null); } @@ -292,7 +313,7 @@ public DistributedDbWorkRequestServiceClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public DistributedDbWorkRequestServiceClient( + public WorkRequestManagementClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration) { this(builder().configuration(configuration), authenticationDetailsProvider, null); @@ -307,7 +328,7 @@ public DistributedDbWorkRequestServiceClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public DistributedDbWorkRequestServiceClient( + public WorkRequestManagementClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator) { @@ -327,7 +348,7 @@ public DistributedDbWorkRequestServiceClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public DistributedDbWorkRequestServiceClient( + public WorkRequestManagementClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -352,7 +373,7 @@ public DistributedDbWorkRequestServiceClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public DistributedDbWorkRequestServiceClient( + public WorkRequestManagementClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -380,7 +401,7 @@ public DistributedDbWorkRequestServiceClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public DistributedDbWorkRequestServiceClient( + public WorkRequestManagementClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -412,7 +433,7 @@ public DistributedDbWorkRequestServiceClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public DistributedDbWorkRequestServiceClient( + public WorkRequestManagementClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -451,7 +472,7 @@ public DistributedDbWorkRequestServiceClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public DistributedDbWorkRequestServiceClient( + public WorkRequestManagementClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServicePaginators.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagementPaginators.java similarity index 85% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServicePaginators.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagementPaginators.java index 7748a8360ed..c378f01d4e2 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServicePaginators.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagementPaginators.java @@ -2,15 +2,15 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -package com.oracle.bmc.distributeddatabasev26; +package com.oracle.bmc.functions; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.functions.requests.*; +import com.oracle.bmc.functions.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: + * to any list operations of WorkRequestManagement 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 @@ -33,11 +33,11 @@ * 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; +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class WorkRequestManagementPaginators { + private final WorkRequestManagement client; - public DistributedDbWorkRequestServicePaginators(DistributedDbWorkRequestService client) { + public WorkRequestManagementPaginators(WorkRequestManagement client) { this.client = client; } @@ -98,22 +98,22 @@ public ListWorkRequestErrorsResponse apply( /** * 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. + * com.oracle.bmc.functions.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. + * com.oracle.bmc.functions.model.WorkRequestError} objects contained in responses received + * from the service. */ - public Iterable + public Iterable listWorkRequestErrorsRecordIterator(final ListWorkRequestErrorsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListWorkRequestErrorsRequest.Builder, ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse, - com.oracle.bmc.distributeddatabasev26.model.WorkRequestError>( + com.oracle.bmc.functions.model.WorkRequestError>( new java.util.function.Supplier() { @Override public ListWorkRequestErrorsRequest.Builder get() { @@ -154,12 +154,10 @@ public ListWorkRequestErrorsResponse apply( }, new java.util.function.Function< ListWorkRequestErrorsResponse, - java.util.List< - com.oracle.bmc.distributeddatabasev26.model.WorkRequestError>>() { + java.util.List>() { @Override - public java.util.List< - com.oracle.bmc.distributeddatabasev26.model.WorkRequestError> - apply(ListWorkRequestErrorsResponse response) { + public java.util.List apply( + ListWorkRequestErrorsResponse response) { return response.getWorkRequestErrorCollection().getItems(); } }); @@ -220,22 +218,21 @@ public ListWorkRequestLogsResponse apply(ListWorkRequestLogsRequest 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. + * com.oracle.bmc.functions.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. + * com.oracle.bmc.functions.model.WorkRequestLogEntry} objects contained in responses + * received from the service. */ - public Iterable + public Iterable listWorkRequestLogsRecordIterator(final ListWorkRequestLogsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListWorkRequestLogsRequest.Builder, ListWorkRequestLogsRequest, ListWorkRequestLogsResponse, - com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntry>( + com.oracle.bmc.functions.model.WorkRequestLogEntry>( new java.util.function.Supplier() { @Override public ListWorkRequestLogsRequest.Builder get() { @@ -275,13 +272,10 @@ public ListWorkRequestLogsResponse apply(ListWorkRequestLogsRequest request) { }, new java.util.function.Function< ListWorkRequestLogsResponse, - java.util.List< - com.oracle.bmc.distributeddatabasev26.model - .WorkRequestLogEntry>>() { + java.util.List>() { @Override - public java.util.List< - com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntry> - apply(ListWorkRequestLogsResponse response) { + public java.util.List apply( + ListWorkRequestLogsResponse response) { return response.getWorkRequestLogEntryCollection().getItems(); } }); @@ -340,22 +334,21 @@ public ListWorkRequestsResponse apply(ListWorkRequestsRequest 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. + * com.oracle.bmc.functions.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. + * com.oracle.bmc.functions.model.WorkRequestSummary} objects contained in responses + * received from the service. */ - public Iterable + public Iterable listWorkRequestsRecordIterator(final ListWorkRequestsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListWorkRequestsRequest.Builder, ListWorkRequestsRequest, ListWorkRequestsResponse, - com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummary>( + com.oracle.bmc.functions.model.WorkRequestSummary>( new java.util.function.Supplier() { @Override public ListWorkRequestsRequest.Builder get() { @@ -395,12 +388,10 @@ public ListWorkRequestsResponse apply(ListWorkRequestsRequest request) { }, new java.util.function.Function< ListWorkRequestsResponse, - java.util.List< - com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummary>>() { + java.util.List>() { @Override - public java.util.List< - com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummary> - apply(ListWorkRequestsResponse response) { + public java.util.List apply( + ListWorkRequestsResponse response) { return response.getWorkRequestSummaryCollection().getItems(); } }); diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceWaiters.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagementWaiters.java similarity index 88% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceWaiters.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagementWaiters.java index c48cfbd1567..ac3a25e9cf9 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceWaiters.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagementWaiters.java @@ -2,26 +2,25 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -package com.oracle.bmc.distributeddatabasev26; +package com.oracle.bmc.functions; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.functions.requests.*; +import com.oracle.bmc.functions.responses.*; /** * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different - * resources of DistributedDbWorkRequestService. + * resources of WorkRequestManagement. * *

    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 { +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class WorkRequestManagementWaiters { private final java.util.concurrent.ExecutorService executorService; - private final DistributedDbWorkRequestService client; + private final WorkRequestManagement client; - public DistributedDbWorkRequestServiceWaiters( - java.util.concurrent.ExecutorService executorService, - DistributedDbWorkRequestService client) { + public WorkRequestManagementWaiters( + java.util.concurrent.ExecutorService executorService, WorkRequestManagement client) { this.executorService = executorService; this.client = client; } diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ActionType.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ActionType.java similarity index 95% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ActionType.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/model/ActionType.java index 8167496fbcd..d7c9cbbf5c1 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ActionType.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ActionType.java @@ -2,10 +2,10 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.functions.model; /** Possible types of actions. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public enum ActionType implements com.oracle.bmc.http.internal.BmcEnum { Created("CREATED"), Updated("UPDATED"), diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/Application.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/Application.java index 6686e1ffbb0..decf82f7fee 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/Application.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/Application.java @@ -5,9 +5,8 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. An application contains functions and - * defined attributes shared between those functions, such as network configuration and - * configuration. Avoid entering confidential information.
    + * An application contains functions and defined attributes shared between those functions, such as + * network configuration and configuration. Avoid entering confidential information.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -17,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Application.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ApplicationLoggingConfig.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ApplicationLoggingConfig.java index 69356b19810..060e730d449 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ApplicationLoggingConfig.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ApplicationLoggingConfig.java @@ -5,9 +5,8 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. Set logging configuration for an - * application. This is only used if Service Logs for the application are enabled in the OCI Logging - * service.
    + * Set logging configuration for an application. This is only used if Service Logs for the + * application are enabled in the OCI Logging service.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -17,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ApplicationLoggingConfig.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ApplicationSummary.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ApplicationSummary.java index 5fb59a6a422..5a572c37592 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ApplicationSummary.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ApplicationSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. Summary of an application.
    + * Summary of an application.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ApplicationSummary.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ApplicationTraceConfig.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ApplicationTraceConfig.java index 4d0224b70b1..c16f1876d04 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ApplicationTraceConfig.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ApplicationTraceConfig.java @@ -5,8 +5,7 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. Define the tracing configuration for - * an application.
    + * Define the tracing configuration for an application.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -16,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ApplicationTraceConfig.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ArchiveFunctionSourceDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ArchiveFunctionSourceDetails.java new file mode 100644 index 00000000000..cd7a8837c02 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ArchiveFunctionSourceDetails.java @@ -0,0 +1,241 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.functions.model; + +/** + * Object capturing fields required for creating an archive based function.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ArchiveFunctionSourceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "sourceType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ArchiveFunctionSourceDetails extends FunctionSourceDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("archiveSourceDetails") + private ArchiveSourceDetails archiveSourceDetails; + + public Builder archiveSourceDetails(ArchiveSourceDetails archiveSourceDetails) { + this.archiveSourceDetails = archiveSourceDetails; + this.__explicitlySet__.add("archiveSourceDetails"); + return this; + } + /** + * The function handler that is executed when the function is invoked. The value of this + * field depends on the runtime used + */ + @com.fasterxml.jackson.annotation.JsonProperty("handler") + private String handler; + + /** + * The function handler that is executed when the function is invoked. The value of this + * field depends on the runtime used + * + * @param handler the value to set + * @return this builder + */ + public Builder handler(String handler) { + this.handler = handler; + this.__explicitlySet__.add("handler"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("runtimeConfig") + private RuntimeConfig runtimeConfig; + + public Builder runtimeConfig(RuntimeConfig runtimeConfig) { + this.runtimeConfig = runtimeConfig; + this.__explicitlySet__.add("runtimeConfig"); + return this; + } + /** The SHA256 hash of the function source code archive, base64-encoded. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceCodeSha256") + private String sourceCodeSha256; + + /** + * The SHA256 hash of the function source code archive, base64-encoded. + * + * @param sourceCodeSha256 the value to set + * @return this builder + */ + public Builder sourceCodeSha256(String sourceCodeSha256) { + this.sourceCodeSha256 = sourceCodeSha256; + this.__explicitlySet__.add("sourceCodeSha256"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ArchiveFunctionSourceDetails build() { + ArchiveFunctionSourceDetails model = + new ArchiveFunctionSourceDetails( + this.archiveSourceDetails, + this.handler, + this.runtimeConfig, + this.sourceCodeSha256); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ArchiveFunctionSourceDetails model) { + if (model.wasPropertyExplicitlySet("archiveSourceDetails")) { + this.archiveSourceDetails(model.getArchiveSourceDetails()); + } + if (model.wasPropertyExplicitlySet("handler")) { + this.handler(model.getHandler()); + } + if (model.wasPropertyExplicitlySet("runtimeConfig")) { + this.runtimeConfig(model.getRuntimeConfig()); + } + if (model.wasPropertyExplicitlySet("sourceCodeSha256")) { + this.sourceCodeSha256(model.getSourceCodeSha256()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ArchiveFunctionSourceDetails( + ArchiveSourceDetails archiveSourceDetails, + String handler, + RuntimeConfig runtimeConfig, + String sourceCodeSha256) { + super(); + this.archiveSourceDetails = archiveSourceDetails; + this.handler = handler; + this.runtimeConfig = runtimeConfig; + this.sourceCodeSha256 = sourceCodeSha256; + } + + @com.fasterxml.jackson.annotation.JsonProperty("archiveSourceDetails") + private final ArchiveSourceDetails archiveSourceDetails; + + public ArchiveSourceDetails getArchiveSourceDetails() { + return archiveSourceDetails; + } + + /** + * The function handler that is executed when the function is invoked. The value of this field + * depends on the runtime used + */ + @com.fasterxml.jackson.annotation.JsonProperty("handler") + private final String handler; + + /** + * The function handler that is executed when the function is invoked. The value of this field + * depends on the runtime used + * + * @return the value + */ + public String getHandler() { + return handler; + } + + @com.fasterxml.jackson.annotation.JsonProperty("runtimeConfig") + private final RuntimeConfig runtimeConfig; + + public RuntimeConfig getRuntimeConfig() { + return runtimeConfig; + } + + /** The SHA256 hash of the function source code archive, base64-encoded. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceCodeSha256") + private final String sourceCodeSha256; + + /** + * The SHA256 hash of the function source code archive, base64-encoded. + * + * @return the value + */ + public String getSourceCodeSha256() { + return sourceCodeSha256; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ArchiveFunctionSourceDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", archiveSourceDetails=").append(String.valueOf(this.archiveSourceDetails)); + sb.append(", handler=").append(String.valueOf(this.handler)); + sb.append(", runtimeConfig=").append(String.valueOf(this.runtimeConfig)); + sb.append(", sourceCodeSha256=").append(String.valueOf(this.sourceCodeSha256)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ArchiveFunctionSourceDetails)) { + return false; + } + + ArchiveFunctionSourceDetails other = (ArchiveFunctionSourceDetails) o; + return java.util.Objects.equals(this.archiveSourceDetails, other.archiveSourceDetails) + && java.util.Objects.equals(this.handler, other.handler) + && java.util.Objects.equals(this.runtimeConfig, other.runtimeConfig) + && java.util.Objects.equals(this.sourceCodeSha256, other.sourceCodeSha256) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.archiveSourceDetails == null + ? 43 + : this.archiveSourceDetails.hashCode()); + result = (result * PRIME) + (this.handler == null ? 43 : this.handler.hashCode()); + result = + (result * PRIME) + + (this.runtimeConfig == null ? 43 : this.runtimeConfig.hashCode()); + result = + (result * PRIME) + + (this.sourceCodeSha256 == null ? 43 : this.sourceCodeSha256.hashCode()); + return result; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ArchiveSourceDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ArchiveSourceDetails.java new file mode 100644 index 00000000000..c9e15972e21 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ArchiveSourceDetails.java @@ -0,0 +1,130 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.functions.model; + +/** + * The details for the Archive source of the Function. This mode is used when the function code is + * provided as an archive, either from Object Storage or directly uploaded by the API caller. It is + * suitable for scenarios where the function code is packaged as a single archive file.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "archiveSourceType", + defaultImpl = ArchiveSourceDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DirectArchiveSourceDetails.class, + name = "DIRECT_ARCHIVE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ObjectStorageArchiveSourceDetails.class, + name = "OBJECT_STORAGE_ARCHIVE") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class ArchiveSourceDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected ArchiveSourceDetails() { + 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("ArchiveSourceDetails("); + 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 ArchiveSourceDetails)) { + return false; + } + + ArchiveSourceDetails other = (ArchiveSourceDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** Type of the Archive Source. Possible values: OBJECT_STORAGE_ARCHIVE and DIRECT_ARCHIVE. */ + public enum ArchiveSourceType implements com.oracle.bmc.http.internal.BmcEnum { + ObjectStorageArchive("OBJECT_STORAGE_ARCHIVE"), + DirectArchive("DIRECT_ARCHIVE"), + + /** + * 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(ArchiveSourceType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ArchiveSourceType v : ArchiveSourceType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ArchiveSourceType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ArchiveSourceType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ArchiveSourceType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ChangeApplicationCompartmentDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ChangeApplicationCompartmentDetails.java index 7feec4f8593..41f252c7812 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ChangeApplicationCompartmentDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ChangeApplicationCompartmentDetails.java @@ -5,8 +5,7 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. Properties to change the compartment - * of an application.
    + * Properties to change the compartment of an application.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -16,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ChangeApplicationCompartmentDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ConfigDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ConfigDetails.java index 6a0d8092e28..23aaffff2e8 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ConfigDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ConfigDetails.java @@ -5,8 +5,8 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. Details about the required and - * optional Function configurations needed for proper performance of the PBF.
    + * Details about the required and optional Function configurations needed for proper performance of + * the PBF.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ConfigDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ConstantProvisionedConcurrencyConfig.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ConstantProvisionedConcurrencyConfig.java index b7501972f50..6b7a567a7a7 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ConstantProvisionedConcurrencyConfig.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ConstantProvisionedConcurrencyConfig.java @@ -5,8 +5,7 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. Configuration specifying a constant - * amount of provisioned concurrency.
    + * Configuration specifying a constant amount of provisioned concurrency.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -16,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ConstantProvisionedConcurrencyConfig.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ContainerImageFunctionSourceDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ContainerImageFunctionSourceDetails.java new file mode 100644 index 00000000000..f0c15d8fe00 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ContainerImageFunctionSourceDetails.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.functions.model; + +/** + * Source details of a container image based function.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ContainerImageFunctionSourceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "sourceType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ContainerImageFunctionSourceDetails extends FunctionSourceDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The qualified name of the Docker image to use in the function, including the image tag. + * The image should be in the OCI Registry that is in the same region as the function + * itself. Example: {@code phx.ocir.io/ten/functions/function:0.0.1} + */ + @com.fasterxml.jackson.annotation.JsonProperty("image") + private String image; + + /** + * The qualified name of the Docker image to use in the function, including the image tag. + * The image should be in the OCI Registry that is in the same region as the function + * itself. Example: {@code phx.ocir.io/ten/functions/function:0.0.1} + * + * @param image the value to set + * @return this builder + */ + public Builder image(String image) { + this.image = image; + this.__explicitlySet__.add("image"); + return this; + } + /** + * The image digest for the version of the image that will be pulled when invoking this + * function. If no value is specified, the digest currently associated with the image in the + * OCI Registry will be used. Example: {@code + * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} + */ + @com.fasterxml.jackson.annotation.JsonProperty("imageDigest") + private String imageDigest; + + /** + * The image digest for the version of the image that will be pulled when invoking this + * function. If no value is specified, the digest currently associated with the image in the + * OCI Registry will be used. Example: {@code + * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} + * + * @param imageDigest the value to set + * @return this builder + */ + public Builder imageDigest(String imageDigest) { + this.imageDigest = imageDigest; + this.__explicitlySet__.add("imageDigest"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ContainerImageFunctionSourceDetails build() { + ContainerImageFunctionSourceDetails model = + new ContainerImageFunctionSourceDetails(this.image, this.imageDigest); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ContainerImageFunctionSourceDetails model) { + if (model.wasPropertyExplicitlySet("image")) { + this.image(model.getImage()); + } + if (model.wasPropertyExplicitlySet("imageDigest")) { + this.imageDigest(model.getImageDigest()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ContainerImageFunctionSourceDetails(String image, String imageDigest) { + super(); + this.image = image; + this.imageDigest = imageDigest; + } + + /** + * The qualified name of the Docker image to use in the function, including the image tag. The + * image should be in the OCI Registry that is in the same region as the function itself. + * Example: {@code phx.ocir.io/ten/functions/function:0.0.1} + */ + @com.fasterxml.jackson.annotation.JsonProperty("image") + private final String image; + + /** + * The qualified name of the Docker image to use in the function, including the image tag. The + * image should be in the OCI Registry that is in the same region as the function itself. + * Example: {@code phx.ocir.io/ten/functions/function:0.0.1} + * + * @return the value + */ + public String getImage() { + return image; + } + + /** + * The image digest for the version of the image that will be pulled when invoking this + * function. If no value is specified, the digest currently associated with the image in the OCI + * Registry will be used. Example: {@code + * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} + */ + @com.fasterxml.jackson.annotation.JsonProperty("imageDigest") + private final String imageDigest; + + /** + * The image digest for the version of the image that will be pulled when invoking this + * function. If no value is specified, the digest currently associated with the image in the OCI + * Registry will be used. Example: {@code + * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} + * + * @return the value + */ + public String getImageDigest() { + return imageDigest; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ContainerImageFunctionSourceDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", image=").append(String.valueOf(this.image)); + sb.append(", imageDigest=").append(String.valueOf(this.imageDigest)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ContainerImageFunctionSourceDetails)) { + return false; + } + + ContainerImageFunctionSourceDetails other = (ContainerImageFunctionSourceDetails) o; + return java.util.Objects.equals(this.image, other.image) + && java.util.Objects.equals(this.imageDigest, other.imageDigest) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.image == null ? 43 : this.image.hashCode()); + result = (result * PRIME) + (this.imageDigest == null ? 43 : this.imageDigest.hashCode()); + return result; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateApplicationDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateApplicationDetails.java index 0bedecb7512..1e5ad6307e2 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateApplicationDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateApplicationDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateApplicationDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateArchiveFunctionSourceDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateArchiveFunctionSourceDetails.java new file mode 100644 index 00000000000..0ab2a782882 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateArchiveFunctionSourceDetails.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.functions.model; + +/** + * Source details for creating an archive\u2011based function.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateArchiveFunctionSourceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "sourceType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateArchiveFunctionSourceDetails extends CreateFunctionSourceDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("archiveSourceDetails") + private CreateArchiveSourceDetails archiveSourceDetails; + + public Builder archiveSourceDetails(CreateArchiveSourceDetails archiveSourceDetails) { + this.archiveSourceDetails = archiveSourceDetails; + this.__explicitlySet__.add("archiveSourceDetails"); + return this; + } + /** + * The function handler that is executed when the function is invoked. The value of this + * field depends on the runtime used + */ + @com.fasterxml.jackson.annotation.JsonProperty("handler") + private String handler; + + /** + * The function handler that is executed when the function is invoked. The value of this + * field depends on the runtime used + * + * @param handler the value to set + * @return this builder + */ + public Builder handler(String handler) { + this.handler = handler; + this.__explicitlySet__.add("handler"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("runtimeConfig") + private CreateRuntimeConfig runtimeConfig; + + public Builder runtimeConfig(CreateRuntimeConfig runtimeConfig) { + this.runtimeConfig = runtimeConfig; + this.__explicitlySet__.add("runtimeConfig"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateArchiveFunctionSourceDetails build() { + CreateArchiveFunctionSourceDetails model = + new CreateArchiveFunctionSourceDetails( + this.archiveSourceDetails, this.handler, this.runtimeConfig); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateArchiveFunctionSourceDetails model) { + if (model.wasPropertyExplicitlySet("archiveSourceDetails")) { + this.archiveSourceDetails(model.getArchiveSourceDetails()); + } + if (model.wasPropertyExplicitlySet("handler")) { + this.handler(model.getHandler()); + } + if (model.wasPropertyExplicitlySet("runtimeConfig")) { + this.runtimeConfig(model.getRuntimeConfig()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateArchiveFunctionSourceDetails( + CreateArchiveSourceDetails archiveSourceDetails, + String handler, + CreateRuntimeConfig runtimeConfig) { + super(); + this.archiveSourceDetails = archiveSourceDetails; + this.handler = handler; + this.runtimeConfig = runtimeConfig; + } + + @com.fasterxml.jackson.annotation.JsonProperty("archiveSourceDetails") + private final CreateArchiveSourceDetails archiveSourceDetails; + + public CreateArchiveSourceDetails getArchiveSourceDetails() { + return archiveSourceDetails; + } + + /** + * The function handler that is executed when the function is invoked. The value of this field + * depends on the runtime used + */ + @com.fasterxml.jackson.annotation.JsonProperty("handler") + private final String handler; + + /** + * The function handler that is executed when the function is invoked. The value of this field + * depends on the runtime used + * + * @return the value + */ + public String getHandler() { + return handler; + } + + @com.fasterxml.jackson.annotation.JsonProperty("runtimeConfig") + private final CreateRuntimeConfig runtimeConfig; + + public CreateRuntimeConfig getRuntimeConfig() { + return runtimeConfig; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateArchiveFunctionSourceDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", archiveSourceDetails=").append(String.valueOf(this.archiveSourceDetails)); + sb.append(", handler=").append(String.valueOf(this.handler)); + sb.append(", runtimeConfig=").append(String.valueOf(this.runtimeConfig)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateArchiveFunctionSourceDetails)) { + return false; + } + + CreateArchiveFunctionSourceDetails other = (CreateArchiveFunctionSourceDetails) o; + return java.util.Objects.equals(this.archiveSourceDetails, other.archiveSourceDetails) + && java.util.Objects.equals(this.handler, other.handler) + && java.util.Objects.equals(this.runtimeConfig, other.runtimeConfig) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.archiveSourceDetails == null + ? 43 + : this.archiveSourceDetails.hashCode()); + result = (result * PRIME) + (this.handler == null ? 43 : this.handler.hashCode()); + result = + (result * PRIME) + + (this.runtimeConfig == null ? 43 : this.runtimeConfig.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateArchiveSourceDetails.java similarity index 65% rename from bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardDetails.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateArchiveSourceDetails.java index 00a8b455731..b1db199bc7b 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateArchiveSourceDetails.java @@ -2,10 +2,13 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -package com.oracle.bmc.distributeddatabase.model; +package com.oracle.bmc.functions.model; /** - * Globally distributed database shard.
    + * The details required to create an Archive-based function source. This mode is used when the + * function code is provided as an archive, either from Object Storage or directly uploaded by the + * API caller. It is suitable for scenarios where the function code is packaged as a single archive + * file.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,27 +18,27 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source", - defaultImpl = CreateDistributedDatabaseShardDetails.class) + property = "archiveSourceType", + defaultImpl = CreateArchiveSourceDetails.class) @com.fasterxml.jackson.annotation.JsonSubTypes({ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.class, - name = "NEW_VAULT_AND_CLUSTER"), + value = CreateDirectArchiveSourceDetails.class, + name = "DIRECT_ARCHIVE"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = CreateDistributedDatabaseShardWithExadbXsDetails.class, - name = "EXADB_XS") + value = CreateObjectStorageArchiveSourceDetails.class, + name = "OBJECT_STORAGE_ARCHIVE") }) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public class CreateDistributedDatabaseShardDetails +public class CreateArchiveSourceDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({}) - protected CreateDistributedDatabaseShardDetails() { + protected CreateArchiveSourceDetails() { super(); } @@ -52,7 +55,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedDatabaseShardDetails("); + sb.append("CreateArchiveSourceDetails("); sb.append("super=").append(super.toString()); sb.append(")"); return sb.toString(); @@ -63,11 +66,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateDistributedDatabaseShardDetails)) { + if (!(o instanceof CreateArchiveSourceDetails)) { return false; } - CreateDistributedDatabaseShardDetails other = (CreateDistributedDatabaseShardDetails) o; + CreateArchiveSourceDetails other = (CreateArchiveSourceDetails) o; return super.equals(other); } @@ -79,30 +82,23 @@ public int hashCode() { return result; } - /** - * Type of Globally distributed database Shard or Catalog. Use NEW_VAULT_AND_CLUSTER for a - * Globally distributed database on Exascale with new vaults and clusters created from scratch. - * Use EXISTING_CLUSTER for a Globally distributed database on Exascale based on pre-existing - * clusters. EXADB_XS is currently the same as EXISTING_CLUSTER and will be deprecated after the - * deprecation cycle. - */ - public enum Source implements com.oracle.bmc.http.internal.BmcEnum { - ExadbXs("EXADB_XS"), - NewVaultAndCluster("NEW_VAULT_AND_CLUSTER"), - ExistingCluster("EXISTING_CLUSTER"), + /** Type of the Archive Source. Possible values: OBJECT_STORAGE_ARCHIVE and DIRECT_ARCHIVE. */ + public enum ArchiveSourceType implements com.oracle.bmc.http.internal.BmcEnum { + ObjectStorageArchive("OBJECT_STORAGE_ARCHIVE"), + DirectArchive("DIRECT_ARCHIVE"), ; private final String value; - private static java.util.Map map; + private static java.util.Map map; static { map = new java.util.HashMap<>(); - for (Source v : Source.values()) { + for (ArchiveSourceType v : ArchiveSourceType.values()) { map.put(v.getValue(), v); } } - Source(String value) { + ArchiveSourceType(String value) { this.value = value; } @@ -112,11 +108,11 @@ public String getValue() { } @com.fasterxml.jackson.annotation.JsonCreator - public static Source create(String key) { + public static ArchiveSourceType create(String key) { if (map.containsKey(key)) { return map.get(key); } - throw new IllegalArgumentException("Invalid Source: " + key); + throw new IllegalArgumentException("Invalid ArchiveSourceType: " + key); } }; } diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateContainerImageFunctionSourceDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateContainerImageFunctionSourceDetails.java new file mode 100644 index 00000000000..e8c1c18e85d --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateContainerImageFunctionSourceDetails.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.functions.model; + +/** + * Source details for creating a container image based function.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateContainerImageFunctionSourceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "sourceType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateContainerImageFunctionSourceDetails extends CreateFunctionSourceDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The qualified name of the Docker image to use in the function, including the image tag. + * The image should be in the OCI Registry that is in the same region as the function + * itself. Example: {@code phx.ocir.io/ten/functions/function:0.0.1} + */ + @com.fasterxml.jackson.annotation.JsonProperty("image") + private String image; + + /** + * The qualified name of the Docker image to use in the function, including the image tag. + * The image should be in the OCI Registry that is in the same region as the function + * itself. Example: {@code phx.ocir.io/ten/functions/function:0.0.1} + * + * @param image the value to set + * @return this builder + */ + public Builder image(String image) { + this.image = image; + this.__explicitlySet__.add("image"); + return this; + } + /** + * The image digest for the version of the image that will be pulled when invoking this + * function. If no value is specified, the digest currently associated with the image in the + * OCI Registry will be used. Example: {@code + * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} + */ + @com.fasterxml.jackson.annotation.JsonProperty("imageDigest") + private String imageDigest; + + /** + * The image digest for the version of the image that will be pulled when invoking this + * function. If no value is specified, the digest currently associated with the image in the + * OCI Registry will be used. Example: {@code + * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} + * + * @param imageDigest the value to set + * @return this builder + */ + public Builder imageDigest(String imageDigest) { + this.imageDigest = imageDigest; + this.__explicitlySet__.add("imageDigest"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateContainerImageFunctionSourceDetails build() { + CreateContainerImageFunctionSourceDetails model = + new CreateContainerImageFunctionSourceDetails(this.image, this.imageDigest); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateContainerImageFunctionSourceDetails model) { + if (model.wasPropertyExplicitlySet("image")) { + this.image(model.getImage()); + } + if (model.wasPropertyExplicitlySet("imageDigest")) { + this.imageDigest(model.getImageDigest()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateContainerImageFunctionSourceDetails(String image, String imageDigest) { + super(); + this.image = image; + this.imageDigest = imageDigest; + } + + /** + * The qualified name of the Docker image to use in the function, including the image tag. The + * image should be in the OCI Registry that is in the same region as the function itself. + * Example: {@code phx.ocir.io/ten/functions/function:0.0.1} + */ + @com.fasterxml.jackson.annotation.JsonProperty("image") + private final String image; + + /** + * The qualified name of the Docker image to use in the function, including the image tag. The + * image should be in the OCI Registry that is in the same region as the function itself. + * Example: {@code phx.ocir.io/ten/functions/function:0.0.1} + * + * @return the value + */ + public String getImage() { + return image; + } + + /** + * The image digest for the version of the image that will be pulled when invoking this + * function. If no value is specified, the digest currently associated with the image in the OCI + * Registry will be used. Example: {@code + * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} + */ + @com.fasterxml.jackson.annotation.JsonProperty("imageDigest") + private final String imageDigest; + + /** + * The image digest for the version of the image that will be pulled when invoking this + * function. If no value is specified, the digest currently associated with the image in the OCI + * Registry will be used. Example: {@code + * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} + * + * @return the value + */ + public String getImageDigest() { + return imageDigest; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateContainerImageFunctionSourceDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", image=").append(String.valueOf(this.image)); + sb.append(", imageDigest=").append(String.valueOf(this.imageDigest)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateContainerImageFunctionSourceDetails)) { + return false; + } + + CreateContainerImageFunctionSourceDetails other = + (CreateContainerImageFunctionSourceDetails) o; + return java.util.Objects.equals(this.image, other.image) + && java.util.Objects.equals(this.imageDigest, other.imageDigest) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.image == null ? 43 : this.image.hashCode()); + result = (result * PRIME) + (this.imageDigest == null ? 43 : this.imageDigest.hashCode()); + return result; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateDirectArchiveSourceDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateDirectArchiveSourceDetails.java new file mode 100644 index 00000000000..5f9a782152a --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateDirectArchiveSourceDetails.java @@ -0,0 +1,156 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.functions.model; + +/** + * Source details for creating the archive based function from Direct Archive. This allows the API + * caller to directly upload the function code as a base64-encoded archive file. It is useful when + * the caller wants to provide the code inline during function 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: 20260325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDirectArchiveSourceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "archiveSourceType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateDirectArchiveSourceDetails extends CreateArchiveSourceDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The base64-encoded archive file of the function code. The archive file must contain all + * the files for the function. Please refer to functions documentation for maximum allowed + * size and supported archive formats. + */ + @com.fasterxml.jackson.annotation.JsonProperty("archiveFile") + private byte[] archiveFile; + + /** + * The base64-encoded archive file of the function code. The archive file must contain all + * the files for the function. Please refer to functions documentation for maximum allowed + * size and supported archive formats. + * + * @param archiveFile the value to set + * @return this builder + */ + public Builder archiveFile(byte[] archiveFile) { + this.archiveFile = archiveFile; + this.__explicitlySet__.add("archiveFile"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDirectArchiveSourceDetails build() { + CreateDirectArchiveSourceDetails model = + new CreateDirectArchiveSourceDetails(this.archiveFile); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDirectArchiveSourceDetails model) { + if (model.wasPropertyExplicitlySet("archiveFile")) { + this.archiveFile(model.getArchiveFile()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateDirectArchiveSourceDetails(byte[] archiveFile) { + super(); + this.archiveFile = archiveFile; + } + + /** + * The base64-encoded archive file of the function code. The archive file must contain all the + * files for the function. Please refer to functions documentation for maximum allowed size and + * supported archive formats. + */ + @com.fasterxml.jackson.annotation.JsonProperty("archiveFile") + private final byte[] archiveFile; + + /** + * The base64-encoded archive file of the function code. The archive file must contain all the + * files for the function. Please refer to functions documentation for maximum allowed size and + * supported archive formats. + * + * @return the value + */ + public byte[] getArchiveFile() { + return archiveFile; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDirectArchiveSourceDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", archiveFile=") + .append( + (includeByteArrayContents + ? java.util.Arrays.toString(this.archiveFile) + : (String.valueOf(this.archiveFile) + + (this.archiveFile != null + ? " (byte[" + this.archiveFile.length + "])" + : "")))); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDirectArchiveSourceDetails)) { + return false; + } + + CreateDirectArchiveSourceDetails other = (CreateDirectArchiveSourceDetails) o; + return java.util.Arrays.equals(this.archiveFile, other.archiveFile) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + java.util.Arrays.hashCode(this.archiveFile); + return result; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateFunctionDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateFunctionDetails.java index a6c11e46da3..e4d2c6eb36a 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateFunctionDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateFunctionDetails.java @@ -5,8 +5,7 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. Properties to create a new function. - *
    + * Properties to create a new function.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -16,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateFunctionDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -27,8 +26,6 @@ public final class CreateFunctionDetails @java.beans.ConstructorProperties({ "displayName", "applicationId", - "image", - "imageDigest", "sourceDetails", "memoryInMBs", "config", @@ -44,9 +41,7 @@ public final class CreateFunctionDetails public CreateFunctionDetails( String displayName, String applicationId, - String image, - String imageDigest, - FunctionSourceDetails sourceDetails, + CreateFunctionSourceDetails sourceDetails, Long memoryInMBs, java.util.Map config, Integer timeoutInSeconds, @@ -60,8 +55,6 @@ public CreateFunctionDetails( super(); this.displayName = displayName; this.applicationId = applicationId; - this.image = image; - this.imageDigest = imageDigest; this.sourceDetails = sourceDetails; this.memoryInMBs = memoryInMBs; this.config = config; @@ -111,55 +104,11 @@ public Builder applicationId(String applicationId) { this.__explicitlySet__.add("applicationId"); return this; } - /** - * The qualified name of the Docker image to use in the function, including the image tag. - * The image should be in the OCI Registry that is in the same region as the function - * itself. Example: {@code phx.ocir.io/ten/functions/function:0.0.1} - */ - @com.fasterxml.jackson.annotation.JsonProperty("image") - private String image; - - /** - * The qualified name of the Docker image to use in the function, including the image tag. - * The image should be in the OCI Registry that is in the same region as the function - * itself. Example: {@code phx.ocir.io/ten/functions/function:0.0.1} - * - * @param image the value to set - * @return this builder - */ - public Builder image(String image) { - this.image = image; - this.__explicitlySet__.add("image"); - return this; - } - /** - * The image digest for the version of the image that will be pulled when invoking this - * function. If no value is specified, the digest currently associated with the image in the - * OCI Registry will be used. Example: {@code - * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} - */ - @com.fasterxml.jackson.annotation.JsonProperty("imageDigest") - private String imageDigest; - - /** - * The image digest for the version of the image that will be pulled when invoking this - * function. If no value is specified, the digest currently associated with the image in the - * OCI Registry will be used. Example: {@code - * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} - * - * @param imageDigest the value to set - * @return this builder - */ - public Builder imageDigest(String imageDigest) { - this.imageDigest = imageDigest; - this.__explicitlySet__.add("imageDigest"); - return this; - } @com.fasterxml.jackson.annotation.JsonProperty("sourceDetails") - private FunctionSourceDetails sourceDetails; + private CreateFunctionSourceDetails sourceDetails; - public Builder sourceDetails(FunctionSourceDetails sourceDetails) { + public Builder sourceDetails(CreateFunctionSourceDetails sourceDetails) { this.sourceDetails = sourceDetails; this.__explicitlySet__.add("sourceDetails"); return this; @@ -339,8 +288,6 @@ public CreateFunctionDetails build() { new CreateFunctionDetails( this.displayName, this.applicationId, - this.image, - this.imageDigest, this.sourceDetails, this.memoryInMBs, this.config, @@ -366,12 +313,6 @@ public Builder copy(CreateFunctionDetails model) { if (model.wasPropertyExplicitlySet("applicationId")) { this.applicationId(model.getApplicationId()); } - if (model.wasPropertyExplicitlySet("image")) { - this.image(model.getImage()); - } - if (model.wasPropertyExplicitlySet("imageDigest")) { - this.imageDigest(model.getImageDigest()); - } if (model.wasPropertyExplicitlySet("sourceDetails")) { this.sourceDetails(model.getSourceDetails()); } @@ -448,50 +389,10 @@ public String getApplicationId() { return applicationId; } - /** - * The qualified name of the Docker image to use in the function, including the image tag. The - * image should be in the OCI Registry that is in the same region as the function itself. - * Example: {@code phx.ocir.io/ten/functions/function:0.0.1} - */ - @com.fasterxml.jackson.annotation.JsonProperty("image") - private final String image; - - /** - * The qualified name of the Docker image to use in the function, including the image tag. The - * image should be in the OCI Registry that is in the same region as the function itself. - * Example: {@code phx.ocir.io/ten/functions/function:0.0.1} - * - * @return the value - */ - public String getImage() { - return image; - } - - /** - * The image digest for the version of the image that will be pulled when invoking this - * function. If no value is specified, the digest currently associated with the image in the OCI - * Registry will be used. Example: {@code - * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} - */ - @com.fasterxml.jackson.annotation.JsonProperty("imageDigest") - private final String imageDigest; - - /** - * The image digest for the version of the image that will be pulled when invoking this - * function. If no value is specified, the digest currently associated with the image in the OCI - * Registry will be used. Example: {@code - * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} - * - * @return the value - */ - public String getImageDigest() { - return imageDigest; - } - @com.fasterxml.jackson.annotation.JsonProperty("sourceDetails") - private final FunctionSourceDetails sourceDetails; + private final CreateFunctionSourceDetails sourceDetails; - public FunctionSourceDetails getSourceDetails() { + public CreateFunctionSourceDetails getSourceDetails() { return sourceDetails; } @@ -656,8 +557,6 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("displayName=").append(String.valueOf(this.displayName)); sb.append(", applicationId=").append(String.valueOf(this.applicationId)); - sb.append(", image=").append(String.valueOf(this.image)); - sb.append(", imageDigest=").append(String.valueOf(this.imageDigest)); sb.append(", sourceDetails=").append(String.valueOf(this.sourceDetails)); sb.append(", memoryInMBs=").append(String.valueOf(this.memoryInMBs)); sb.append(", config=").append(String.valueOf(this.config)); @@ -687,8 +586,6 @@ public boolean equals(Object o) { CreateFunctionDetails other = (CreateFunctionDetails) o; return java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.applicationId, other.applicationId) - && java.util.Objects.equals(this.image, other.image) - && java.util.Objects.equals(this.imageDigest, other.imageDigest) && java.util.Objects.equals(this.sourceDetails, other.sourceDetails) && java.util.Objects.equals(this.memoryInMBs, other.memoryInMBs) && java.util.Objects.equals(this.config, other.config) @@ -713,8 +610,6 @@ public int hashCode() { result = (result * PRIME) + (this.applicationId == null ? 43 : this.applicationId.hashCode()); - result = (result * PRIME) + (this.image == null ? 43 : this.image.hashCode()); - result = (result * PRIME) + (this.imageDigest == null ? 43 : this.imageDigest.hashCode()); result = (result * PRIME) + (this.sourceDetails == null ? 43 : this.sourceDetails.hashCode()); diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateFunctionSourceDetails.java similarity index 55% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseDetails.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateFunctionSourceDetails.java index df231fd91e3..7b56ee5533f 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateFunctionSourceDetails.java @@ -2,10 +2,11 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.functions.model; /** - * Details for creating a distributed database shard.
    + * The source details for creating the Function. The function can be created from various sources. + *
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,36 +16,30 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @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) + property = "sourceType", + defaultImpl = CreateFunctionSourceDetails.class) @com.fasterxml.jackson.annotation.JsonSubTypes({ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = CreateDistributedDatabaseShardWithExadbXsNewClusterDetails.class, - name = "XS_NEW_CLUSTER"), + value = CreatePreBuiltFunctionSourceDetails.class, + name = "PRE_BUILT_FUNCTIONS"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.class, - name = "XS_NEW_VAULT_AND_CLUSTER"), + value = CreateArchiveFunctionSourceDetails.class, + name = "ARCHIVE"), @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") + value = CreateContainerImageFunctionSourceDetails.class, + name = "CONTAINER_IMAGE") }) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public class CreateDistributedDatabaseShardDatabaseDetails +public class CreateFunctionSourceDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({}) - protected CreateDistributedDatabaseShardDatabaseDetails() { + protected CreateFunctionSourceDetails() { super(); } @@ -61,7 +56,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedDatabaseShardDatabaseDetails("); + sb.append("CreateFunctionSourceDetails("); sb.append("super=").append(super.toString()); sb.append(")"); return sb.toString(); @@ -72,12 +67,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateDistributedDatabaseShardDatabaseDetails)) { + if (!(o instanceof CreateFunctionSourceDetails)) { return false; } - CreateDistributedDatabaseShardDatabaseDetails other = - (CreateDistributedDatabaseShardDatabaseDetails) o; + CreateFunctionSourceDetails other = (CreateFunctionSourceDetails) o; return super.equals(other); } @@ -89,34 +83,24 @@ public int 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"), + /** Type of the Function Source. Possible values: CONTAINER_IMAGE, PBF and ARCHIVE. */ + public enum SourceType implements com.oracle.bmc.http.internal.BmcEnum { + PreBuiltFunctions("PRE_BUILT_FUNCTIONS"), + Archive("ARCHIVE"), + ContainerImage("CONTAINER_IMAGE"), ; private final String value; - private static java.util.Map map; + private static java.util.Map map; static { map = new java.util.HashMap<>(); - for (Source v : Source.values()) { + for (SourceType v : SourceType.values()) { map.put(v.getValue(), v); } } - Source(String value) { + SourceType(String value) { this.value = value; } @@ -126,11 +110,11 @@ public String getValue() { } @com.fasterxml.jackson.annotation.JsonCreator - public static Source create(String key) { + public static SourceType create(String key) { if (map.containsKey(key)) { return map.get(key); } - throw new IllegalArgumentException("Invalid Source: " + key); + throw new IllegalArgumentException("Invalid SourceType: " + key); } }; } diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchInsertInstruction.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateFunctionUpdateRuntimeConfig.java similarity index 56% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchInsertInstruction.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateFunctionUpdateRuntimeConfig.java index 01746f14484..c5402edb373 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchInsertInstruction.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateFunctionUpdateRuntimeConfig.java @@ -2,11 +2,11 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.functions.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.
    + * FunctionsRuntime configuration for creating a function with 'FUNCTION_UPDATE' Runtime Update + * strategy.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -16,47 +16,40 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = PatchInsertInstruction.Builder.class) + builder = CreateFunctionUpdateRuntimeConfig.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") + property = "runtimeConfigType") @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class PatchInsertInstruction extends PatchInstruction { +public final class CreateFunctionUpdateRuntimeConfig extends CreateRuntimeConfig { @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; + /** The name of the FunctionsRuntime this function is to be associated with. */ + @com.fasterxml.jackson.annotation.JsonProperty("functionsRuntimeName") + private String functionsRuntimeName; /** - * A value to be inserted into the target. + * The name of the FunctionsRuntime this function is to be associated with. * - * @param value the value to set + * @param functionsRuntimeName the value to set * @return this builder */ - public Builder value(Object value) { - this.value = value; - this.__explicitlySet__.add("value"); + public Builder functionsRuntimeName(String functionsRuntimeName) { + this.functionsRuntimeName = functionsRuntimeName; + this.__explicitlySet__.add("functionsRuntimeName"); 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); + public CreateFunctionUpdateRuntimeConfig build() { + CreateFunctionUpdateRuntimeConfig model = + new CreateFunctionUpdateRuntimeConfig(this.functionsRuntimeName); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -64,12 +57,9 @@ public PatchInsertInstruction build() { } @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()); + public Builder copy(CreateFunctionUpdateRuntimeConfig model) { + if (model.wasPropertyExplicitlySet("functionsRuntimeName")) { + this.functionsRuntimeName(model.getFunctionsRuntimeName()); } return this; } @@ -85,22 +75,22 @@ public Builder toBuilder() { } @Deprecated - public PatchInsertInstruction(String selection, Object value) { - super(selection); - this.value = value; + public CreateFunctionUpdateRuntimeConfig(String functionsRuntimeName) { + super(); + this.functionsRuntimeName = functionsRuntimeName; } - /** A value to be inserted into the target. */ - @com.fasterxml.jackson.annotation.JsonProperty("value") - private final Object value; + /** The name of the FunctionsRuntime this function is to be associated with. */ + @com.fasterxml.jackson.annotation.JsonProperty("functionsRuntimeName") + private final String functionsRuntimeName; /** - * A value to be inserted into the target. + * The name of the FunctionsRuntime this function is to be associated with. * * @return the value */ - public Object getValue() { - return value; + public String getFunctionsRuntimeName() { + return functionsRuntimeName; } @Override @@ -116,9 +106,9 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("PatchInsertInstruction("); + sb.append("CreateFunctionUpdateRuntimeConfig("); sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", value=").append(String.valueOf(this.value)); + sb.append(", functionsRuntimeName=").append(String.valueOf(this.functionsRuntimeName)); sb.append(")"); return sb.toString(); } @@ -128,19 +118,24 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof PatchInsertInstruction)) { + if (!(o instanceof CreateFunctionUpdateRuntimeConfig)) { return false; } - PatchInsertInstruction other = (PatchInsertInstruction) o; - return java.util.Objects.equals(this.value, other.value) && super.equals(other); + CreateFunctionUpdateRuntimeConfig other = (CreateFunctionUpdateRuntimeConfig) o; + return java.util.Objects.equals(this.functionsRuntimeName, other.functionsRuntimeName) + && 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()); + result = + (result * PRIME) + + (this.functionsRuntimeName == null + ? 43 + : this.functionsRuntimeName.hashCode()); return result; } } diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateManualRuntimeConfig.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateManualRuntimeConfig.java new file mode 100644 index 00000000000..39971706de8 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateManualRuntimeConfig.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.functions.model; + +/** + * FunctionsRuntime configuration for creating a function with 'MANUAL' Runtime Update strategy. + *
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateManualRuntimeConfig.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "runtimeConfigType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateManualRuntimeConfig extends CreateRuntimeConfig { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the FunctionsRuntime this function is to be associated with. */ + @com.fasterxml.jackson.annotation.JsonProperty("functionsRuntimeName") + private String functionsRuntimeName; + + /** + * The name of the FunctionsRuntime this function is to be associated with. + * + * @param functionsRuntimeName the value to set + * @return this builder + */ + public Builder functionsRuntimeName(String functionsRuntimeName) { + this.functionsRuntimeName = functionsRuntimeName; + this.__explicitlySet__.add("functionsRuntimeName"); + return this; + } + /** The OCID of the FunctionsRuntimeVersion to use for the Function in manual mode. */ + @com.fasterxml.jackson.annotation.JsonProperty("functionsRuntimeVersionId") + private String functionsRuntimeVersionId; + + /** + * The OCID of the FunctionsRuntimeVersion to use for the Function in manual mode. + * + * @param functionsRuntimeVersionId the value to set + * @return this builder + */ + public Builder functionsRuntimeVersionId(String functionsRuntimeVersionId) { + this.functionsRuntimeVersionId = functionsRuntimeVersionId; + this.__explicitlySet__.add("functionsRuntimeVersionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateManualRuntimeConfig build() { + CreateManualRuntimeConfig model = + new CreateManualRuntimeConfig( + this.functionsRuntimeName, this.functionsRuntimeVersionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateManualRuntimeConfig model) { + if (model.wasPropertyExplicitlySet("functionsRuntimeName")) { + this.functionsRuntimeName(model.getFunctionsRuntimeName()); + } + if (model.wasPropertyExplicitlySet("functionsRuntimeVersionId")) { + this.functionsRuntimeVersionId(model.getFunctionsRuntimeVersionId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateManualRuntimeConfig( + String functionsRuntimeName, String functionsRuntimeVersionId) { + super(); + this.functionsRuntimeName = functionsRuntimeName; + this.functionsRuntimeVersionId = functionsRuntimeVersionId; + } + + /** The name of the FunctionsRuntime this function is to be associated with. */ + @com.fasterxml.jackson.annotation.JsonProperty("functionsRuntimeName") + private final String functionsRuntimeName; + + /** + * The name of the FunctionsRuntime this function is to be associated with. + * + * @return the value + */ + public String getFunctionsRuntimeName() { + return functionsRuntimeName; + } + + /** The OCID of the FunctionsRuntimeVersion to use for the Function in manual mode. */ + @com.fasterxml.jackson.annotation.JsonProperty("functionsRuntimeVersionId") + private final String functionsRuntimeVersionId; + + /** + * The OCID of the FunctionsRuntimeVersion to use for the Function in manual mode. + * + * @return the value + */ + public String getFunctionsRuntimeVersionId() { + return functionsRuntimeVersionId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateManualRuntimeConfig("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", functionsRuntimeName=").append(String.valueOf(this.functionsRuntimeName)); + sb.append(", functionsRuntimeVersionId=") + .append(String.valueOf(this.functionsRuntimeVersionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateManualRuntimeConfig)) { + return false; + } + + CreateManualRuntimeConfig other = (CreateManualRuntimeConfig) o; + return java.util.Objects.equals(this.functionsRuntimeName, other.functionsRuntimeName) + && java.util.Objects.equals( + this.functionsRuntimeVersionId, other.functionsRuntimeVersionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.functionsRuntimeName == null + ? 43 + : this.functionsRuntimeName.hashCode()); + result = + (result * PRIME) + + (this.functionsRuntimeVersionId == null + ? 43 + : this.functionsRuntimeVersionId.hashCode()); + return result; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateObjectStorageArchiveSourceDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateObjectStorageArchiveSourceDetails.java new file mode 100644 index 00000000000..5d9a5a134b7 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateObjectStorageArchiveSourceDetails.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.functions.model; + +/** + * Source details for creating the archive based function from Object Storage. This is used when the + * function code is stored in Object Storage. It is suitable for scenarios where the function code + * is uploaded as an archive file to a specific bucket and namespace
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateObjectStorageArchiveSourceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "archiveSourceType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateObjectStorageArchiveSourceDetails extends CreateArchiveSourceDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the Object Storage bucket. */ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private String bucketName; + + /** + * The name of the Object Storage bucket. + * + * @param bucketName the value to set + * @return this builder + */ + public Builder bucketName(String bucketName) { + this.bucketName = bucketName; + this.__explicitlySet__.add("bucketName"); + return this; + } + /** The Object Storage namespace. */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private String namespace; + + /** + * The Object Storage namespace. + * + * @param namespace the value to set + * @return this builder + */ + public Builder namespace(String namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + /** The name of the Object Storage object. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private String objectName; + + /** + * The name of the Object Storage object. + * + * @param objectName the value to set + * @return this builder + */ + public Builder objectName(String objectName) { + this.objectName = objectName; + this.__explicitlySet__.add("objectName"); + return this; + } + /** + * VersionId used to identify a particular version of the object. If not specified, the + * latest version of the object is used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("objectVersionId") + private String objectVersionId; + + /** + * VersionId used to identify a particular version of the object. If not specified, the + * latest version of the object is used. + * + * @param objectVersionId the value to set + * @return this builder + */ + public Builder objectVersionId(String objectVersionId) { + this.objectVersionId = objectVersionId; + this.__explicitlySet__.add("objectVersionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateObjectStorageArchiveSourceDetails build() { + CreateObjectStorageArchiveSourceDetails model = + new CreateObjectStorageArchiveSourceDetails( + this.bucketName, this.namespace, this.objectName, this.objectVersionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateObjectStorageArchiveSourceDetails model) { + if (model.wasPropertyExplicitlySet("bucketName")) { + this.bucketName(model.getBucketName()); + } + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + if (model.wasPropertyExplicitlySet("objectName")) { + this.objectName(model.getObjectName()); + } + if (model.wasPropertyExplicitlySet("objectVersionId")) { + this.objectVersionId(model.getObjectVersionId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateObjectStorageArchiveSourceDetails( + String bucketName, String namespace, String objectName, String objectVersionId) { + super(); + this.bucketName = bucketName; + this.namespace = namespace; + this.objectName = objectName; + this.objectVersionId = objectVersionId; + } + + /** The name of the Object Storage bucket. */ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private final String bucketName; + + /** + * The name of the Object Storage bucket. + * + * @return the value + */ + public String getBucketName() { + return bucketName; + } + + /** The Object Storage namespace. */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final String namespace; + + /** + * The Object Storage namespace. + * + * @return the value + */ + public String getNamespace() { + return namespace; + } + + /** The name of the Object Storage object. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private final String objectName; + + /** + * The name of the Object Storage object. + * + * @return the value + */ + public String getObjectName() { + return objectName; + } + + /** + * VersionId used to identify a particular version of the object. If not specified, the latest + * version of the object is used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("objectVersionId") + private final String objectVersionId; + + /** + * VersionId used to identify a particular version of the object. If not specified, the latest + * version of the object is used. + * + * @return the value + */ + public String getObjectVersionId() { + return objectVersionId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateObjectStorageArchiveSourceDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", bucketName=").append(String.valueOf(this.bucketName)); + sb.append(", namespace=").append(String.valueOf(this.namespace)); + sb.append(", objectName=").append(String.valueOf(this.objectName)); + sb.append(", objectVersionId=").append(String.valueOf(this.objectVersionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateObjectStorageArchiveSourceDetails)) { + return false; + } + + CreateObjectStorageArchiveSourceDetails other = (CreateObjectStorageArchiveSourceDetails) o; + return java.util.Objects.equals(this.bucketName, other.bucketName) + && java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.objectName, other.objectName) + && java.util.Objects.equals(this.objectVersionId, other.objectVersionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.bucketName == null ? 43 : this.bucketName.hashCode()); + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); + result = (result * PRIME) + (this.objectName == null ? 43 : this.objectName.hashCode()); + result = + (result * PRIME) + + (this.objectVersionId == null ? 43 : this.objectVersionId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabasePrivateEndpointCompartmentDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreatePreBuiltFunctionSourceDetails.java similarity index 57% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabasePrivateEndpointCompartmentDetails.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreatePreBuiltFunctionSourceDetails.java index eb2e8063685..13a42175a6b 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabasePrivateEndpointCompartmentDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreatePreBuiltFunctionSourceDetails.java @@ -2,10 +2,10 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.functions.model; /** - * The configuration details for moving the resource for private endpoint to other compartment.
    + * Source details for creating a function from a Pre\u2011Built Functions listing (PbfListing).
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,49 +15,44 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = ChangeDistributedDatabasePrivateEndpointCompartmentDetails.Builder.class) + builder = CreatePreBuiltFunctionSourceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "sourceType") @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; - } - +public final class CreatePreBuiltFunctionSourceDetails extends CreateFunctionSourceDetails { @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. + * PbfListing this function is sourced from. */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; + @com.fasterxml.jackson.annotation.JsonProperty("pbfListingId") + private String pbfListingId; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * compartment to move the resource to. + * PbfListing this function is sourced from. * - * @param compartmentId the value to set + * @param pbfListingId the value to set * @return this builder */ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - this.__explicitlySet__.add("compartmentId"); + public Builder pbfListingId(String pbfListingId) { + this.pbfListingId = pbfListingId; + this.__explicitlySet__.add("pbfListingId"); 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); + public CreatePreBuiltFunctionSourceDetails build() { + CreatePreBuiltFunctionSourceDetails model = + new CreatePreBuiltFunctionSourceDetails(this.pbfListingId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -65,9 +60,9 @@ public ChangeDistributedDatabasePrivateEndpointCompartmentDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ChangeDistributedDatabasePrivateEndpointCompartmentDetails model) { - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); + public Builder copy(CreatePreBuiltFunctionSourceDetails model) { + if (model.wasPropertyExplicitlySet("pbfListingId")) { + this.pbfListingId(model.getPbfListingId()); } return this; } @@ -82,21 +77,27 @@ public Builder toBuilder() { return new Builder().copy(this); } + @Deprecated + public CreatePreBuiltFunctionSourceDetails(String pbfListingId) { + super(); + this.pbfListingId = pbfListingId; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * compartment to move the resource to. + * PbfListing this function is sourced from. */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private final String compartmentId; + @com.fasterxml.jackson.annotation.JsonProperty("pbfListingId") + private final String pbfListingId; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * compartment to move the resource to. + * PbfListing this function is sourced from. * * @return the value */ - public String getCompartmentId() { - return compartmentId; + public String getPbfListingId() { + return pbfListingId; } @Override @@ -112,9 +113,9 @@ public String toString() { */ 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("CreatePreBuiltFunctionSourceDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", pbfListingId=").append(String.valueOf(this.pbfListingId)); sb.append(")"); return sb.toString(); } @@ -124,24 +125,20 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ChangeDistributedDatabasePrivateEndpointCompartmentDetails)) { + if (!(o instanceof CreatePreBuiltFunctionSourceDetails)) { return false; } - ChangeDistributedDatabasePrivateEndpointCompartmentDetails other = - (ChangeDistributedDatabasePrivateEndpointCompartmentDetails) o; - return java.util.Objects.equals(this.compartmentId, other.compartmentId) + CreatePreBuiltFunctionSourceDetails other = (CreatePreBuiltFunctionSourceDetails) o; + return java.util.Objects.equals(this.pbfListingId, other.pbfListingId) && 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(); + int result = super.hashCode(); + result = (result * PRIME) + (this.pbfListingId == null ? 43 : this.pbfListingId.hashCode()); return result; } } diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateRuntimeConfig.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateRuntimeConfig.java new file mode 100644 index 00000000000..54886291cac --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateRuntimeConfig.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.functions.model; + +/** + * FunctionsRuntime configuration used to create a function.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "runtimeConfigType", + defaultImpl = CreateRuntimeConfig.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateFunctionUpdateRuntimeConfig.class, + name = "FUNCTION_UPDATE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateManualRuntimeConfig.class, + name = "MANUAL") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class CreateRuntimeConfig extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected CreateRuntimeConfig() { + 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("CreateRuntimeConfig("); + 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 CreateRuntimeConfig)) { + return false; + } + + CreateRuntimeConfig other = (CreateRuntimeConfig) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** Type of the FunctionsRuntime Config. Possible values: FUNCTION_UPDATE and MANUAL. */ + public enum RuntimeConfigType implements com.oracle.bmc.http.internal.BmcEnum { + FunctionUpdate("FUNCTION_UPDATE"), + Manual("MANUAL"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RuntimeConfigType v : RuntimeConfigType.values()) { + map.put(v.getValue(), v); + } + } + + RuntimeConfigType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RuntimeConfigType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid RuntimeConfigType: " + key); + } + }; +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchRemoveInstruction.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/DirectArchiveSourceDetails.java similarity index 70% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchRemoveInstruction.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/model/DirectArchiveSourceDetails.java index d244d22662e..b5da75329c0 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchRemoveInstruction.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/DirectArchiveSourceDetails.java @@ -2,12 +2,12 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.functions.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.
    + * The details for the Archive source of the Function from Direct Archive. This allows the API + * caller to directly upload the function code as a base64-encoded archive file. It is useful when + * the caller wants to provide the code inline during function 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 @@ -17,32 +17,24 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = PatchRemoveInstruction.Builder.class) + builder = DirectArchiveSourceDetails.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") + property = "archiveSourceType") @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class PatchRemoveInstruction extends PatchInstruction { +public final class DirectArchiveSourceDetails extends ArchiveSourceDetails { @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); + public DirectArchiveSourceDetails build() { + DirectArchiveSourceDetails model = new DirectArchiveSourceDetails(); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -50,10 +42,7 @@ public PatchRemoveInstruction build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(PatchRemoveInstruction model) { - if (model.wasPropertyExplicitlySet("selection")) { - this.selection(model.getSelection()); - } + public Builder copy(DirectArchiveSourceDetails model) { return this; } } @@ -68,8 +57,8 @@ public Builder toBuilder() { } @Deprecated - public PatchRemoveInstruction(String selection) { - super(selection); + public DirectArchiveSourceDetails() { + super(); } @Override @@ -85,7 +74,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("PatchRemoveInstruction("); + sb.append("DirectArchiveSourceDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(")"); return sb.toString(); @@ -96,11 +85,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof PatchRemoveInstruction)) { + if (!(o instanceof DirectArchiveSourceDetails)) { return false; } - PatchRemoveInstruction other = (PatchRemoveInstruction) o; + DirectArchiveSourceDetails other = (DirectArchiveSourceDetails) o; return super.equals(other); } diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FailureDestinationDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FailureDestinationDetails.java index 8342eb6878e..cc913a2193c 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FailureDestinationDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FailureDestinationDetails.java @@ -5,10 +5,9 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. An object that represents the - * destination to which Oracle Functions will send an invocation record with the details of the - * error of the failed detached function invocation. A notification is an example of a failure - * destination. + * An object that represents the destination to which Oracle Functions will send an invocation + * record with the details of the error of the failed detached function invocation. A notification + * is an example of a failure destination. * *

    Example: {@code {"kind": "NOTIFICATION", "topicId": "topic_OCID"}}
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model @@ -20,7 +19,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/Function.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/Function.java index 31bdef11c82..42a2a466689 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/Function.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/Function.java @@ -5,9 +5,8 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. A function resource defines the code - * (Docker image) and configuration for a specific function. Functions are defined in applications. - * Avoid entering confidential information.
    + * A function resource defines the code (Docker image) and configuration for a specific function. + * Functions are defined in applications. Avoid entering confidential information.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -17,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Function.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) @@ -29,8 +28,6 @@ public final class Function extends com.oracle.bmc.http.client.internal.Explicit "lifecycleState", "applicationId", "compartmentId", - "image", - "imageDigest", "sourceDetails", "shape", "memoryInMBs", @@ -53,8 +50,6 @@ public Function( LifecycleState lifecycleState, String applicationId, String compartmentId, - String image, - String imageDigest, FunctionSourceDetails sourceDetails, Shape shape, Long memoryInMBs, @@ -76,8 +71,6 @@ public Function( this.lifecycleState = lifecycleState; this.applicationId = applicationId; this.compartmentId = compartmentId; - this.image = image; - this.imageDigest = imageDigest; this.sourceDetails = sourceDetails; this.shape = shape; this.memoryInMBs = memoryInMBs; @@ -180,50 +173,6 @@ public Builder compartmentId(String compartmentId) { this.__explicitlySet__.add("compartmentId"); return this; } - /** - * The qualified name of the Docker image to use in the function, including the image tag. - * The image should be in the OCI Registry that is in the same region as the function - * itself. Example: {@code phx.ocir.io/ten/functions/function:0.0.1} - */ - @com.fasterxml.jackson.annotation.JsonProperty("image") - private String image; - - /** - * The qualified name of the Docker image to use in the function, including the image tag. - * The image should be in the OCI Registry that is in the same region as the function - * itself. Example: {@code phx.ocir.io/ten/functions/function:0.0.1} - * - * @param image the value to set - * @return this builder - */ - public Builder image(String image) { - this.image = image; - this.__explicitlySet__.add("image"); - return this; - } - /** - * The image digest for the version of the image that will be pulled when invoking this - * function. If no value is specified, the digest currently associated with the image in the - * OCI Registry will be used. Example: {@code - * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} - */ - @com.fasterxml.jackson.annotation.JsonProperty("imageDigest") - private String imageDigest; - - /** - * The image digest for the version of the image that will be pulled when invoking this - * function. If no value is specified, the digest currently associated with the image in the - * OCI Registry will be used. Example: {@code - * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} - * - * @param imageDigest the value to set - * @return this builder - */ - public Builder imageDigest(String imageDigest) { - this.imageDigest = imageDigest; - this.__explicitlySet__.add("imageDigest"); - return this; - } @com.fasterxml.jackson.annotation.JsonProperty("sourceDetails") private FunctionSourceDetails sourceDetails; @@ -499,8 +448,6 @@ public Function build() { this.lifecycleState, this.applicationId, this.compartmentId, - this.image, - this.imageDigest, this.sourceDetails, this.shape, this.memoryInMBs, @@ -539,12 +486,6 @@ public Builder copy(Function model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } - if (model.wasPropertyExplicitlySet("image")) { - this.image(model.getImage()); - } - if (model.wasPropertyExplicitlySet("imageDigest")) { - this.imageDigest(model.getImageDigest()); - } if (model.wasPropertyExplicitlySet("sourceDetails")) { this.sourceDetails(model.getSourceDetails()); } @@ -727,46 +668,6 @@ public String getCompartmentId() { return compartmentId; } - /** - * The qualified name of the Docker image to use in the function, including the image tag. The - * image should be in the OCI Registry that is in the same region as the function itself. - * Example: {@code phx.ocir.io/ten/functions/function:0.0.1} - */ - @com.fasterxml.jackson.annotation.JsonProperty("image") - private final String image; - - /** - * The qualified name of the Docker image to use in the function, including the image tag. The - * image should be in the OCI Registry that is in the same region as the function itself. - * Example: {@code phx.ocir.io/ten/functions/function:0.0.1} - * - * @return the value - */ - public String getImage() { - return image; - } - - /** - * The image digest for the version of the image that will be pulled when invoking this - * function. If no value is specified, the digest currently associated with the image in the OCI - * Registry will be used. Example: {@code - * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} - */ - @com.fasterxml.jackson.annotation.JsonProperty("imageDigest") - private final String imageDigest; - - /** - * The image digest for the version of the image that will be pulled when invoking this - * function. If no value is specified, the digest currently associated with the image in the OCI - * Registry will be used. Example: {@code - * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} - * - * @return the value - */ - public String getImageDigest() { - return imageDigest; - } - @com.fasterxml.jackson.annotation.JsonProperty("sourceDetails") private final FunctionSourceDetails sourceDetails; @@ -1067,8 +968,6 @@ public String toString(boolean includeByteArrayContents) { sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", applicationId=").append(String.valueOf(this.applicationId)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(", image=").append(String.valueOf(this.image)); - sb.append(", imageDigest=").append(String.valueOf(this.imageDigest)); sb.append(", sourceDetails=").append(String.valueOf(this.sourceDetails)); sb.append(", shape=").append(String.valueOf(this.shape)); sb.append(", memoryInMBs=").append(String.valueOf(this.memoryInMBs)); @@ -1105,8 +1004,6 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.applicationId, other.applicationId) && java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.image, other.image) - && java.util.Objects.equals(this.imageDigest, other.imageDigest) && java.util.Objects.equals(this.sourceDetails, other.sourceDetails) && java.util.Objects.equals(this.shape, other.shape) && java.util.Objects.equals(this.memoryInMBs, other.memoryInMBs) @@ -1142,8 +1039,6 @@ public int hashCode() { result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.image == null ? 43 : this.image.hashCode()); - result = (result * PRIME) + (this.imageDigest == null ? 43 : this.imageDigest.hashCode()); result = (result * PRIME) + (this.sourceDetails == null ? 43 : this.sourceDetails.hashCode()); diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionProvisionedConcurrencyConfig.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionProvisionedConcurrencyConfig.java index 93fc32d0a8d..cd8c5d2f011 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionProvisionedConcurrencyConfig.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionProvisionedConcurrencyConfig.java @@ -5,8 +5,7 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. Define the strategy for provisioned - * concurrency for the function.
    + * Define the strategy for provisioned concurrency for the function.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -16,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionSourceDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionSourceDetails.java index 7776302c37b..76737884e20 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionSourceDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionSourceDetails.java @@ -5,8 +5,7 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. The source details for the Function. - * The function can be created from various sources.
    + * The source details for the Function. The function can be created from various sources.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -16,13 +15,19 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, property = "sourceType", defaultImpl = FunctionSourceDetails.class) @com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ContainerImageFunctionSourceDetails.class, + name = "CONTAINER_IMAGE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ArchiveFunctionSourceDetails.class, + name = "ARCHIVE"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = PreBuiltFunctionSourceDetails.class, name = "PRE_BUILT_FUNCTIONS") @@ -77,9 +82,11 @@ public int hashCode() { return result; } - /** Type of the Function Source. Possible values: PBF. */ + /** Type of the Function Source. Possible values: CONTAINER_IMAGE, PBF and ARCHIVE. */ public enum SourceType implements com.oracle.bmc.http.internal.BmcEnum { PreBuiltFunctions("PRE_BUILT_FUNCTIONS"), + Archive("ARCHIVE"), + ContainerImage("CONTAINER_IMAGE"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionSummary.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionSummary.java index e2c142441ba..320539d214b 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionSummary.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. Summary of a function.
    + * Summary of a function.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = FunctionSummary.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) @@ -28,8 +28,6 @@ public final class FunctionSummary "applicationId", "compartmentId", "lifecycleState", - "image", - "imageDigest", "sourceDetails", "shape", "memoryInMBs", @@ -51,8 +49,6 @@ public FunctionSummary( String applicationId, String compartmentId, Function.LifecycleState lifecycleState, - String image, - String imageDigest, FunctionSourceDetails sourceDetails, Shape shape, Long memoryInMBs, @@ -73,8 +69,6 @@ public FunctionSummary( this.applicationId = applicationId; this.compartmentId = compartmentId; this.lifecycleState = lifecycleState; - this.image = image; - this.imageDigest = imageDigest; this.sourceDetails = sourceDetails; this.shape = shape; this.memoryInMBs = memoryInMBs; @@ -176,50 +170,6 @@ public Builder lifecycleState(Function.LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } - /** - * The qualified name of the Docker image to use in the function, including the image tag. - * The image should be in the OCI Registry that is in the same region as the function - * itself. Example: {@code phx.ocir.io/ten/functions/function:0.0.1} - */ - @com.fasterxml.jackson.annotation.JsonProperty("image") - private String image; - - /** - * The qualified name of the Docker image to use in the function, including the image tag. - * The image should be in the OCI Registry that is in the same region as the function - * itself. Example: {@code phx.ocir.io/ten/functions/function:0.0.1} - * - * @param image the value to set - * @return this builder - */ - public Builder image(String image) { - this.image = image; - this.__explicitlySet__.add("image"); - return this; - } - /** - * The image digest for the version of the image that will be pulled when invoking this - * function. If no value is specified, the digest currently associated with the image in the - * OCI Registry will be used. Example: {@code - * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} - */ - @com.fasterxml.jackson.annotation.JsonProperty("imageDigest") - private String imageDigest; - - /** - * The image digest for the version of the image that will be pulled when invoking this - * function. If no value is specified, the digest currently associated with the image in the - * OCI Registry will be used. Example: {@code - * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} - * - * @param imageDigest the value to set - * @return this builder - */ - public Builder imageDigest(String imageDigest) { - this.imageDigest = imageDigest; - this.__explicitlySet__.add("imageDigest"); - return this; - } @com.fasterxml.jackson.annotation.JsonProperty("sourceDetails") private FunctionSourceDetails sourceDetails; @@ -458,8 +408,6 @@ public FunctionSummary build() { this.applicationId, this.compartmentId, this.lifecycleState, - this.image, - this.imageDigest, this.sourceDetails, this.shape, this.memoryInMBs, @@ -497,12 +445,6 @@ public Builder copy(FunctionSummary model) { if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } - if (model.wasPropertyExplicitlySet("image")) { - this.image(model.getImage()); - } - if (model.wasPropertyExplicitlySet("imageDigest")) { - this.imageDigest(model.getImageDigest()); - } if (model.wasPropertyExplicitlySet("sourceDetails")) { this.sourceDetails(model.getSourceDetails()); } @@ -631,46 +573,6 @@ public Function.LifecycleState getLifecycleState() { return lifecycleState; } - /** - * The qualified name of the Docker image to use in the function, including the image tag. The - * image should be in the OCI Registry that is in the same region as the function itself. - * Example: {@code phx.ocir.io/ten/functions/function:0.0.1} - */ - @com.fasterxml.jackson.annotation.JsonProperty("image") - private final String image; - - /** - * The qualified name of the Docker image to use in the function, including the image tag. The - * image should be in the OCI Registry that is in the same region as the function itself. - * Example: {@code phx.ocir.io/ten/functions/function:0.0.1} - * - * @return the value - */ - public String getImage() { - return image; - } - - /** - * The image digest for the version of the image that will be pulled when invoking this - * function. If no value is specified, the digest currently associated with the image in the OCI - * Registry will be used. Example: {@code - * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} - */ - @com.fasterxml.jackson.annotation.JsonProperty("imageDigest") - private final String imageDigest; - - /** - * The image digest for the version of the image that will be pulled when invoking this - * function. If no value is specified, the digest currently associated with the image in the OCI - * Registry will be used. Example: {@code - * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} - * - * @return the value - */ - public String getImageDigest() { - return imageDigest; - } - @com.fasterxml.jackson.annotation.JsonProperty("sourceDetails") private final FunctionSourceDetails sourceDetails; @@ -936,8 +838,6 @@ public String toString(boolean includeByteArrayContents) { sb.append(", applicationId=").append(String.valueOf(this.applicationId)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); - sb.append(", image=").append(String.valueOf(this.image)); - sb.append(", imageDigest=").append(String.valueOf(this.imageDigest)); sb.append(", sourceDetails=").append(String.valueOf(this.sourceDetails)); sb.append(", shape=").append(String.valueOf(this.shape)); sb.append(", memoryInMBs=").append(String.valueOf(this.memoryInMBs)); @@ -973,8 +873,6 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.applicationId, other.applicationId) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) - && java.util.Objects.equals(this.image, other.image) - && java.util.Objects.equals(this.imageDigest, other.imageDigest) && java.util.Objects.equals(this.sourceDetails, other.sourceDetails) && java.util.Objects.equals(this.shape, other.shape) && java.util.Objects.equals(this.memoryInMBs, other.memoryInMBs) @@ -1009,8 +907,6 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); - result = (result * PRIME) + (this.image == null ? 43 : this.image.hashCode()); - result = (result * PRIME) + (this.imageDigest == null ? 43 : this.imageDigest.hashCode()); result = (result * PRIME) + (this.sourceDetails == null ? 43 : this.sourceDetails.hashCode()); diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionTraceConfig.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionTraceConfig.java index a1162cdd26f..215febe7303 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionTraceConfig.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionTraceConfig.java @@ -5,8 +5,7 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. Define the tracing configuration for a - * function.
    + * Define the tracing configuration for a function.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -16,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = FunctionTraceConfig.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionUpdateRuntimeConfig.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionUpdateRuntimeConfig.java new file mode 100644 index 00000000000..23fd826e854 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionUpdateRuntimeConfig.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.functions.model; + +/** + * FunctionsRuntime configuration for a function with 'FUNCTION_UPDATE' Runtime Update strategy. + *
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = FunctionUpdateRuntimeConfig.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "runtimeConfigType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class FunctionUpdateRuntimeConfig extends RuntimeConfig { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the FunctionsRuntime this function is to be associated with. */ + @com.fasterxml.jackson.annotation.JsonProperty("functionsRuntimeName") + private String functionsRuntimeName; + + /** + * The name of the FunctionsRuntime this function is to be associated with. + * + * @param functionsRuntimeName the value to set + * @return this builder + */ + public Builder functionsRuntimeName(String functionsRuntimeName) { + this.functionsRuntimeName = functionsRuntimeName; + this.__explicitlySet__.add("functionsRuntimeName"); + return this; + } + /** The OCID of the FunctionsRuntimeVersion that is currently in use for the function. */ + @com.fasterxml.jackson.annotation.JsonProperty("functionsRuntimeVersionId") + private String functionsRuntimeVersionId; + + /** + * The OCID of the FunctionsRuntimeVersion that is currently in use for the function. + * + * @param functionsRuntimeVersionId the value to set + * @return this builder + */ + public Builder functionsRuntimeVersionId(String functionsRuntimeVersionId) { + this.functionsRuntimeVersionId = functionsRuntimeVersionId; + this.__explicitlySet__.add("functionsRuntimeVersionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FunctionUpdateRuntimeConfig build() { + FunctionUpdateRuntimeConfig model = + new FunctionUpdateRuntimeConfig( + this.functionsRuntimeName, this.functionsRuntimeVersionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FunctionUpdateRuntimeConfig model) { + if (model.wasPropertyExplicitlySet("functionsRuntimeName")) { + this.functionsRuntimeName(model.getFunctionsRuntimeName()); + } + if (model.wasPropertyExplicitlySet("functionsRuntimeVersionId")) { + this.functionsRuntimeVersionId(model.getFunctionsRuntimeVersionId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public FunctionUpdateRuntimeConfig( + String functionsRuntimeName, String functionsRuntimeVersionId) { + super(); + this.functionsRuntimeName = functionsRuntimeName; + this.functionsRuntimeVersionId = functionsRuntimeVersionId; + } + + /** The name of the FunctionsRuntime this function is to be associated with. */ + @com.fasterxml.jackson.annotation.JsonProperty("functionsRuntimeName") + private final String functionsRuntimeName; + + /** + * The name of the FunctionsRuntime this function is to be associated with. + * + * @return the value + */ + public String getFunctionsRuntimeName() { + return functionsRuntimeName; + } + + /** The OCID of the FunctionsRuntimeVersion that is currently in use for the function. */ + @com.fasterxml.jackson.annotation.JsonProperty("functionsRuntimeVersionId") + private final String functionsRuntimeVersionId; + + /** + * The OCID of the FunctionsRuntimeVersion that is currently in use for the function. + * + * @return the value + */ + public String getFunctionsRuntimeVersionId() { + return functionsRuntimeVersionId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("FunctionUpdateRuntimeConfig("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", functionsRuntimeName=").append(String.valueOf(this.functionsRuntimeName)); + sb.append(", functionsRuntimeVersionId=") + .append(String.valueOf(this.functionsRuntimeVersionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FunctionUpdateRuntimeConfig)) { + return false; + } + + FunctionUpdateRuntimeConfig other = (FunctionUpdateRuntimeConfig) o; + return java.util.Objects.equals(this.functionsRuntimeName, other.functionsRuntimeName) + && java.util.Objects.equals( + this.functionsRuntimeVersionId, other.functionsRuntimeVersionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.functionsRuntimeName == null + ? 43 + : this.functionsRuntimeName.hashCode()); + result = + (result * PRIME) + + (this.functionsRuntimeVersionId == null + ? 43 + : this.functionsRuntimeVersionId.hashCode()); + return result; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntime.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntime.java new file mode 100644 index 00000000000..cb58fed6b4f --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntime.java @@ -0,0 +1,773 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.functions.model; + +/** + * FunctionsRuntime resources provide details about the available runtimes for consumption by the + * user. This resource contains details about the runtimes supported language and os etc.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = FunctionsRuntime.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class FunctionsRuntime + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "name", + "os", + "language", + "timeDeprecated", + "timeDecommissioned", + "metadata", + "lifecycleState", + "currentFunctionsRuntimeVersionId", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public FunctionsRuntime( + String id, + String name, + String os, + String language, + java.util.Date timeDeprecated, + java.util.Date timeDecommissioned, + String metadata, + LifecycleState lifecycleState, + String currentFunctionsRuntimeVersionId, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.name = name; + this.os = os; + this.language = language; + this.timeDeprecated = timeDeprecated; + this.timeDecommissioned = timeDecommissioned; + this.metadata = metadata; + this.lifecycleState = lifecycleState; + this.currentFunctionsRuntimeVersionId = currentFunctionsRuntimeVersionId; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the FunctionsRuntime that is immutable on creation. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the FunctionsRuntime that is immutable on creation. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * A brief descriptive name for the FunctionsRuntime. The FunctionsRuntime name must be + * unique, and not match any existing FunctionsRuntime. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * A brief descriptive name for the FunctionsRuntime. The FunctionsRuntime name must be + * unique, and not match any existing FunctionsRuntime. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The operating system of the FunctionsRuntime. This is the OS that the FunctionsRuntime + * provides for execution of customer payloads. + */ + @com.fasterxml.jackson.annotation.JsonProperty("os") + private String os; + + /** + * The operating system of the FunctionsRuntime. This is the OS that the FunctionsRuntime + * provides for execution of customer payloads. + * + * @param os the value to set + * @return this builder + */ + public Builder os(String os) { + this.os = os; + this.__explicitlySet__.add("os"); + return this; + } + /** + * The programming language of the FunctionsRuntime. This is the language that the + * FunctionsRuntime provides for execution of customer payloads. + */ + @com.fasterxml.jackson.annotation.JsonProperty("language") + private String language; + + /** + * The programming language of the FunctionsRuntime. This is the language that the + * FunctionsRuntime provides for execution of customer payloads. + * + * @param language the value to set + * @return this builder + */ + public Builder language(String language) { + this.language = language; + this.__explicitlySet__.add("language"); + return this; + } + /** + * The time when the FunctionsRuntime will be deprecated. An RFC3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeDeprecated") + private java.util.Date timeDeprecated; + + /** + * The time when the FunctionsRuntime will be deprecated. An RFC3339 formatted datetime + * string. + * + * @param timeDeprecated the value to set + * @return this builder + */ + public Builder timeDeprecated(java.util.Date timeDeprecated) { + this.timeDeprecated = timeDeprecated; + this.__explicitlySet__.add("timeDeprecated"); + return this; + } + /** + * The time when the FunctionsRuntime will be decommissioned. An RFC3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeDecommissioned") + private java.util.Date timeDecommissioned; + + /** + * The time when the FunctionsRuntime will be decommissioned. An RFC3339 formatted datetime + * string. + * + * @param timeDecommissioned the value to set + * @return this builder + */ + public Builder timeDecommissioned(java.util.Date timeDecommissioned) { + this.timeDecommissioned = timeDecommissioned; + this.__explicitlySet__.add("timeDecommissioned"); + return this; + } + /** Metadata for the FunctionsRuntime Resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private String metadata; + + /** + * Metadata for the FunctionsRuntime Resource. + * + * @param metadata the value to set + * @return this builder + */ + public Builder metadata(String metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** + * The current state of the FunctionsRuntime resource. - {@code ACTIVE}: The resource is + * currently active and operational. - {@code INACTIVE}: The resource is currently inactive + * and not operational. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the FunctionsRuntime resource. - {@code ACTIVE}: The resource is + * currently active and operational. - {@code INACTIVE}: The resource is currently inactive + * and not operational. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** The OCID of the current FunctionsRuntimeVersion for this FunctionsRuntime. */ + @com.fasterxml.jackson.annotation.JsonProperty("currentFunctionsRuntimeVersionId") + private String currentFunctionsRuntimeVersionId; + + /** + * The OCID of the current FunctionsRuntimeVersion for this FunctionsRuntime. + * + * @param currentFunctionsRuntimeVersionId the value to set + * @return this builder + */ + public Builder currentFunctionsRuntimeVersionId(String currentFunctionsRuntimeVersionId) { + this.currentFunctionsRuntimeVersionId = currentFunctionsRuntimeVersionId; + this.__explicitlySet__.add("currentFunctionsRuntimeVersionId"); + return this; + } + /** The time when the FunctionsRuntime was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time when the FunctionsRuntime 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 when the FunctionsRuntime was updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time when the FunctionsRuntime was 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; + } + /** + * 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; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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 FunctionsRuntime build() { + FunctionsRuntime model = + new FunctionsRuntime( + this.id, + this.name, + this.os, + this.language, + this.timeDeprecated, + this.timeDecommissioned, + this.metadata, + this.lifecycleState, + this.currentFunctionsRuntimeVersionId, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FunctionsRuntime model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("os")) { + this.os(model.getOs()); + } + if (model.wasPropertyExplicitlySet("language")) { + this.language(model.getLanguage()); + } + if (model.wasPropertyExplicitlySet("timeDeprecated")) { + this.timeDeprecated(model.getTimeDeprecated()); + } + if (model.wasPropertyExplicitlySet("timeDecommissioned")) { + this.timeDecommissioned(model.getTimeDecommissioned()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("currentFunctionsRuntimeVersionId")) { + this.currentFunctionsRuntimeVersionId(model.getCurrentFunctionsRuntimeVersionId()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the FunctionsRuntime that is immutable on creation. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the FunctionsRuntime that is immutable on creation. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * A brief descriptive name for the FunctionsRuntime. The FunctionsRuntime name must be unique, + * and not match any existing FunctionsRuntime. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * A brief descriptive name for the FunctionsRuntime. The FunctionsRuntime name must be unique, + * and not match any existing FunctionsRuntime. + * + * @return the value + */ + public String getName() { + return name; + } + + /** + * The operating system of the FunctionsRuntime. This is the OS that the FunctionsRuntime + * provides for execution of customer payloads. + */ + @com.fasterxml.jackson.annotation.JsonProperty("os") + private final String os; + + /** + * The operating system of the FunctionsRuntime. This is the OS that the FunctionsRuntime + * provides for execution of customer payloads. + * + * @return the value + */ + public String getOs() { + return os; + } + + /** + * The programming language of the FunctionsRuntime. This is the language that the + * FunctionsRuntime provides for execution of customer payloads. + */ + @com.fasterxml.jackson.annotation.JsonProperty("language") + private final String language; + + /** + * The programming language of the FunctionsRuntime. This is the language that the + * FunctionsRuntime provides for execution of customer payloads. + * + * @return the value + */ + public String getLanguage() { + return language; + } + + /** + * The time when the FunctionsRuntime will be deprecated. An RFC3339 formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeDeprecated") + private final java.util.Date timeDeprecated; + + /** + * The time when the FunctionsRuntime will be deprecated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeDeprecated() { + return timeDeprecated; + } + + /** + * The time when the FunctionsRuntime will be decommissioned. An RFC3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeDecommissioned") + private final java.util.Date timeDecommissioned; + + /** + * The time when the FunctionsRuntime will be decommissioned. An RFC3339 formatted datetime + * string. + * + * @return the value + */ + public java.util.Date getTimeDecommissioned() { + return timeDecommissioned; + } + + /** Metadata for the FunctionsRuntime Resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final String metadata; + + /** + * Metadata for the FunctionsRuntime Resource. + * + * @return the value + */ + public String getMetadata() { + return metadata; + } + + /** + * The current state of the FunctionsRuntime resource. - {@code ACTIVE}: The resource is + * currently active and operational. - {@code INACTIVE}: The resource is currently inactive and + * not operational. + */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Active("ACTIVE"), + Inactive("INACTIVE"), + + /** + * 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 FunctionsRuntime resource. - {@code ACTIVE}: The resource is + * currently active and operational. - {@code INACTIVE}: The resource is currently inactive and + * not operational. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the FunctionsRuntime resource. - {@code ACTIVE}: The resource is + * currently active and operational. - {@code INACTIVE}: The resource is currently inactive and + * not operational. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The OCID of the current FunctionsRuntimeVersion for this FunctionsRuntime. */ + @com.fasterxml.jackson.annotation.JsonProperty("currentFunctionsRuntimeVersionId") + private final String currentFunctionsRuntimeVersionId; + + /** + * The OCID of the current FunctionsRuntimeVersion for this FunctionsRuntime. + * + * @return the value + */ + public String getCurrentFunctionsRuntimeVersionId() { + return currentFunctionsRuntimeVersionId; + } + + /** The time when the FunctionsRuntime was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time when the FunctionsRuntime was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time when the FunctionsRuntime was updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time when the FunctionsRuntime was updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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("FunctionsRuntime("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", os=").append(String.valueOf(this.os)); + sb.append(", language=").append(String.valueOf(this.language)); + sb.append(", timeDeprecated=").append(String.valueOf(this.timeDeprecated)); + sb.append(", timeDecommissioned=").append(String.valueOf(this.timeDecommissioned)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", currentFunctionsRuntimeVersionId=") + .append(String.valueOf(this.currentFunctionsRuntimeVersionId)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FunctionsRuntime)) { + return false; + } + + FunctionsRuntime other = (FunctionsRuntime) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.os, other.os) + && java.util.Objects.equals(this.language, other.language) + && java.util.Objects.equals(this.timeDeprecated, other.timeDeprecated) + && java.util.Objects.equals(this.timeDecommissioned, other.timeDecommissioned) + && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals( + this.currentFunctionsRuntimeVersionId, + other.currentFunctionsRuntimeVersionId) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.os == null ? 43 : this.os.hashCode()); + result = (result * PRIME) + (this.language == null ? 43 : this.language.hashCode()); + result = + (result * PRIME) + + (this.timeDeprecated == null ? 43 : this.timeDeprecated.hashCode()); + result = + (result * PRIME) + + (this.timeDecommissioned == null + ? 43 + : this.timeDecommissioned.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.currentFunctionsRuntimeVersionId == null + ? 43 + : this.currentFunctionsRuntimeVersionId.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntimeCollection.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntimeCollection.java new file mode 100644 index 00000000000..67e79860b3a --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntimeCollection.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.functions.model; + +/** + * Results of a FunctionsRuntime search. Contains FunctionsRuntimeSummary items.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = FunctionsRuntimeCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class FunctionsRuntimeCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public FunctionsRuntimeCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of FunctionsRuntimeSummary. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of FunctionsRuntimeSummary. + * + * @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 FunctionsRuntimeCollection build() { + FunctionsRuntimeCollection model = new FunctionsRuntimeCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FunctionsRuntimeCollection 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 FunctionsRuntimeSummary. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of FunctionsRuntimeSummary. + * + * @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("FunctionsRuntimeCollection("); + 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 FunctionsRuntimeCollection)) { + return false; + } + + FunctionsRuntimeCollection other = (FunctionsRuntimeCollection) 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-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntimeSummary.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntimeSummary.java new file mode 100644 index 00000000000..1df69b9ce4d --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntimeSummary.java @@ -0,0 +1,711 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.functions.model; + +/** + * Summary of the FunctionsRuntime.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = FunctionsRuntimeSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class FunctionsRuntimeSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "name", + "os", + "language", + "timeDeprecated", + "timeDecommissioned", + "metadata", + "lifecycleState", + "currentFunctionsRuntimeVersionId", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public FunctionsRuntimeSummary( + String id, + String name, + String os, + String language, + java.util.Date timeDeprecated, + java.util.Date timeDecommissioned, + String metadata, + FunctionsRuntime.LifecycleState lifecycleState, + String currentFunctionsRuntimeVersionId, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.name = name; + this.os = os; + this.language = language; + this.timeDeprecated = timeDeprecated; + this.timeDecommissioned = timeDecommissioned; + this.metadata = metadata; + this.lifecycleState = lifecycleState; + this.currentFunctionsRuntimeVersionId = currentFunctionsRuntimeVersionId; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the FunctionsRuntime that is immutable on creation. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the FunctionsRuntime that is immutable on creation. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * A brief descriptive name for the FunctionsRuntime. The FunctionsRuntime name must be + * unique, and not match any existing FunctionsRuntime. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * A brief descriptive name for the FunctionsRuntime. The FunctionsRuntime name must be + * unique, and not match any existing FunctionsRuntime. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The operating system of the FunctionsRuntime. This is the OS that the FunctionsRuntime + * provides for execution of customer payloads. + */ + @com.fasterxml.jackson.annotation.JsonProperty("os") + private String os; + + /** + * The operating system of the FunctionsRuntime. This is the OS that the FunctionsRuntime + * provides for execution of customer payloads. + * + * @param os the value to set + * @return this builder + */ + public Builder os(String os) { + this.os = os; + this.__explicitlySet__.add("os"); + return this; + } + /** + * The programming language of the FunctionsRuntime. This is the language that the + * FunctionsRuntime provides for execution of customer payloads. + */ + @com.fasterxml.jackson.annotation.JsonProperty("language") + private String language; + + /** + * The programming language of the FunctionsRuntime. This is the language that the + * FunctionsRuntime provides for execution of customer payloads. + * + * @param language the value to set + * @return this builder + */ + public Builder language(String language) { + this.language = language; + this.__explicitlySet__.add("language"); + return this; + } + /** + * The time when the FunctionsRuntime will be deprecated. An RFC3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeDeprecated") + private java.util.Date timeDeprecated; + + /** + * The time when the FunctionsRuntime will be deprecated. An RFC3339 formatted datetime + * string. + * + * @param timeDeprecated the value to set + * @return this builder + */ + public Builder timeDeprecated(java.util.Date timeDeprecated) { + this.timeDeprecated = timeDeprecated; + this.__explicitlySet__.add("timeDeprecated"); + return this; + } + /** + * The time when the FunctionsRuntime will be decommissioned. An RFC3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeDecommissioned") + private java.util.Date timeDecommissioned; + + /** + * The time when the FunctionsRuntime will be decommissioned. An RFC3339 formatted datetime + * string. + * + * @param timeDecommissioned the value to set + * @return this builder + */ + public Builder timeDecommissioned(java.util.Date timeDecommissioned) { + this.timeDecommissioned = timeDecommissioned; + this.__explicitlySet__.add("timeDecommissioned"); + return this; + } + /** Metadata for the FunctionsRuntime Resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private String metadata; + + /** + * Metadata for the FunctionsRuntime Resource. + * + * @param metadata the value to set + * @return this builder + */ + public Builder metadata(String metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** The current state of the FunctionsRuntime resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private FunctionsRuntime.LifecycleState lifecycleState; + + /** + * The current state of the FunctionsRuntime resource. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(FunctionsRuntime.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** The OCID of the current FunctionsRuntimeVersion for this FunctionsRuntime. */ + @com.fasterxml.jackson.annotation.JsonProperty("currentFunctionsRuntimeVersionId") + private String currentFunctionsRuntimeVersionId; + + /** + * The OCID of the current FunctionsRuntimeVersion for this FunctionsRuntime. + * + * @param currentFunctionsRuntimeVersionId the value to set + * @return this builder + */ + public Builder currentFunctionsRuntimeVersionId(String currentFunctionsRuntimeVersionId) { + this.currentFunctionsRuntimeVersionId = currentFunctionsRuntimeVersionId; + this.__explicitlySet__.add("currentFunctionsRuntimeVersionId"); + return this; + } + /** The time when the FunctionsRuntime was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time when the FunctionsRuntime 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 when the FunctionsRuntime was updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time when the FunctionsRuntime was 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; + } + /** + * 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; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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 FunctionsRuntimeSummary build() { + FunctionsRuntimeSummary model = + new FunctionsRuntimeSummary( + this.id, + this.name, + this.os, + this.language, + this.timeDeprecated, + this.timeDecommissioned, + this.metadata, + this.lifecycleState, + this.currentFunctionsRuntimeVersionId, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FunctionsRuntimeSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("os")) { + this.os(model.getOs()); + } + if (model.wasPropertyExplicitlySet("language")) { + this.language(model.getLanguage()); + } + if (model.wasPropertyExplicitlySet("timeDeprecated")) { + this.timeDeprecated(model.getTimeDeprecated()); + } + if (model.wasPropertyExplicitlySet("timeDecommissioned")) { + this.timeDecommissioned(model.getTimeDecommissioned()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("currentFunctionsRuntimeVersionId")) { + this.currentFunctionsRuntimeVersionId(model.getCurrentFunctionsRuntimeVersionId()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the FunctionsRuntime that is immutable on creation. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the FunctionsRuntime that is immutable on creation. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * A brief descriptive name for the FunctionsRuntime. The FunctionsRuntime name must be unique, + * and not match any existing FunctionsRuntime. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * A brief descriptive name for the FunctionsRuntime. The FunctionsRuntime name must be unique, + * and not match any existing FunctionsRuntime. + * + * @return the value + */ + public String getName() { + return name; + } + + /** + * The operating system of the FunctionsRuntime. This is the OS that the FunctionsRuntime + * provides for execution of customer payloads. + */ + @com.fasterxml.jackson.annotation.JsonProperty("os") + private final String os; + + /** + * The operating system of the FunctionsRuntime. This is the OS that the FunctionsRuntime + * provides for execution of customer payloads. + * + * @return the value + */ + public String getOs() { + return os; + } + + /** + * The programming language of the FunctionsRuntime. This is the language that the + * FunctionsRuntime provides for execution of customer payloads. + */ + @com.fasterxml.jackson.annotation.JsonProperty("language") + private final String language; + + /** + * The programming language of the FunctionsRuntime. This is the language that the + * FunctionsRuntime provides for execution of customer payloads. + * + * @return the value + */ + public String getLanguage() { + return language; + } + + /** + * The time when the FunctionsRuntime will be deprecated. An RFC3339 formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeDeprecated") + private final java.util.Date timeDeprecated; + + /** + * The time when the FunctionsRuntime will be deprecated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeDeprecated() { + return timeDeprecated; + } + + /** + * The time when the FunctionsRuntime will be decommissioned. An RFC3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeDecommissioned") + private final java.util.Date timeDecommissioned; + + /** + * The time when the FunctionsRuntime will be decommissioned. An RFC3339 formatted datetime + * string. + * + * @return the value + */ + public java.util.Date getTimeDecommissioned() { + return timeDecommissioned; + } + + /** Metadata for the FunctionsRuntime Resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final String metadata; + + /** + * Metadata for the FunctionsRuntime Resource. + * + * @return the value + */ + public String getMetadata() { + return metadata; + } + + /** The current state of the FunctionsRuntime resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final FunctionsRuntime.LifecycleState lifecycleState; + + /** + * The current state of the FunctionsRuntime resource. + * + * @return the value + */ + public FunctionsRuntime.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The OCID of the current FunctionsRuntimeVersion for this FunctionsRuntime. */ + @com.fasterxml.jackson.annotation.JsonProperty("currentFunctionsRuntimeVersionId") + private final String currentFunctionsRuntimeVersionId; + + /** + * The OCID of the current FunctionsRuntimeVersion for this FunctionsRuntime. + * + * @return the value + */ + public String getCurrentFunctionsRuntimeVersionId() { + return currentFunctionsRuntimeVersionId; + } + + /** The time when the FunctionsRuntime was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time when the FunctionsRuntime was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time when the FunctionsRuntime was updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time when the FunctionsRuntime was updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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("FunctionsRuntimeSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", os=").append(String.valueOf(this.os)); + sb.append(", language=").append(String.valueOf(this.language)); + sb.append(", timeDeprecated=").append(String.valueOf(this.timeDeprecated)); + sb.append(", timeDecommissioned=").append(String.valueOf(this.timeDecommissioned)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", currentFunctionsRuntimeVersionId=") + .append(String.valueOf(this.currentFunctionsRuntimeVersionId)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FunctionsRuntimeSummary)) { + return false; + } + + FunctionsRuntimeSummary other = (FunctionsRuntimeSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.os, other.os) + && java.util.Objects.equals(this.language, other.language) + && java.util.Objects.equals(this.timeDeprecated, other.timeDeprecated) + && java.util.Objects.equals(this.timeDecommissioned, other.timeDecommissioned) + && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals( + this.currentFunctionsRuntimeVersionId, + other.currentFunctionsRuntimeVersionId) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.os == null ? 43 : this.os.hashCode()); + result = (result * PRIME) + (this.language == null ? 43 : this.language.hashCode()); + result = + (result * PRIME) + + (this.timeDeprecated == null ? 43 : this.timeDeprecated.hashCode()); + result = + (result * PRIME) + + (this.timeDecommissioned == null + ? 43 + : this.timeDecommissioned.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.currentFunctionsRuntimeVersionId == null + ? 43 + : this.currentFunctionsRuntimeVersionId.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntimeVersion.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntimeVersion.java new file mode 100644 index 00000000000..df62c413365 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntimeVersion.java @@ -0,0 +1,772 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.functions.model; + +/** + * This represents a version of a FunctionsRuntime. Each new functional update to a FunctionsRuntime + * from the Functions team will change the image that will result in the creation of new + * FunctionsRuntimeVersion resource creation. This is a sub-resource of a FunctionsRuntime.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = FunctionsRuntimeVersion.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class FunctionsRuntimeVersion + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "functionsRuntimeId", + "displayName", + "osVersion", + "languageVersion", + "supportedArchitectures", + "metadata", + "lifecycleState", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public FunctionsRuntimeVersion( + String id, + String functionsRuntimeId, + String displayName, + String osVersion, + String languageVersion, + java.util.List supportedArchitectures, + String metadata, + LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.functionsRuntimeId = functionsRuntimeId; + this.displayName = displayName; + this.osVersion = osVersion; + this.languageVersion = languageVersion; + this.supportedArchitectures = supportedArchitectures; + this.metadata = metadata; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the FunctionsRuntimeVersion that is immutable on creation. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the FunctionsRuntimeVersion that is immutable on creation. + * + * @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 FunctionsRuntime this resource version belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("functionsRuntimeId") + private String functionsRuntimeId; + + /** + * The OCID of the FunctionsRuntime this resource version belongs to. + * + * @param functionsRuntimeId the value to set + * @return this builder + */ + public Builder functionsRuntimeId(String functionsRuntimeId) { + this.functionsRuntimeId = functionsRuntimeId; + this.__explicitlySet__.add("functionsRuntimeId"); + return this; + } + /** The display name of the FunctionsRuntimeVersion. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the FunctionsRuntimeVersion. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The version of the operating system of the FunctionsRuntime. This is the OS version that + * the FunctionsRuntime provides for execution of customer payloads. + */ + @com.fasterxml.jackson.annotation.JsonProperty("osVersion") + private String osVersion; + + /** + * The version of the operating system of the FunctionsRuntime. This is the OS version that + * the FunctionsRuntime provides for execution of customer payloads. + * + * @param osVersion the value to set + * @return this builder + */ + public Builder osVersion(String osVersion) { + this.osVersion = osVersion; + this.__explicitlySet__.add("osVersion"); + return this; + } + /** + * The version of the programming language of the FunctionsRuntime. This is the language + * version that the FunctionsRuntime provides for execution of customer payloads. + */ + @com.fasterxml.jackson.annotation.JsonProperty("languageVersion") + private String languageVersion; + + /** + * The version of the programming language of the FunctionsRuntime. This is the language + * version that the FunctionsRuntime provides for execution of customer payloads. + * + * @param languageVersion the value to set + * @return this builder + */ + public Builder languageVersion(String languageVersion) { + this.languageVersion = languageVersion; + this.__explicitlySet__.add("languageVersion"); + return this; + } + /** The list of supported architectures for the FunctionsRuntimeVersion. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportedArchitectures") + private java.util.List supportedArchitectures; + + /** + * The list of supported architectures for the FunctionsRuntimeVersion. + * + * @param supportedArchitectures the value to set + * @return this builder + */ + public Builder supportedArchitectures( + java.util.List supportedArchitectures) { + this.supportedArchitectures = supportedArchitectures; + this.__explicitlySet__.add("supportedArchitectures"); + return this; + } + /** Details of the change in the FunctionsRuntimeVersion of the FunctionsRuntime. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private String metadata; + + /** + * Details of the change in the FunctionsRuntimeVersion of the FunctionsRuntime. + * + * @param metadata the value to set + * @return this builder + */ + public Builder metadata(String metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** + * The current state of the FunctionsRuntimeVersion resource. - {@code ACTIVE}: The resource + * is currently active and operational. - {@code INACTIVE}: The resource is currently + * inactive and not operational. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the FunctionsRuntimeVersion resource. - {@code ACTIVE}: The resource + * is currently active and operational. - {@code INACTIVE}: The resource is currently + * inactive and not operational. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The time when the FunctionsRuntimeVersion was created. An RFC3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time when the FunctionsRuntimeVersion 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 when the FunctionsRuntimeVersion was updated. An RFC3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time when the FunctionsRuntimeVersion was 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; + } + /** + * 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; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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 FunctionsRuntimeVersion build() { + FunctionsRuntimeVersion model = + new FunctionsRuntimeVersion( + this.id, + this.functionsRuntimeId, + this.displayName, + this.osVersion, + this.languageVersion, + this.supportedArchitectures, + this.metadata, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FunctionsRuntimeVersion model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("functionsRuntimeId")) { + this.functionsRuntimeId(model.getFunctionsRuntimeId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("osVersion")) { + this.osVersion(model.getOsVersion()); + } + if (model.wasPropertyExplicitlySet("languageVersion")) { + this.languageVersion(model.getLanguageVersion()); + } + if (model.wasPropertyExplicitlySet("supportedArchitectures")) { + this.supportedArchitectures(model.getSupportedArchitectures()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the FunctionsRuntimeVersion that is immutable on creation. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the FunctionsRuntimeVersion that is immutable on creation. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the FunctionsRuntime this resource version belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("functionsRuntimeId") + private final String functionsRuntimeId; + + /** + * The OCID of the FunctionsRuntime this resource version belongs to. + * + * @return the value + */ + public String getFunctionsRuntimeId() { + return functionsRuntimeId; + } + + /** The display name of the FunctionsRuntimeVersion. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the FunctionsRuntimeVersion. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The version of the operating system of the FunctionsRuntime. This is the OS version that the + * FunctionsRuntime provides for execution of customer payloads. + */ + @com.fasterxml.jackson.annotation.JsonProperty("osVersion") + private final String osVersion; + + /** + * The version of the operating system of the FunctionsRuntime. This is the OS version that the + * FunctionsRuntime provides for execution of customer payloads. + * + * @return the value + */ + public String getOsVersion() { + return osVersion; + } + + /** + * The version of the programming language of the FunctionsRuntime. This is the language version + * that the FunctionsRuntime provides for execution of customer payloads. + */ + @com.fasterxml.jackson.annotation.JsonProperty("languageVersion") + private final String languageVersion; + + /** + * The version of the programming language of the FunctionsRuntime. This is the language version + * that the FunctionsRuntime provides for execution of customer payloads. + * + * @return the value + */ + public String getLanguageVersion() { + return languageVersion; + } + + /** */ + public enum SupportedArchitectures implements com.oracle.bmc.http.internal.BmcEnum { + Arm("ARM"), + X86("X86"), + + /** + * 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(SupportedArchitectures.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SupportedArchitectures v : SupportedArchitectures.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + SupportedArchitectures(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SupportedArchitectures create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'SupportedArchitectures', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The list of supported architectures for the FunctionsRuntimeVersion. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportedArchitectures") + private final java.util.List supportedArchitectures; + + /** + * The list of supported architectures for the FunctionsRuntimeVersion. + * + * @return the value + */ + public java.util.List getSupportedArchitectures() { + return supportedArchitectures; + } + + /** Details of the change in the FunctionsRuntimeVersion of the FunctionsRuntime. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final String metadata; + + /** + * Details of the change in the FunctionsRuntimeVersion of the FunctionsRuntime. + * + * @return the value + */ + public String getMetadata() { + return metadata; + } + + /** + * The current state of the FunctionsRuntimeVersion resource. - {@code ACTIVE}: The resource is + * currently active and operational. - {@code INACTIVE}: The resource is currently inactive and + * not operational. + */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Active("ACTIVE"), + Inactive("INACTIVE"), + + /** + * 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 FunctionsRuntimeVersion resource. - {@code ACTIVE}: The resource is + * currently active and operational. - {@code INACTIVE}: The resource is currently inactive and + * not operational. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the FunctionsRuntimeVersion resource. - {@code ACTIVE}: The resource is + * currently active and operational. - {@code INACTIVE}: The resource is currently inactive and + * not operational. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The time when the FunctionsRuntimeVersion was created. An RFC3339 formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time when the FunctionsRuntimeVersion was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time when the FunctionsRuntimeVersion was updated. An RFC3339 formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time when the FunctionsRuntimeVersion was updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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("FunctionsRuntimeVersion("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", functionsRuntimeId=").append(String.valueOf(this.functionsRuntimeId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", osVersion=").append(String.valueOf(this.osVersion)); + sb.append(", languageVersion=").append(String.valueOf(this.languageVersion)); + sb.append(", supportedArchitectures=").append(String.valueOf(this.supportedArchitectures)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FunctionsRuntimeVersion)) { + return false; + } + + FunctionsRuntimeVersion other = (FunctionsRuntimeVersion) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.functionsRuntimeId, other.functionsRuntimeId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.osVersion, other.osVersion) + && java.util.Objects.equals(this.languageVersion, other.languageVersion) + && java.util.Objects.equals( + this.supportedArchitectures, other.supportedArchitectures) + && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.functionsRuntimeId == null + ? 43 + : this.functionsRuntimeId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.osVersion == null ? 43 : this.osVersion.hashCode()); + result = + (result * PRIME) + + (this.languageVersion == null ? 43 : this.languageVersion.hashCode()); + result = + (result * PRIME) + + (this.supportedArchitectures == null + ? 43 + : this.supportedArchitectures.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntimeVersionCollection.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntimeVersionCollection.java new file mode 100644 index 00000000000..f1f7dcf2668 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntimeVersionCollection.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.functions.model; + +/** + * Results of a FunctionsRuntimeVersion search. Contains FunctionsRuntimeVersionSummary items.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = FunctionsRuntimeVersionCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class FunctionsRuntimeVersionCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public FunctionsRuntimeVersionCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of FunctionsRuntimeVersionSummary. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of FunctionsRuntimeVersionSummary. + * + * @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 FunctionsRuntimeVersionCollection build() { + FunctionsRuntimeVersionCollection model = + new FunctionsRuntimeVersionCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FunctionsRuntimeVersionCollection 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 FunctionsRuntimeVersionSummary. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of FunctionsRuntimeVersionSummary. + * + * @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("FunctionsRuntimeVersionCollection("); + 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 FunctionsRuntimeVersionCollection)) { + return false; + } + + FunctionsRuntimeVersionCollection other = (FunctionsRuntimeVersionCollection) 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-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntimeVersionSummary.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntimeVersionSummary.java new file mode 100644 index 00000000000..1e1779ded5a --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntimeVersionSummary.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.functions.model; + +/** + * Summary of the FunctionsRuntimeVersion.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = FunctionsRuntimeVersionSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class FunctionsRuntimeVersionSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "functionsRuntimeId", + "displayName", + "osVersion", + "languageVersion", + "supportedArchitectures", + "lifecycleState", + "metadata", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public FunctionsRuntimeVersionSummary( + String id, + String functionsRuntimeId, + String displayName, + String osVersion, + String languageVersion, + java.util.List supportedArchitectures, + FunctionsRuntimeVersion.LifecycleState lifecycleState, + String metadata, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.functionsRuntimeId = functionsRuntimeId; + this.displayName = displayName; + this.osVersion = osVersion; + this.languageVersion = languageVersion; + this.supportedArchitectures = supportedArchitectures; + this.lifecycleState = lifecycleState; + this.metadata = metadata; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the FunctionsRuntimeVersion that is immutable on creation. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the FunctionsRuntimeVersion that is immutable on creation. + * + * @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 FunctionsRuntime this resource version belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("functionsRuntimeId") + private String functionsRuntimeId; + + /** + * The OCID of the FunctionsRuntime this resource version belongs to. + * + * @param functionsRuntimeId the value to set + * @return this builder + */ + public Builder functionsRuntimeId(String functionsRuntimeId) { + this.functionsRuntimeId = functionsRuntimeId; + this.__explicitlySet__.add("functionsRuntimeId"); + return this; + } + /** The display name of the FunctionsRuntimeVersion. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the FunctionsRuntimeVersion. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The version of the operating system of the FunctionsRuntime. This is the OS version that + * the FunctionsRuntime provides for execution of customer payloads. + */ + @com.fasterxml.jackson.annotation.JsonProperty("osVersion") + private String osVersion; + + /** + * The version of the operating system of the FunctionsRuntime. This is the OS version that + * the FunctionsRuntime provides for execution of customer payloads. + * + * @param osVersion the value to set + * @return this builder + */ + public Builder osVersion(String osVersion) { + this.osVersion = osVersion; + this.__explicitlySet__.add("osVersion"); + return this; + } + /** + * The version of the programming language of the FunctionsRuntime. This is the language + * version that the FunctionsRuntime provides for execution of customer payloads. + */ + @com.fasterxml.jackson.annotation.JsonProperty("languageVersion") + private String languageVersion; + + /** + * The version of the programming language of the FunctionsRuntime. This is the language + * version that the FunctionsRuntime provides for execution of customer payloads. + * + * @param languageVersion the value to set + * @return this builder + */ + public Builder languageVersion(String languageVersion) { + this.languageVersion = languageVersion; + this.__explicitlySet__.add("languageVersion"); + return this; + } + /** The list of supported architectures for the FunctionsRuntimeVersion. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportedArchitectures") + private java.util.List supportedArchitectures; + + /** + * The list of supported architectures for the FunctionsRuntimeVersion. + * + * @param supportedArchitectures the value to set + * @return this builder + */ + public Builder supportedArchitectures( + java.util.List supportedArchitectures) { + this.supportedArchitectures = supportedArchitectures; + this.__explicitlySet__.add("supportedArchitectures"); + return this; + } + /** The current state of the FunctionsRuntimeVersion resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private FunctionsRuntimeVersion.LifecycleState lifecycleState; + + /** + * The current state of the FunctionsRuntimeVersion resource. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(FunctionsRuntimeVersion.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Details of the change in the FunctionsRuntimeVersion of the FunctionsRuntime. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private String metadata; + + /** + * Details of the change in the FunctionsRuntimeVersion of the FunctionsRuntime. + * + * @param metadata the value to set + * @return this builder + */ + public Builder metadata(String metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** + * The time when the FunctionsRuntimeVersion was created. An RFC3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time when the FunctionsRuntimeVersion 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 when the FunctionsRuntimeVersion was updated. An RFC3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time when the FunctionsRuntimeVersion was 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; + } + /** + * 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; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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 FunctionsRuntimeVersionSummary build() { + FunctionsRuntimeVersionSummary model = + new FunctionsRuntimeVersionSummary( + this.id, + this.functionsRuntimeId, + this.displayName, + this.osVersion, + this.languageVersion, + this.supportedArchitectures, + this.lifecycleState, + this.metadata, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FunctionsRuntimeVersionSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("functionsRuntimeId")) { + this.functionsRuntimeId(model.getFunctionsRuntimeId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("osVersion")) { + this.osVersion(model.getOsVersion()); + } + if (model.wasPropertyExplicitlySet("languageVersion")) { + this.languageVersion(model.getLanguageVersion()); + } + if (model.wasPropertyExplicitlySet("supportedArchitectures")) { + this.supportedArchitectures(model.getSupportedArchitectures()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the FunctionsRuntimeVersion that is immutable on creation. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the FunctionsRuntimeVersion that is immutable on creation. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the FunctionsRuntime this resource version belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("functionsRuntimeId") + private final String functionsRuntimeId; + + /** + * The OCID of the FunctionsRuntime this resource version belongs to. + * + * @return the value + */ + public String getFunctionsRuntimeId() { + return functionsRuntimeId; + } + + /** The display name of the FunctionsRuntimeVersion. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the FunctionsRuntimeVersion. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The version of the operating system of the FunctionsRuntime. This is the OS version that the + * FunctionsRuntime provides for execution of customer payloads. + */ + @com.fasterxml.jackson.annotation.JsonProperty("osVersion") + private final String osVersion; + + /** + * The version of the operating system of the FunctionsRuntime. This is the OS version that the + * FunctionsRuntime provides for execution of customer payloads. + * + * @return the value + */ + public String getOsVersion() { + return osVersion; + } + + /** + * The version of the programming language of the FunctionsRuntime. This is the language version + * that the FunctionsRuntime provides for execution of customer payloads. + */ + @com.fasterxml.jackson.annotation.JsonProperty("languageVersion") + private final String languageVersion; + + /** + * The version of the programming language of the FunctionsRuntime. This is the language version + * that the FunctionsRuntime provides for execution of customer payloads. + * + * @return the value + */ + public String getLanguageVersion() { + return languageVersion; + } + + /** */ + public enum SupportedArchitectures implements com.oracle.bmc.http.internal.BmcEnum { + Arm("ARM"), + X86("X86"), + + /** + * 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(SupportedArchitectures.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SupportedArchitectures v : SupportedArchitectures.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + SupportedArchitectures(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SupportedArchitectures create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'SupportedArchitectures', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The list of supported architectures for the FunctionsRuntimeVersion. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportedArchitectures") + private final java.util.List supportedArchitectures; + + /** + * The list of supported architectures for the FunctionsRuntimeVersion. + * + * @return the value + */ + public java.util.List getSupportedArchitectures() { + return supportedArchitectures; + } + + /** The current state of the FunctionsRuntimeVersion resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final FunctionsRuntimeVersion.LifecycleState lifecycleState; + + /** + * The current state of the FunctionsRuntimeVersion resource. + * + * @return the value + */ + public FunctionsRuntimeVersion.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Details of the change in the FunctionsRuntimeVersion of the FunctionsRuntime. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final String metadata; + + /** + * Details of the change in the FunctionsRuntimeVersion of the FunctionsRuntime. + * + * @return the value + */ + public String getMetadata() { + return metadata; + } + + /** + * The time when the FunctionsRuntimeVersion was created. An RFC3339 formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time when the FunctionsRuntimeVersion was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time when the FunctionsRuntimeVersion was updated. An RFC3339 formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time when the FunctionsRuntimeVersion was updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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("FunctionsRuntimeVersionSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", functionsRuntimeId=").append(String.valueOf(this.functionsRuntimeId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", osVersion=").append(String.valueOf(this.osVersion)); + sb.append(", languageVersion=").append(String.valueOf(this.languageVersion)); + sb.append(", supportedArchitectures=").append(String.valueOf(this.supportedArchitectures)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FunctionsRuntimeVersionSummary)) { + return false; + } + + FunctionsRuntimeVersionSummary other = (FunctionsRuntimeVersionSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.functionsRuntimeId, other.functionsRuntimeId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.osVersion, other.osVersion) + && java.util.Objects.equals(this.languageVersion, other.languageVersion) + && java.util.Objects.equals( + this.supportedArchitectures, other.supportedArchitectures) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.functionsRuntimeId == null + ? 43 + : this.functionsRuntimeId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.osVersion == null ? 43 : this.osVersion.hashCode()); + result = + (result * PRIME) + + (this.languageVersion == null ? 43 : this.languageVersion.hashCode()); + result = + (result * PRIME) + + (this.supportedArchitectures == null + ? 43 + : this.supportedArchitectures.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ImagePolicyConfig.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ImagePolicyConfig.java index 1132b1f0067..4c9b579efc6 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ImagePolicyConfig.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ImagePolicyConfig.java @@ -5,8 +5,7 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. Define the image signature - * verification policy for an application.
    + * Define the image signature verification policy for an application.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -16,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ImagePolicyConfig.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/KeyDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/KeyDetails.java index f0317d33944..8ed20005bf6 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/KeyDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/KeyDetails.java @@ -5,8 +5,7 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. The properties that define the kms - * keys used by Functions for Image Signature verification.
    + * The properties that define the kms keys used by Functions for Image Signature verification.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -16,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = KeyDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ManualRuntimeConfig.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ManualRuntimeConfig.java new file mode 100644 index 00000000000..7fc7246fe14 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ManualRuntimeConfig.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.functions.model; + +/** + * FunctionsRuntime configuration for a function with 'MANUAL' Runtime Update strategy.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ManualRuntimeConfig.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "runtimeConfigType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ManualRuntimeConfig extends RuntimeConfig { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the FunctionsRuntime this function is to be associated with. */ + @com.fasterxml.jackson.annotation.JsonProperty("functionsRuntimeName") + private String functionsRuntimeName; + + /** + * The name of the FunctionsRuntime this function is to be associated with. + * + * @param functionsRuntimeName the value to set + * @return this builder + */ + public Builder functionsRuntimeName(String functionsRuntimeName) { + this.functionsRuntimeName = functionsRuntimeName; + this.__explicitlySet__.add("functionsRuntimeName"); + return this; + } + /** The OCID of the FunctionsRuntimeVersion that is currently in use for the function. */ + @com.fasterxml.jackson.annotation.JsonProperty("functionsRuntimeVersionId") + private String functionsRuntimeVersionId; + + /** + * The OCID of the FunctionsRuntimeVersion that is currently in use for the function. + * + * @param functionsRuntimeVersionId the value to set + * @return this builder + */ + public Builder functionsRuntimeVersionId(String functionsRuntimeVersionId) { + this.functionsRuntimeVersionId = functionsRuntimeVersionId; + this.__explicitlySet__.add("functionsRuntimeVersionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ManualRuntimeConfig build() { + ManualRuntimeConfig model = + new ManualRuntimeConfig( + this.functionsRuntimeName, this.functionsRuntimeVersionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ManualRuntimeConfig model) { + if (model.wasPropertyExplicitlySet("functionsRuntimeName")) { + this.functionsRuntimeName(model.getFunctionsRuntimeName()); + } + if (model.wasPropertyExplicitlySet("functionsRuntimeVersionId")) { + this.functionsRuntimeVersionId(model.getFunctionsRuntimeVersionId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ManualRuntimeConfig(String functionsRuntimeName, String functionsRuntimeVersionId) { + super(); + this.functionsRuntimeName = functionsRuntimeName; + this.functionsRuntimeVersionId = functionsRuntimeVersionId; + } + + /** The name of the FunctionsRuntime this function is to be associated with. */ + @com.fasterxml.jackson.annotation.JsonProperty("functionsRuntimeName") + private final String functionsRuntimeName; + + /** + * The name of the FunctionsRuntime this function is to be associated with. + * + * @return the value + */ + public String getFunctionsRuntimeName() { + return functionsRuntimeName; + } + + /** The OCID of the FunctionsRuntimeVersion that is currently in use for the function. */ + @com.fasterxml.jackson.annotation.JsonProperty("functionsRuntimeVersionId") + private final String functionsRuntimeVersionId; + + /** + * The OCID of the FunctionsRuntimeVersion that is currently in use for the function. + * + * @return the value + */ + public String getFunctionsRuntimeVersionId() { + return functionsRuntimeVersionId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ManualRuntimeConfig("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", functionsRuntimeName=").append(String.valueOf(this.functionsRuntimeName)); + sb.append(", functionsRuntimeVersionId=") + .append(String.valueOf(this.functionsRuntimeVersionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ManualRuntimeConfig)) { + return false; + } + + ManualRuntimeConfig other = (ManualRuntimeConfig) o; + return java.util.Objects.equals(this.functionsRuntimeName, other.functionsRuntimeName) + && java.util.Objects.equals( + this.functionsRuntimeVersionId, other.functionsRuntimeVersionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.functionsRuntimeName == null + ? 43 + : this.functionsRuntimeName.hashCode()); + result = + (result * PRIME) + + (this.functionsRuntimeVersionId == null + ? 43 + : this.functionsRuntimeVersionId.hashCode()); + return result; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/NoneFailureDestinationDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/NoneFailureDestinationDetails.java index 94dcf693a19..cfd6aba8a91 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/NoneFailureDestinationDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/NoneFailureDestinationDetails.java @@ -17,7 +17,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = NoneFailureDestinationDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/NoneProvisionedConcurrencyConfig.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/NoneProvisionedConcurrencyConfig.java index 9da60f1fbe1..06972349586 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/NoneProvisionedConcurrencyConfig.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/NoneProvisionedConcurrencyConfig.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = NoneProvisionedConcurrencyConfig.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/NoneSuccessDestinationDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/NoneSuccessDestinationDetails.java index c34ac9813d2..7f163b3a12e 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/NoneSuccessDestinationDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/NoneSuccessDestinationDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. Specifies no success destination + * Specifies no success destination * *

    Example: {@code {"kind": "NONE"}}
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model @@ -17,7 +17,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = NoneSuccessDestinationDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/NotificationFailureDestinationDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/NotificationFailureDestinationDetails.java index bd9d08f0389..8c029250456 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/NotificationFailureDestinationDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/NotificationFailureDestinationDetails.java @@ -5,8 +5,8 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. The destination topic in the - * Notifications service to which to send the response of the failed detached function invocation. + * The destination topic in the Notifications service to which to send the response of the failed + * detached function invocation. * *

    Example: {@code {"kind": "NOTIFICATION", "topicId": "topic_OCID"}}
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model @@ -18,7 +18,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = NotificationFailureDestinationDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/NotificationSuccessDestinationDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/NotificationSuccessDestinationDetails.java index 2dfca836666..790f2559093 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/NotificationSuccessDestinationDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/NotificationSuccessDestinationDetails.java @@ -5,9 +5,8 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. The destination topic in the - * Notifications service to which to send the response of the successful detached function - * invocation. + * The destination topic in the Notifications service to which to send the response of the + * successful detached function invocation. * *

    Example: {@code {"kind": "NOTIFICATION", "topicId": "topic_OCID"}}
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model @@ -19,7 +18,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = NotificationSuccessDestinationDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ObjectStorageArchiveSourceDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ObjectStorageArchiveSourceDetails.java new file mode 100644 index 00000000000..7d6a5ceeff3 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ObjectStorageArchiveSourceDetails.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.functions.model; + +/** + * The details for the Archive source of the Function from Object Storage. This is used when the + * function code is stored in Object Storage. It is suitable for scenarios where the function code + * is uploaded as an archive file to a specific bucket and namespace
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ObjectStorageArchiveSourceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "archiveSourceType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ObjectStorageArchiveSourceDetails extends ArchiveSourceDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the Object Storage bucket. */ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private String bucketName; + + /** + * The name of the Object Storage bucket. + * + * @param bucketName the value to set + * @return this builder + */ + public Builder bucketName(String bucketName) { + this.bucketName = bucketName; + this.__explicitlySet__.add("bucketName"); + return this; + } + /** The Object Storage namespace. */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private String namespace; + + /** + * The Object Storage namespace. + * + * @param namespace the value to set + * @return this builder + */ + public Builder namespace(String namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + /** The name of the Object Storage object. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private String objectName; + + /** + * The name of the Object Storage object. + * + * @param objectName the value to set + * @return this builder + */ + public Builder objectName(String objectName) { + this.objectName = objectName; + this.__explicitlySet__.add("objectName"); + return this; + } + /** + * VersionId used to identify a particular version of the object. If not specified, the + * latest version of the object is used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("objectVersionId") + private String objectVersionId; + + /** + * VersionId used to identify a particular version of the object. If not specified, the + * latest version of the object is used. + * + * @param objectVersionId the value to set + * @return this builder + */ + public Builder objectVersionId(String objectVersionId) { + this.objectVersionId = objectVersionId; + this.__explicitlySet__.add("objectVersionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ObjectStorageArchiveSourceDetails build() { + ObjectStorageArchiveSourceDetails model = + new ObjectStorageArchiveSourceDetails( + this.bucketName, this.namespace, this.objectName, this.objectVersionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ObjectStorageArchiveSourceDetails model) { + if (model.wasPropertyExplicitlySet("bucketName")) { + this.bucketName(model.getBucketName()); + } + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + if (model.wasPropertyExplicitlySet("objectName")) { + this.objectName(model.getObjectName()); + } + if (model.wasPropertyExplicitlySet("objectVersionId")) { + this.objectVersionId(model.getObjectVersionId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ObjectStorageArchiveSourceDetails( + String bucketName, String namespace, String objectName, String objectVersionId) { + super(); + this.bucketName = bucketName; + this.namespace = namespace; + this.objectName = objectName; + this.objectVersionId = objectVersionId; + } + + /** The name of the Object Storage bucket. */ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private final String bucketName; + + /** + * The name of the Object Storage bucket. + * + * @return the value + */ + public String getBucketName() { + return bucketName; + } + + /** The Object Storage namespace. */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final String namespace; + + /** + * The Object Storage namespace. + * + * @return the value + */ + public String getNamespace() { + return namespace; + } + + /** The name of the Object Storage object. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private final String objectName; + + /** + * The name of the Object Storage object. + * + * @return the value + */ + public String getObjectName() { + return objectName; + } + + /** + * VersionId used to identify a particular version of the object. If not specified, the latest + * version of the object is used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("objectVersionId") + private final String objectVersionId; + + /** + * VersionId used to identify a particular version of the object. If not specified, the latest + * version of the object is used. + * + * @return the value + */ + public String getObjectVersionId() { + return objectVersionId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ObjectStorageArchiveSourceDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", bucketName=").append(String.valueOf(this.bucketName)); + sb.append(", namespace=").append(String.valueOf(this.namespace)); + sb.append(", objectName=").append(String.valueOf(this.objectName)); + sb.append(", objectVersionId=").append(String.valueOf(this.objectVersionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ObjectStorageArchiveSourceDetails)) { + return false; + } + + ObjectStorageArchiveSourceDetails other = (ObjectStorageArchiveSourceDetails) o; + return java.util.Objects.equals(this.bucketName, other.bucketName) + && java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.objectName, other.objectName) + && java.util.Objects.equals(this.objectVersionId, other.objectVersionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.bucketName == null ? 43 : this.bucketName.hashCode()); + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); + result = (result * PRIME) + (this.objectName == null ? 43 : this.objectName.hashCode()); + result = + (result * PRIME) + + (this.objectVersionId == null ? 43 : this.objectVersionId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/OperationStatus.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/OperationStatus.java similarity index 94% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/OperationStatus.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/model/OperationStatus.java index 5d5240499cf..3036fa1da03 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/OperationStatus.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/OperationStatus.java @@ -2,19 +2,19 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.functions.model; -/** Possible operation status. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +/** The status of the work request. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public enum OperationStatus implements com.oracle.bmc.http.internal.BmcEnum { Accepted("ACCEPTED"), InProgress("IN_PROGRESS"), Waiting("WAITING"), + NeedsAttention("NEEDS_ATTENTION"), 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 diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/OperationType.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/OperationType.java new file mode 100644 index 00000000000..b9c0fe7bf3d --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/OperationType.java @@ -0,0 +1,63 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.functions.model; + +/** The asynchronous operation tracked by the work request. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { + CreateFunction("CREATE_FUNCTION"), + UpdateFunction("UPDATE_FUNCTION"), + DeleteFunction("DELETE_FUNCTION"), + CreateApplication("CREATE_APPLICATION"), + UpdateApplication("UPDATE_APPLICATION"), + DeleteApplication("DELETE_APPLICATION"), + CreateFunctionsRuntime("CREATE_FUNCTIONS_RUNTIME"), + UpdateFunctionsRuntime("UPDATE_FUNCTIONS_RUNTIME"), + DeleteFunctionsRuntime("DELETE_FUNCTIONS_RUNTIME"), + RollbackFunctionsRuntimeVersion("ROLLBACK_FUNCTIONS_RUNTIME_VERSION"), + CreateFunctionsRuntimeVersion("CREATE_FUNCTIONS_RUNTIME_VERSION"), + UpdateFunctionsRuntimeVersion("UPDATE_FUNCTIONS_RUNTIME_VERSION"), + + /** + * 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-functions/src/main/java/com/oracle/bmc/functions/model/PbfListing.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PbfListing.java index 9ec896df56e..4c53432eb55 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PbfListing.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PbfListing.java @@ -5,9 +5,9 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. PbfListing resources provide details - * about the available PBFs for consumption by the user. This resource contains details about PBF's - * functionality, policies required, configuration parameters expected etc.
    + * PbfListing resources provide details about the available PBFs for consumption by the user. This + * resource contains details about PBF's functionality, policies required, configuration parameters + * expected etc.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -17,7 +17,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = PbfListing.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PbfListingSummary.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PbfListingSummary.java index b290ecdb948..b9bc4c2eddf 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PbfListingSummary.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PbfListingSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. Summary of the PbfListing.
    + * Summary of the PbfListing.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = PbfListingSummary.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PbfListingVersion.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PbfListingVersion.java index 897a842676d..0eadb417be5 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PbfListingVersion.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PbfListingVersion.java @@ -5,9 +5,9 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. This represents a version of a - * PbfListing. Each new update from the publisher or the change in the image will result in the - * creation of new PbfListingVersion resource creation. This is a sub-resource of a PbfListing.
    + * This represents a version of a PbfListing. Each new update from the publisher or the change in + * the image will result in the creation of new PbfListingVersion resource creation. This is a + * sub-resource of a PbfListing.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -17,7 +17,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = PbfListingVersion.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PbfListingVersionSummary.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PbfListingVersionSummary.java index 57eb95a2cea..bbadb5adad3 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PbfListingVersionSummary.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PbfListingVersionSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. Summary of the PbfListingVersion.
    + * Summary of the PbfListingVersion.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = PbfListingVersionSummary.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PbfListingVersionsCollection.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PbfListingVersionsCollection.java index a89d72a3a0e..3de0b9678e1 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PbfListingVersionsCollection.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PbfListingVersionsCollection.java @@ -5,8 +5,8 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. Results of a PbfListingVersion search. - * Contains both PbfListingVersionSummary items and other information, such as metadata.
    + * Results of a PbfListingVersion search. Contains both PbfListingVersionSummary 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 @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = PbfListingVersionsCollection.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PbfListingsCollection.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PbfListingsCollection.java index bb83f575b14..0197dd917b1 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PbfListingsCollection.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PbfListingsCollection.java @@ -5,8 +5,8 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. Results of a PbfListing search. - * Contains boh PbfListingSummary items and other information, such as metadata.
    + * Results of a PbfListing search. Contains boh PbfListingSummary 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 @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = PbfListingsCollection.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PolicyDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PolicyDetails.java index 8123383e673..7e18a0f0a2c 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PolicyDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PolicyDetails.java @@ -5,8 +5,7 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. "A policy required for this PBF - * execution."
    + * A policy required for this PBF execution.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -16,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = PolicyDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PreBuiltFunctionSourceDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PreBuiltFunctionSourceDetails.java index b5ecf5a2b4e..4e6c9683af5 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PreBuiltFunctionSourceDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PreBuiltFunctionSourceDetails.java @@ -5,8 +5,7 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. The source of the Function which is - * based on a Pre-Built Function Listing (PbfListing).
    + * The source of the Function which is based on a Pre-Built Function Listing (PbfListing).
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -16,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = PreBuiltFunctionSourceDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PublisherDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PublisherDetails.java index f39efb6b706..aab8bdace5a 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PublisherDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/PublisherDetails.java @@ -5,8 +5,7 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. Contains details about the publisher - * of this PBF Listing.
    + * Contains details about the publisher of this PBF Listing.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -16,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = PublisherDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/QueueFailureDestinationDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/QueueFailureDestinationDetails.java index 148a758a53b..1a294d0f155 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/QueueFailureDestinationDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/QueueFailureDestinationDetails.java @@ -5,8 +5,8 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. The destination queue or channel in - * the Queue service to which to send the response of the failed detached function invocation. + * The destination queue or channel in the Queue service to which to send the response of the failed + * detached function invocation. * *

    Example: {@code {"kind": "QUEUE", "queueId": "queue_OCID", "channelId": "channel_Id"}}
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model @@ -18,7 +18,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = QueueFailureDestinationDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/QueueSuccessDestinationDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/QueueSuccessDestinationDetails.java index 8208e42cfd8..a86b1345205 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/QueueSuccessDestinationDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/QueueSuccessDestinationDetails.java @@ -5,8 +5,8 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. The destination queue or channel in - * the Queue service to which to send the response of the successful detached function invocation. + * The destination queue or channel in the Queue service to which to send the response of the + * successful detached function invocation. * *

    Example: {@code {"kind": "QUEUE", "queueId": "queue_OCID", "channelId": "channel_Id"}}
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model @@ -18,7 +18,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = QueueSuccessDestinationDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/RequirementDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/RequirementDetails.java index 60067fbccf9..e19a2a897a1 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/RequirementDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/RequirementDetails.java @@ -5,9 +5,8 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. Minimum memory required by this PBF. - * The user should use memory greater than or equal to this value while configuring the Function. - *
    + * Minimum memory required by this PBF. The user should use memory greater than or equal to this + * value while configuring the Function.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -17,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = RequirementDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/RuntimeConfig.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/RuntimeConfig.java new file mode 100644 index 00000000000..5591dfeec23 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/RuntimeConfig.java @@ -0,0 +1,127 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.functions.model; + +/** + * FunctionsRuntime configuration for a function.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "runtimeConfigType", + defaultImpl = RuntimeConfig.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = FunctionUpdateRuntimeConfig.class, + name = "FUNCTION_UPDATE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ManualRuntimeConfig.class, + name = "MANUAL") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class RuntimeConfig extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected RuntimeConfig() { + 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("RuntimeConfig("); + 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 RuntimeConfig)) { + return false; + } + + RuntimeConfig other = (RuntimeConfig) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** Type of the FunctionsRuntime Config. Possible values: FUNCTION_UPDATE and MANUAL. */ + public enum RuntimeConfigType implements com.oracle.bmc.http.internal.BmcEnum { + FunctionUpdate("FUNCTION_UPDATE"), + Manual("MANUAL"), + + /** + * 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(RuntimeConfigType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RuntimeConfigType v : RuntimeConfigType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + RuntimeConfigType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RuntimeConfigType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'RuntimeConfigType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/StreamFailureDestinationDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/StreamFailureDestinationDetails.java index 5c62b499976..5997ad7b977 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/StreamFailureDestinationDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/StreamFailureDestinationDetails.java @@ -5,8 +5,8 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. The destination stream in the - * Streaming service to which to send the response of the failed detached function invocation. + * The destination stream in the Streaming service to which to send the response of the failed + * detached function invocation. * *

    Example: {@code {"kind": "STREAM", "streamId": "stream_OCID"}}
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model @@ -18,7 +18,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = StreamFailureDestinationDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/StreamSuccessDestinationDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/StreamSuccessDestinationDetails.java index 6344851be07..c73245bb9f1 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/StreamSuccessDestinationDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/StreamSuccessDestinationDetails.java @@ -5,8 +5,8 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. The destination stream in the - * Streaming service to which to send the response of the successful detached function invocation. + * The destination stream in the Streaming service to which to send the response of the successful + * detached function invocation. * *

    Example: {@code {"kind": "STREAM", "streamId": "stream_OCID"}}
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model @@ -18,7 +18,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = StreamSuccessDestinationDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/SuccessDestinationDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/SuccessDestinationDetails.java index b31d38d49c9..2f0ce77fc8b 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/SuccessDestinationDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/SuccessDestinationDetails.java @@ -5,9 +5,9 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. An object that represents the - * destination to which Oracle Functions will send an invocation record with the details of the - * successful detached function invocation. A stream is an example of a success destination. + * An object that represents the destination to which Oracle Functions will send an invocation + * record with the details of the successful detached function invocation. A stream is an example of + * a success destination. * *

    Example: {@code {"kind": "STREAM", "streamId": "stream_OCID"}}
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model @@ -19,7 +19,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/Trigger.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/Trigger.java index fb2eb663e4e..961e4de3e25 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/Trigger.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/Trigger.java @@ -5,8 +5,7 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. PBF specific triggers for activating a - * PBF.
    + * PBF specific triggers for activating a PBF.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -16,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Trigger.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/TriggerSummary.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/TriggerSummary.java index c7975a521ac..e418b49bb1a 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/TriggerSummary.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/TriggerSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. Summary of the Trigger.
    + * Summary of the Trigger.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = TriggerSummary.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/TriggersCollection.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/TriggersCollection.java index ca570fe51ab..05adb81e3b3 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/TriggersCollection.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/TriggersCollection.java @@ -5,8 +5,8 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. Results of a Trigger search. Contains - * boh TriggerSummary items and other information, such as metadata.
    + * Results of a Trigger search. Contains boh TriggerSummary 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 @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = TriggersCollection.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateApplicationDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateApplicationDetails.java index 07ae9a4d2df..14f07c85f8d 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateApplicationDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateApplicationDetails.java @@ -5,8 +5,7 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. Properties to update an application. - *
    + * Properties to update an application.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -16,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateApplicationDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateArchiveFunctionSourceDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateArchiveFunctionSourceDetails.java new file mode 100644 index 00000000000..68fcd0c04c2 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateArchiveFunctionSourceDetails.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.functions.model; + +/** + * Source details for updating an archive\u2011based function.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateArchiveFunctionSourceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "sourceType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateArchiveFunctionSourceDetails extends UpdateFunctionSourceDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("archiveSourceDetails") + private UpdateArchiveSourceDetails archiveSourceDetails; + + public Builder archiveSourceDetails(UpdateArchiveSourceDetails archiveSourceDetails) { + this.archiveSourceDetails = archiveSourceDetails; + this.__explicitlySet__.add("archiveSourceDetails"); + return this; + } + /** + * The function handler that is executed when the function is invoked. The value of this + * field depends on the runtime used + */ + @com.fasterxml.jackson.annotation.JsonProperty("handler") + private String handler; + + /** + * The function handler that is executed when the function is invoked. The value of this + * field depends on the runtime used + * + * @param handler the value to set + * @return this builder + */ + public Builder handler(String handler) { + this.handler = handler; + this.__explicitlySet__.add("handler"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("runtimeConfig") + private UpdateRuntimeConfig runtimeConfig; + + public Builder runtimeConfig(UpdateRuntimeConfig runtimeConfig) { + this.runtimeConfig = runtimeConfig; + this.__explicitlySet__.add("runtimeConfig"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateArchiveFunctionSourceDetails build() { + UpdateArchiveFunctionSourceDetails model = + new UpdateArchiveFunctionSourceDetails( + this.archiveSourceDetails, this.handler, this.runtimeConfig); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateArchiveFunctionSourceDetails model) { + if (model.wasPropertyExplicitlySet("archiveSourceDetails")) { + this.archiveSourceDetails(model.getArchiveSourceDetails()); + } + if (model.wasPropertyExplicitlySet("handler")) { + this.handler(model.getHandler()); + } + if (model.wasPropertyExplicitlySet("runtimeConfig")) { + this.runtimeConfig(model.getRuntimeConfig()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateArchiveFunctionSourceDetails( + UpdateArchiveSourceDetails archiveSourceDetails, + String handler, + UpdateRuntimeConfig runtimeConfig) { + super(); + this.archiveSourceDetails = archiveSourceDetails; + this.handler = handler; + this.runtimeConfig = runtimeConfig; + } + + @com.fasterxml.jackson.annotation.JsonProperty("archiveSourceDetails") + private final UpdateArchiveSourceDetails archiveSourceDetails; + + public UpdateArchiveSourceDetails getArchiveSourceDetails() { + return archiveSourceDetails; + } + + /** + * The function handler that is executed when the function is invoked. The value of this field + * depends on the runtime used + */ + @com.fasterxml.jackson.annotation.JsonProperty("handler") + private final String handler; + + /** + * The function handler that is executed when the function is invoked. The value of this field + * depends on the runtime used + * + * @return the value + */ + public String getHandler() { + return handler; + } + + @com.fasterxml.jackson.annotation.JsonProperty("runtimeConfig") + private final UpdateRuntimeConfig runtimeConfig; + + public UpdateRuntimeConfig getRuntimeConfig() { + return runtimeConfig; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateArchiveFunctionSourceDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", archiveSourceDetails=").append(String.valueOf(this.archiveSourceDetails)); + sb.append(", handler=").append(String.valueOf(this.handler)); + sb.append(", runtimeConfig=").append(String.valueOf(this.runtimeConfig)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateArchiveFunctionSourceDetails)) { + return false; + } + + UpdateArchiveFunctionSourceDetails other = (UpdateArchiveFunctionSourceDetails) o; + return java.util.Objects.equals(this.archiveSourceDetails, other.archiveSourceDetails) + && java.util.Objects.equals(this.handler, other.handler) + && java.util.Objects.equals(this.runtimeConfig, other.runtimeConfig) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.archiveSourceDetails == null + ? 43 + : this.archiveSourceDetails.hashCode()); + result = (result * PRIME) + (this.handler == null ? 43 : this.handler.hashCode()); + result = + (result * PRIME) + + (this.runtimeConfig == null ? 43 : this.runtimeConfig.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseCatalogDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateArchiveSourceDetails.java similarity index 69% rename from bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseCatalogDetails.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateArchiveSourceDetails.java index cec9849a713..eae3b279ad0 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseCatalogDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateArchiveSourceDetails.java @@ -2,10 +2,10 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -package com.oracle.bmc.distributeddatabase.model; +package com.oracle.bmc.functions.model; /** - * Details of the Globally distributed autonomous database catalog.
    + * Source details for updating an archive\u2011based function.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,24 +15,27 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source", - defaultImpl = CreateDistributedAutonomousDatabaseCatalogDetails.class) + property = "archiveSourceType", + defaultImpl = UpdateArchiveSourceDetails.class) @com.fasterxml.jackson.annotation.JsonSubTypes({ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails.class, - name = "ADB_D") + value = UpdateDirectArchiveSourceDetails.class, + name = "DIRECT_ARCHIVE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateObjectStorageArchiveSourceDetails.class, + name = "OBJECT_STORAGE_ARCHIVE") }) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public class CreateDistributedAutonomousDatabaseCatalogDetails +public class UpdateArchiveSourceDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({}) - protected CreateDistributedAutonomousDatabaseCatalogDetails() { + protected UpdateArchiveSourceDetails() { super(); } @@ -49,7 +52,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedAutonomousDatabaseCatalogDetails("); + sb.append("UpdateArchiveSourceDetails("); sb.append("super=").append(super.toString()); sb.append(")"); return sb.toString(); @@ -60,12 +63,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateDistributedAutonomousDatabaseCatalogDetails)) { + if (!(o instanceof UpdateArchiveSourceDetails)) { return false; } - CreateDistributedAutonomousDatabaseCatalogDetails other = - (CreateDistributedAutonomousDatabaseCatalogDetails) o; + UpdateArchiveSourceDetails other = (UpdateArchiveSourceDetails) o; return super.equals(other); } @@ -77,25 +79,23 @@ public int hashCode() { return result; } - /** - * The source of Globally distributed autonomous database type: Use ADB_D for the Globally - * distributed autonomous database with autonomous dedicated cloudautonomousvmclusters. - */ - public enum Source implements com.oracle.bmc.http.internal.BmcEnum { - AdbD("ADB_D"), + /** Type of the Archive Source. Possible values: OBJECT_STORAGE_ARCHIVE and DIRECT_ARCHIVE. */ + public enum ArchiveSourceType implements com.oracle.bmc.http.internal.BmcEnum { + ObjectStorageArchive("OBJECT_STORAGE_ARCHIVE"), + DirectArchive("DIRECT_ARCHIVE"), ; private final String value; - private static java.util.Map map; + private static java.util.Map map; static { map = new java.util.HashMap<>(); - for (Source v : Source.values()) { + for (ArchiveSourceType v : ArchiveSourceType.values()) { map.put(v.getValue(), v); } } - Source(String value) { + ArchiveSourceType(String value) { this.value = value; } @@ -105,11 +105,11 @@ public String getValue() { } @com.fasterxml.jackson.annotation.JsonCreator - public static Source create(String key) { + public static ArchiveSourceType create(String key) { if (map.containsKey(key)) { return map.get(key); } - throw new IllegalArgumentException("Invalid Source: " + key); + throw new IllegalArgumentException("Invalid ArchiveSourceType: " + key); } }; } diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateContainerImageFunctionSourceDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateContainerImageFunctionSourceDetails.java new file mode 100644 index 00000000000..20b9c9f4cac --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateContainerImageFunctionSourceDetails.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.functions.model; + +/** + * Source details for updating a container image based function.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateContainerImageFunctionSourceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "sourceType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateContainerImageFunctionSourceDetails extends UpdateFunctionSourceDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The qualified name of the Docker image to use in the function, including the image tag. + * The image should be in the OCI Registry that is in the same region as the function + * itself. Example: {@code phx.ocir.io/ten/functions/function:0.0.1} + */ + @com.fasterxml.jackson.annotation.JsonProperty("image") + private String image; + + /** + * The qualified name of the Docker image to use in the function, including the image tag. + * The image should be in the OCI Registry that is in the same region as the function + * itself. Example: {@code phx.ocir.io/ten/functions/function:0.0.1} + * + * @param image the value to set + * @return this builder + */ + public Builder image(String image) { + this.image = image; + this.__explicitlySet__.add("image"); + return this; + } + /** + * The image digest for the version of the image that will be pulled when invoking this + * function. If no value is specified, the digest currently associated with the image in the + * OCI Registry will be used. Example: {@code + * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} + */ + @com.fasterxml.jackson.annotation.JsonProperty("imageDigest") + private String imageDigest; + + /** + * The image digest for the version of the image that will be pulled when invoking this + * function. If no value is specified, the digest currently associated with the image in the + * OCI Registry will be used. Example: {@code + * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} + * + * @param imageDigest the value to set + * @return this builder + */ + public Builder imageDigest(String imageDigest) { + this.imageDigest = imageDigest; + this.__explicitlySet__.add("imageDigest"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateContainerImageFunctionSourceDetails build() { + UpdateContainerImageFunctionSourceDetails model = + new UpdateContainerImageFunctionSourceDetails(this.image, this.imageDigest); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateContainerImageFunctionSourceDetails model) { + if (model.wasPropertyExplicitlySet("image")) { + this.image(model.getImage()); + } + if (model.wasPropertyExplicitlySet("imageDigest")) { + this.imageDigest(model.getImageDigest()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateContainerImageFunctionSourceDetails(String image, String imageDigest) { + super(); + this.image = image; + this.imageDigest = imageDigest; + } + + /** + * The qualified name of the Docker image to use in the function, including the image tag. The + * image should be in the OCI Registry that is in the same region as the function itself. + * Example: {@code phx.ocir.io/ten/functions/function:0.0.1} + */ + @com.fasterxml.jackson.annotation.JsonProperty("image") + private final String image; + + /** + * The qualified name of the Docker image to use in the function, including the image tag. The + * image should be in the OCI Registry that is in the same region as the function itself. + * Example: {@code phx.ocir.io/ten/functions/function:0.0.1} + * + * @return the value + */ + public String getImage() { + return image; + } + + /** + * The image digest for the version of the image that will be pulled when invoking this + * function. If no value is specified, the digest currently associated with the image in the OCI + * Registry will be used. Example: {@code + * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} + */ + @com.fasterxml.jackson.annotation.JsonProperty("imageDigest") + private final String imageDigest; + + /** + * The image digest for the version of the image that will be pulled when invoking this + * function. If no value is specified, the digest currently associated with the image in the OCI + * Registry will be used. Example: {@code + * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} + * + * @return the value + */ + public String getImageDigest() { + return imageDigest; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateContainerImageFunctionSourceDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", image=").append(String.valueOf(this.image)); + sb.append(", imageDigest=").append(String.valueOf(this.imageDigest)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateContainerImageFunctionSourceDetails)) { + return false; + } + + UpdateContainerImageFunctionSourceDetails other = + (UpdateContainerImageFunctionSourceDetails) o; + return java.util.Objects.equals(this.image, other.image) + && java.util.Objects.equals(this.imageDigest, other.imageDigest) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.image == null ? 43 : this.image.hashCode()); + result = (result * PRIME) + (this.imageDigest == null ? 43 : this.imageDigest.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchMergeInstruction.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateDirectArchiveSourceDetails.java similarity index 50% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchMergeInstruction.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateDirectArchiveSourceDetails.java index a17ca9e671e..a2f938a4f6c 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchMergeInstruction.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateDirectArchiveSourceDetails.java @@ -2,17 +2,10 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.functions.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.
    + * Source details required for updating an archive based function from Direct Archive.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -22,47 +15,46 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = PatchMergeInstruction.Builder.class) + builder = UpdateDirectArchiveSourceDetails.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") + property = "archiveSourceType") @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class PatchMergeInstruction extends PatchInstruction { +public final class UpdateDirectArchiveSourceDetails extends UpdateArchiveSourceDetails { @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; + /** + * The base64-encoded archive file of the function code. The archive file must contain all + * the files for the function. Please refer to functions documentation for maximum allowed + * size and supported archive formats. + */ + @com.fasterxml.jackson.annotation.JsonProperty("archiveFile") + private byte[] archiveFile; /** - * A value to be merged into the target. + * The base64-encoded archive file of the function code. The archive file must contain all + * the files for the function. Please refer to functions documentation for maximum allowed + * size and supported archive formats. * - * @param value the value to set + * @param archiveFile the value to set * @return this builder */ - public Builder value(Object value) { - this.value = value; - this.__explicitlySet__.add("value"); + public Builder archiveFile(byte[] archiveFile) { + this.archiveFile = archiveFile; + this.__explicitlySet__.add("archiveFile"); 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); + public UpdateDirectArchiveSourceDetails build() { + UpdateDirectArchiveSourceDetails model = + new UpdateDirectArchiveSourceDetails(this.archiveFile); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -70,12 +62,9 @@ public PatchMergeInstruction build() { } @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()); + public Builder copy(UpdateDirectArchiveSourceDetails model) { + if (model.wasPropertyExplicitlySet("archiveFile")) { + this.archiveFile(model.getArchiveFile()); } return this; } @@ -91,22 +80,28 @@ public Builder toBuilder() { } @Deprecated - public PatchMergeInstruction(String selection, Object value) { - super(selection); - this.value = value; + public UpdateDirectArchiveSourceDetails(byte[] archiveFile) { + super(); + this.archiveFile = archiveFile; } - /** A value to be merged into the target. */ - @com.fasterxml.jackson.annotation.JsonProperty("value") - private final Object value; + /** + * The base64-encoded archive file of the function code. The archive file must contain all the + * files for the function. Please refer to functions documentation for maximum allowed size and + * supported archive formats. + */ + @com.fasterxml.jackson.annotation.JsonProperty("archiveFile") + private final byte[] archiveFile; /** - * A value to be merged into the target. + * The base64-encoded archive file of the function code. The archive file must contain all the + * files for the function. Please refer to functions documentation for maximum allowed size and + * supported archive formats. * * @return the value */ - public Object getValue() { - return value; + public byte[] getArchiveFile() { + return archiveFile; } @Override @@ -122,9 +117,16 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("PatchMergeInstruction("); + sb.append("UpdateDirectArchiveSourceDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", value=").append(String.valueOf(this.value)); + sb.append(", archiveFile=") + .append( + (includeByteArrayContents + ? java.util.Arrays.toString(this.archiveFile) + : (String.valueOf(this.archiveFile) + + (this.archiveFile != null + ? " (byte[" + this.archiveFile.length + "])" + : "")))); sb.append(")"); return sb.toString(); } @@ -134,19 +136,19 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof PatchMergeInstruction)) { + if (!(o instanceof UpdateDirectArchiveSourceDetails)) { return false; } - PatchMergeInstruction other = (PatchMergeInstruction) o; - return java.util.Objects.equals(this.value, other.value) && super.equals(other); + UpdateDirectArchiveSourceDetails other = (UpdateDirectArchiveSourceDetails) o; + return java.util.Arrays.equals(this.archiveFile, other.archiveFile) && 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()); + result = (result * PRIME) + java.util.Arrays.hashCode(this.archiveFile); return result; } } diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateFunctionDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateFunctionDetails.java index 7b74bbd6f56..d2da6ad052f 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateFunctionDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateFunctionDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.functions.model; /** - * Note: Deprecated. Use the new resource model APIs instead. Updates attributes of a function.
    + * Updates attributes of a function.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateFunctionDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -24,8 +24,6 @@ public final class UpdateFunctionDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ - "image", - "imageDigest", "memoryInMBs", "config", "timeoutInSeconds", @@ -34,12 +32,11 @@ public final class UpdateFunctionDetails "failureDestination", "successDestination", "traceConfig", + "sourceDetails", "freeformTags", "definedTags" }) public UpdateFunctionDetails( - String image, - String imageDigest, Long memoryInMBs, java.util.Map config, Integer timeoutInSeconds, @@ -48,11 +45,10 @@ public UpdateFunctionDetails( FailureDestinationDetails failureDestination, SuccessDestinationDetails successDestination, FunctionTraceConfig traceConfig, + UpdateFunctionSourceDetails sourceDetails, java.util.Map freeformTags, java.util.Map> definedTags) { super(); - this.image = image; - this.imageDigest = imageDigest; this.memoryInMBs = memoryInMBs; this.config = config; this.timeoutInSeconds = timeoutInSeconds; @@ -61,58 +57,13 @@ public UpdateFunctionDetails( this.failureDestination = failureDestination; this.successDestination = successDestination; this.traceConfig = traceConfig; + this.sourceDetails = sourceDetails; this.freeformTags = freeformTags; this.definedTags = definedTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** - * The qualified name of the Docker image to use in the function, including the image tag. - * The image should be in the OCI Registry that is in the same region as the function - * itself. If an image is specified but no value for imageDigest is provided, the digest - * currently associated with the image tag in the OCI Registry will be used. Example: {@code - * phx.ocir.io/ten/functions/function:0.0.1} - */ - @com.fasterxml.jackson.annotation.JsonProperty("image") - private String image; - - /** - * The qualified name of the Docker image to use in the function, including the image tag. - * The image should be in the OCI Registry that is in the same region as the function - * itself. If an image is specified but no value for imageDigest is provided, the digest - * currently associated with the image tag in the OCI Registry will be used. Example: {@code - * phx.ocir.io/ten/functions/function:0.0.1} - * - * @param image the value to set - * @return this builder - */ - public Builder image(String image) { - this.image = image; - this.__explicitlySet__.add("image"); - return this; - } - /** - * The image digest for the version of the image that will be pulled when invoking this - * function. Example: {@code - * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} - */ - @com.fasterxml.jackson.annotation.JsonProperty("imageDigest") - private String imageDigest; - - /** - * The image digest for the version of the image that will be pulled when invoking this - * function. Example: {@code - * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} - * - * @param imageDigest the value to set - * @return this builder - */ - public Builder imageDigest(String imageDigest) { - this.imageDigest = imageDigest; - this.__explicitlySet__.add("imageDigest"); - return this; - } /** Maximum usable memory for the function (MiB). */ @com.fasterxml.jackson.annotation.JsonProperty("memoryInMBs") private Long memoryInMBs; @@ -228,6 +179,15 @@ public Builder traceConfig(FunctionTraceConfig traceConfig) { this.__explicitlySet__.add("traceConfig"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceDetails") + private UpdateFunctionSourceDetails sourceDetails; + + public Builder sourceDetails(UpdateFunctionSourceDetails sourceDetails) { + this.sourceDetails = sourceDetails; + this.__explicitlySet__.add("sourceDetails"); + 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 @@ -284,8 +244,6 @@ public Builder definedTags( public UpdateFunctionDetails build() { UpdateFunctionDetails model = new UpdateFunctionDetails( - this.image, - this.imageDigest, this.memoryInMBs, this.config, this.timeoutInSeconds, @@ -294,6 +252,7 @@ public UpdateFunctionDetails build() { this.failureDestination, this.successDestination, this.traceConfig, + this.sourceDetails, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -304,12 +263,6 @@ public UpdateFunctionDetails build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(UpdateFunctionDetails model) { - if (model.wasPropertyExplicitlySet("image")) { - this.image(model.getImage()); - } - if (model.wasPropertyExplicitlySet("imageDigest")) { - this.imageDigest(model.getImageDigest()); - } if (model.wasPropertyExplicitlySet("memoryInMBs")) { this.memoryInMBs(model.getMemoryInMBs()); } @@ -334,6 +287,9 @@ public Builder copy(UpdateFunctionDetails model) { if (model.wasPropertyExplicitlySet("traceConfig")) { this.traceConfig(model.getTraceConfig()); } + if (model.wasPropertyExplicitlySet("sourceDetails")) { + this.sourceDetails(model.getSourceDetails()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -353,48 +309,6 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** - * The qualified name of the Docker image to use in the function, including the image tag. The - * image should be in the OCI Registry that is in the same region as the function itself. If an - * image is specified but no value for imageDigest is provided, the digest currently associated - * with the image tag in the OCI Registry will be used. Example: {@code - * phx.ocir.io/ten/functions/function:0.0.1} - */ - @com.fasterxml.jackson.annotation.JsonProperty("image") - private final String image; - - /** - * The qualified name of the Docker image to use in the function, including the image tag. The - * image should be in the OCI Registry that is in the same region as the function itself. If an - * image is specified but no value for imageDigest is provided, the digest currently associated - * with the image tag in the OCI Registry will be used. Example: {@code - * phx.ocir.io/ten/functions/function:0.0.1} - * - * @return the value - */ - public String getImage() { - return image; - } - - /** - * The image digest for the version of the image that will be pulled when invoking this - * function. Example: {@code - * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} - */ - @com.fasterxml.jackson.annotation.JsonProperty("imageDigest") - private final String imageDigest; - - /** - * The image digest for the version of the image that will be pulled when invoking this - * function. Example: {@code - * sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7} - * - * @return the value - */ - public String getImageDigest() { - return imageDigest; - } - /** Maximum usable memory for the function (MiB). */ @com.fasterxml.jackson.annotation.JsonProperty("memoryInMBs") private final Long memoryInMBs; @@ -493,6 +407,13 @@ public FunctionTraceConfig getTraceConfig() { return traceConfig; } + @com.fasterxml.jackson.annotation.JsonProperty("sourceDetails") + private final UpdateFunctionSourceDetails sourceDetails; + + public UpdateFunctionSourceDetails getSourceDetails() { + return sourceDetails; + } + /** * 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 @@ -552,9 +473,7 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("UpdateFunctionDetails("); sb.append("super=").append(super.toString()); - sb.append("image=").append(String.valueOf(this.image)); - sb.append(", imageDigest=").append(String.valueOf(this.imageDigest)); - sb.append(", memoryInMBs=").append(String.valueOf(this.memoryInMBs)); + sb.append("memoryInMBs=").append(String.valueOf(this.memoryInMBs)); sb.append(", config=").append(String.valueOf(this.config)); sb.append(", timeoutInSeconds=").append(String.valueOf(this.timeoutInSeconds)); sb.append(", provisionedConcurrencyConfig=") @@ -564,6 +483,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", failureDestination=").append(String.valueOf(this.failureDestination)); sb.append(", successDestination=").append(String.valueOf(this.successDestination)); sb.append(", traceConfig=").append(String.valueOf(this.traceConfig)); + sb.append(", sourceDetails=").append(String.valueOf(this.sourceDetails)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -580,9 +500,7 @@ public boolean equals(Object o) { } UpdateFunctionDetails other = (UpdateFunctionDetails) o; - return java.util.Objects.equals(this.image, other.image) - && java.util.Objects.equals(this.imageDigest, other.imageDigest) - && java.util.Objects.equals(this.memoryInMBs, other.memoryInMBs) + return java.util.Objects.equals(this.memoryInMBs, other.memoryInMBs) && java.util.Objects.equals(this.config, other.config) && java.util.Objects.equals(this.timeoutInSeconds, other.timeoutInSeconds) && java.util.Objects.equals( @@ -592,6 +510,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.failureDestination, other.failureDestination) && java.util.Objects.equals(this.successDestination, other.successDestination) && java.util.Objects.equals(this.traceConfig, other.traceConfig) + && java.util.Objects.equals(this.sourceDetails, other.sourceDetails) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -601,8 +520,6 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; - result = (result * PRIME) + (this.image == null ? 43 : this.image.hashCode()); - result = (result * PRIME) + (this.imageDigest == null ? 43 : this.imageDigest.hashCode()); result = (result * PRIME) + (this.memoryInMBs == null ? 43 : this.memoryInMBs.hashCode()); result = (result * PRIME) + (this.config == null ? 43 : this.config.hashCode()); result = @@ -629,6 +546,9 @@ public int hashCode() { ? 43 : this.successDestination.hashCode()); result = (result * PRIME) + (this.traceConfig == null ? 43 : this.traceConfig.hashCode()); + result = + (result * PRIME) + + (this.sourceDetails == null ? 43 : this.sourceDetails.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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseShardDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateFunctionSourceDetails.java similarity index 70% rename from bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseShardDetails.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateFunctionSourceDetails.java index 7ce641983f0..f2757deb803 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseShardDetails.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateFunctionSourceDetails.java @@ -2,10 +2,10 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -package com.oracle.bmc.distributeddatabase.model; +package com.oracle.bmc.functions.model; /** - * Globally distributed autonomous database shard.
    + * The source details for updating the Function.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,24 +15,27 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source", - defaultImpl = CreateDistributedAutonomousDatabaseShardDetails.class) + property = "sourceType", + defaultImpl = UpdateFunctionSourceDetails.class) @com.fasterxml.jackson.annotation.JsonSubTypes({ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails.class, - name = "ADB_D") + value = UpdateContainerImageFunctionSourceDetails.class, + name = "CONTAINER_IMAGE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateArchiveFunctionSourceDetails.class, + name = "ARCHIVE") }) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public class CreateDistributedAutonomousDatabaseShardDetails +public class UpdateFunctionSourceDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({}) - protected CreateDistributedAutonomousDatabaseShardDetails() { + protected UpdateFunctionSourceDetails() { super(); } @@ -49,7 +52,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedAutonomousDatabaseShardDetails("); + sb.append("UpdateFunctionSourceDetails("); sb.append("super=").append(super.toString()); sb.append(")"); return sb.toString(); @@ -60,12 +63,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateDistributedAutonomousDatabaseShardDetails)) { + if (!(o instanceof UpdateFunctionSourceDetails)) { return false; } - CreateDistributedAutonomousDatabaseShardDetails other = - (CreateDistributedAutonomousDatabaseShardDetails) o; + UpdateFunctionSourceDetails other = (UpdateFunctionSourceDetails) o; return super.equals(other); } @@ -77,25 +79,23 @@ public int hashCode() { return result; } - /** - * The source of Globally distributed autonomous database type: Use ADB_D for the Globally - * distributed autonomous database with autonomous dedicated cloudautonomousvmclusters. - */ - public enum Source implements com.oracle.bmc.http.internal.BmcEnum { - AdbD("ADB_D"), + /** Type of the Function Source. Possible values: CONTAINER_IMAGE and ARCHIVE. */ + public enum SourceType implements com.oracle.bmc.http.internal.BmcEnum { + Archive("ARCHIVE"), + ContainerImage("CONTAINER_IMAGE"), ; private final String value; - private static java.util.Map map; + private static java.util.Map map; static { map = new java.util.HashMap<>(); - for (Source v : Source.values()) { + for (SourceType v : SourceType.values()) { map.put(v.getValue(), v); } } - Source(String value) { + SourceType(String value) { this.value = value; } @@ -105,11 +105,11 @@ public String getValue() { } @com.fasterxml.jackson.annotation.JsonCreator - public static Source create(String key) { + public static SourceType create(String key) { if (map.containsKey(key)) { return map.get(key); } - throw new IllegalArgumentException("Invalid Source: " + key); + throw new IllegalArgumentException("Invalid SourceType: " + key); } }; } diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateFunctionUpdateRuntimeConfig.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateFunctionUpdateRuntimeConfig.java new file mode 100644 index 00000000000..6004c0cb629 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateFunctionUpdateRuntimeConfig.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.functions.model; + +/** + * FunctionsRuntime configuration for updating a function with 'FUNCTION_UPDATE' Runtime Update + * strategy.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateFunctionUpdateRuntimeConfig.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "runtimeConfigType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateFunctionUpdateRuntimeConfig extends UpdateRuntimeConfig { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the FunctionsRuntime this function is to be associated with. */ + @com.fasterxml.jackson.annotation.JsonProperty("functionsRuntimeName") + private String functionsRuntimeName; + + /** + * The name of the FunctionsRuntime this function is to be associated with. + * + * @param functionsRuntimeName the value to set + * @return this builder + */ + public Builder functionsRuntimeName(String functionsRuntimeName) { + this.functionsRuntimeName = functionsRuntimeName; + this.__explicitlySet__.add("functionsRuntimeName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateFunctionUpdateRuntimeConfig build() { + UpdateFunctionUpdateRuntimeConfig model = + new UpdateFunctionUpdateRuntimeConfig(this.functionsRuntimeName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateFunctionUpdateRuntimeConfig model) { + if (model.wasPropertyExplicitlySet("functionsRuntimeName")) { + this.functionsRuntimeName(model.getFunctionsRuntimeName()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateFunctionUpdateRuntimeConfig(String functionsRuntimeName) { + super(); + this.functionsRuntimeName = functionsRuntimeName; + } + + /** The name of the FunctionsRuntime this function is to be associated with. */ + @com.fasterxml.jackson.annotation.JsonProperty("functionsRuntimeName") + private final String functionsRuntimeName; + + /** + * The name of the FunctionsRuntime this function is to be associated with. + * + * @return the value + */ + public String getFunctionsRuntimeName() { + return functionsRuntimeName; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateFunctionUpdateRuntimeConfig("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", functionsRuntimeName=").append(String.valueOf(this.functionsRuntimeName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateFunctionUpdateRuntimeConfig)) { + return false; + } + + UpdateFunctionUpdateRuntimeConfig other = (UpdateFunctionUpdateRuntimeConfig) o; + return java.util.Objects.equals(this.functionsRuntimeName, other.functionsRuntimeName) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.functionsRuntimeName == null + ? 43 + : this.functionsRuntimeName.hashCode()); + return result; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateManualRuntimeConfig.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateManualRuntimeConfig.java new file mode 100644 index 00000000000..0be4335193d --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateManualRuntimeConfig.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.functions.model; + +/** + * FunctionsRuntime configuration for updating a function with 'MANUAL' Runtime Update strategy. + *
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateManualRuntimeConfig.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "runtimeConfigType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateManualRuntimeConfig extends UpdateRuntimeConfig { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the FunctionsRuntime this function is to be associated with. */ + @com.fasterxml.jackson.annotation.JsonProperty("functionsRuntimeName") + private String functionsRuntimeName; + + /** + * The name of the FunctionsRuntime this function is to be associated with. + * + * @param functionsRuntimeName the value to set + * @return this builder + */ + public Builder functionsRuntimeName(String functionsRuntimeName) { + this.functionsRuntimeName = functionsRuntimeName; + this.__explicitlySet__.add("functionsRuntimeName"); + return this; + } + /** The OCID of the FunctionsRuntimeVersion to use for the Function in manual mode. */ + @com.fasterxml.jackson.annotation.JsonProperty("functionsRuntimeVersionId") + private String functionsRuntimeVersionId; + + /** + * The OCID of the FunctionsRuntimeVersion to use for the Function in manual mode. + * + * @param functionsRuntimeVersionId the value to set + * @return this builder + */ + public Builder functionsRuntimeVersionId(String functionsRuntimeVersionId) { + this.functionsRuntimeVersionId = functionsRuntimeVersionId; + this.__explicitlySet__.add("functionsRuntimeVersionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateManualRuntimeConfig build() { + UpdateManualRuntimeConfig model = + new UpdateManualRuntimeConfig( + this.functionsRuntimeName, this.functionsRuntimeVersionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateManualRuntimeConfig model) { + if (model.wasPropertyExplicitlySet("functionsRuntimeName")) { + this.functionsRuntimeName(model.getFunctionsRuntimeName()); + } + if (model.wasPropertyExplicitlySet("functionsRuntimeVersionId")) { + this.functionsRuntimeVersionId(model.getFunctionsRuntimeVersionId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateManualRuntimeConfig( + String functionsRuntimeName, String functionsRuntimeVersionId) { + super(); + this.functionsRuntimeName = functionsRuntimeName; + this.functionsRuntimeVersionId = functionsRuntimeVersionId; + } + + /** The name of the FunctionsRuntime this function is to be associated with. */ + @com.fasterxml.jackson.annotation.JsonProperty("functionsRuntimeName") + private final String functionsRuntimeName; + + /** + * The name of the FunctionsRuntime this function is to be associated with. + * + * @return the value + */ + public String getFunctionsRuntimeName() { + return functionsRuntimeName; + } + + /** The OCID of the FunctionsRuntimeVersion to use for the Function in manual mode. */ + @com.fasterxml.jackson.annotation.JsonProperty("functionsRuntimeVersionId") + private final String functionsRuntimeVersionId; + + /** + * The OCID of the FunctionsRuntimeVersion to use for the Function in manual mode. + * + * @return the value + */ + public String getFunctionsRuntimeVersionId() { + return functionsRuntimeVersionId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateManualRuntimeConfig("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", functionsRuntimeName=").append(String.valueOf(this.functionsRuntimeName)); + sb.append(", functionsRuntimeVersionId=") + .append(String.valueOf(this.functionsRuntimeVersionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateManualRuntimeConfig)) { + return false; + } + + UpdateManualRuntimeConfig other = (UpdateManualRuntimeConfig) o; + return java.util.Objects.equals(this.functionsRuntimeName, other.functionsRuntimeName) + && java.util.Objects.equals( + this.functionsRuntimeVersionId, other.functionsRuntimeVersionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.functionsRuntimeName == null + ? 43 + : this.functionsRuntimeName.hashCode()); + result = + (result * PRIME) + + (this.functionsRuntimeVersionId == null + ? 43 + : this.functionsRuntimeVersionId.hashCode()); + return result; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateObjectStorageArchiveSourceDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateObjectStorageArchiveSourceDetails.java new file mode 100644 index 00000000000..54a1ed0d903 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateObjectStorageArchiveSourceDetails.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.functions.model; + +/** + * Source details required for updating an archive based function from Object Storage.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateObjectStorageArchiveSourceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "archiveSourceType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateObjectStorageArchiveSourceDetails extends UpdateArchiveSourceDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the Object Storage bucket. */ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private String bucketName; + + /** + * The name of the Object Storage bucket. + * + * @param bucketName the value to set + * @return this builder + */ + public Builder bucketName(String bucketName) { + this.bucketName = bucketName; + this.__explicitlySet__.add("bucketName"); + return this; + } + /** The Object Storage namespace. */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private String namespace; + + /** + * The Object Storage namespace. + * + * @param namespace the value to set + * @return this builder + */ + public Builder namespace(String namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + /** The name of the Object Storage object. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private String objectName; + + /** + * The name of the Object Storage object. + * + * @param objectName the value to set + * @return this builder + */ + public Builder objectName(String objectName) { + this.objectName = objectName; + this.__explicitlySet__.add("objectName"); + return this; + } + /** + * VersionId used to identify a particular version of the object. If not specified, the + * latest version of the object is used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("objectVersionId") + private String objectVersionId; + + /** + * VersionId used to identify a particular version of the object. If not specified, the + * latest version of the object is used. + * + * @param objectVersionId the value to set + * @return this builder + */ + public Builder objectVersionId(String objectVersionId) { + this.objectVersionId = objectVersionId; + this.__explicitlySet__.add("objectVersionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateObjectStorageArchiveSourceDetails build() { + UpdateObjectStorageArchiveSourceDetails model = + new UpdateObjectStorageArchiveSourceDetails( + this.bucketName, this.namespace, this.objectName, this.objectVersionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateObjectStorageArchiveSourceDetails model) { + if (model.wasPropertyExplicitlySet("bucketName")) { + this.bucketName(model.getBucketName()); + } + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + if (model.wasPropertyExplicitlySet("objectName")) { + this.objectName(model.getObjectName()); + } + if (model.wasPropertyExplicitlySet("objectVersionId")) { + this.objectVersionId(model.getObjectVersionId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateObjectStorageArchiveSourceDetails( + String bucketName, String namespace, String objectName, String objectVersionId) { + super(); + this.bucketName = bucketName; + this.namespace = namespace; + this.objectName = objectName; + this.objectVersionId = objectVersionId; + } + + /** The name of the Object Storage bucket. */ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private final String bucketName; + + /** + * The name of the Object Storage bucket. + * + * @return the value + */ + public String getBucketName() { + return bucketName; + } + + /** The Object Storage namespace. */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final String namespace; + + /** + * The Object Storage namespace. + * + * @return the value + */ + public String getNamespace() { + return namespace; + } + + /** The name of the Object Storage object. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private final String objectName; + + /** + * The name of the Object Storage object. + * + * @return the value + */ + public String getObjectName() { + return objectName; + } + + /** + * VersionId used to identify a particular version of the object. If not specified, the latest + * version of the object is used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("objectVersionId") + private final String objectVersionId; + + /** + * VersionId used to identify a particular version of the object. If not specified, the latest + * version of the object is used. + * + * @return the value + */ + public String getObjectVersionId() { + return objectVersionId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateObjectStorageArchiveSourceDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", bucketName=").append(String.valueOf(this.bucketName)); + sb.append(", namespace=").append(String.valueOf(this.namespace)); + sb.append(", objectName=").append(String.valueOf(this.objectName)); + sb.append(", objectVersionId=").append(String.valueOf(this.objectVersionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateObjectStorageArchiveSourceDetails)) { + return false; + } + + UpdateObjectStorageArchiveSourceDetails other = (UpdateObjectStorageArchiveSourceDetails) o; + return java.util.Objects.equals(this.bucketName, other.bucketName) + && java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.objectName, other.objectName) + && java.util.Objects.equals(this.objectVersionId, other.objectVersionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.bucketName == null ? 43 : this.bucketName.hashCode()); + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); + result = (result * PRIME) + (this.objectName == null ? 43 : this.objectName.hashCode()); + result = + (result * PRIME) + + (this.objectVersionId == null ? 43 : this.objectVersionId.hashCode()); + return result; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateRuntimeConfig.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateRuntimeConfig.java new file mode 100644 index 00000000000..c76ecbecba0 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateRuntimeConfig.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.functions.model; + +/** + * FunctionsRuntime configuration used to update a function.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "runtimeConfigType", + defaultImpl = UpdateRuntimeConfig.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateManualRuntimeConfig.class, + name = "MANUAL"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateFunctionUpdateRuntimeConfig.class, + name = "FUNCTION_UPDATE") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class UpdateRuntimeConfig extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected UpdateRuntimeConfig() { + 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("UpdateRuntimeConfig("); + 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 UpdateRuntimeConfig)) { + return false; + } + + UpdateRuntimeConfig other = (UpdateRuntimeConfig) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** Type of the FunctionsRuntime Config. Possible values: FUNCTION_UPDATE and MANUAL. */ + public enum RuntimeConfigType implements com.oracle.bmc.http.internal.BmcEnum { + FunctionUpdate("FUNCTION_UPDATE"), + Manual("MANUAL"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RuntimeConfigType v : RuntimeConfigType.values()) { + map.put(v.getValue(), v); + } + } + + RuntimeConfigType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RuntimeConfigType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid RuntimeConfigType: " + key); + } + }; +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequest.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequest.java similarity index 69% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequest.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequest.java index 757d851bf0d..7a85de219dc 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequest.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequest.java @@ -2,10 +2,13 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.functions.model; /** - * A description of workrequest status
    + * 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 @@ -15,7 +18,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @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) @@ -30,7 +33,8 @@ public final class WorkRequest extends com.oracle.bmc.http.client.internal.Expli "percentComplete", "timeAccepted", "timeStarted", - "timeFinished" + "timeFinished", + "timeUpdated" }) public WorkRequest( OperationType operationType, @@ -41,7 +45,8 @@ public WorkRequest( Float percentComplete, java.util.Date timeAccepted, java.util.Date timeStarted, - java.util.Date timeFinished) { + java.util.Date timeFinished, + java.util.Date timeUpdated) { super(); this.operationType = operationType; this.status = status; @@ -52,16 +57,17 @@ public WorkRequest( this.timeAccepted = timeAccepted; this.timeStarted = timeStarted; this.timeFinished = timeFinished; + this.timeUpdated = timeUpdated; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Type of the work request */ + /** The asynchronous operation tracked by this work request. */ @com.fasterxml.jackson.annotation.JsonProperty("operationType") private OperationType operationType; /** - * Type of the work request + * The asynchronous operation tracked by this work request. * * @param operationType the value to set * @return this builder @@ -71,12 +77,12 @@ public Builder operationType(OperationType operationType) { this.__explicitlySet__.add("operationType"); return this; } - /** Status of current work request. */ + /** The status of the work request. */ @com.fasterxml.jackson.annotation.JsonProperty("status") private OperationStatus status; /** - * Status of current work request. + * The status of the work request. * * @param status the value to set * @return this builder @@ -86,12 +92,16 @@ public Builder status(OperationStatus status) { this.__explicitlySet__.add("status"); return this; } - /** The id of the work request. */ + /** + * 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 id of the work request. + * 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 @@ -102,21 +112,15 @@ public Builder id(String 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 + * 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 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 + * 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 @@ -126,12 +130,12 @@ public Builder compartmentId(String compartmentId) { this.__explicitlySet__.add("compartmentId"); return this; } - /** The resources affected by this work request. */ + /** The resources that are affected by the work request. */ @com.fasterxml.jackson.annotation.JsonProperty("resources") private java.util.List resources; /** - * The resources affected by this work request. + * The resources that are affected by the work request. * * @param resources the value to set * @return this builder @@ -141,12 +145,16 @@ public Builder resources(java.util.List resources) { this.__explicitlySet__.add("resources"); return this; } - /** Percentage of the request completed. */ + /** + * 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; /** - * Percentage of the request completed. + * 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 @@ -157,15 +165,15 @@ public Builder percentComplete(Float 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. + * 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 request was created, as described in [RFC - * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * 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 @@ -176,15 +184,15 @@ public Builder timeAccepted(java.util.Date 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. + * 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 request was started, as described in [RFC - * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * 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 @@ -195,14 +203,14 @@ public Builder timeStarted(java.util.Date timeStarted) { return this; } /** - * The date and time the object was finished, as described in [RFC + * 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 object was finished, as described in [RFC + * 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 @@ -213,6 +221,25 @@ public Builder timeFinished(java.util.Date 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(); @@ -228,7 +255,8 @@ public WorkRequest build() { this.percentComplete, this.timeAccepted, this.timeStarted, - this.timeFinished); + this.timeFinished, + this.timeUpdated); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -264,6 +292,9 @@ public Builder copy(WorkRequest model) { if (model.wasPropertyExplicitlySet("timeFinished")) { this.timeFinished(model.getTimeFinished()); } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } return this; } } @@ -277,12 +308,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Type of the work request */ + /** The asynchronous operation tracked by this work request. */ @com.fasterxml.jackson.annotation.JsonProperty("operationType") private final OperationType operationType; /** - * Type of the work request + * The asynchronous operation tracked by this work request. * * @return the value */ @@ -290,12 +321,12 @@ public OperationType getOperationType() { return operationType; } - /** Status of current work request. */ + /** The status of the work request. */ @com.fasterxml.jackson.annotation.JsonProperty("status") private final OperationStatus status; /** - * Status of current work request. + * The status of the work request. * * @return the value */ @@ -303,12 +334,16 @@ public OperationStatus getStatus() { return status; } - /** The id of the work request. */ + /** + * 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 id of the work request. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request. * * @return the value */ @@ -317,19 +352,15 @@ public String getId() { } /** - * 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 + * 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 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 + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment that contains the work request. * * @return the value */ @@ -337,12 +368,12 @@ public String getCompartmentId() { return compartmentId; } - /** The resources affected by this work request. */ + /** The resources that are affected by the work request. */ @com.fasterxml.jackson.annotation.JsonProperty("resources") private final java.util.List resources; /** - * The resources affected by this work request. + * The resources that are affected by the work request. * * @return the value */ @@ -350,12 +381,16 @@ public java.util.List getResources() { return resources; } - /** Percentage of the request completed. */ + /** + * 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; /** - * Percentage of the request completed. + * 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 */ @@ -364,15 +399,15 @@ public Float getPercentComplete() { } /** - * The date and time the request was created, as described in [RFC - * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * 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 request was created, as described in [RFC - * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * 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 */ @@ -381,15 +416,15 @@ public java.util.Date getTimeAccepted() { } /** - * The date and time the request was started, as described in [RFC - * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * 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 request was started, as described in [RFC - * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * 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 */ @@ -398,14 +433,14 @@ public java.util.Date getTimeStarted() { } /** - * The date and time the object was finished, as described in [RFC + * 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 object was finished, as described in [RFC + * 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 @@ -414,6 +449,23 @@ 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); @@ -438,6 +490,7 @@ public String toString(boolean includeByteArrayContents) { 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(); } @@ -461,6 +514,7 @@ public boolean equals(Object o) { && 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); } @@ -483,6 +537,7 @@ public int 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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestError.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestError.java similarity index 80% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestError.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestError.java index a20cf1e281a..4f2d9275d05 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestError.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestError.java @@ -2,10 +2,10 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.functions.model; /** - * An error encountered while executing a work request.
    + * An error encountered while performing an operation that is tracked by a work request.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @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) @@ -33,15 +33,15 @@ public WorkRequestError(String code, String message, java.util.Date 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) + * 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 occured. Error codes are listed on - * (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm) + * 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 @@ -51,12 +51,12 @@ public Builder code(String code) { this.__explicitlySet__.add("code"); return this; } - /** A human readable description of the issue encountered. */ + /** A human-readable error message. */ @com.fasterxml.jackson.annotation.JsonProperty("message") private String message; /** - * A human readable description of the issue encountered. + * A human-readable error message. * * @param message the value to set * @return this builder @@ -66,12 +66,16 @@ public Builder message(String message) { this.__explicitlySet__.add("message"); return this; } - /** The time the error occured. An RFC3339 formatted datetime string. */ + /** + * 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 time the error occured. An RFC3339 formatted datetime string. + * 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 @@ -118,15 +122,15 @@ public Builder toBuilder() { } /** - * A machine-usable code for the error that occured. Error codes are listed on - * (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm) + * 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 occured. Error codes are listed on - * (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm) + * 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 */ @@ -134,12 +138,12 @@ public String getCode() { return code; } - /** A human readable description of the issue encountered. */ + /** A human-readable error message. */ @com.fasterxml.jackson.annotation.JsonProperty("message") private final String message; /** - * A human readable description of the issue encountered. + * A human-readable error message. * * @return the value */ @@ -147,12 +151,16 @@ public String getMessage() { return message; } - /** The time the error occured. An RFC3339 formatted datetime string. */ + /** + * 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 time the error occured. An RFC3339 formatted datetime string. + * The date and time the error occurred, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). * * @return the value */ diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestErrorCollection.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestErrorCollection.java similarity index 92% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestErrorCollection.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestErrorCollection.java index e3193c74b5b..8eb7e5096c3 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestErrorCollection.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestErrorCollection.java @@ -2,11 +2,11 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.functions.model; /** - * Results of a workRequestError search. Contains both WorkRequestError items and other information, - * such as metadata.
    + * A list of work request errors. Can contain both errors and other information, such as metadata. + *
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestErrorCollection.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -32,12 +32,12 @@ public WorkRequestErrorCollection(java.util.List items) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** List of workRequestError objects. */ + /** A list of work request errors. */ @com.fasterxml.jackson.annotation.JsonProperty("items") private java.util.List items; /** - * List of workRequestError objects. + * A list of work request errors. * * @param items the value to set * @return this builder @@ -77,12 +77,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** List of workRequestError objects. */ + /** A list of work request errors. */ @com.fasterxml.jackson.annotation.JsonProperty("items") private final java.util.List items; /** - * List of workRequestError objects. + * A list of work request errors. * * @return the value */ diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestLogEntry.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestLogEntry.java similarity index 86% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestLogEntry.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestLogEntry.java index af0b3552fc0..e196e6a39ef 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestLogEntry.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestLogEntry.java @@ -2,10 +2,10 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.functions.model; /** - * A log message from the execution of a work request.
    + * A log message from performing an operation that is tracked by a work request.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestLogEntry.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -32,12 +32,12 @@ public WorkRequestLogEntry(String message, java.util.Date timestamp) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Human-readable log message. */ + /** A human-readable log message. */ @com.fasterxml.jackson.annotation.JsonProperty("message") private String message; /** - * Human-readable log message. + * A human-readable log message. * * @param message the value to set * @return this builder @@ -47,12 +47,16 @@ public Builder message(String message) { this.__explicitlySet__.add("message"); return this; } - /** The time the log message was written. An RFC3339 formatted datetime string */ + /** + * 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 time the log message was written. An RFC3339 formatted datetime string + * 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 @@ -95,12 +99,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Human-readable log message. */ + /** A human-readable log message. */ @com.fasterxml.jackson.annotation.JsonProperty("message") private final String message; /** - * Human-readable log message. + * A human-readable log message. * * @return the value */ @@ -108,12 +112,16 @@ public String getMessage() { return message; } - /** The time the log message was written. An RFC3339 formatted datetime string */ + /** + * 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 time the log message was written. An RFC3339 formatted datetime string + * 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 */ diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestLogEntryCollection.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestLogEntryCollection.java similarity index 92% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestLogEntryCollection.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestLogEntryCollection.java index 07c42d10591..25891fa58be 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestLogEntryCollection.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestLogEntryCollection.java @@ -2,11 +2,10 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.functions.model; /** - * Results of a workRequestLog search. Contains both workRequestLog items and other information, - * such as metadata.
    + * A list of work request logs. Can contain both logs and other information, such as metadata.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -16,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestLogEntryCollection.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -32,12 +31,12 @@ public WorkRequestLogEntryCollection(java.util.List items) @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** List of workRequestLogEntries. */ + /** A list of work request log entries. */ @com.fasterxml.jackson.annotation.JsonProperty("items") private java.util.List items; /** - * List of workRequestLogEntries. + * A list of work request log entries. * * @param items the value to set * @return this builder @@ -77,12 +76,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** List of workRequestLogEntries. */ + /** A list of work request log entries. */ @com.fasterxml.jackson.annotation.JsonProperty("items") private final java.util.List items; /** - * List of workRequestLogEntries. + * A list of work request log entries. * * @return the value */ diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestResource.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestResource.java similarity index 79% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestResource.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestResource.java index f6bd72a22ef..23322c69c77 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestResource.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestResource.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.functions.model; /** * A resource created or operated on by a work request.
    @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestResource.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -46,12 +46,12 @@ public WorkRequestResource( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The resource type the work request affects. */ + /** The resource type that the work request affects. */ @com.fasterxml.jackson.annotation.JsonProperty("entityType") private String entityType; /** - * The resource type the work request affects. + * The resource type that the work request affects. * * @param entityType the value to set * @return this builder @@ -62,19 +62,19 @@ public Builder entityType(String 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. + * 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 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. + * 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 @@ -84,12 +84,16 @@ public Builder actionType(ActionType actionType) { this.__explicitlySet__.add("actionType"); return this; } - /** The identifier of the resource the work request affects. */ + /** + * 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; /** - * The identifier of the resource the work request affects. + * 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 @@ -99,12 +103,12 @@ public Builder identifier(String identifier) { this.__explicitlySet__.add("identifier"); return this; } - /** The URI path that the user can do a GET on to access the resource metadata */ + /** 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 the user can do a GET on to access the resource metadata + * 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 @@ -177,12 +181,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The resource type the work request affects. */ + /** The resource type that the work request affects. */ @com.fasterxml.jackson.annotation.JsonProperty("entityType") private final String entityType; /** - * The resource type the work request affects. + * The resource type that the work request affects. * * @return the value */ @@ -191,19 +195,19 @@ public String getEntityType() { } /** - * 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. + * 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 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. + * 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 */ @@ -211,12 +215,16 @@ public ActionType getActionType() { return actionType; } - /** The identifier of the resource the work request affects. */ + /** + * 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; /** - * The identifier of the resource the work request affects. + * An [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) or other + * unique identifier for the resource. * * @return the value */ @@ -224,12 +232,12 @@ public String getIdentifier() { return identifier; } - /** The URI path that the user can do a GET on to access the resource metadata */ + /** 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 the user can do a GET on to access the resource metadata + * The URI path that you can use for a GET request to access the resource metadata. * * @return the value */ diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestResourceMetadataKey.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestResourceMetadataKey.java similarity index 92% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestResourceMetadataKey.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestResourceMetadataKey.java index 6f4cec178c1..722d1df1e19 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestResourceMetadataKey.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestResourceMetadataKey.java @@ -2,10 +2,10 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.functions.model; -/** Possible Metadata keys for workRequest resource metadata */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +/** Possible metadata keys for work request resource metadata. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public enum WorkRequestResourceMetadataKey implements com.oracle.bmc.http.internal.BmcEnum { IsDryRun("IS_DRY_RUN"), diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestSummary.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestSummary.java new file mode 100644 index 00000000000..cce23845733 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/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.functions.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: 20260325") +@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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestSummaryCollection.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestSummaryCollection.java similarity index 92% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestSummaryCollection.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestSummaryCollection.java index 6ab59861a6e..23cda65268f 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestSummaryCollection.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestSummaryCollection.java @@ -2,11 +2,11 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.functions.model; /** - * Results of a workRequest search. Contains both WorkRequest items and other information, such as - * metadata.
    + * A list of work requests. Can contain both work requests and other information, such as metadata. + *
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestSummaryCollection.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -32,12 +32,12 @@ public WorkRequestSummaryCollection(java.util.List items) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** List of workRequestSummary objects. */ + /** A list of work requests. */ @com.fasterxml.jackson.annotation.JsonProperty("items") private java.util.List items; /** - * List of workRequestSummary objects. + * A list of work requests. * * @param items the value to set * @return this builder @@ -77,12 +77,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** List of workRequestSummary objects. */ + /** A list of work requests. */ @com.fasterxml.jackson.annotation.JsonProperty("items") private final java.util.List items; /** - * List of workRequestSummary objects. + * A list of work requests. * * @return the value */ diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/CancelWorkRequestRequest.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/CancelWorkRequestRequest.java new file mode 100644 index 00000000000..3efd16be746 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/CancelWorkRequestRequest.java @@ -0,0 +1,259 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.functions.requests; + +import com.oracle.bmc.functions.model.*; +/** + * Example: Click here to see how to use CancelWorkRequestRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +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; + } + /** + * The 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; + + /** + * The 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< + 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; + } + + /** + * The 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; + + /** + * The 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(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-functions/src/main/java/com/oracle/bmc/functions/requests/ChangeApplicationCompartmentRequest.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ChangeApplicationCompartmentRequest.java index 8e52b3af382..6d0af94f84f 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ChangeApplicationCompartmentRequest.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ChangeApplicationCompartmentRequest.java @@ -11,7 +11,7 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * ChangeApplicationCompartmentRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class ChangeApplicationCompartmentRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.functions.model.ChangeApplicationCompartmentDetails> { diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/CreateApplicationRequest.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/CreateApplicationRequest.java index f524af7d5b5..846077441bd 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/CreateApplicationRequest.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/CreateApplicationRequest.java @@ -10,7 +10,7 @@ * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/functions/CreateApplicationExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use CreateApplicationRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class CreateApplicationRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.functions.model.CreateApplicationDetails> { diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/CreateFunctionRequest.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/CreateFunctionRequest.java index 86e4fff37ef..53092fcfdaf 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/CreateFunctionRequest.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/CreateFunctionRequest.java @@ -10,7 +10,7 @@ * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/functions/CreateFunctionExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use CreateFunctionRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class CreateFunctionRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.functions.model.CreateFunctionDetails> { diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/DeleteApplicationRequest.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/DeleteApplicationRequest.java index a540550dbb7..25e342eac9e 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/DeleteApplicationRequest.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/DeleteApplicationRequest.java @@ -10,7 +10,7 @@ * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/functions/DeleteApplicationExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use DeleteApplicationRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class DeleteApplicationRequest extends com.oracle.bmc.requests.BmcRequest { /** diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/DeleteFunctionRequest.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/DeleteFunctionRequest.java index 4020198a0b6..bbc0fe77dd8 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/DeleteFunctionRequest.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/DeleteFunctionRequest.java @@ -10,7 +10,7 @@ * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/functions/DeleteFunctionExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use DeleteFunctionRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class DeleteFunctionRequest extends com.oracle.bmc.requests.BmcRequest { /** diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetApplicationRequest.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetApplicationRequest.java index 956fec5457a..285d009590f 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetApplicationRequest.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetApplicationRequest.java @@ -10,7 +10,7 @@ * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/functions/GetApplicationExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use GetApplicationRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class GetApplicationRequest extends com.oracle.bmc.requests.BmcRequest { /** diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetFunctionRequest.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetFunctionRequest.java index 7b7be77dbd2..54f0bb2f89b 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetFunctionRequest.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetFunctionRequest.java @@ -10,7 +10,7 @@ * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/functions/GetFunctionExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use GetFunctionRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class GetFunctionRequest extends com.oracle.bmc.requests.BmcRequest { /** diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetFunctionsRuntimeRequest.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetFunctionsRuntimeRequest.java new file mode 100644 index 00000000000..0305ec76ddd --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetFunctionsRuntimeRequest.java @@ -0,0 +1,204 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.functions.requests; + +import com.oracle.bmc.functions.model.*; +/** + * Example: Click here to see how to use GetFunctionsRuntimeRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class GetFunctionsRuntimeRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique FunctionsRuntime identifier */ + private String functionsRuntimeId; + + /** unique FunctionsRuntime identifier */ + public String getFunctionsRuntimeId() { + return functionsRuntimeId; + } + /** + * The 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; + + /** + * The 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< + GetFunctionsRuntimeRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique FunctionsRuntime identifier */ + private String functionsRuntimeId = null; + + /** + * unique FunctionsRuntime identifier + * + * @param functionsRuntimeId the value to set + * @return this builder instance + */ + public Builder functionsRuntimeId(String functionsRuntimeId) { + this.functionsRuntimeId = functionsRuntimeId; + return this; + } + + /** + * The 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; + + /** + * The 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(GetFunctionsRuntimeRequest o) { + functionsRuntimeId(o.getFunctionsRuntimeId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetFunctionsRuntimeRequest 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 GetFunctionsRuntimeRequest + */ + public GetFunctionsRuntimeRequest build() { + GetFunctionsRuntimeRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetFunctionsRuntimeRequest 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 GetFunctionsRuntimeRequest + */ + public GetFunctionsRuntimeRequest buildWithoutInvocationCallback() { + GetFunctionsRuntimeRequest request = new GetFunctionsRuntimeRequest(); + request.functionsRuntimeId = functionsRuntimeId; + request.opcRequestId = opcRequestId; + return request; + // new GetFunctionsRuntimeRequest(functionsRuntimeId, 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().functionsRuntimeId(functionsRuntimeId).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(",functionsRuntimeId=").append(String.valueOf(this.functionsRuntimeId)); + 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 GetFunctionsRuntimeRequest)) { + return false; + } + + GetFunctionsRuntimeRequest other = (GetFunctionsRuntimeRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.functionsRuntimeId, other.functionsRuntimeId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.functionsRuntimeId == null + ? 43 + : this.functionsRuntimeId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetFunctionsRuntimeVersionRequest.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetFunctionsRuntimeVersionRequest.java new file mode 100644 index 00000000000..82c7731a8ee --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetFunctionsRuntimeVersionRequest.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.functions.requests; + +import com.oracle.bmc.functions.model.*; +/** + * Example: Click here to see how to use + * GetFunctionsRuntimeVersionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class GetFunctionsRuntimeVersionRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** unique FunctionsRuntimeVersion identifier */ + private String functionsRuntimeVersionId; + + /** unique FunctionsRuntimeVersion identifier */ + public String getFunctionsRuntimeVersionId() { + return functionsRuntimeVersionId; + } + /** + * The 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; + + /** + * The 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< + GetFunctionsRuntimeVersionRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique FunctionsRuntimeVersion identifier */ + private String functionsRuntimeVersionId = null; + + /** + * unique FunctionsRuntimeVersion identifier + * + * @param functionsRuntimeVersionId the value to set + * @return this builder instance + */ + public Builder functionsRuntimeVersionId(String functionsRuntimeVersionId) { + this.functionsRuntimeVersionId = functionsRuntimeVersionId; + return this; + } + + /** + * The 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; + + /** + * The 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(GetFunctionsRuntimeVersionRequest o) { + functionsRuntimeVersionId(o.getFunctionsRuntimeVersionId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetFunctionsRuntimeVersionRequest 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 GetFunctionsRuntimeVersionRequest + */ + public GetFunctionsRuntimeVersionRequest build() { + GetFunctionsRuntimeVersionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetFunctionsRuntimeVersionRequest 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 GetFunctionsRuntimeVersionRequest + */ + public GetFunctionsRuntimeVersionRequest buildWithoutInvocationCallback() { + GetFunctionsRuntimeVersionRequest request = new GetFunctionsRuntimeVersionRequest(); + request.functionsRuntimeVersionId = functionsRuntimeVersionId; + request.opcRequestId = opcRequestId; + return request; + // new GetFunctionsRuntimeVersionRequest(functionsRuntimeVersionId, 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() + .functionsRuntimeVersionId(functionsRuntimeVersionId) + .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(",functionsRuntimeVersionId=") + .append(String.valueOf(this.functionsRuntimeVersionId)); + 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 GetFunctionsRuntimeVersionRequest)) { + return false; + } + + GetFunctionsRuntimeVersionRequest other = (GetFunctionsRuntimeVersionRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.functionsRuntimeVersionId, other.functionsRuntimeVersionId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.functionsRuntimeVersionId == null + ? 43 + : this.functionsRuntimeVersionId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetPbfListingRequest.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetPbfListingRequest.java index 42fa177787d..50b06f99975 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetPbfListingRequest.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetPbfListingRequest.java @@ -10,7 +10,7 @@ * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/functions/GetPbfListingExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use GetPbfListingRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class GetPbfListingRequest extends com.oracle.bmc.requests.BmcRequest { /** unique PbfListing identifier */ diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetPbfListingVersionRequest.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetPbfListingVersionRequest.java index a001fd58fb0..f637c4465d1 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetPbfListingVersionRequest.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetPbfListingVersionRequest.java @@ -10,7 +10,7 @@ * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/functions/GetPbfListingVersionExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use GetPbfListingVersionRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class GetPbfListingVersionRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetWorkRequestRequest.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetWorkRequestRequest.java similarity index 81% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetWorkRequestRequest.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetWorkRequestRequest.java index 7bb347b6bcf..35e37e7cd08 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetWorkRequestRequest.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetWorkRequestRequest.java @@ -2,28 +2,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.requests; +package com.oracle.bmc.functions.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.functions.model.*; /** * Example: Click here to see how to use GetWorkRequestRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class GetWorkRequestRequest extends com.oracle.bmc.requests.BmcRequest { - /** The ID of the asynchronous request. */ + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ private String workRequestId; - /** The ID of the asynchronous request. */ + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ public String getWorkRequestId() { return workRequestId; } - /** The client request ID for tracing. */ + /** + * The 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; - /** The client request ID for tracing. */ + /** + * The 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; } @@ -34,11 +46,15 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** The ID of the asynchronous request. */ + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ private String workRequestId = null; /** - * The ID of the asynchronous request. + * 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 @@ -48,11 +64,15 @@ public Builder workRequestId(String workRequestId) { return this; } - /** The client request ID for tracing. */ + /** + * The 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; /** - * The client request ID for tracing. + * The 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 diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/InvokeFunctionRequest.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/InvokeFunctionRequest.java index 29c965cdbba..d3facf5b08b 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/InvokeFunctionRequest.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/InvokeFunctionRequest.java @@ -10,7 +10,7 @@ * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/functions/InvokeFunctionExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use InvokeFunctionRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class InvokeFunctionRequest extends com.oracle.bmc.requests.BmcRequest { /** diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListApplicationsRequest.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListApplicationsRequest.java index c39ef549af8..b987e0e6ac4 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListApplicationsRequest.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListApplicationsRequest.java @@ -10,7 +10,7 @@ * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/functions/ListApplicationsExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use ListApplicationsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class ListApplicationsRequest extends com.oracle.bmc.requests.BmcRequest { /** diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListFunctionsRequest.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListFunctionsRequest.java index df0e3ebdc51..7b4b081d20b 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListFunctionsRequest.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListFunctionsRequest.java @@ -10,7 +10,7 @@ * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/functions/ListFunctionsExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use ListFunctionsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class ListFunctionsRequest extends com.oracle.bmc.requests.BmcRequest { /** diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListFunctionsRuntimeVersionsRequest.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListFunctionsRuntimeVersionsRequest.java new file mode 100644 index 00000000000..3f3a33a8768 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListFunctionsRuntimeVersionsRequest.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.functions.requests; + +import com.oracle.bmc.functions.model.*; +/** + * Example: Click here to see how to use + * ListFunctionsRuntimeVersionsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class ListFunctionsRuntimeVersionsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** unique FunctionsRuntime identifier */ + private String functionsRuntimeId; + + /** unique FunctionsRuntime identifier */ + public String getFunctionsRuntimeId() { + return functionsRuntimeId; + } + /** A filter to return only resources that match the entire FunctionsRuntime name given. */ + private String functionsRuntimeName; + + /** A filter to return only resources that match the entire FunctionsRuntime name given. */ + public String getFunctionsRuntimeName() { + return functionsRuntimeName; + } + /** unique FunctionsRuntimeVersion identifier */ + private String functionsRuntimeVersionId; + + /** unique FunctionsRuntimeVersion identifier */ + public String getFunctionsRuntimeVersionId() { + return functionsRuntimeVersionId; + } + /** + * A filter to return only resources that match the entire FunctionsRuntimeVersion name given. + */ + private String displayName; + + /** + * A filter to return only resources that match the entire FunctionsRuntimeVersion name given. + */ + public String getDisplayName() { + return displayName; + } + /** A filter to return only resources that match the entire osVersion name given. */ + private String osVersion; + + /** A filter to return only resources that match the entire osVersion name given. */ + public String getOsVersion() { + return osVersion; + } + /** A filter to return only resources that match the entire languageVersion name given. */ + private String languageVersion; + + /** A filter to return only resources that match the entire languageVersion name given. */ + public String getLanguageVersion() { + return languageVersion; + } + /** Matches the current version associated with a FunctionsRuntime. */ + private Boolean isCurrentVersion; + + /** Matches the current version associated with a FunctionsRuntime. */ + public Boolean getIsCurrentVersion() { + return isCurrentVersion; + } + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + private com.oracle.bmc.functions.model.FunctionsRuntimeVersion.LifecycleState lifecycleState; + + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + public com.oracle.bmc.functions.model.FunctionsRuntimeVersion.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for name 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 name is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + Name("name"), + ; + + 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 name is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The maximum number of items to return. 1 is the minimum, 50 is the maximum. + * + *

    Default: 10 + */ + private Integer limit; + + /** + * The maximum number of items to return. 1 is the minimum, 50 is the maximum. + * + *

    Default: 10 + */ + public Integer getLimit() { + return limit; + } + /** The pagination token for a list query returned by a previous operation */ + private String page; + + /** The pagination token for a list query returned by a previous operation */ + public String getPage() { + return page; + } + /** + * Specifies sort order. + * + *

    **ASC:** Ascending sort order. * **DESC:** Descending sort order. + */ + private SortOrder sortOrder; + + /** + * Specifies sort order. + * + *

    **ASC:** Ascending sort order. * **DESC:** Descending sort order. + */ + 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); + } + }; + + /** + * Specifies sort order. + * + *

    **ASC:** Ascending sort order. * **DESC:** Descending sort order. + */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** + * The 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; + + /** + * The 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< + ListFunctionsRuntimeVersionsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique FunctionsRuntime identifier */ + private String functionsRuntimeId = null; + + /** + * unique FunctionsRuntime identifier + * + * @param functionsRuntimeId the value to set + * @return this builder instance + */ + public Builder functionsRuntimeId(String functionsRuntimeId) { + this.functionsRuntimeId = functionsRuntimeId; + return this; + } + + /** A filter to return only resources that match the entire FunctionsRuntime name given. */ + private String functionsRuntimeName = null; + + /** + * A filter to return only resources that match the entire FunctionsRuntime name given. + * + * @param functionsRuntimeName the value to set + * @return this builder instance + */ + public Builder functionsRuntimeName(String functionsRuntimeName) { + this.functionsRuntimeName = functionsRuntimeName; + return this; + } + + /** unique FunctionsRuntimeVersion identifier */ + private String functionsRuntimeVersionId = null; + + /** + * unique FunctionsRuntimeVersion identifier + * + * @param functionsRuntimeVersionId the value to set + * @return this builder instance + */ + public Builder functionsRuntimeVersionId(String functionsRuntimeVersionId) { + this.functionsRuntimeVersionId = functionsRuntimeVersionId; + return this; + } + + /** + * A filter to return only resources that match the entire FunctionsRuntimeVersion name + * given. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire FunctionsRuntimeVersion name + * given. + * + * @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 that match the entire osVersion name given. */ + private String osVersion = null; + + /** + * A filter to return only resources that match the entire osVersion name given. + * + * @param osVersion the value to set + * @return this builder instance + */ + public Builder osVersion(String osVersion) { + this.osVersion = osVersion; + return this; + } + + /** A filter to return only resources that match the entire languageVersion name given. */ + private String languageVersion = null; + + /** + * A filter to return only resources that match the entire languageVersion name given. + * + * @param languageVersion the value to set + * @return this builder instance + */ + public Builder languageVersion(String languageVersion) { + this.languageVersion = languageVersion; + return this; + } + + /** Matches the current version associated with a FunctionsRuntime. */ + private Boolean isCurrentVersion = null; + + /** + * Matches the current version associated with a FunctionsRuntime. + * + * @param isCurrentVersion the value to set + * @return this builder instance + */ + public Builder isCurrentVersion(Boolean isCurrentVersion) { + this.isCurrentVersion = isCurrentVersion; + return this; + } + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + private com.oracle.bmc.functions.model.FunctionsRuntimeVersion.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.functions.model.FunctionsRuntimeVersion.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for name 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 name is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The maximum number of items to return. 1 is the minimum, 50 is the maximum. + * + *

    Default: 10 + */ + private Integer limit = null; + + /** + * The maximum number of items to return. 1 is the minimum, 50 is the maximum. + * + *

    Default: 10 + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** The pagination token for a list query returned by a previous operation */ + private String page = null; + + /** + * The pagination token for a list query returned by a previous operation + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * Specifies sort order. + * + *

    **ASC:** Ascending sort order. * **DESC:** Descending sort order. + */ + private SortOrder sortOrder = null; + + /** + * Specifies sort order. + * + *

    **ASC:** Ascending sort order. * **DESC:** Descending sort order. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The 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; + + /** + * The 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(ListFunctionsRuntimeVersionsRequest o) { + functionsRuntimeId(o.getFunctionsRuntimeId()); + functionsRuntimeName(o.getFunctionsRuntimeName()); + functionsRuntimeVersionId(o.getFunctionsRuntimeVersionId()); + displayName(o.getDisplayName()); + osVersion(o.getOsVersion()); + languageVersion(o.getLanguageVersion()); + isCurrentVersion(o.getIsCurrentVersion()); + lifecycleState(o.getLifecycleState()); + sortBy(o.getSortBy()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListFunctionsRuntimeVersionsRequest 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 ListFunctionsRuntimeVersionsRequest + */ + public ListFunctionsRuntimeVersionsRequest build() { + ListFunctionsRuntimeVersionsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListFunctionsRuntimeVersionsRequest 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 ListFunctionsRuntimeVersionsRequest + */ + public ListFunctionsRuntimeVersionsRequest buildWithoutInvocationCallback() { + ListFunctionsRuntimeVersionsRequest request = new ListFunctionsRuntimeVersionsRequest(); + request.functionsRuntimeId = functionsRuntimeId; + request.functionsRuntimeName = functionsRuntimeName; + request.functionsRuntimeVersionId = functionsRuntimeVersionId; + request.displayName = displayName; + request.osVersion = osVersion; + request.languageVersion = languageVersion; + request.isCurrentVersion = isCurrentVersion; + request.lifecycleState = lifecycleState; + request.sortBy = sortBy; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.opcRequestId = opcRequestId; + return request; + // new ListFunctionsRuntimeVersionsRequest(functionsRuntimeId, functionsRuntimeName, + // functionsRuntimeVersionId, displayName, osVersion, languageVersion, isCurrentVersion, + // lifecycleState, sortBy, limit, page, sortOrder, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .functionsRuntimeId(functionsRuntimeId) + .functionsRuntimeName(functionsRuntimeName) + .functionsRuntimeVersionId(functionsRuntimeVersionId) + .displayName(displayName) + .osVersion(osVersion) + .languageVersion(languageVersion) + .isCurrentVersion(isCurrentVersion) + .lifecycleState(lifecycleState) + .sortBy(sortBy) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",functionsRuntimeId=").append(String.valueOf(this.functionsRuntimeId)); + sb.append(",functionsRuntimeName=").append(String.valueOf(this.functionsRuntimeName)); + sb.append(",functionsRuntimeVersionId=") + .append(String.valueOf(this.functionsRuntimeVersionId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",osVersion=").append(String.valueOf(this.osVersion)); + sb.append(",languageVersion=").append(String.valueOf(this.languageVersion)); + sb.append(",isCurrentVersion=").append(String.valueOf(this.isCurrentVersion)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + 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(",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 ListFunctionsRuntimeVersionsRequest)) { + return false; + } + + ListFunctionsRuntimeVersionsRequest other = (ListFunctionsRuntimeVersionsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.functionsRuntimeId, other.functionsRuntimeId) + && java.util.Objects.equals(this.functionsRuntimeName, other.functionsRuntimeName) + && java.util.Objects.equals( + this.functionsRuntimeVersionId, other.functionsRuntimeVersionId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.osVersion, other.osVersion) + && java.util.Objects.equals(this.languageVersion, other.languageVersion) + && java.util.Objects.equals(this.isCurrentVersion, other.isCurrentVersion) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && 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.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.functionsRuntimeId == null + ? 43 + : this.functionsRuntimeId.hashCode()); + result = + (result * PRIME) + + (this.functionsRuntimeName == null + ? 43 + : this.functionsRuntimeName.hashCode()); + result = + (result * PRIME) + + (this.functionsRuntimeVersionId == null + ? 43 + : this.functionsRuntimeVersionId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.osVersion == null ? 43 : this.osVersion.hashCode()); + result = + (result * PRIME) + + (this.languageVersion == null ? 43 : this.languageVersion.hashCode()); + result = + (result * PRIME) + + (this.isCurrentVersion == null ? 43 : this.isCurrentVersion.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.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.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListFunctionsRuntimesRequest.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListFunctionsRuntimesRequest.java new file mode 100644 index 00000000000..ac58390296f --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListFunctionsRuntimesRequest.java @@ -0,0 +1,631 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.functions.requests; + +import com.oracle.bmc.functions.model.*; +/** + * Example: Click here to see how to use + * ListFunctionsRuntimesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class ListFunctionsRuntimesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** unique FunctionsRuntime identifier */ + private String functionsRuntimeId; + + /** unique FunctionsRuntime identifier */ + public String getFunctionsRuntimeId() { + return functionsRuntimeId; + } + /** A filter to return only resources that match the entire FunctionsRuntime name given. */ + private String name; + + /** A filter to return only resources that match the entire FunctionsRuntime name given. */ + public String getName() { + return name; + } + /** + * A filter to return only resources that contain the supplied filter text in the + * FunctionsRuntime name given. + */ + private String nameContains; + + /** + * A filter to return only resources that contain the supplied filter text in the + * FunctionsRuntime name given. + */ + public String getNameContains() { + return nameContains; + } + /** + * A filter to return only resources that start with the supplied filter text in the + * FunctionsRuntime name given. + */ + private String nameStartsWith; + + /** + * A filter to return only resources that start with the supplied filter text in the + * FunctionsRuntime name given. + */ + public String getNameStartsWith() { + return nameStartsWith; + } + /** A filter to return only resources that match the entire os name given. */ + private String os; + + /** A filter to return only resources that match the entire os name given. */ + public String getOs() { + return os; + } + /** A filter to return only resources that match the entire language name given. */ + private String language; + + /** A filter to return only resources that match the entire language name given. */ + public String getLanguage() { + return language; + } + /** + * A filter to return only resources where their lifecycleState matches the given + * lifecycleState. + */ + private com.oracle.bmc.functions.model.FunctionsRuntime.LifecycleState lifecycleState; + + /** + * A filter to return only resources where their lifecycleState matches the given + * lifecycleState. + */ + public com.oracle.bmc.functions.model.FunctionsRuntime.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** + * The maximum number of items to return. 1 is the minimum, 50 is the maximum. + * + *

    Default: 10 + */ + private Integer limit; + + /** + * The maximum number of items to return. 1 is the minimum, 50 is the maximum. + * + *

    Default: 10 + */ + public Integer getLimit() { + return limit; + } + /** The pagination token for a list query returned by a previous operation */ + private String page; + + /** The pagination token for a list query returned by a previous operation */ + public String getPage() { + return page; + } + /** + * Specifies sort order. + * + *

    **ASC:** Ascending sort order. * **DESC:** Descending sort order. + */ + private SortOrder sortOrder; + + /** + * Specifies sort order. + * + *

    **ASC:** Ascending sort order. * **DESC:** Descending sort order. + */ + 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); + } + }; + + /** + * Specifies sort order. + * + *

    **ASC:** Ascending sort order. * **DESC:** Descending sort order. + */ + public 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 name 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 name is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + Name("name"), + TimeDeprecated("timeDeprecated"), + TimeDecommissioned("timeDecommissioned"), + ; + + 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 name is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The 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; + + /** + * The 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< + ListFunctionsRuntimesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique FunctionsRuntime identifier */ + private String functionsRuntimeId = null; + + /** + * unique FunctionsRuntime identifier + * + * @param functionsRuntimeId the value to set + * @return this builder instance + */ + public Builder functionsRuntimeId(String functionsRuntimeId) { + this.functionsRuntimeId = functionsRuntimeId; + return this; + } + + /** A filter to return only resources that match the entire FunctionsRuntime name given. */ + private String name = null; + + /** + * A filter to return only resources that match the entire FunctionsRuntime name given. + * + * @param name the value to set + * @return this builder instance + */ + public Builder name(String name) { + this.name = name; + return this; + } + + /** + * A filter to return only resources that contain the supplied filter text in the + * FunctionsRuntime name given. + */ + private String nameContains = null; + + /** + * A filter to return only resources that contain the supplied filter text in the + * FunctionsRuntime name given. + * + * @param nameContains the value to set + * @return this builder instance + */ + public Builder nameContains(String nameContains) { + this.nameContains = nameContains; + return this; + } + + /** + * A filter to return only resources that start with the supplied filter text in the + * FunctionsRuntime name given. + */ + private String nameStartsWith = null; + + /** + * A filter to return only resources that start with the supplied filter text in the + * FunctionsRuntime name given. + * + * @param nameStartsWith the value to set + * @return this builder instance + */ + public Builder nameStartsWith(String nameStartsWith) { + this.nameStartsWith = nameStartsWith; + return this; + } + + /** A filter to return only resources that match the entire os name given. */ + private String os = null; + + /** + * A filter to return only resources that match the entire os name given. + * + * @param os the value to set + * @return this builder instance + */ + public Builder os(String os) { + this.os = os; + return this; + } + + /** A filter to return only resources that match the entire language name given. */ + private String language = null; + + /** + * A filter to return only resources that match the entire language name given. + * + * @param language the value to set + * @return this builder instance + */ + public Builder language(String language) { + this.language = language; + return this; + } + + /** + * A filter to return only resources where their lifecycleState matches the given + * lifecycleState. + */ + private com.oracle.bmc.functions.model.FunctionsRuntime.LifecycleState lifecycleState = + null; + + /** + * A filter to return only resources where their lifecycleState matches the given + * lifecycleState. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.functions.model.FunctionsRuntime.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * The maximum number of items to return. 1 is the minimum, 50 is the maximum. + * + *

    Default: 10 + */ + private Integer limit = null; + + /** + * The maximum number of items to return. 1 is the minimum, 50 is the maximum. + * + *

    Default: 10 + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** The pagination token for a list query returned by a previous operation */ + private String page = null; + + /** + * The pagination token for a list query returned by a previous operation + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * Specifies sort order. + * + *

    **ASC:** Ascending sort order. * **DESC:** Descending sort order. + */ + private SortOrder sortOrder = null; + + /** + * Specifies sort order. + * + *

    **ASC:** Ascending sort order. * **DESC:** Descending sort order. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(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 name 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 name is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The 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; + + /** + * The 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(ListFunctionsRuntimesRequest o) { + functionsRuntimeId(o.getFunctionsRuntimeId()); + name(o.getName()); + nameContains(o.getNameContains()); + nameStartsWith(o.getNameStartsWith()); + os(o.getOs()); + language(o.getLanguage()); + lifecycleState(o.getLifecycleState()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListFunctionsRuntimesRequest 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 ListFunctionsRuntimesRequest + */ + public ListFunctionsRuntimesRequest build() { + ListFunctionsRuntimesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListFunctionsRuntimesRequest 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 ListFunctionsRuntimesRequest + */ + public ListFunctionsRuntimesRequest buildWithoutInvocationCallback() { + ListFunctionsRuntimesRequest request = new ListFunctionsRuntimesRequest(); + request.functionsRuntimeId = functionsRuntimeId; + request.name = name; + request.nameContains = nameContains; + request.nameStartsWith = nameStartsWith; + request.os = os; + request.language = language; + request.lifecycleState = lifecycleState; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListFunctionsRuntimesRequest(functionsRuntimeId, name, nameContains, + // nameStartsWith, os, language, lifecycleState, limit, page, sortOrder, sortBy, + // opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .functionsRuntimeId(functionsRuntimeId) + .name(name) + .nameContains(nameContains) + .nameStartsWith(nameStartsWith) + .os(os) + .language(language) + .lifecycleState(lifecycleState) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",functionsRuntimeId=").append(String.valueOf(this.functionsRuntimeId)); + sb.append(",name=").append(String.valueOf(this.name)); + sb.append(",nameContains=").append(String.valueOf(this.nameContains)); + sb.append(",nameStartsWith=").append(String.valueOf(this.nameStartsWith)); + sb.append(",os=").append(String.valueOf(this.os)); + sb.append(",language=").append(String.valueOf(this.language)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListFunctionsRuntimesRequest)) { + return false; + } + + ListFunctionsRuntimesRequest other = (ListFunctionsRuntimesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.functionsRuntimeId, other.functionsRuntimeId) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.nameContains, other.nameContains) + && java.util.Objects.equals(this.nameStartsWith, other.nameStartsWith) + && java.util.Objects.equals(this.os, other.os) + && java.util.Objects.equals(this.language, other.language) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.functionsRuntimeId == null + ? 43 + : this.functionsRuntimeId.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.nameContains == null ? 43 : this.nameContains.hashCode()); + result = + (result * PRIME) + + (this.nameStartsWith == null ? 43 : this.nameStartsWith.hashCode()); + result = (result * PRIME) + (this.os == null ? 43 : this.os.hashCode()); + result = (result * PRIME) + (this.language == null ? 43 : this.language.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListPbfListingVersionsRequest.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListPbfListingVersionsRequest.java index f213cdaecbd..b62dd212e69 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListPbfListingVersionsRequest.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListPbfListingVersionsRequest.java @@ -11,7 +11,7 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * ListPbfListingVersionsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class ListPbfListingVersionsRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListPbfListingsRequest.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListPbfListingsRequest.java index a07da96e5da..2d3f01bb973 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListPbfListingsRequest.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListPbfListingsRequest.java @@ -10,7 +10,7 @@ * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/functions/ListPbfListingsExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use ListPbfListingsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class ListPbfListingsRequest extends com.oracle.bmc.requests.BmcRequest { /** unique PbfListing identifier */ diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListTriggersRequest.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListTriggersRequest.java index 6455d7b72c9..e634de96698 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListTriggersRequest.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListTriggersRequest.java @@ -10,7 +10,7 @@ * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/functions/ListTriggersExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use ListTriggersRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class ListTriggersRequest extends com.oracle.bmc.requests.BmcRequest { /** A filter to return only resources that match the service trigger source of a PBF. */ diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestErrorsRequest.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListWorkRequestErrorsRequest.java similarity index 71% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestErrorsRequest.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListWorkRequestErrorsRequest.java index 359ee86227a..8fd19ed4d58 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestErrorsRequest.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListWorkRequestErrorsRequest.java @@ -2,62 +2,76 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.functions.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.functions.model.*; /** * Example: Click here to see how to use * ListWorkRequestErrorsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class ListWorkRequestErrorsRequest extends com.oracle.bmc.requests.BmcRequest { - /** The ID of the asynchronous request. */ + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ private String workRequestId; - /** The ID of the asynchronous request. */ + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ public String getWorkRequestId() { return workRequestId; } - /** The client request ID for tracing. */ + /** + * The 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; - /** The client request ID for tracing. */ + /** + * The 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 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. - */ + /** The pagination token for a list query returned by a previous operation */ 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. - */ + /** The pagination token for a list query returned by a previous operation */ public String getPage() { return page; } - /** The maximum number of items to return. */ + /** + * The maximum number of items to return. 1 is the minimum, 50 is the maximum. + * + *

    Default: 10 + */ private Integer limit; - /** The maximum number of items to return. */ + /** + * The maximum number of items to return. 1 is the minimum, 50 is the maximum. + * + *

    Default: 10 + */ public Integer getLimit() { return limit; } /** - * The field to sort by. Only one sort order may be provided. Default order for timestamp is - * descending. + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timestamp} is descending. */ private SortBy sortBy; /** - * The field to sort by. Only one sort order may be provided. Default order for timestamp is - * descending. + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timestamp} is descending. */ public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { Timestamp("timestamp"), @@ -92,17 +106,63 @@ public static SortBy create(String key) { }; /** - * The field to sort by. Only one sort order may be provided. Default order for timestamp is - * descending. + * The field to sort by. Only one sort order may be provided. Default order for {@code + * 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; + /** + * Specifies sort order. + * + *

    **ASC:** Ascending sort order. * **DESC:** Descending sort order. + */ + private SortOrder sortOrder; + + /** + * Specifies sort order. + * + *

    **ASC:** Ascending sort order. * **DESC:** Descending sort order. + */ + 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; + } - /** The sort order to use, either 'ASC' or 'DESC'. */ - public com.oracle.bmc.distributeddatabasev26.model.SortOrder getSortOrder() { + @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); + } + }; + + /** + * Specifies sort order. + * + *

    **ASC:** Ascending sort order. * **DESC:** Descending sort order. + */ + public SortOrder getSortOrder() { return sortOrder; } @@ -112,11 +172,15 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** The ID of the asynchronous request. */ + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ private String workRequestId = null; /** - * The ID of the asynchronous request. + * 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 @@ -126,11 +190,15 @@ public Builder workRequestId(String workRequestId) { return this; } - /** The client request ID for tracing. */ + /** + * The 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; /** - * The client request ID for tracing. + * The 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 @@ -140,15 +208,11 @@ public Builder opcRequestId(String 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. - */ + /** The pagination token for a list query returned by a previous operation */ 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. + * The pagination token for a list query returned by a previous operation * * @param page the value to set * @return this builder instance @@ -158,11 +222,17 @@ public Builder page(String page) { return this; } - /** The maximum number of items to return. */ + /** + * The maximum number of items to return. 1 is the minimum, 50 is the maximum. + * + *

    Default: 10 + */ private Integer limit = null; /** - * The maximum number of items to return. + * The maximum number of items to return. 1 is the minimum, 50 is the maximum. + * + *

    Default: 10 * * @param limit the value to set * @return this builder instance @@ -173,14 +243,14 @@ public Builder limit(Integer limit) { } /** - * The field to sort by. Only one sort order may be provided. Default order for timestamp is - * descending. + * The field to sort by. Only one sort order may be provided. Default order for {@code + * 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. + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timestamp} is descending. * * @param sortBy the value to set * @return this builder instance @@ -190,16 +260,22 @@ public Builder sortBy(SortBy sortBy) { return this; } - /** The sort order to use, either 'ASC' or 'DESC'. */ - private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder = null; + /** + * Specifies sort order. + * + *

    **ASC:** Ascending sort order. * **DESC:** Descending sort order. + */ + private SortOrder sortOrder = null; /** - * The sort order to use, either 'ASC' or 'DESC'. + * Specifies sort order. + * + *

    **ASC:** Ascending sort order. * **DESC:** Descending sort order. * * @param sortOrder the value to set * @return this builder instance */ - public Builder sortOrder(com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder) { + public Builder sortOrder(SortOrder sortOrder) { this.sortOrder = sortOrder; return this; } diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestLogsRequest.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListWorkRequestLogsRequest.java similarity index 71% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestLogsRequest.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListWorkRequestLogsRequest.java index 662f3eb930b..ba4a468abe3 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestLogsRequest.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListWorkRequestLogsRequest.java @@ -2,60 +2,74 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.functions.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.functions.model.*; /** * Example: Click here to see how to use ListWorkRequestLogsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class ListWorkRequestLogsRequest extends com.oracle.bmc.requests.BmcRequest { - /** The ID of the asynchronous request. */ + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ private String workRequestId; - /** The ID of the asynchronous request. */ + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ public String getWorkRequestId() { return workRequestId; } - /** The client request ID for tracing. */ + /** + * The 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; - /** The client request ID for tracing. */ + /** + * The 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 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. - */ + /** The pagination token for a list query returned by a previous operation */ 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. - */ + /** The pagination token for a list query returned by a previous operation */ public String getPage() { return page; } - /** The maximum number of items to return. */ + /** + * The maximum number of items to return. 1 is the minimum, 50 is the maximum. + * + *

    Default: 10 + */ private Integer limit; - /** The maximum number of items to return. */ + /** + * The maximum number of items to return. 1 is the minimum, 50 is the maximum. + * + *

    Default: 10 + */ public Integer getLimit() { return limit; } /** - * The field to sort by. Only one sort order may be provided. Default order for timestamp is - * descending. + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timestamp} is descending. */ private SortBy sortBy; /** - * The field to sort by. Only one sort order may be provided. Default order for timestamp is - * descending. + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timestamp} is descending. */ public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { Timestamp("timestamp"), @@ -90,17 +104,63 @@ public static SortBy create(String key) { }; /** - * The field to sort by. Only one sort order may be provided. Default order for timestamp is - * descending. + * The field to sort by. Only one sort order may be provided. Default order for {@code + * 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; + /** + * Specifies sort order. + * + *

    **ASC:** Ascending sort order. * **DESC:** Descending sort order. + */ + private SortOrder sortOrder; + + /** + * Specifies sort order. + * + *

    **ASC:** Ascending sort order. * **DESC:** Descending sort order. + */ + 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; + } - /** The sort order to use, either 'ASC' or 'DESC'. */ - public com.oracle.bmc.distributeddatabasev26.model.SortOrder getSortOrder() { + @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); + } + }; + + /** + * Specifies sort order. + * + *

    **ASC:** Ascending sort order. * **DESC:** Descending sort order. + */ + public SortOrder getSortOrder() { return sortOrder; } @@ -110,11 +170,15 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** The ID of the asynchronous request. */ + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ private String workRequestId = null; /** - * The ID of the asynchronous request. + * 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 @@ -124,11 +188,15 @@ public Builder workRequestId(String workRequestId) { return this; } - /** The client request ID for tracing. */ + /** + * The 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; /** - * The client request ID for tracing. + * The 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 @@ -138,15 +206,11 @@ public Builder opcRequestId(String 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. - */ + /** The pagination token for a list query returned by a previous operation */ 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. + * The pagination token for a list query returned by a previous operation * * @param page the value to set * @return this builder instance @@ -156,11 +220,17 @@ public Builder page(String page) { return this; } - /** The maximum number of items to return. */ + /** + * The maximum number of items to return. 1 is the minimum, 50 is the maximum. + * + *

    Default: 10 + */ private Integer limit = null; /** - * The maximum number of items to return. + * The maximum number of items to return. 1 is the minimum, 50 is the maximum. + * + *

    Default: 10 * * @param limit the value to set * @return this builder instance @@ -171,14 +241,14 @@ public Builder limit(Integer limit) { } /** - * The field to sort by. Only one sort order may be provided. Default order for timestamp is - * descending. + * The field to sort by. Only one sort order may be provided. Default order for {@code + * 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. + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timestamp} is descending. * * @param sortBy the value to set * @return this builder instance @@ -188,16 +258,22 @@ public Builder sortBy(SortBy sortBy) { return this; } - /** The sort order to use, either 'ASC' or 'DESC'. */ - private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder = null; + /** + * Specifies sort order. + * + *

    **ASC:** Ascending sort order. * **DESC:** Descending sort order. + */ + private SortOrder sortOrder = null; /** - * The sort order to use, either 'ASC' or 'DESC'. + * Specifies sort order. + * + *

    **ASC:** Ascending sort order. * **DESC:** Descending sort order. * * @param sortOrder the value to set * @return this builder instance */ - public Builder sortOrder(com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder) { + public Builder sortOrder(SortOrder sortOrder) { this.sortOrder = sortOrder; return this; } diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListWorkRequestsRequest.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListWorkRequestsRequest.java new file mode 100644 index 00000000000..373f70b8407 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListWorkRequestsRequest.java @@ -0,0 +1,538 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.functions.requests; + +import com.oracle.bmc.functions.model.*; +/** + * Example: Click here to see how to use ListWorkRequestsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class ListWorkRequestsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to which this resource belongs. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to which this resource belongs. + */ + 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 the resources that match the given lifecycle state. */ + private com.oracle.bmc.functions.model.OperationStatus status; + + /** A filter to return only the resources that match the given lifecycle state. */ + public com.oracle.bmc.functions.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; + } + /** + * The 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; + + /** + * The 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; + } + /** The pagination token for a list query returned by a previous operation */ + private String page; + + /** The pagination token for a list query returned by a previous operation */ + public String getPage() { + return page; + } + /** + * The maximum number of items to return. 1 is the minimum, 50 is the maximum. + * + *

    Default: 10 + */ + private Integer limit; + + /** + * The maximum number of items to return. 1 is the minimum, 50 is the maximum. + * + *

    Default: 10 + */ + public Integer getLimit() { + return limit; + } + /** + * Specifies sort order. + * + *

    **ASC:** Ascending sort order. * **DESC:** Descending sort order. + */ + private SortOrder sortOrder; + + /** + * Specifies sort order. + * + *

    **ASC:** Ascending sort order. * **DESC:** Descending sort order. + */ + 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); + } + }; + + /** + * Specifies sort order. + * + *

    **ASC:** Ascending sort order. * **DESC:** Descending sort order. + */ + public 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 to which this resource belongs. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to which this resource belongs. + * + * @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 the resources that match the given lifecycle state. */ + private com.oracle.bmc.functions.model.OperationStatus status = null; + + /** + * A filter to return only the resources that match the given lifecycle state. + * + * @param status the value to set + * @return this builder instance + */ + public Builder status(com.oracle.bmc.functions.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; + } + + /** + * The 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; + + /** + * The 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; + } + + /** The pagination token for a list query returned by a previous operation */ + private String page = null; + + /** + * The pagination token for a list query returned by a previous operation + * + * @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. 1 is the minimum, 50 is the maximum. + * + *

    Default: 10 + */ + private Integer limit = null; + + /** + * The maximum number of items to return. 1 is the minimum, 50 is the maximum. + * + *

    Default: 10 + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Specifies sort order. + * + *

    **ASC:** Ascending sort order. * **DESC:** Descending sort order. + */ + private SortOrder sortOrder = null; + + /** + * Specifies sort order. + * + *

    **ASC:** Ascending sort order. * **DESC:** Descending sort order. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(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-functions/src/main/java/com/oracle/bmc/functions/requests/UpdateApplicationRequest.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/UpdateApplicationRequest.java index d0f1bd5eda7..d26244f3304 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/UpdateApplicationRequest.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/UpdateApplicationRequest.java @@ -10,7 +10,7 @@ * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/functions/UpdateApplicationExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use UpdateApplicationRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class UpdateApplicationRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.functions.model.UpdateApplicationDetails> { diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/UpdateFunctionRequest.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/UpdateFunctionRequest.java index af9bb02e7c3..6e6f124c4db 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/UpdateFunctionRequest.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/UpdateFunctionRequest.java @@ -10,7 +10,7 @@ * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/functions/UpdateFunctionExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use UpdateFunctionRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class UpdateFunctionRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.functions.model.UpdateFunctionDetails> { diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedDatabaseResponse.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/CancelWorkRequestResponse.java similarity index 60% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedDatabaseResponse.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/responses/CancelWorkRequestResponse.java index e9e7d7ddeb9..0e96699f58d 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedDatabaseResponse.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/CancelWorkRequestResponse.java @@ -2,28 +2,12 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.functions.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; - } +import com.oracle.bmc.functions.model.*; +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +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. @@ -40,25 +24,17 @@ public String getOpcRequestId() { return opcRequestId; } - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcWorkRequestId", - "opcRequestId" - }) - private PatchDistributedDatabaseResponse( + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private CancelWorkRequestResponse( 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> { + implements com.oracle.bmc.responses.BmcResponse.Builder { private int __httpStatusCode__; @Override @@ -75,24 +51,6 @@ public Builder headers(java.util.Map> 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. @@ -117,10 +75,9 @@ public Builder opcRequestId(String opcRequestId) { * @return this builder instance */ @Override - public Builder copy(PatchDistributedDatabaseResponse o) { + public Builder copy(CancelWorkRequestResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); - opcWorkRequestId(o.getOpcWorkRequestId()); opcRequestId(o.getOpcRequestId()); return this; @@ -132,9 +89,8 @@ public Builder copy(PatchDistributedDatabaseResponse o) { * @return the response object */ @Override - public PatchDistributedDatabaseResponse build() { - return new PatchDistributedDatabaseResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + public CancelWorkRequestResponse build() { + return new CancelWorkRequestResponse(__httpStatusCode__, headers, opcRequestId); } } @@ -152,7 +108,6 @@ 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(); @@ -163,23 +118,18 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof PatchDistributedDatabaseResponse)) { + if (!(o instanceof CancelWorkRequestResponse)) { 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); + 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.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; } diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ChangeApplicationCompartmentResponse.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ChangeApplicationCompartmentResponse.java index 6f1839eea09..e48731c928a 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ChangeApplicationCompartmentResponse.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ChangeApplicationCompartmentResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.functions.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class ChangeApplicationCompartmentResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a @@ -24,13 +24,38 @@ public String getOpcRequestId() { return opcRequestId; } - @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + /** + * 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; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) private ChangeApplicationCompartmentResponse( int __httpStatusCode__, java.util.Map> headers, - String opcRequestId) { + String opcRequestId, + String opcWorkRequestId) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; } public static class Builder @@ -70,6 +95,26 @@ public Builder opcRequestId(String opcRequestId) { 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; + } + /** * Copy method to populate the builder with values from the given instance. * @@ -80,6 +125,7 @@ public Builder copy(ChangeApplicationCompartmentResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); return this; } @@ -92,7 +138,7 @@ public Builder copy(ChangeApplicationCompartmentResponse o) { @Override public ChangeApplicationCompartmentResponse build() { return new ChangeApplicationCompartmentResponse( - __httpStatusCode__, headers, opcRequestId); + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); } } @@ -111,6 +157,7 @@ public String toString() { 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(); } @@ -125,7 +172,9 @@ public boolean equals(Object o) { } ChangeApplicationCompartmentResponse other = (ChangeApplicationCompartmentResponse) o; - return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); } @Override @@ -133,6 +182,9 @@ 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-functions/src/main/java/com/oracle/bmc/functions/responses/CreateApplicationResponse.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/CreateApplicationResponse.java index a400bcbbe2c..fbff9ad18c8 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/CreateApplicationResponse.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/CreateApplicationResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.functions.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class CreateApplicationResponse extends com.oracle.bmc.responses.BmcResponse { /** * For optimistic concurrency control. Add this value to the {@code if-match} parameter in a PUT @@ -42,6 +42,24 @@ public String getOpcRequestId() { return opcRequestId; } + /** + * 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; + } + /** The returned {@code Application} instance. */ private com.oracle.bmc.functions.model.Application application; @@ -59,6 +77,7 @@ public com.oracle.bmc.functions.model.Application getApplication() { "headers", "etag", "opcRequestId", + "opcWorkRequestId", "application" }) private CreateApplicationResponse( @@ -66,10 +85,12 @@ private CreateApplicationResponse( java.util.Map> headers, String etag, String opcRequestId, + String opcWorkRequestId, com.oracle.bmc.functions.model.Application application) { super(__httpStatusCode__, headers); this.etag = etag; this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; this.application = application; } @@ -129,6 +150,26 @@ public Builder opcRequestId(String opcRequestId) { 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; + } + /** The returned {@code Application} instance. */ private com.oracle.bmc.functions.model.Application application; @@ -154,6 +195,7 @@ public Builder copy(CreateApplicationResponse o) { headers(o.getHeaders()); etag(o.getEtag()); opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); application(o.getApplication()); return this; @@ -167,7 +209,7 @@ public Builder copy(CreateApplicationResponse o) { @Override public CreateApplicationResponse build() { return new CreateApplicationResponse( - __httpStatusCode__, headers, etag, opcRequestId, application); + __httpStatusCode__, headers, etag, opcRequestId, opcWorkRequestId, application); } } @@ -187,6 +229,7 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",etag=").append(String.valueOf(etag)); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); sb.append(",application=").append(String.valueOf(application)); sb.append(")"); return sb.toString(); @@ -205,6 +248,7 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.etag, other.etag) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) && java.util.Objects.equals(this.application, other.application); } @@ -214,6 +258,9 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); result = (result * PRIME) + (this.application == null ? 43 : this.application.hashCode()); return result; } diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/CreateFunctionResponse.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/CreateFunctionResponse.java index 29216a21d75..5446e2f0b2a 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/CreateFunctionResponse.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/CreateFunctionResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.functions.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class CreateFunctionResponse extends com.oracle.bmc.responses.BmcResponse { /** * For optimistic concurrency control. Add this value to the {@code if-match} parameter in a PUT @@ -42,6 +42,24 @@ public String getOpcRequestId() { return opcRequestId; } + /** + * 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; + } + /** The returned {@code Function} instance. */ private com.oracle.bmc.functions.model.Function function; @@ -59,6 +77,7 @@ public com.oracle.bmc.functions.model.Function getFunction() { "headers", "etag", "opcRequestId", + "opcWorkRequestId", "function" }) private CreateFunctionResponse( @@ -66,10 +85,12 @@ private CreateFunctionResponse( java.util.Map> headers, String etag, String opcRequestId, + String opcWorkRequestId, com.oracle.bmc.functions.model.Function function) { super(__httpStatusCode__, headers); this.etag = etag; this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; this.function = function; } @@ -129,6 +150,26 @@ public Builder opcRequestId(String opcRequestId) { 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; + } + /** The returned {@code Function} instance. */ private com.oracle.bmc.functions.model.Function function; @@ -154,6 +195,7 @@ public Builder copy(CreateFunctionResponse o) { headers(o.getHeaders()); etag(o.getEtag()); opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); function(o.getFunction()); return this; @@ -167,7 +209,7 @@ public Builder copy(CreateFunctionResponse o) { @Override public CreateFunctionResponse build() { return new CreateFunctionResponse( - __httpStatusCode__, headers, etag, opcRequestId, function); + __httpStatusCode__, headers, etag, opcRequestId, opcWorkRequestId, function); } } @@ -187,6 +229,7 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",etag=").append(String.valueOf(etag)); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); sb.append(",function=").append(String.valueOf(function)); sb.append(")"); return sb.toString(); @@ -205,6 +248,7 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.etag, other.etag) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) && java.util.Objects.equals(this.function, other.function); } @@ -214,6 +258,9 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); result = (result * PRIME) + (this.function == null ? 43 : this.function.hashCode()); return result; } diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/DeleteApplicationResponse.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/DeleteApplicationResponse.java index 2b1ddf2d022..92c86a5bbba 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/DeleteApplicationResponse.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/DeleteApplicationResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.functions.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class DeleteApplicationResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a @@ -24,13 +24,38 @@ public String getOpcRequestId() { return opcRequestId; } - @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + /** + * 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; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) private DeleteApplicationResponse( int __httpStatusCode__, java.util.Map> headers, - String opcRequestId) { + String opcRequestId, + String opcWorkRequestId) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; } public static class Builder @@ -69,6 +94,26 @@ public Builder opcRequestId(String opcRequestId) { 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; + } + /** * Copy method to populate the builder with values from the given instance. * @@ -79,6 +124,7 @@ public Builder copy(DeleteApplicationResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); return this; } @@ -90,7 +136,8 @@ public Builder copy(DeleteApplicationResponse o) { */ @Override public DeleteApplicationResponse build() { - return new DeleteApplicationResponse(__httpStatusCode__, headers, opcRequestId); + return new DeleteApplicationResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); } } @@ -109,6 +156,7 @@ public String toString() { 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(); } @@ -123,7 +171,9 @@ public boolean equals(Object o) { } DeleteApplicationResponse other = (DeleteApplicationResponse) o; - return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); } @Override @@ -131,6 +181,9 @@ 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-functions/src/main/java/com/oracle/bmc/functions/responses/DeleteFunctionResponse.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/DeleteFunctionResponse.java index 57b5da283d8..589417b5b94 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/DeleteFunctionResponse.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/DeleteFunctionResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.functions.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class DeleteFunctionResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a @@ -24,13 +24,38 @@ public String getOpcRequestId() { return opcRequestId; } - @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + /** + * 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; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) private DeleteFunctionResponse( int __httpStatusCode__, java.util.Map> headers, - String opcRequestId) { + String opcRequestId, + String opcWorkRequestId) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; } public static class Builder @@ -69,6 +94,26 @@ public Builder opcRequestId(String opcRequestId) { 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; + } + /** * Copy method to populate the builder with values from the given instance. * @@ -79,6 +124,7 @@ public Builder copy(DeleteFunctionResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); return this; } @@ -90,7 +136,8 @@ public Builder copy(DeleteFunctionResponse o) { */ @Override public DeleteFunctionResponse build() { - return new DeleteFunctionResponse(__httpStatusCode__, headers, opcRequestId); + return new DeleteFunctionResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); } } @@ -109,6 +156,7 @@ public String toString() { 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(); } @@ -123,7 +171,9 @@ public boolean equals(Object o) { } DeleteFunctionResponse other = (DeleteFunctionResponse) o; - return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); } @Override @@ -131,6 +181,9 @@ 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-functions/src/main/java/com/oracle/bmc/functions/responses/GetApplicationResponse.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetApplicationResponse.java index 4fe2f98a0e5..606b1cbac9b 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetApplicationResponse.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetApplicationResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.functions.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class GetApplicationResponse extends com.oracle.bmc.responses.BmcResponse { /** * For optimistic concurrency control. Add this value to the {@code if-match} parameter in a PUT diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetFunctionResponse.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetFunctionResponse.java index eaa3bf4c499..c3fede4e34d 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetFunctionResponse.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetFunctionResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.functions.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class GetFunctionResponse extends com.oracle.bmc.responses.BmcResponse { /** * For optimistic concurrency control. Add this value to the {@code if-match} parameter in a PUT diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetFunctionsRuntimeResponse.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetFunctionsRuntimeResponse.java new file mode 100644 index 00000000000..d72f8eaa61e --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetFunctionsRuntimeResponse.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.functions.responses; + +import com.oracle.bmc.functions.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class GetFunctionsRuntimeResponse 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 FunctionsRuntime} instance. */ + private com.oracle.bmc.functions.model.FunctionsRuntime functionsRuntime; + + /** + * The returned {@code FunctionsRuntime} instance. + * + * @return the value + */ + public com.oracle.bmc.functions.model.FunctionsRuntime getFunctionsRuntime() { + return functionsRuntime; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "functionsRuntime" + }) + private GetFunctionsRuntimeResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.functions.model.FunctionsRuntime functionsRuntime) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.functionsRuntime = functionsRuntime; + } + + 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 FunctionsRuntime} instance. */ + private com.oracle.bmc.functions.model.FunctionsRuntime functionsRuntime; + + /** + * The returned {@code FunctionsRuntime} instance. + * + * @param functionsRuntime the value to set + * @return this builder + */ + public Builder functionsRuntime( + com.oracle.bmc.functions.model.FunctionsRuntime functionsRuntime) { + this.functionsRuntime = functionsRuntime; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetFunctionsRuntimeResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + functionsRuntime(o.getFunctionsRuntime()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetFunctionsRuntimeResponse build() { + return new GetFunctionsRuntimeResponse( + __httpStatusCode__, headers, etag, opcRequestId, functionsRuntime); + } + } + + /** + * 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(",functionsRuntime=").append(String.valueOf(functionsRuntime)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetFunctionsRuntimeResponse)) { + return false; + } + + GetFunctionsRuntimeResponse other = (GetFunctionsRuntimeResponse) 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.functionsRuntime, other.functionsRuntime); + } + + @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.functionsRuntime == null ? 43 : this.functionsRuntime.hashCode()); + return result; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetFunctionsRuntimeVersionResponse.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetFunctionsRuntimeVersionResponse.java new file mode 100644 index 00000000000..fe5c7154ae9 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetFunctionsRuntimeVersionResponse.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.functions.responses; + +import com.oracle.bmc.functions.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class GetFunctionsRuntimeVersionResponse 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 FunctionsRuntimeVersion} instance. */ + private com.oracle.bmc.functions.model.FunctionsRuntimeVersion functionsRuntimeVersion; + + /** + * The returned {@code FunctionsRuntimeVersion} instance. + * + * @return the value + */ + public com.oracle.bmc.functions.model.FunctionsRuntimeVersion getFunctionsRuntimeVersion() { + return functionsRuntimeVersion; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "functionsRuntimeVersion" + }) + private GetFunctionsRuntimeVersionResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.functions.model.FunctionsRuntimeVersion functionsRuntimeVersion) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.functionsRuntimeVersion = functionsRuntimeVersion; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetFunctionsRuntimeVersionResponse> { + 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 FunctionsRuntimeVersion} instance. */ + private com.oracle.bmc.functions.model.FunctionsRuntimeVersion functionsRuntimeVersion; + + /** + * The returned {@code FunctionsRuntimeVersion} instance. + * + * @param functionsRuntimeVersion the value to set + * @return this builder + */ + public Builder functionsRuntimeVersion( + com.oracle.bmc.functions.model.FunctionsRuntimeVersion functionsRuntimeVersion) { + this.functionsRuntimeVersion = functionsRuntimeVersion; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetFunctionsRuntimeVersionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + functionsRuntimeVersion(o.getFunctionsRuntimeVersion()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetFunctionsRuntimeVersionResponse build() { + return new GetFunctionsRuntimeVersionResponse( + __httpStatusCode__, headers, etag, opcRequestId, functionsRuntimeVersion); + } + } + + /** + * 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(",functionsRuntimeVersion=").append(String.valueOf(functionsRuntimeVersion)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetFunctionsRuntimeVersionResponse)) { + return false; + } + + GetFunctionsRuntimeVersionResponse other = (GetFunctionsRuntimeVersionResponse) 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.functionsRuntimeVersion, other.functionsRuntimeVersion); + } + + @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.functionsRuntimeVersion == null + ? 43 + : this.functionsRuntimeVersion.hashCode()); + return result; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetPbfListingResponse.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetPbfListingResponse.java index 17859871615..c8b7830e98e 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetPbfListingResponse.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetPbfListingResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.functions.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class GetPbfListingResponse extends com.oracle.bmc.responses.BmcResponse { /** For optimistic concurrency control. See {@code if-match}. */ private String etag; diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetPbfListingVersionResponse.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetPbfListingVersionResponse.java index 9af8c5adb8d..b403c4079ec 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetPbfListingVersionResponse.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetPbfListingVersionResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.functions.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class GetPbfListingVersionResponse extends com.oracle.bmc.responses.BmcResponse { /** For optimistic concurrency control. See {@code if-match}. */ private String etag; diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetWorkRequestResponse.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetWorkRequestResponse.java similarity index 81% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetWorkRequestResponse.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetWorkRequestResponse.java index 5c6e606df98..35dc50dd114 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetWorkRequestResponse.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetWorkRequestResponse.java @@ -2,12 +2,24 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.functions.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.functions.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") 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. @@ -41,20 +53,21 @@ public Integer getRetryAfter() { } /** The returned {@code WorkRequest} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.WorkRequest workRequest; + private com.oracle.bmc.functions.model.WorkRequest workRequest; /** * The returned {@code WorkRequest} instance. * * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.WorkRequest getWorkRequest() { + public com.oracle.bmc.functions.model.WorkRequest getWorkRequest() { return workRequest; } @java.beans.ConstructorProperties({ "__httpStatusCode__", "headers", + "etag", "opcRequestId", "retryAfter", "workRequest" @@ -62,10 +75,12 @@ public com.oracle.bmc.distributeddatabasev26.model.WorkRequest getWorkRequest() private GetWorkRequestResponse( int __httpStatusCode__, java.util.Map> headers, + String etag, String opcRequestId, Integer retryAfter, - com.oracle.bmc.distributeddatabasev26.model.WorkRequest workRequest) { + com.oracle.bmc.functions.model.WorkRequest workRequest) { super(__httpStatusCode__, headers); + this.etag = etag; this.opcRequestId = opcRequestId; this.retryAfter = retryAfter; this.workRequest = workRequest; @@ -89,6 +104,20 @@ public Builder headers(java.util.Map> headers) { return this; } + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a * particular request, please provide the request ID. @@ -126,7 +155,7 @@ public Builder retryAfter(Integer retryAfter) { } /** The returned {@code WorkRequest} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.WorkRequest workRequest; + private com.oracle.bmc.functions.model.WorkRequest workRequest; /** * The returned {@code WorkRequest} instance. @@ -134,8 +163,7 @@ public Builder retryAfter(Integer retryAfter) { * @param workRequest the value to set * @return this builder */ - public Builder workRequest( - com.oracle.bmc.distributeddatabasev26.model.WorkRequest workRequest) { + public Builder workRequest(com.oracle.bmc.functions.model.WorkRequest workRequest) { this.workRequest = workRequest; return this; } @@ -149,6 +177,7 @@ public Builder workRequest( public Builder copy(GetWorkRequestResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); + etag(o.getEtag()); opcRequestId(o.getOpcRequestId()); retryAfter(o.getRetryAfter()); workRequest(o.getWorkRequest()); @@ -164,7 +193,7 @@ public Builder copy(GetWorkRequestResponse o) { @Override public GetWorkRequestResponse build() { return new GetWorkRequestResponse( - __httpStatusCode__, headers, opcRequestId, retryAfter, workRequest); + __httpStatusCode__, headers, etag, opcRequestId, retryAfter, workRequest); } } @@ -182,6 +211,7 @@ 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)); @@ -200,6 +230,7 @@ public boolean equals(Object o) { 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); @@ -209,6 +240,7 @@ public boolean equals(Object o) { 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()); diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/InvokeFunctionResponse.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/InvokeFunctionResponse.java index 040671bac4d..f9ffac3f394 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/InvokeFunctionResponse.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/InvokeFunctionResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.functions.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class InvokeFunctionResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListApplicationsResponse.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListApplicationsResponse.java index f6bffce00b5..0c67138506d 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListApplicationsResponse.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListApplicationsResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.functions.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class ListApplicationsResponse extends com.oracle.bmc.responses.BmcResponse { /** * For list pagination. When this header appears in the response, additional pages of results diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListFunctionsResponse.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListFunctionsResponse.java index fd12b809609..23833caa6ab 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListFunctionsResponse.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListFunctionsResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.functions.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class ListFunctionsResponse extends com.oracle.bmc.responses.BmcResponse { /** * For list pagination. When this header appears in the response, additional pages of results diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListFunctionsRuntimeVersionsResponse.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListFunctionsRuntimeVersionsResponse.java new file mode 100644 index 00000000000..720ba172d17 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListFunctionsRuntimeVersionsResponse.java @@ -0,0 +1,238 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.functions.responses; + +import com.oracle.bmc.functions.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class ListFunctionsRuntimeVersionsResponse 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 FunctionsRuntimeVersionCollection} instance. */ + private com.oracle.bmc.functions.model.FunctionsRuntimeVersionCollection + functionsRuntimeVersionCollection; + + /** + * The returned {@code FunctionsRuntimeVersionCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.functions.model.FunctionsRuntimeVersionCollection + getFunctionsRuntimeVersionCollection() { + return functionsRuntimeVersionCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "functionsRuntimeVersionCollection" + }) + private ListFunctionsRuntimeVersionsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.functions.model.FunctionsRuntimeVersionCollection + functionsRuntimeVersionCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.functionsRuntimeVersionCollection = functionsRuntimeVersionCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListFunctionsRuntimeVersionsResponse> { + 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 FunctionsRuntimeVersionCollection} instance. */ + private com.oracle.bmc.functions.model.FunctionsRuntimeVersionCollection + functionsRuntimeVersionCollection; + + /** + * The returned {@code FunctionsRuntimeVersionCollection} instance. + * + * @param functionsRuntimeVersionCollection the value to set + * @return this builder + */ + public Builder functionsRuntimeVersionCollection( + com.oracle.bmc.functions.model.FunctionsRuntimeVersionCollection + functionsRuntimeVersionCollection) { + this.functionsRuntimeVersionCollection = functionsRuntimeVersionCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListFunctionsRuntimeVersionsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + functionsRuntimeVersionCollection(o.getFunctionsRuntimeVersionCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListFunctionsRuntimeVersionsResponse build() { + return new ListFunctionsRuntimeVersionsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + functionsRuntimeVersionCollection); + } + } + + /** + * 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(",functionsRuntimeVersionCollection=") + .append(String.valueOf(functionsRuntimeVersionCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListFunctionsRuntimeVersionsResponse)) { + return false; + } + + ListFunctionsRuntimeVersionsResponse other = (ListFunctionsRuntimeVersionsResponse) 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.functionsRuntimeVersionCollection, + other.functionsRuntimeVersionCollection); + } + + @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.functionsRuntimeVersionCollection == null + ? 43 + : this.functionsRuntimeVersionCollection.hashCode()); + return result; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListFunctionsRuntimesResponse.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListFunctionsRuntimesResponse.java new file mode 100644 index 00000000000..c95d9f8b20b --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListFunctionsRuntimesResponse.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.functions.responses; + +import com.oracle.bmc.functions.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class ListFunctionsRuntimesResponse 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 FunctionsRuntimeCollection} instance. */ + private com.oracle.bmc.functions.model.FunctionsRuntimeCollection functionsRuntimeCollection; + + /** + * The returned {@code FunctionsRuntimeCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.functions.model.FunctionsRuntimeCollection + getFunctionsRuntimeCollection() { + return functionsRuntimeCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "functionsRuntimeCollection" + }) + private ListFunctionsRuntimesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.functions.model.FunctionsRuntimeCollection functionsRuntimeCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.functionsRuntimeCollection = functionsRuntimeCollection; + } + + 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 FunctionsRuntimeCollection} instance. */ + private com.oracle.bmc.functions.model.FunctionsRuntimeCollection + functionsRuntimeCollection; + + /** + * The returned {@code FunctionsRuntimeCollection} instance. + * + * @param functionsRuntimeCollection the value to set + * @return this builder + */ + public Builder functionsRuntimeCollection( + com.oracle.bmc.functions.model.FunctionsRuntimeCollection + functionsRuntimeCollection) { + this.functionsRuntimeCollection = functionsRuntimeCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListFunctionsRuntimesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + functionsRuntimeCollection(o.getFunctionsRuntimeCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListFunctionsRuntimesResponse build() { + return new ListFunctionsRuntimesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + functionsRuntimeCollection); + } + } + + /** + * 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(",functionsRuntimeCollection=") + .append(String.valueOf(functionsRuntimeCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListFunctionsRuntimesResponse)) { + return false; + } + + ListFunctionsRuntimesResponse other = (ListFunctionsRuntimesResponse) 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.functionsRuntimeCollection, other.functionsRuntimeCollection); + } + + @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.functionsRuntimeCollection == null + ? 43 + : this.functionsRuntimeCollection.hashCode()); + return result; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListPbfListingVersionsResponse.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListPbfListingVersionsResponse.java index 802941535d6..7dddaf01e62 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListPbfListingVersionsResponse.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListPbfListingVersionsResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.functions.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class ListPbfListingVersionsResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListPbfListingsResponse.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListPbfListingsResponse.java index fea207ff27c..65ca97dd16b 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListPbfListingsResponse.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListPbfListingsResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.functions.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class ListPbfListingsResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListTriggersResponse.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListTriggersResponse.java index 58005f3bb28..40947e6acdf 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListTriggersResponse.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListTriggersResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.functions.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class ListTriggersResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestErrorsResponse.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListWorkRequestErrorsResponse.java similarity index 92% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestErrorsResponse.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListWorkRequestErrorsResponse.java index 6377f32236b..ae1826e1209 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestErrorsResponse.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListWorkRequestErrorsResponse.java @@ -2,56 +2,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.distributeddatabasev26.responses; +package com.oracle.bmc.functions.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.functions.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") 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. + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. */ - private String opcNextPage; + private String 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. + * 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 getOpcNextPage() { - return opcNextPage; + public String getOpcRequestId() { + return opcRequestId; } /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * 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 opcRequestId; + private String opcNextPage; /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * 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 getOpcRequestId() { - return opcRequestId; + public String getOpcNextPage() { + return opcNextPage; } /** The returned {@code WorkRequestErrorCollection} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.WorkRequestErrorCollection - workRequestErrorCollection; + private com.oracle.bmc.functions.model.WorkRequestErrorCollection workRequestErrorCollection; /** * The returned {@code WorkRequestErrorCollection} instance. * * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.WorkRequestErrorCollection + public com.oracle.bmc.functions.model.WorkRequestErrorCollection getWorkRequestErrorCollection() { return workRequestErrorCollection; } @@ -59,20 +58,19 @@ public String getOpcRequestId() { @java.beans.ConstructorProperties({ "__httpStatusCode__", "headers", - "opcNextPage", "opcRequestId", + "opcNextPage", "workRequestErrorCollection" }) private ListWorkRequestErrorsResponse( int __httpStatusCode__, java.util.Map> headers, - String opcNextPage, String opcRequestId, - com.oracle.bmc.distributeddatabasev26.model.WorkRequestErrorCollection - workRequestErrorCollection) { + String opcNextPage, + com.oracle.bmc.functions.model.WorkRequestErrorCollection workRequestErrorCollection) { super(__httpStatusCode__, headers); - this.opcNextPage = opcNextPage; this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; this.workRequestErrorCollection = workRequestErrorCollection; } @@ -95,45 +93,45 @@ public Builder headers(java.util.Map> headers) { } /** - * 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. + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. */ - private String opcNextPage; + private String 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. + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. * - * @param opcNextPage the value to set + * @param opcRequestId the value to set * @return this builder */ - public Builder opcNextPage(String opcNextPage) { - this.opcNextPage = opcNextPage; + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; return this; } /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * 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 opcRequestId; + private String opcNextPage; /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * 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 opcRequestId the value to set + * @param opcNextPage the value to set * @return this builder */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; return this; } /** The returned {@code WorkRequestErrorCollection} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.WorkRequestErrorCollection + private com.oracle.bmc.functions.model.WorkRequestErrorCollection workRequestErrorCollection; /** @@ -143,7 +141,7 @@ public Builder opcRequestId(String opcRequestId) { * @return this builder */ public Builder workRequestErrorCollection( - com.oracle.bmc.distributeddatabasev26.model.WorkRequestErrorCollection + com.oracle.bmc.functions.model.WorkRequestErrorCollection workRequestErrorCollection) { this.workRequestErrorCollection = workRequestErrorCollection; return this; @@ -158,8 +156,8 @@ public Builder workRequestErrorCollection( public Builder copy(ListWorkRequestErrorsResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); - opcNextPage(o.getOpcNextPage()); opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); workRequestErrorCollection(o.getWorkRequestErrorCollection()); return this; @@ -175,8 +173,8 @@ public ListWorkRequestErrorsResponse build() { return new ListWorkRequestErrorsResponse( __httpStatusCode__, headers, - opcNextPage, opcRequestId, + opcNextPage, workRequestErrorCollection); } } @@ -195,8 +193,8 @@ 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(",opcNextPage=").append(String.valueOf(opcNextPage)); sb.append(",workRequestErrorCollection=") .append(String.valueOf(workRequestErrorCollection)); sb.append(")"); @@ -214,8 +212,8 @@ public boolean equals(Object o) { 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.opcNextPage, other.opcNextPage) && java.util.Objects.equals( this.workRequestErrorCollection, other.workRequestErrorCollection); } @@ -224,8 +222,8 @@ public boolean equals(Object o) { 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.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); result = (result * PRIME) + (this.workRequestErrorCollection == null diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestLogsResponse.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListWorkRequestLogsResponse.java similarity index 93% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestLogsResponse.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListWorkRequestLogsResponse.java index 281969ce297..2dedf7d377c 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestLogsResponse.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListWorkRequestLogsResponse.java @@ -2,48 +2,48 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.functions.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.functions.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") 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. + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. */ - private String opcNextPage; + private String 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. + * 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 getOpcNextPage() { - return opcNextPage; + public String getOpcRequestId() { + return opcRequestId; } /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * 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 opcRequestId; + private String opcNextPage; /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * 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 getOpcRequestId() { - return opcRequestId; + public String getOpcNextPage() { + return opcNextPage; } /** The returned {@code WorkRequestLogEntryCollection} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntryCollection + private com.oracle.bmc.functions.model.WorkRequestLogEntryCollection workRequestLogEntryCollection; /** @@ -51,7 +51,7 @@ public String getOpcRequestId() { * * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntryCollection + public com.oracle.bmc.functions.model.WorkRequestLogEntryCollection getWorkRequestLogEntryCollection() { return workRequestLogEntryCollection; } @@ -59,20 +59,20 @@ public String getOpcRequestId() { @java.beans.ConstructorProperties({ "__httpStatusCode__", "headers", - "opcNextPage", "opcRequestId", + "opcNextPage", "workRequestLogEntryCollection" }) private ListWorkRequestLogsResponse( int __httpStatusCode__, java.util.Map> headers, - String opcNextPage, String opcRequestId, - com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntryCollection + String opcNextPage, + com.oracle.bmc.functions.model.WorkRequestLogEntryCollection workRequestLogEntryCollection) { super(__httpStatusCode__, headers); - this.opcNextPage = opcNextPage; this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; this.workRequestLogEntryCollection = workRequestLogEntryCollection; } @@ -95,45 +95,45 @@ public Builder headers(java.util.Map> headers) { } /** - * 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. + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. */ - private String opcNextPage; + private String 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. + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. * - * @param opcNextPage the value to set + * @param opcRequestId the value to set * @return this builder */ - public Builder opcNextPage(String opcNextPage) { - this.opcNextPage = opcNextPage; + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; return this; } /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * 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 opcRequestId; + private String opcNextPage; /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * 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 opcRequestId the value to set + * @param opcNextPage the value to set * @return this builder */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; return this; } /** The returned {@code WorkRequestLogEntryCollection} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntryCollection + private com.oracle.bmc.functions.model.WorkRequestLogEntryCollection workRequestLogEntryCollection; /** @@ -143,7 +143,7 @@ public Builder opcRequestId(String opcRequestId) { * @return this builder */ public Builder workRequestLogEntryCollection( - com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntryCollection + com.oracle.bmc.functions.model.WorkRequestLogEntryCollection workRequestLogEntryCollection) { this.workRequestLogEntryCollection = workRequestLogEntryCollection; return this; @@ -158,8 +158,8 @@ public Builder workRequestLogEntryCollection( public Builder copy(ListWorkRequestLogsResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); - opcNextPage(o.getOpcNextPage()); opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); workRequestLogEntryCollection(o.getWorkRequestLogEntryCollection()); return this; @@ -175,8 +175,8 @@ public ListWorkRequestLogsResponse build() { return new ListWorkRequestLogsResponse( __httpStatusCode__, headers, - opcNextPage, opcRequestId, + opcNextPage, workRequestLogEntryCollection); } } @@ -195,8 +195,8 @@ 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(",opcNextPage=").append(String.valueOf(opcNextPage)); sb.append(",workRequestLogEntryCollection=") .append(String.valueOf(workRequestLogEntryCollection)); sb.append(")"); @@ -214,8 +214,8 @@ public boolean equals(Object o) { 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.opcNextPage, other.opcNextPage) && java.util.Objects.equals( this.workRequestLogEntryCollection, other.workRequestLogEntryCollection); } @@ -224,8 +224,8 @@ public boolean equals(Object o) { 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.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); result = (result * PRIME) + (this.workRequestLogEntryCollection == null diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestsResponse.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListWorkRequestsResponse.java similarity index 93% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestsResponse.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListWorkRequestsResponse.java index 47de372e4cb..5307cef90c6 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestsResponse.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListWorkRequestsResponse.java @@ -2,11 +2,11 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.functions.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.functions.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class ListWorkRequestsResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a @@ -43,7 +43,7 @@ public String getOpcNextPage() { } /** The returned {@code WorkRequestSummaryCollection} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummaryCollection + private com.oracle.bmc.functions.model.WorkRequestSummaryCollection workRequestSummaryCollection; /** @@ -51,7 +51,7 @@ public String getOpcNextPage() { * * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummaryCollection + public com.oracle.bmc.functions.model.WorkRequestSummaryCollection getWorkRequestSummaryCollection() { return workRequestSummaryCollection; } @@ -68,7 +68,7 @@ private ListWorkRequestsResponse( java.util.Map> headers, String opcRequestId, String opcNextPage, - com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummaryCollection + com.oracle.bmc.functions.model.WorkRequestSummaryCollection workRequestSummaryCollection) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; @@ -133,7 +133,7 @@ public Builder opcNextPage(String opcNextPage) { } /** The returned {@code WorkRequestSummaryCollection} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummaryCollection + private com.oracle.bmc.functions.model.WorkRequestSummaryCollection workRequestSummaryCollection; /** @@ -143,7 +143,7 @@ public Builder opcNextPage(String opcNextPage) { * @return this builder */ public Builder workRequestSummaryCollection( - com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummaryCollection + com.oracle.bmc.functions.model.WorkRequestSummaryCollection workRequestSummaryCollection) { this.workRequestSummaryCollection = workRequestSummaryCollection; return this; diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/UpdateApplicationResponse.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/UpdateApplicationResponse.java index c0cfb241592..ddf1b16e758 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/UpdateApplicationResponse.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/UpdateApplicationResponse.java @@ -6,26 +6,8 @@ import com.oracle.bmc.functions.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class UpdateApplicationResponse extends com.oracle.bmc.responses.BmcResponse { - /** - * For optimistic concurrency control. Add this value to the {@code if-match} parameter in a PUT - * or DELETE operation. The resource will be updated only if the value you provide matches the - * {@code etag} on the resource. - */ - private String etag; - - /** - * For optimistic concurrency control. Add this value to the {@code if-match} parameter in a PUT - * or DELETE operation. The resource will be updated only if the value you provide matches the - * {@code etag} on the resource. - * - * @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. @@ -42,35 +24,38 @@ public String getOpcRequestId() { return opcRequestId; } - /** The returned {@code Application} instance. */ - private com.oracle.bmc.functions.model.Application application; + /** + * 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 returned {@code Application} instance. + * 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 com.oracle.bmc.functions.model.Application getApplication() { - return application; + public String getOpcWorkRequestId() { + return opcWorkRequestId; } @java.beans.ConstructorProperties({ "__httpStatusCode__", "headers", - "etag", "opcRequestId", - "application" + "opcWorkRequestId" }) private UpdateApplicationResponse( int __httpStatusCode__, java.util.Map> headers, - String etag, String opcRequestId, - com.oracle.bmc.functions.model.Application application) { + String opcWorkRequestId) { super(__httpStatusCode__, headers); - this.etag = etag; this.opcRequestId = opcRequestId; - this.application = application; + this.opcWorkRequestId = opcWorkRequestId; } public static class Builder @@ -91,26 +76,6 @@ public Builder headers(java.util.Map> headers) { return this; } - /** - * For optimistic concurrency control. Add this value to the {@code if-match} parameter in a - * PUT or DELETE operation. The resource will be updated only if the value you provide - * matches the {@code etag} on the resource. - */ - private String etag; - - /** - * For optimistic concurrency control. Add this value to the {@code if-match} parameter in a - * PUT or DELETE operation. The resource will be updated only if the value you provide - * matches the {@code etag} on the resource. - * - * @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. @@ -129,17 +94,23 @@ public Builder opcRequestId(String opcRequestId) { return this; } - /** The returned {@code Application} instance. */ - private com.oracle.bmc.functions.model.Application application; + /** + * 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 returned {@code Application} instance. + * 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 application the value to set + * @param opcWorkRequestId the value to set * @return this builder */ - public Builder application(com.oracle.bmc.functions.model.Application application) { - this.application = application; + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; return this; } @@ -152,9 +123,8 @@ public Builder application(com.oracle.bmc.functions.model.Application applicatio public Builder copy(UpdateApplicationResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); - etag(o.getEtag()); opcRequestId(o.getOpcRequestId()); - application(o.getApplication()); + opcWorkRequestId(o.getOpcWorkRequestId()); return this; } @@ -167,7 +137,7 @@ public Builder copy(UpdateApplicationResponse o) { @Override public UpdateApplicationResponse build() { return new UpdateApplicationResponse( - __httpStatusCode__, headers, etag, opcRequestId, application); + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); } } @@ -185,9 +155,8 @@ 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(",application=").append(String.valueOf(application)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); sb.append(")"); return sb.toString(); } @@ -203,18 +172,18 @@ public boolean equals(Object o) { UpdateApplicationResponse other = (UpdateApplicationResponse) 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.application, other.application); + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); } @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.application == null ? 43 : this.application.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); return result; } } diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/UpdateFunctionResponse.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/UpdateFunctionResponse.java index 73bf5444188..90fd92fabea 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/UpdateFunctionResponse.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/UpdateFunctionResponse.java @@ -6,26 +6,8 @@ import com.oracle.bmc.functions.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class UpdateFunctionResponse extends com.oracle.bmc.responses.BmcResponse { - /** - * For optimistic concurrency control. Add this value to the {@code if-match} parameter in a PUT - * or DELETE operation. The resource will be updated only if the value you provide matches the - * {@code etag} on the resource. - */ - private String etag; - - /** - * For optimistic concurrency control. Add this value to the {@code if-match} parameter in a PUT - * or DELETE operation. The resource will be updated only if the value you provide matches the - * {@code etag} on the resource. - * - * @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. @@ -42,35 +24,38 @@ public String getOpcRequestId() { return opcRequestId; } - /** The returned {@code Function} instance. */ - private com.oracle.bmc.functions.model.Function function; + /** + * 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 returned {@code Function} instance. + * 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 com.oracle.bmc.functions.model.Function getFunction() { - return function; + public String getOpcWorkRequestId() { + return opcWorkRequestId; } @java.beans.ConstructorProperties({ "__httpStatusCode__", "headers", - "etag", "opcRequestId", - "function" + "opcWorkRequestId" }) private UpdateFunctionResponse( int __httpStatusCode__, java.util.Map> headers, - String etag, String opcRequestId, - com.oracle.bmc.functions.model.Function function) { + String opcWorkRequestId) { super(__httpStatusCode__, headers); - this.etag = etag; this.opcRequestId = opcRequestId; - this.function = function; + this.opcWorkRequestId = opcWorkRequestId; } public static class Builder @@ -91,26 +76,6 @@ public Builder headers(java.util.Map> headers) { return this; } - /** - * For optimistic concurrency control. Add this value to the {@code if-match} parameter in a - * PUT or DELETE operation. The resource will be updated only if the value you provide - * matches the {@code etag} on the resource. - */ - private String etag; - - /** - * For optimistic concurrency control. Add this value to the {@code if-match} parameter in a - * PUT or DELETE operation. The resource will be updated only if the value you provide - * matches the {@code etag} on the resource. - * - * @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. @@ -129,17 +94,23 @@ public Builder opcRequestId(String opcRequestId) { return this; } - /** The returned {@code Function} instance. */ - private com.oracle.bmc.functions.model.Function function; + /** + * 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 returned {@code Function} instance. + * 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 function the value to set + * @param opcWorkRequestId the value to set * @return this builder */ - public Builder function(com.oracle.bmc.functions.model.Function function) { - this.function = function; + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; return this; } @@ -152,9 +123,8 @@ public Builder function(com.oracle.bmc.functions.model.Function function) { public Builder copy(UpdateFunctionResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); - etag(o.getEtag()); opcRequestId(o.getOpcRequestId()); - function(o.getFunction()); + opcWorkRequestId(o.getOpcWorkRequestId()); return this; } @@ -167,7 +137,7 @@ public Builder copy(UpdateFunctionResponse o) { @Override public UpdateFunctionResponse build() { return new UpdateFunctionResponse( - __httpStatusCode__, headers, etag, opcRequestId, function); + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); } } @@ -185,9 +155,8 @@ 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(",function=").append(String.valueOf(function)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); sb.append(")"); return sb.toString(); } @@ -203,18 +172,18 @@ public boolean equals(Object o) { UpdateFunctionResponse other = (UpdateFunctionResponse) 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.function, other.function); + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); } @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.function == null ? 43 : this.function.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); return result; } } diff --git a/bmc-functions/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-functions/reflect-config.json b/bmc-functions/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-functions/reflect-config.json index 9cca284ec65..fd2ff45ff54 100644 --- a/bmc-functions/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-functions/reflect-config.json +++ b/bmc-functions/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-functions/reflect-config.json @@ -1,4 +1,10 @@ [ + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.ActionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.functions.model.Application", @@ -79,6 +85,33 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.ArchiveFunctionSourceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.ArchiveFunctionSourceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.ArchiveSourceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.ArchiveSourceDetails$ArchiveSourceType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.functions.model.ChangeApplicationCompartmentDetails", @@ -121,6 +154,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.ContainerImageFunctionSourceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.ContainerImageFunctionSourceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.functions.model.CreateApplicationDetails", @@ -143,495 +190,876 @@ }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.CreateFunctionDetails", + "name": "com.oracle.bmc.functions.model.CreateArchiveFunctionSourceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.CreateFunctionDetails$Builder", + "name": "com.oracle.bmc.functions.model.CreateArchiveFunctionSourceDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.FailureDestinationDetails", + "name": "com.oracle.bmc.functions.model.CreateArchiveSourceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.FailureDestinationDetails$Kind", + "name": "com.oracle.bmc.functions.model.CreateArchiveSourceDetails$ArchiveSourceType", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.Function", + "name": "com.oracle.bmc.functions.model.CreateContainerImageFunctionSourceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.Function$Builder", + "name": "com.oracle.bmc.functions.model.CreateContainerImageFunctionSourceDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.Function$LifecycleState", + "name": "com.oracle.bmc.functions.model.CreateDirectArchiveSourceDetails", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.Function$Shape", + "name": "com.oracle.bmc.functions.model.CreateDirectArchiveSourceDetails$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.FunctionProvisionedConcurrencyConfig", + "name": "com.oracle.bmc.functions.model.CreateFunctionDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.FunctionProvisionedConcurrencyConfig$Strategy", + "name": "com.oracle.bmc.functions.model.CreateFunctionDetails$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.FunctionSourceDetails", + "name": "com.oracle.bmc.functions.model.CreateFunctionSourceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.FunctionSourceDetails$SourceType", + "name": "com.oracle.bmc.functions.model.CreateFunctionSourceDetails$SourceType", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.FunctionSummary", + "name": "com.oracle.bmc.functions.model.CreateFunctionUpdateRuntimeConfig", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.FunctionSummary$Builder", + "name": "com.oracle.bmc.functions.model.CreateFunctionUpdateRuntimeConfig$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.FunctionSummary$Shape", + "name": "com.oracle.bmc.functions.model.CreateManualRuntimeConfig", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.FunctionTraceConfig", + "name": "com.oracle.bmc.functions.model.CreateManualRuntimeConfig$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.CreateObjectStorageArchiveSourceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.FunctionTraceConfig$Builder", + "name": "com.oracle.bmc.functions.model.CreateObjectStorageArchiveSourceDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.ImagePolicyConfig", + "name": "com.oracle.bmc.functions.model.CreatePreBuiltFunctionSourceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.ImagePolicyConfig$Builder", + "name": "com.oracle.bmc.functions.model.CreatePreBuiltFunctionSourceDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.KeyDetails", + "name": "com.oracle.bmc.functions.model.CreateRuntimeConfig", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.KeyDetails$Builder", + "name": "com.oracle.bmc.functions.model.CreateRuntimeConfig$RuntimeConfigType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.DirectArchiveSourceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.DirectArchiveSourceDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.NoneFailureDestinationDetails", + "name": "com.oracle.bmc.functions.model.FailureDestinationDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.NoneFailureDestinationDetails$Builder", + "name": "com.oracle.bmc.functions.model.FailureDestinationDetails$Kind", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.Function", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.Function$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.NoneProvisionedConcurrencyConfig", + "name": "com.oracle.bmc.functions.model.Function$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.Function$Shape", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.FunctionProvisionedConcurrencyConfig", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.NoneProvisionedConcurrencyConfig$Builder", + "name": "com.oracle.bmc.functions.model.FunctionProvisionedConcurrencyConfig$Strategy", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.FunctionSourceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, - "allDeclaredConstructors": true + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.NoneSuccessDestinationDetails", + "name": "com.oracle.bmc.functions.model.FunctionSourceDetails$SourceType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.FunctionSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.NoneSuccessDestinationDetails$Builder", + "name": "com.oracle.bmc.functions.model.FunctionSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.NotificationFailureDestinationDetails", + "name": "com.oracle.bmc.functions.model.FunctionSummary$Shape", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.FunctionTraceConfig", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.NotificationFailureDestinationDetails$Builder", + "name": "com.oracle.bmc.functions.model.FunctionTraceConfig$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.NotificationSuccessDestinationDetails", + "name": "com.oracle.bmc.functions.model.FunctionUpdateRuntimeConfig", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.NotificationSuccessDestinationDetails$Builder", + "name": "com.oracle.bmc.functions.model.FunctionUpdateRuntimeConfig$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.PbfListing", + "name": "com.oracle.bmc.functions.model.FunctionsRuntime", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.PbfListing$Builder", + "name": "com.oracle.bmc.functions.model.FunctionsRuntime$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.PbfListing$LifecycleState", + "name": "com.oracle.bmc.functions.model.FunctionsRuntime$LifecycleState", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.PbfListingSummary", + "name": "com.oracle.bmc.functions.model.FunctionsRuntimeCollection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.PbfListingSummary$Builder", + "name": "com.oracle.bmc.functions.model.FunctionsRuntimeCollection$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.PbfListingVersion", + "name": "com.oracle.bmc.functions.model.FunctionsRuntimeSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.PbfListingVersion$Builder", + "name": "com.oracle.bmc.functions.model.FunctionsRuntimeSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.PbfListingVersion$LifecycleState", + "name": "com.oracle.bmc.functions.model.FunctionsRuntimeVersion", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.FunctionsRuntimeVersion$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.FunctionsRuntimeVersion$SupportedArchitectures", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.PbfListingVersionSummary", + "name": "com.oracle.bmc.functions.model.FunctionsRuntimeVersion$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.FunctionsRuntimeVersionCollection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.PbfListingVersionSummary$Builder", + "name": "com.oracle.bmc.functions.model.FunctionsRuntimeVersionCollection$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.PbfListingVersionsCollection", + "name": "com.oracle.bmc.functions.model.FunctionsRuntimeVersionSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.PbfListingVersionsCollection$Builder", + "name": "com.oracle.bmc.functions.model.FunctionsRuntimeVersionSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.PbfListingsCollection", + "name": "com.oracle.bmc.functions.model.FunctionsRuntimeVersionSummary$SupportedArchitectures", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.ImagePolicyConfig", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.PbfListingsCollection$Builder", + "name": "com.oracle.bmc.functions.model.ImagePolicyConfig$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.PolicyDetails", + "name": "com.oracle.bmc.functions.model.KeyDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.PolicyDetails$Builder", + "name": "com.oracle.bmc.functions.model.KeyDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.PreBuiltFunctionSourceDetails", + "name": "com.oracle.bmc.functions.model.ManualRuntimeConfig", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.PreBuiltFunctionSourceDetails$Builder", + "name": "com.oracle.bmc.functions.model.ManualRuntimeConfig$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.PublisherDetails", + "name": "com.oracle.bmc.functions.model.NoneFailureDestinationDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.PublisherDetails$Builder", + "name": "com.oracle.bmc.functions.model.NoneFailureDestinationDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.QueueFailureDestinationDetails", + "name": "com.oracle.bmc.functions.model.NoneProvisionedConcurrencyConfig", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.QueueFailureDestinationDetails$Builder", + "name": "com.oracle.bmc.functions.model.NoneProvisionedConcurrencyConfig$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.QueueSuccessDestinationDetails", + "name": "com.oracle.bmc.functions.model.NoneSuccessDestinationDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.QueueSuccessDestinationDetails$Builder", + "name": "com.oracle.bmc.functions.model.NoneSuccessDestinationDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.RequirementDetails", + "name": "com.oracle.bmc.functions.model.NotificationFailureDestinationDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.RequirementDetails$Builder", + "name": "com.oracle.bmc.functions.model.NotificationFailureDestinationDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.StreamFailureDestinationDetails", + "name": "com.oracle.bmc.functions.model.NotificationSuccessDestinationDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.StreamFailureDestinationDetails$Builder", + "name": "com.oracle.bmc.functions.model.NotificationSuccessDestinationDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.StreamSuccessDestinationDetails", + "name": "com.oracle.bmc.functions.model.ObjectStorageArchiveSourceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.StreamSuccessDestinationDetails$Builder", + "name": "com.oracle.bmc.functions.model.ObjectStorageArchiveSourceDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.SuccessDestinationDetails", + "name": "com.oracle.bmc.functions.model.OperationStatus", "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.SuccessDestinationDetails$Kind", + "name": "com.oracle.bmc.functions.model.OperationType", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.Trigger", + "name": "com.oracle.bmc.functions.model.PbfListing", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.Trigger$Builder", + "name": "com.oracle.bmc.functions.model.PbfListing$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.TriggerSummary", + "name": "com.oracle.bmc.functions.model.PbfListing$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.PbfListingSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.TriggerSummary$Builder", + "name": "com.oracle.bmc.functions.model.PbfListingSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.TriggersCollection", + "name": "com.oracle.bmc.functions.model.PbfListingVersion", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.TriggersCollection$Builder", + "name": "com.oracle.bmc.functions.model.PbfListingVersion$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.UpdateApplicationDetails", + "name": "com.oracle.bmc.functions.model.PbfListingVersion$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.PbfListingVersionSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.UpdateApplicationDetails$Builder", + "name": "com.oracle.bmc.functions.model.PbfListingVersionSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.functions.model.UpdateFunctionDetails", + "name": "com.oracle.bmc.functions.model.PbfListingVersionsCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.PbfListingVersionsCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.PbfListingsCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.PbfListingsCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.PolicyDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.PolicyDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.PreBuiltFunctionSourceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.PreBuiltFunctionSourceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.PublisherDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.PublisherDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.QueueFailureDestinationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.QueueFailureDestinationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.QueueSuccessDestinationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.QueueSuccessDestinationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.RequirementDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.RequirementDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.RuntimeConfig", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.RuntimeConfig$RuntimeConfigType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.StreamFailureDestinationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.StreamFailureDestinationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.StreamSuccessDestinationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.StreamSuccessDestinationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.SuccessDestinationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.SuccessDestinationDetails$Kind", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.Trigger", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.Trigger$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.TriggerSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.TriggerSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.TriggersCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.TriggersCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.UpdateApplicationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.UpdateApplicationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.UpdateArchiveFunctionSourceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.UpdateArchiveFunctionSourceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.UpdateArchiveSourceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.UpdateArchiveSourceDetails$ArchiveSourceType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.UpdateContainerImageFunctionSourceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.UpdateContainerImageFunctionSourceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.UpdateDirectArchiveSourceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.UpdateDirectArchiveSourceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.UpdateFunctionDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true @@ -642,5 +1070,191 @@ "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.UpdateFunctionSourceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.UpdateFunctionSourceDetails$SourceType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.UpdateFunctionUpdateRuntimeConfig", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.UpdateFunctionUpdateRuntimeConfig$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.UpdateManualRuntimeConfig", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.UpdateManualRuntimeConfig$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.UpdateObjectStorageArchiveSourceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.UpdateObjectStorageArchiveSourceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.UpdateRuntimeConfig", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.UpdateRuntimeConfig$RuntimeConfigType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.WorkRequest", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.WorkRequest$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.WorkRequestError", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.WorkRequestError$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.WorkRequestErrorCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.WorkRequestErrorCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.WorkRequestLogEntry", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.WorkRequestLogEntry$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.WorkRequestLogEntryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.WorkRequestLogEntryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.WorkRequestResource", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.WorkRequestResource$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.WorkRequestResourceMetadataKey", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.WorkRequestSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.WorkRequestSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.WorkRequestSummaryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.functions.model.WorkRequestSummaryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true } ] \ No newline at end of file diff --git a/bmc-functions/src/main/resources/com/oracle/bmc/functions/client.properties b/bmc-functions/src/main/resources/com/oracle/bmc/functions/client.properties index d467fb15065..fada1ad95e4 100644 --- a/bmc-functions/src/main/resources/com/oracle/bmc/functions/client.properties +++ b/bmc-functions/src/main/resources/com/oracle/bmc/functions/client.properties @@ -6,4 +6,4 @@ java.client.codegen.version = 2.170 java.minimum.client.codegen.version.from.client = 2.170 -# @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") \ No newline at end of file +# @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") \ No newline at end of file diff --git a/bmc-fusionapps/pom.xml b/bmc-fusionapps/pom.xml index 00be2cd7d0a..54813c5fdeb 100644 --- a/bmc-fusionapps/pom.xml +++ b/bmc-fusionapps/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-fusionapps @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-gdp/pom.xml b/bmc-gdp/pom.xml index 89625ef0201..d5450206c55 100644 --- a/bmc-gdp/pom.xml +++ b/bmc-gdp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-gdp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-generativeai/pom.xml b/bmc-generativeai/pom.xml index e33530a3da3..9ad33cf570f 100644 --- a/bmc-generativeai/pom.xml +++ b/bmc-generativeai/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-generativeai @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAi.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAi.java index 61e16adeed8..c371d51f68e 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAi.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAi.java @@ -309,6 +309,25 @@ ChangeImportedModelCompartmentResponse changeImportedModelCompartment( */ ChangeModelCompartmentResponse changeModelCompartment(ChangeModelCompartmentRequest request); + /** + * Moves a routing profile 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 + * ChangeRoutingProfileCompartment API. + */ + ChangeRoutingProfileCompartmentResponse changeRoutingProfileCompartment( + ChangeRoutingProfileCompartmentRequest request); + /** * Moves a SemanticStore into a different compartment within the same tenancy. For information * about moving resources between compartments, see [Moving Resources to a Different @@ -517,6 +536,22 @@ CreateHostedApplicationStorageResponse createHostedApplicationStorage( */ CreateModelResponse createModel(CreateModelRequest request); + /** + * Creates a routing profile. + * + * @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 + * CreateRoutingProfile API. + */ + CreateRoutingProfileResponse createRoutingProfile(CreateRoutingProfileRequest request); + /** * Creates a SemanticStore. * @@ -788,6 +823,22 @@ DeleteHostedDeploymentArtifactResponse deleteHostedDeploymentArtifact( */ DeleteModelResponse deleteModel(DeleteModelRequest request); + /** + * Deletes a routing profile. + * + * @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 + * DeleteRoutingProfile API. + */ + DeleteRoutingProfileResponse deleteRoutingProfile(DeleteRoutingProfileRequest request); + /** * Deletes a semanticStore. * @@ -996,6 +1047,22 @@ GetHostedApplicationStorageResponse getHostedApplicationStorage( */ GetModelResponse getModel(GetModelRequest request); + /** + * Gets information about a routing profile. + * + * @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 GetRoutingProfile + * API. + */ + GetRoutingProfileResponse getRoutingProfile(GetRoutingProfileRequest request); + /** * Gets information about a semanticStore. * @@ -1240,6 +1307,24 @@ ListHostedApplicationsIamResponse listHostedApplicationsIam( */ ListImportedModelsResponse listImportedModels(ListImportedModelsRequest request); + /** + * Retrieves a list of models along with their capabilities, supported features, and deployment + * availability. Results can be filtered by attributes such as region, realm, model identifier, + * supported inference APIs, serving modes, and access type. + * + * @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 ListModelDiscovery + * API. + */ + ListModelDiscoveryResponse listModelDiscovery(ListModelDiscoveryRequest request); + /** * Lists the models in a specific compartment. Includes pretrained base models and fine-tuned * custom models. @@ -1256,6 +1341,22 @@ ListHostedApplicationsIamResponse listHostedApplicationsIam( */ ListModelsResponse listModels(ListModelsRequest request); + /** + * Lists the routing profiles of a specific 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 ListRoutingProfiles + * API. + */ + ListRoutingProfilesResponse listRoutingProfiles(ListRoutingProfilesRequest request); + /** * Lists the SemanticStores given specific filter. * @@ -1582,6 +1683,22 @@ UpdateHostedApplicationIamResponse updateHostedApplicationIam( */ UpdateModelResponse updateModel(UpdateModelRequest request); + /** + * Updates the properties of a routing profile. + * + * @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 + * UpdateRoutingProfile API. + */ + UpdateRoutingProfileResponse updateRoutingProfile(UpdateRoutingProfileRequest request); + /** * Updates the properties of a SemanticStore. * diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsync.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsync.java index 05a4895e87e..23b712c8dc1 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsync.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsync.java @@ -311,6 +311,26 @@ java.util.concurrent.Future changeModelCompartme ChangeModelCompartmentRequest, ChangeModelCompartmentResponse> handler); + /** + * Moves a routing profile 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 + changeRoutingProfileCompartment( + ChangeRoutingProfileCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeRoutingProfileCompartmentRequest, + ChangeRoutingProfileCompartmentResponse> + handler); + /** * Moves a SemanticStore into a different compartment within the same tenancy. For information * about moving resources between compartments, see [Moving Resources to a Different @@ -518,6 +538,22 @@ java.util.concurrent.Future createModel( CreateModelRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Creates a routing profile. + * + * @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 createRoutingProfile( + CreateRoutingProfileRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateRoutingProfileRequest, CreateRoutingProfileResponse> + handler); + /** * Creates a SemanticStore. * @@ -788,6 +824,22 @@ java.util.concurrent.Future deleteModel( DeleteModelRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Deletes a routing profile. + * + * @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 deleteRoutingProfile( + DeleteRoutingProfileRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteRoutingProfileRequest, DeleteRoutingProfileResponse> + handler); + /** * Deletes a semanticStore. * @@ -991,6 +1043,22 @@ java.util.concurrent.Future getModel( GetModelRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Gets information about a routing profile. + * + * @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 getRoutingProfile( + GetRoutingProfileRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetRoutingProfileRequest, GetRoutingProfileResponse> + handler); + /** * Gets information about a semanticStore. * @@ -1234,6 +1302,24 @@ java.util.concurrent.Future listImportedModels( ListImportedModelsRequest, ListImportedModelsResponse> handler); + /** + * Retrieves a list of models along with their capabilities, supported features, and deployment + * availability. Results can be filtered by attributes such as region, realm, model identifier, + * supported inference APIs, serving modes, and access type. + * + * @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 listModelDiscovery( + ListModelDiscoveryRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListModelDiscoveryRequest, ListModelDiscoveryResponse> + handler); + /** * Lists the models in a specific compartment. Includes pretrained base models and fine-tuned * custom models. @@ -1249,6 +1335,22 @@ java.util.concurrent.Future listModels( ListModelsRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Lists the routing profiles of a specific 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 listRoutingProfiles( + ListRoutingProfilesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListRoutingProfilesRequest, ListRoutingProfilesResponse> + handler); + /** * Lists the SemanticStores given specific filter. * @@ -1571,6 +1673,22 @@ java.util.concurrent.Future updateModel( UpdateModelRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Updates the properties of a routing profile. + * + * @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 updateRoutingProfile( + UpdateRoutingProfileRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateRoutingProfileRequest, UpdateRoutingProfileResponse> + handler); + /** * Updates the properties of a SemanticStore. * diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsyncClient.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsyncClient.java index 3670a1272de..1ab80858c85 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsyncClient.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiAsyncClient.java @@ -600,6 +600,48 @@ public java.util.concurrent.Future changeModelCo .callAsync(handler); } + @Override + public java.util.concurrent.Future + changeRoutingProfileCompartment( + ChangeRoutingProfileCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeRoutingProfileCompartmentRequest, + ChangeRoutingProfileCompartmentResponse> + handler) { + + Validate.notBlank(request.getRoutingProfileId(), "routingProfileId must not be blank"); + Objects.requireNonNull( + request.getChangeRoutingProfileCompartmentDetails(), + "changeRoutingProfileCompartmentDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("routingProfileId", request.getRoutingProfileId()); + + return clientCall(request, ChangeRoutingProfileCompartmentResponse::builder) + .logger(LOG, "changeRoutingProfileCompartment") + .serviceDetails( + "GenerativeAi", + "ChangeRoutingProfileCompartment", + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/RoutingProfile/ChangeRoutingProfileCompartment") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeRoutingProfileCompartmentRequest::builder) + .basePath("/20231130") + .appendPathParam("routingProfiles") + .appendPathParam(request.getRoutingProfileId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ChangeRoutingProfileCompartmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future changeSemanticStoreCompartment( @@ -1078,6 +1120,42 @@ public java.util.concurrent.Future createModel( .callAsync(handler); } + @Override + public java.util.concurrent.Future createRoutingProfile( + CreateRoutingProfileRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateRoutingProfileRequest, CreateRoutingProfileResponse> + handler) { + Objects.requireNonNull( + request.getCreateRoutingProfileDetails(), + "createRoutingProfileDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + + return clientCall(request, CreateRoutingProfileResponse::builder) + .logger(LOG, "createRoutingProfile") + .serviceDetails( + "GenerativeAi", + "CreateRoutingProfile", + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/RoutingProfile/CreateRoutingProfile") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateRoutingProfileRequest::builder) + .basePath("/20231130") + .appendPathParam("routingProfiles") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.generativeai.model.RoutingProfile.class, + CreateRoutingProfileResponse.Builder::routingProfile) + .handleResponseHeaderString("etag", CreateRoutingProfileResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateRoutingProfileResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future createSemanticStore( CreateSemanticStoreRequest request, @@ -1641,6 +1719,38 @@ public java.util.concurrent.Future deleteModel( .callAsync(handler); } + @Override + public java.util.concurrent.Future deleteRoutingProfile( + DeleteRoutingProfileRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteRoutingProfileRequest, DeleteRoutingProfileResponse> + handler) { + + Validate.notBlank(request.getRoutingProfileId(), "routingProfileId must not be blank"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("routingProfileId", request.getRoutingProfileId()); + + return clientCall(request, DeleteRoutingProfileResponse::builder) + .logger(LOG, "deleteRoutingProfile") + .serviceDetails( + "GenerativeAi", + "DeleteRoutingProfile", + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/RoutingProfile/DeleteRoutingProfile") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteRoutingProfileRequest::builder) + .basePath("/20231130") + .appendPathParam("routingProfiles") + .appendPathParam(request.getRoutingProfileId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", DeleteRoutingProfileResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future deleteSemanticStore( DeleteSemanticStoreRequest request, @@ -2113,6 +2223,41 @@ public java.util.concurrent.Future getModel( .callAsync(handler); } + @Override + public java.util.concurrent.Future getRoutingProfile( + GetRoutingProfileRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetRoutingProfileRequest, GetRoutingProfileResponse> + handler) { + + Validate.notBlank(request.getRoutingProfileId(), "routingProfileId must not be blank"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("routingProfileId", request.getRoutingProfileId()); + + return clientCall(request, GetRoutingProfileResponse::builder) + .logger(LOG, "getRoutingProfile") + .serviceDetails( + "GenerativeAi", + "GetRoutingProfile", + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/RoutingProfile/GetRoutingProfile") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetRoutingProfileRequest::builder) + .basePath("/20231130") + .appendPathParam("routingProfiles") + .appendPathParam(request.getRoutingProfileId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.generativeai.model.RoutingProfile.class, + GetRoutingProfileResponse.Builder::routingProfile) + .handleResponseHeaderString("etag", GetRoutingProfileResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetRoutingProfileResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getSemanticStore( GetSemanticStoreRequest request, @@ -2744,6 +2889,71 @@ public java.util.concurrent.Future listImportedModel .callAsync(handler); } + @Override + public java.util.concurrent.Future listModelDiscovery( + ListModelDiscoveryRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListModelDiscoveryRequest, ListModelDiscoveryResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + + return clientCall(request, ListModelDiscoveryResponse::builder) + .logger(LOG, "listModelDiscovery") + .serviceDetails( + "GenerativeAi", + "ListModelDiscovery", + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/ModelDiscoveryCollection/ListModelDiscovery") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListModelDiscoveryRequest::builder) + .basePath("/20231130") + .appendPathParam("modelDiscovery") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendListQueryParam( + "realm", + request.getRealm(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "region", + request.getRegion(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("modelId", request.getModelId()) + .appendListQueryParam( + "servingMode", + request.getServingMode(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "apiCapability", + request.getApiCapability(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "capability", + request.getCapability(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "modelAccess", + request.getModelAccess(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("isDeprecated", request.getIsDeprecated()) + .appendQueryParam("isOnDemandRetired", request.getIsOnDemandRetired()) + .appendQueryParam("isDedicatedRetired", request.getIsDedicatedRetired()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.generativeai.model.ModelDiscoveryCollection.class, + ListModelDiscoveryResponse.Builder::modelDiscoveryCollection) + .handleResponseHeaderString( + "opc-request-id", ListModelDiscoveryResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListModelDiscoveryResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listModels( ListModelsRequest request, @@ -2790,6 +3000,48 @@ public java.util.concurrent.Future listModels( .callAsync(handler); } + @Override + public java.util.concurrent.Future listRoutingProfiles( + ListRoutingProfilesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListRoutingProfilesRequest, ListRoutingProfilesResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + + return clientCall(request, ListRoutingProfilesResponse::builder) + .logger(LOG, "listRoutingProfiles") + .serviceDetails( + "GenerativeAi", + "ListRoutingProfiles", + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/RoutingProfileCollection/ListRoutingProfiles") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListRoutingProfilesRequest::builder) + .basePath("/20231130") + .appendPathParam("routingProfiles") + .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.generativeai.model.RoutingProfileCollection.class, + ListRoutingProfilesResponse.Builder::routingProfileCollection) + .handleResponseHeaderString( + "opc-request-id", ListRoutingProfilesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListRoutingProfilesResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listSemanticStores( ListSemanticStoresRequest request, @@ -3655,6 +3907,46 @@ public java.util.concurrent.Future updateModel( .callAsync(handler); } + @Override + public java.util.concurrent.Future updateRoutingProfile( + UpdateRoutingProfileRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateRoutingProfileRequest, UpdateRoutingProfileResponse> + handler) { + + Validate.notBlank(request.getRoutingProfileId(), "routingProfileId must not be blank"); + Objects.requireNonNull( + request.getUpdateRoutingProfileDetails(), + "updateRoutingProfileDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("routingProfileId", request.getRoutingProfileId()); + + return clientCall(request, UpdateRoutingProfileResponse::builder) + .logger(LOG, "updateRoutingProfile") + .serviceDetails( + "GenerativeAi", + "UpdateRoutingProfile", + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/RoutingProfile/UpdateRoutingProfile") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateRoutingProfileRequest::builder) + .basePath("/20231130") + .appendPathParam("routingProfiles") + .appendPathParam(request.getRoutingProfileId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.generativeai.model.RoutingProfile.class, + UpdateRoutingProfileResponse.Builder::routingProfile) + .handleResponseHeaderString( + "opc-request-id", UpdateRoutingProfileResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", UpdateRoutingProfileResponse.Builder::etag) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updateSemanticStore( UpdateSemanticStoreRequest request, diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiClient.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiClient.java index b6b0c92daea..8f67d2e9702 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiClient.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiClient.java @@ -590,6 +590,44 @@ public ChangeModelCompartmentResponse changeModelCompartment( .callSync(); } + @Override + public ChangeRoutingProfileCompartmentResponse changeRoutingProfileCompartment( + ChangeRoutingProfileCompartmentRequest request) { + + Validate.notBlank(request.getRoutingProfileId(), "routingProfileId must not be blank"); + Objects.requireNonNull( + request.getChangeRoutingProfileCompartmentDetails(), + "changeRoutingProfileCompartmentDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("routingProfileId", request.getRoutingProfileId()); + + return clientCall(request, ChangeRoutingProfileCompartmentResponse::builder) + .logger(LOG, "changeRoutingProfileCompartment") + .serviceDetails( + "GenerativeAi", + "ChangeRoutingProfileCompartment", + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/RoutingProfile/ChangeRoutingProfileCompartment") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeRoutingProfileCompartmentRequest::builder) + .basePath("/20231130") + .appendPathParam("routingProfiles") + .appendPathParam(request.getRoutingProfileId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ChangeRoutingProfileCompartmentResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ChangeSemanticStoreCompartmentResponse changeSemanticStoreCompartment( ChangeSemanticStoreCompartmentRequest request) { @@ -1034,6 +1072,39 @@ public CreateModelResponse createModel(CreateModelRequest request) { .callSync(); } + @Override + public CreateRoutingProfileResponse createRoutingProfile(CreateRoutingProfileRequest request) { + Objects.requireNonNull( + request.getCreateRoutingProfileDetails(), + "createRoutingProfileDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + + return clientCall(request, CreateRoutingProfileResponse::builder) + .logger(LOG, "createRoutingProfile") + .serviceDetails( + "GenerativeAi", + "CreateRoutingProfile", + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/RoutingProfile/CreateRoutingProfile") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateRoutingProfileRequest::builder) + .basePath("/20231130") + .appendPathParam("routingProfiles") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.generativeai.model.RoutingProfile.class, + CreateRoutingProfileResponse.Builder::routingProfile) + .handleResponseHeaderString("etag", CreateRoutingProfileResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateRoutingProfileResponse.Builder::opcRequestId) + .callSync(); + } + @Override public CreateSemanticStoreResponse createSemanticStore(CreateSemanticStoreRequest request) { Objects.requireNonNull( @@ -1552,6 +1623,35 @@ public DeleteModelResponse deleteModel(DeleteModelRequest request) { .callSync(); } + @Override + public DeleteRoutingProfileResponse deleteRoutingProfile(DeleteRoutingProfileRequest request) { + + Validate.notBlank(request.getRoutingProfileId(), "routingProfileId must not be blank"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("routingProfileId", request.getRoutingProfileId()); + + return clientCall(request, DeleteRoutingProfileResponse::builder) + .logger(LOG, "deleteRoutingProfile") + .serviceDetails( + "GenerativeAi", + "DeleteRoutingProfile", + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/RoutingProfile/DeleteRoutingProfile") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteRoutingProfileRequest::builder) + .basePath("/20231130") + .appendPathParam("routingProfiles") + .appendPathParam(request.getRoutingProfileId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", DeleteRoutingProfileResponse.Builder::opcRequestId) + .callSync(); + } + @Override public DeleteSemanticStoreResponse deleteSemanticStore(DeleteSemanticStoreRequest request) { @@ -1988,6 +2088,38 @@ public GetModelResponse getModel(GetModelRequest request) { .callSync(); } + @Override + public GetRoutingProfileResponse getRoutingProfile(GetRoutingProfileRequest request) { + + Validate.notBlank(request.getRoutingProfileId(), "routingProfileId must not be blank"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("routingProfileId", request.getRoutingProfileId()); + + return clientCall(request, GetRoutingProfileResponse::builder) + .logger(LOG, "getRoutingProfile") + .serviceDetails( + "GenerativeAi", + "GetRoutingProfile", + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/RoutingProfile/GetRoutingProfile") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetRoutingProfileRequest::builder) + .basePath("/20231130") + .appendPathParam("routingProfiles") + .appendPathParam(request.getRoutingProfileId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.generativeai.model.RoutingProfile.class, + GetRoutingProfileResponse.Builder::routingProfile) + .handleResponseHeaderString("etag", GetRoutingProfileResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetRoutingProfileResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetSemanticStoreResponse getSemanticStore(GetSemanticStoreRequest request) { @@ -2578,6 +2710,68 @@ public ListImportedModelsResponse listImportedModels(ListImportedModelsRequest r .callSync(); } + @Override + public ListModelDiscoveryResponse listModelDiscovery(ListModelDiscoveryRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + + return clientCall(request, ListModelDiscoveryResponse::builder) + .logger(LOG, "listModelDiscovery") + .serviceDetails( + "GenerativeAi", + "ListModelDiscovery", + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/ModelDiscoveryCollection/ListModelDiscovery") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListModelDiscoveryRequest::builder) + .basePath("/20231130") + .appendPathParam("modelDiscovery") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendListQueryParam( + "realm", + request.getRealm(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "region", + request.getRegion(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("modelId", request.getModelId()) + .appendListQueryParam( + "servingMode", + request.getServingMode(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "apiCapability", + request.getApiCapability(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "capability", + request.getCapability(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "modelAccess", + request.getModelAccess(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("isDeprecated", request.getIsDeprecated()) + .appendQueryParam("isOnDemandRetired", request.getIsOnDemandRetired()) + .appendQueryParam("isDedicatedRetired", request.getIsDedicatedRetired()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.generativeai.model.ModelDiscoveryCollection.class, + ListModelDiscoveryResponse.Builder::modelDiscoveryCollection) + .handleResponseHeaderString( + "opc-request-id", ListModelDiscoveryResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListModelDiscoveryResponse.Builder::opcNextPage) + .callSync(); + } + @Override public ListModelsResponse listModels(ListModelsRequest request) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); @@ -2622,6 +2816,45 @@ public ListModelsResponse listModels(ListModelsRequest request) { .callSync(); } + @Override + public ListRoutingProfilesResponse listRoutingProfiles(ListRoutingProfilesRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + + return clientCall(request, ListRoutingProfilesResponse::builder) + .logger(LOG, "listRoutingProfiles") + .serviceDetails( + "GenerativeAi", + "ListRoutingProfiles", + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/RoutingProfileCollection/ListRoutingProfiles") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListRoutingProfilesRequest::builder) + .basePath("/20231130") + .appendPathParam("routingProfiles") + .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.generativeai.model.RoutingProfileCollection.class, + ListRoutingProfilesResponse.Builder::routingProfileCollection) + .handleResponseHeaderString( + "opc-request-id", ListRoutingProfilesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListRoutingProfilesResponse.Builder::opcNextPage) + .callSync(); + } + @Override public ListSemanticStoresResponse listSemanticStores(ListSemanticStoresRequest request) { @@ -3432,6 +3665,43 @@ public UpdateModelResponse updateModel(UpdateModelRequest request) { .callSync(); } + @Override + public UpdateRoutingProfileResponse updateRoutingProfile(UpdateRoutingProfileRequest request) { + + Validate.notBlank(request.getRoutingProfileId(), "routingProfileId must not be blank"); + Objects.requireNonNull( + request.getUpdateRoutingProfileDetails(), + "updateRoutingProfileDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("routingProfileId", request.getRoutingProfileId()); + + return clientCall(request, UpdateRoutingProfileResponse::builder) + .logger(LOG, "updateRoutingProfile") + .serviceDetails( + "GenerativeAi", + "UpdateRoutingProfile", + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/RoutingProfile/UpdateRoutingProfile") + .requiredParametersMap(requiredParametersMap) + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateRoutingProfileRequest::builder) + .basePath("/20231130") + .appendPathParam("routingProfiles") + .appendPathParam(request.getRoutingProfileId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.generativeai.model.RoutingProfile.class, + UpdateRoutingProfileResponse.Builder::routingProfile) + .handleResponseHeaderString( + "opc-request-id", UpdateRoutingProfileResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", UpdateRoutingProfileResponse.Builder::etag) + .callSync(); + } + @Override public UpdateSemanticStoreResponse updateSemanticStore(UpdateSemanticStoreRequest request) { diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiPaginators.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiPaginators.java index 61bb4a93625..08a9be50bd8 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiPaginators.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiPaginators.java @@ -1270,6 +1270,124 @@ public ListImportedModelsResponse apply(ListImportedModelsRequest request) { }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listModelDiscovery 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 listModelDiscoveryResponseIterator( + final ListModelDiscoveryRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListModelDiscoveryRequest.Builder, + ListModelDiscoveryRequest, + ListModelDiscoveryResponse>( + new java.util.function.Supplier() { + @Override + public ListModelDiscoveryRequest.Builder get() { + return ListModelDiscoveryRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListModelDiscoveryResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListModelDiscoveryRequest.Builder>, + ListModelDiscoveryRequest>() { + @Override + public ListModelDiscoveryRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListModelDiscoveryRequest.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< + ListModelDiscoveryRequest, ListModelDiscoveryResponse>() { + @Override + public ListModelDiscoveryResponse apply(ListModelDiscoveryRequest request) { + return client.listModelDiscovery(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.generativeai.model.ModelDiscovery} objects contained in responses from the + * listModelDiscovery 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.generativeai.model.ModelDiscovery} objects contained in responses received + * from the service. + */ + public Iterable + listModelDiscoveryRecordIterator(final ListModelDiscoveryRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListModelDiscoveryRequest.Builder, + ListModelDiscoveryRequest, + ListModelDiscoveryResponse, + com.oracle.bmc.generativeai.model.ModelDiscovery>( + new java.util.function.Supplier() { + @Override + public ListModelDiscoveryRequest.Builder get() { + return ListModelDiscoveryRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListModelDiscoveryResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListModelDiscoveryRequest.Builder>, + ListModelDiscoveryRequest>() { + @Override + public ListModelDiscoveryRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListModelDiscoveryRequest.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< + ListModelDiscoveryRequest, ListModelDiscoveryResponse>() { + @Override + public ListModelDiscoveryResponse apply(ListModelDiscoveryRequest request) { + return client.listModelDiscovery(request); + } + }, + new java.util.function.Function< + ListModelDiscoveryResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListModelDiscoveryResponse response) { + return response.getModelDiscoveryCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listModels * operation. This iterable will fetch more data from the server as needed. @@ -1384,6 +1502,125 @@ public java.util.List apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listRoutingProfiles 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 listRoutingProfilesResponseIterator( + final ListRoutingProfilesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListRoutingProfilesRequest.Builder, + ListRoutingProfilesRequest, + ListRoutingProfilesResponse>( + new java.util.function.Supplier() { + @Override + public ListRoutingProfilesRequest.Builder get() { + return ListRoutingProfilesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListRoutingProfilesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRoutingProfilesRequest.Builder>, + ListRoutingProfilesRequest>() { + @Override + public ListRoutingProfilesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRoutingProfilesRequest.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< + ListRoutingProfilesRequest, ListRoutingProfilesResponse>() { + @Override + public ListRoutingProfilesResponse apply(ListRoutingProfilesRequest request) { + return client.listRoutingProfiles(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.generativeai.model.RoutingProfileSummary} objects contained in responses from + * the listRoutingProfiles 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.generativeai.model.RoutingProfileSummary} objects contained in responses + * received from the service. + */ + public Iterable + listRoutingProfilesRecordIterator(final ListRoutingProfilesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListRoutingProfilesRequest.Builder, + ListRoutingProfilesRequest, + ListRoutingProfilesResponse, + com.oracle.bmc.generativeai.model.RoutingProfileSummary>( + new java.util.function.Supplier() { + @Override + public ListRoutingProfilesRequest.Builder get() { + return ListRoutingProfilesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListRoutingProfilesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRoutingProfilesRequest.Builder>, + ListRoutingProfilesRequest>() { + @Override + public ListRoutingProfilesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRoutingProfilesRequest.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< + ListRoutingProfilesRequest, ListRoutingProfilesResponse>() { + @Override + public ListRoutingProfilesResponse apply(ListRoutingProfilesRequest request) { + return client.listRoutingProfiles(request); + } + }, + new java.util.function.Function< + ListRoutingProfilesResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListRoutingProfilesResponse response) { + return response.getRoutingProfileCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the * listSemanticStores operation. This iterable will fetch more data from the server as needed. diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiWaiters.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiWaiters.java index 5c0f6ef3988..bf691946fc8 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiWaiters.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/GenerativeAiWaiters.java @@ -1223,6 +1223,115 @@ public boolean test(GetModelResponse response) { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forRoutingProfile( + GetRoutingProfileRequest request, + com.oracle.bmc.generativeai.model.RoutingProfile.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 forRoutingProfile( + 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 + forRoutingProfile( + GetRoutingProfileRequest request, + com.oracle.bmc.generativeai.model.RoutingProfile.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 forRoutingProfile( + 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 + forRoutingProfile( + GetRoutingProfileRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.generativeai.model.RoutingProfile.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 forRoutingProfile( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for RoutingProfile. + private com.oracle.bmc.waiter.Waiter + forRoutingProfile( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetRoutingProfileRequest request, + final com.oracle.bmc.generativeai.model.RoutingProfile.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< + GetRoutingProfileRequest, GetRoutingProfileResponse>() { + @Override + public GetRoutingProfileResponse apply( + GetRoutingProfileRequest request) { + return client.getRoutingProfile(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetRoutingProfileResponse response) { + return targetStatesSet.contains( + response.getRoutingProfile().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.generativeai.model.RoutingProfile.LifecycleState + .Deleted)), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/Availability.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/Availability.java new file mode 100644 index 00000000000..ff63fd9f667 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/Availability.java @@ -0,0 +1,399 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.model; + +/** + * Describes where and how a model is deployed
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Availability.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Availability extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "realm", + "region", + "servingModes", + "timeDeprecated", + "timeOnDemandRetired", + "timeDedicatedRetired", + "supportedReplacements" + }) + public Availability( + String realm, + String region, + java.util.List servingModes, + java.util.Date timeDeprecated, + java.util.Date timeOnDemandRetired, + java.util.Date timeDedicatedRetired, + java.util.List supportedReplacements) { + super(); + this.realm = realm; + this.region = region; + this.servingModes = servingModes; + this.timeDeprecated = timeDeprecated; + this.timeOnDemandRetired = timeOnDemandRetired; + this.timeDedicatedRetired = timeDedicatedRetired; + this.supportedReplacements = supportedReplacements; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The cloud realm in which the model exists. */ + @com.fasterxml.jackson.annotation.JsonProperty("realm") + private String realm; + + /** + * The cloud realm in which the model exists. + * + * @param realm the value to set + * @return this builder + */ + public Builder realm(String realm) { + this.realm = realm; + this.__explicitlySet__.add("realm"); + return this; + } + /** The specific geographic region where the model is deployed. */ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private String region; + + /** + * The specific geographic region where the model is deployed. + * + * @param region the value to set + * @return this builder + */ + public Builder region(String region) { + this.region = region; + this.__explicitlySet__.add("region"); + return this; + } + /** + * The supported deployment modes for the model in this region (e.g., on-demand or + * dedicated). + */ + @com.fasterxml.jackson.annotation.JsonProperty("servingModes") + private java.util.List servingModes; + + /** + * The supported deployment modes for the model in this region (e.g., on-demand or + * dedicated). + * + * @param servingModes the value to set + * @return this builder + */ + public Builder servingModes(java.util.List servingModes) { + this.servingModes = servingModes; + this.__explicitlySet__.add("servingModes"); + return this; + } + /** + * The timestamp when the model is marked as deprecated and is no longer recommended for + * use. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeDeprecated") + private java.util.Date timeDeprecated; + + /** + * The timestamp when the model is marked as deprecated and is no longer recommended for + * use. + * + * @param timeDeprecated the value to set + * @return this builder + */ + public Builder timeDeprecated(java.util.Date timeDeprecated) { + this.timeDeprecated = timeDeprecated; + this.__explicitlySet__.add("timeDeprecated"); + return this; + } + /** + * The timestamp when the model will no longer be available for on-demand (shared) usage. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeOnDemandRetired") + private java.util.Date timeOnDemandRetired; + + /** + * The timestamp when the model will no longer be available for on-demand (shared) usage. + * + * @param timeOnDemandRetired the value to set + * @return this builder + */ + public Builder timeOnDemandRetired(java.util.Date timeOnDemandRetired) { + this.timeOnDemandRetired = timeOnDemandRetired; + this.__explicitlySet__.add("timeOnDemandRetired"); + return this; + } + /** The timestamp when dedicated deployments of the model will be fully retired. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeDedicatedRetired") + private java.util.Date timeDedicatedRetired; + + /** + * The timestamp when dedicated deployments of the model will be fully retired. + * + * @param timeDedicatedRetired the value to set + * @return this builder + */ + public Builder timeDedicatedRetired(java.util.Date timeDedicatedRetired) { + this.timeDedicatedRetired = timeDedicatedRetired; + this.__explicitlySet__.add("timeDedicatedRetired"); + return this; + } + /** + * A list of model identifiers that are recommended as replacements after this model is + * retired. + */ + @com.fasterxml.jackson.annotation.JsonProperty("supportedReplacements") + private java.util.List supportedReplacements; + + /** + * A list of model identifiers that are recommended as replacements after this model is + * retired. + * + * @param supportedReplacements the value to set + * @return this builder + */ + public Builder supportedReplacements(java.util.List supportedReplacements) { + this.supportedReplacements = supportedReplacements; + this.__explicitlySet__.add("supportedReplacements"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Availability build() { + Availability model = + new Availability( + this.realm, + this.region, + this.servingModes, + this.timeDeprecated, + this.timeOnDemandRetired, + this.timeDedicatedRetired, + this.supportedReplacements); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Availability model) { + if (model.wasPropertyExplicitlySet("realm")) { + this.realm(model.getRealm()); + } + if (model.wasPropertyExplicitlySet("region")) { + this.region(model.getRegion()); + } + if (model.wasPropertyExplicitlySet("servingModes")) { + this.servingModes(model.getServingModes()); + } + if (model.wasPropertyExplicitlySet("timeDeprecated")) { + this.timeDeprecated(model.getTimeDeprecated()); + } + if (model.wasPropertyExplicitlySet("timeOnDemandRetired")) { + this.timeOnDemandRetired(model.getTimeOnDemandRetired()); + } + if (model.wasPropertyExplicitlySet("timeDedicatedRetired")) { + this.timeDedicatedRetired(model.getTimeDedicatedRetired()); + } + if (model.wasPropertyExplicitlySet("supportedReplacements")) { + this.supportedReplacements(model.getSupportedReplacements()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The cloud realm in which the model exists. */ + @com.fasterxml.jackson.annotation.JsonProperty("realm") + private final String realm; + + /** + * The cloud realm in which the model exists. + * + * @return the value + */ + public String getRealm() { + return realm; + } + + /** The specific geographic region where the model is deployed. */ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private final String region; + + /** + * The specific geographic region where the model is deployed. + * + * @return the value + */ + public String getRegion() { + return region; + } + + /** + * The supported deployment modes for the model in this region (e.g., on-demand or dedicated). + */ + @com.fasterxml.jackson.annotation.JsonProperty("servingModes") + private final java.util.List servingModes; + + /** + * The supported deployment modes for the model in this region (e.g., on-demand or dedicated). + * + * @return the value + */ + public java.util.List getServingModes() { + return servingModes; + } + + /** + * The timestamp when the model is marked as deprecated and is no longer recommended for use. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeDeprecated") + private final java.util.Date timeDeprecated; + + /** + * The timestamp when the model is marked as deprecated and is no longer recommended for use. + * + * @return the value + */ + public java.util.Date getTimeDeprecated() { + return timeDeprecated; + } + + /** The timestamp when the model will no longer be available for on-demand (shared) usage. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeOnDemandRetired") + private final java.util.Date timeOnDemandRetired; + + /** + * The timestamp when the model will no longer be available for on-demand (shared) usage. + * + * @return the value + */ + public java.util.Date getTimeOnDemandRetired() { + return timeOnDemandRetired; + } + + /** The timestamp when dedicated deployments of the model will be fully retired. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeDedicatedRetired") + private final java.util.Date timeDedicatedRetired; + + /** + * The timestamp when dedicated deployments of the model will be fully retired. + * + * @return the value + */ + public java.util.Date getTimeDedicatedRetired() { + return timeDedicatedRetired; + } + + /** + * A list of model identifiers that are recommended as replacements after this model is retired. + */ + @com.fasterxml.jackson.annotation.JsonProperty("supportedReplacements") + private final java.util.List supportedReplacements; + + /** + * A list of model identifiers that are recommended as replacements after this model is retired. + * + * @return the value + */ + public java.util.List getSupportedReplacements() { + return supportedReplacements; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Availability("); + sb.append("super=").append(super.toString()); + sb.append("realm=").append(String.valueOf(this.realm)); + sb.append(", region=").append(String.valueOf(this.region)); + sb.append(", servingModes=").append(String.valueOf(this.servingModes)); + sb.append(", timeDeprecated=").append(String.valueOf(this.timeDeprecated)); + sb.append(", timeOnDemandRetired=").append(String.valueOf(this.timeOnDemandRetired)); + sb.append(", timeDedicatedRetired=").append(String.valueOf(this.timeDedicatedRetired)); + sb.append(", supportedReplacements=").append(String.valueOf(this.supportedReplacements)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Availability)) { + return false; + } + + Availability other = (Availability) o; + return java.util.Objects.equals(this.realm, other.realm) + && java.util.Objects.equals(this.region, other.region) + && java.util.Objects.equals(this.servingModes, other.servingModes) + && java.util.Objects.equals(this.timeDeprecated, other.timeDeprecated) + && java.util.Objects.equals(this.timeOnDemandRetired, other.timeOnDemandRetired) + && java.util.Objects.equals(this.timeDedicatedRetired, other.timeDedicatedRetired) + && java.util.Objects.equals(this.supportedReplacements, other.supportedReplacements) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.realm == null ? 43 : this.realm.hashCode()); + result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); + result = (result * PRIME) + (this.servingModes == null ? 43 : this.servingModes.hashCode()); + result = + (result * PRIME) + + (this.timeDeprecated == null ? 43 : this.timeDeprecated.hashCode()); + result = + (result * PRIME) + + (this.timeOnDemandRetired == null + ? 43 + : this.timeOnDemandRetired.hashCode()); + result = + (result * PRIME) + + (this.timeDedicatedRetired == null + ? 43 + : this.timeDedicatedRetired.hashCode()); + result = + (result * PRIME) + + (this.supportedReplacements == null + ? 43 + : this.supportedReplacements.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-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ChangeRoutingProfileCompartmentDetails.java similarity index 71% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedAutonomousDatabaseCompartmentDetails.java rename to bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ChangeRoutingProfileCompartmentDetails.java index 32c8975934d..3be8f67ea53 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedAutonomousDatabaseCompartmentDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ChangeRoutingProfileCompartmentDetails.java @@ -2,11 +2,10 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.generativeai.model; /** - * The configuration details for moving the resource for Globally distributed autonomous database to - * other compartment.
    + * The details to move a routing profile to another 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 @@ -16,32 +15,28 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = ChangeDistributedAutonomousDatabaseCompartmentDetails.Builder.class) + builder = ChangeRoutingProfileCompartmentDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class ChangeDistributedAutonomousDatabaseCompartmentDetails +public final class ChangeRoutingProfileCompartmentDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"compartmentId"}) - public ChangeDistributedAutonomousDatabaseCompartmentDetails(String compartmentId) { + public ChangeRoutingProfileCompartmentDetails(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. - */ + /** The OCID of the compartment to move the routing profile 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. + * The OCID of the compartment to move the routing profile to. * * @param compartmentId the value to set * @return this builder @@ -55,9 +50,9 @@ public Builder compartmentId(String compartmentId) { @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public ChangeDistributedAutonomousDatabaseCompartmentDetails build() { - ChangeDistributedAutonomousDatabaseCompartmentDetails model = - new ChangeDistributedAutonomousDatabaseCompartmentDetails(this.compartmentId); + public ChangeRoutingProfileCompartmentDetails build() { + ChangeRoutingProfileCompartmentDetails model = + new ChangeRoutingProfileCompartmentDetails(this.compartmentId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -65,7 +60,7 @@ public ChangeDistributedAutonomousDatabaseCompartmentDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ChangeDistributedAutonomousDatabaseCompartmentDetails model) { + public Builder copy(ChangeRoutingProfileCompartmentDetails model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } @@ -82,16 +77,12 @@ 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. - */ + /** The OCID of the compartment to move the routing profile 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. + * The OCID of the compartment to move the routing profile to. * * @return the value */ @@ -112,7 +103,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("ChangeDistributedAutonomousDatabaseCompartmentDetails("); + sb.append("ChangeRoutingProfileCompartmentDetails("); sb.append("super=").append(super.toString()); sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(")"); @@ -124,12 +115,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ChangeDistributedAutonomousDatabaseCompartmentDetails)) { + if (!(o instanceof ChangeRoutingProfileCompartmentDetails)) { return false; } - ChangeDistributedAutonomousDatabaseCompartmentDetails other = - (ChangeDistributedAutonomousDatabaseCompartmentDetails) o; + ChangeRoutingProfileCompartmentDetails other = (ChangeRoutingProfileCompartmentDetails) o; return java.util.Objects.equals(this.compartmentId, other.compartmentId) && super.equals(other); } diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateRoutingProfileDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateRoutingProfileDetails.java new file mode 100644 index 00000000000..dd23c0def4e --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateRoutingProfileDetails.java @@ -0,0 +1,394 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.model; + +/** + * The data to create a routing profile.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateRoutingProfileDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateRoutingProfileDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "compartmentId", + "regionRoutingPolicy", + "modelRoutingPolicy", + "freeformTags", + "definedTags" + }) + public CreateRoutingProfileDetails( + String displayName, + String description, + String compartmentId, + RegionRoutingPolicy regionRoutingPolicy, + ModelRoutingPolicy modelRoutingPolicy, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.description = description; + this.compartmentId = compartmentId; + this.regionRoutingPolicy = regionRoutingPolicy; + this.modelRoutingPolicy = modelRoutingPolicy; + 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. */ + @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; + } + /** An optional description of the routing profile. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * An optional description of the routing profile. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** The OCID of the compartment in which to create the routing profile. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment in which to create the routing profile. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("regionRoutingPolicy") + private RegionRoutingPolicy regionRoutingPolicy; + + public Builder regionRoutingPolicy(RegionRoutingPolicy regionRoutingPolicy) { + this.regionRoutingPolicy = regionRoutingPolicy; + this.__explicitlySet__.add("regionRoutingPolicy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("modelRoutingPolicy") + private ModelRoutingPolicy modelRoutingPolicy; + + public Builder modelRoutingPolicy(ModelRoutingPolicy modelRoutingPolicy) { + this.modelRoutingPolicy = modelRoutingPolicy; + this.__explicitlySet__.add("modelRoutingPolicy"); + 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 CreateRoutingProfileDetails build() { + CreateRoutingProfileDetails model = + new CreateRoutingProfileDetails( + this.displayName, + this.description, + this.compartmentId, + this.regionRoutingPolicy, + this.modelRoutingPolicy, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateRoutingProfileDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("regionRoutingPolicy")) { + this.regionRoutingPolicy(model.getRegionRoutingPolicy()); + } + if (model.wasPropertyExplicitlySet("modelRoutingPolicy")) { + this.modelRoutingPolicy(model.getModelRoutingPolicy()); + } + 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. */ + @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; + } + + /** An optional description of the routing profile. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * An optional description of the routing profile. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The OCID of the compartment in which to create the routing profile. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment in which to create the routing profile. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("regionRoutingPolicy") + private final RegionRoutingPolicy regionRoutingPolicy; + + public RegionRoutingPolicy getRegionRoutingPolicy() { + return regionRoutingPolicy; + } + + @com.fasterxml.jackson.annotation.JsonProperty("modelRoutingPolicy") + private final ModelRoutingPolicy modelRoutingPolicy; + + public ModelRoutingPolicy getModelRoutingPolicy() { + return modelRoutingPolicy; + } + + /** + * 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("CreateRoutingProfileDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", regionRoutingPolicy=").append(String.valueOf(this.regionRoutingPolicy)); + sb.append(", modelRoutingPolicy=").append(String.valueOf(this.modelRoutingPolicy)); + 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 CreateRoutingProfileDetails)) { + return false; + } + + CreateRoutingProfileDetails other = (CreateRoutingProfileDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.regionRoutingPolicy, other.regionRoutingPolicy) + && java.util.Objects.equals(this.modelRoutingPolicy, other.modelRoutingPolicy) + && 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.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.regionRoutingPolicy == null + ? 43 + : this.regionRoutingPolicy.hashCode()); + result = + (result * PRIME) + + (this.modelRoutingPolicy == null + ? 43 + : this.modelRoutingPolicy.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-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelDiscovery.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelDiscovery.java new file mode 100644 index 00000000000..45f522cdfa0 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelDiscovery.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.generativeai.model; + +/** + * Metadata describing a specific model
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ModelDiscovery.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ModelDiscovery + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "modelId", + "vendor", + "capabilities", + "apiCapability", + "modalitySupport", + "modelAccess", + "parameters", + "availability" + }) + public ModelDiscovery( + String modelId, + String vendor, + java.util.List capabilities, + java.util.List apiCapability, + java.util.List modalitySupport, + ModelAccess modelAccess, + java.util.List parameters, + java.util.List availability) { + super(); + this.modelId = modelId; + this.vendor = vendor; + this.capabilities = capabilities; + this.apiCapability = apiCapability; + this.modalitySupport = modalitySupport; + this.modelAccess = modelAccess; + this.parameters = parameters; + this.availability = availability; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A unique identifier for the model */ + @com.fasterxml.jackson.annotation.JsonProperty("modelId") + private String modelId; + + /** + * A unique identifier for the model + * + * @param modelId the value to set + * @return this builder + */ + public Builder modelId(String modelId) { + this.modelId = modelId; + this.__explicitlySet__.add("modelId"); + return this; + } + /** The vendor that offers the model. */ + @com.fasterxml.jackson.annotation.JsonProperty("vendor") + private String vendor; + + /** + * The vendor that offers the model. + * + * @param vendor the value to set + * @return this builder + */ + public Builder vendor(String vendor) { + this.vendor = vendor; + this.__explicitlySet__.add("vendor"); + return this; + } + /** Describes what this model can be used for. */ + @com.fasterxml.jackson.annotation.JsonProperty("capabilities") + private java.util.List capabilities; + + /** + * Describes what this model can be used for. + * + * @param capabilities the value to set + * @return this builder + */ + public Builder capabilities(java.util.List capabilities) { + this.capabilities = capabilities; + this.__explicitlySet__.add("capabilities"); + return this; + } + /** + * The specific API endpoints that this model supports. For example, a chat model may + * support OPENAI_V1_CHAT_COMPLETIONS and/or OPENAI_V1_RESPONSES. If empty, the model has + * not yet been annotated with API capabilities. + */ + @com.fasterxml.jackson.annotation.JsonProperty("apiCapability") + private java.util.List apiCapability; + + /** + * The specific API endpoints that this model supports. For example, a chat model may + * support OPENAI_V1_CHAT_COMPLETIONS and/or OPENAI_V1_RESPONSES. If empty, the model has + * not yet been annotated with API capabilities. + * + * @param apiCapability the value to set + * @return this builder + */ + public Builder apiCapability(java.util.List apiCapability) { + this.apiCapability = apiCapability; + this.__explicitlySet__.add("apiCapability"); + return this; + } + /** + * The supported input-to-output modality transformations for this model. For example, a + * model can support TEXT to VIDEO or AUDIO to VIDEO. + */ + @com.fasterxml.jackson.annotation.JsonProperty("modalitySupport") + private java.util.List modalitySupport; + + /** + * The supported input-to-output modality transformations for this model. For example, a + * model can support TEXT to VIDEO or AUDIO to VIDEO. + * + * @param modalitySupport the value to set + * @return this builder + */ + public Builder modalitySupport(java.util.List modalitySupport) { + this.modalitySupport = modalitySupport; + this.__explicitlySet__.add("modalitySupport"); + return this; + } + /** + * The access level required to use the model, which can be either HOSTED (the model is + * hosted by the provider and can be accessed via API calls) or PROXY (the model is not + * directly accessible and requires going through a proxy). + */ + @com.fasterxml.jackson.annotation.JsonProperty("modelAccess") + private ModelAccess modelAccess; + + /** + * The access level required to use the model, which can be either HOSTED (the model is + * hosted by the provider and can be accessed via API calls) or PROXY (the model is not + * directly accessible and requires going through a proxy). + * + * @param modelAccess the value to set + * @return this builder + */ + public Builder modelAccess(ModelAccess modelAccess) { + this.modelAccess = modelAccess; + this.__explicitlySet__.add("modelAccess"); + return this; + } + /** + * The list of configurable parameters supported by the model. For example, temperature and + * max_tokens for a text generation model. + */ + @com.fasterxml.jackson.annotation.JsonProperty("parameters") + private java.util.List parameters; + + /** + * The list of configurable parameters supported by the model. For example, temperature and + * max_tokens for a text generation model. + * + * @param parameters the value to set + * @return this builder + */ + public Builder parameters(java.util.List parameters) { + this.parameters = parameters; + this.__explicitlySet__.add("parameters"); + return this; + } + /** + * The list of availability details for the model across different regions and deployment + * modes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availability") + private java.util.List availability; + + /** + * The list of availability details for the model across different regions and deployment + * modes. + * + * @param availability the value to set + * @return this builder + */ + public Builder availability(java.util.List availability) { + this.availability = availability; + this.__explicitlySet__.add("availability"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ModelDiscovery build() { + ModelDiscovery model = + new ModelDiscovery( + this.modelId, + this.vendor, + this.capabilities, + this.apiCapability, + this.modalitySupport, + this.modelAccess, + this.parameters, + this.availability); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ModelDiscovery model) { + if (model.wasPropertyExplicitlySet("modelId")) { + this.modelId(model.getModelId()); + } + if (model.wasPropertyExplicitlySet("vendor")) { + this.vendor(model.getVendor()); + } + if (model.wasPropertyExplicitlySet("capabilities")) { + this.capabilities(model.getCapabilities()); + } + if (model.wasPropertyExplicitlySet("apiCapability")) { + this.apiCapability(model.getApiCapability()); + } + if (model.wasPropertyExplicitlySet("modalitySupport")) { + this.modalitySupport(model.getModalitySupport()); + } + if (model.wasPropertyExplicitlySet("modelAccess")) { + this.modelAccess(model.getModelAccess()); + } + if (model.wasPropertyExplicitlySet("parameters")) { + this.parameters(model.getParameters()); + } + if (model.wasPropertyExplicitlySet("availability")) { + this.availability(model.getAvailability()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** A unique identifier for the model */ + @com.fasterxml.jackson.annotation.JsonProperty("modelId") + private final String modelId; + + /** + * A unique identifier for the model + * + * @return the value + */ + public String getModelId() { + return modelId; + } + + /** The vendor that offers the model. */ + @com.fasterxml.jackson.annotation.JsonProperty("vendor") + private final String vendor; + + /** + * The vendor that offers the model. + * + * @return the value + */ + public String getVendor() { + return vendor; + } + + /** Describes what this model can be used for. */ + @com.fasterxml.jackson.annotation.JsonProperty("capabilities") + private final java.util.List capabilities; + + /** + * Describes what this model can be used for. + * + * @return the value + */ + public java.util.List getCapabilities() { + return capabilities; + } + + /** + * The specific API endpoints that this model supports. For example, a chat model may support + * OPENAI_V1_CHAT_COMPLETIONS and/or OPENAI_V1_RESPONSES. If empty, the model has not yet been + * annotated with API capabilities. + */ + @com.fasterxml.jackson.annotation.JsonProperty("apiCapability") + private final java.util.List apiCapability; + + /** + * The specific API endpoints that this model supports. For example, a chat model may support + * OPENAI_V1_CHAT_COMPLETIONS and/or OPENAI_V1_RESPONSES. If empty, the model has not yet been + * annotated with API capabilities. + * + * @return the value + */ + public java.util.List getApiCapability() { + return apiCapability; + } + + /** + * The supported input-to-output modality transformations for this model. For example, a model + * can support TEXT to VIDEO or AUDIO to VIDEO. + */ + @com.fasterxml.jackson.annotation.JsonProperty("modalitySupport") + private final java.util.List modalitySupport; + + /** + * The supported input-to-output modality transformations for this model. For example, a model + * can support TEXT to VIDEO or AUDIO to VIDEO. + * + * @return the value + */ + public java.util.List getModalitySupport() { + return modalitySupport; + } + + /** + * The access level required to use the model, which can be either HOSTED (the model is hosted + * by the provider and can be accessed via API calls) or PROXY (the model is not directly + * accessible and requires going through a proxy). + */ + public enum ModelAccess implements com.oracle.bmc.http.internal.BmcEnum { + Hosted("HOSTED"), + Proxy("PROXY"), + + /** + * 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(ModelAccess.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ModelAccess v : ModelAccess.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ModelAccess(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ModelAccess create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ModelAccess', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The access level required to use the model, which can be either HOSTED (the model is hosted + * by the provider and can be accessed via API calls) or PROXY (the model is not directly + * accessible and requires going through a proxy). + */ + @com.fasterxml.jackson.annotation.JsonProperty("modelAccess") + private final ModelAccess modelAccess; + + /** + * The access level required to use the model, which can be either HOSTED (the model is hosted + * by the provider and can be accessed via API calls) or PROXY (the model is not directly + * accessible and requires going through a proxy). + * + * @return the value + */ + public ModelAccess getModelAccess() { + return modelAccess; + } + + /** + * The list of configurable parameters supported by the model. For example, temperature and + * max_tokens for a text generation model. + */ + @com.fasterxml.jackson.annotation.JsonProperty("parameters") + private final java.util.List parameters; + + /** + * The list of configurable parameters supported by the model. For example, temperature and + * max_tokens for a text generation model. + * + * @return the value + */ + public java.util.List getParameters() { + return parameters; + } + + /** + * The list of availability details for the model across different regions and deployment modes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availability") + private final java.util.List availability; + + /** + * The list of availability details for the model across different regions and deployment modes. + * + * @return the value + */ + public java.util.List getAvailability() { + return availability; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ModelDiscovery("); + sb.append("super=").append(super.toString()); + sb.append("modelId=").append(String.valueOf(this.modelId)); + sb.append(", vendor=").append(String.valueOf(this.vendor)); + sb.append(", capabilities=").append(String.valueOf(this.capabilities)); + sb.append(", apiCapability=").append(String.valueOf(this.apiCapability)); + sb.append(", modalitySupport=").append(String.valueOf(this.modalitySupport)); + sb.append(", modelAccess=").append(String.valueOf(this.modelAccess)); + sb.append(", parameters=").append(String.valueOf(this.parameters)); + sb.append(", availability=").append(String.valueOf(this.availability)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ModelDiscovery)) { + return false; + } + + ModelDiscovery other = (ModelDiscovery) o; + return java.util.Objects.equals(this.modelId, other.modelId) + && java.util.Objects.equals(this.vendor, other.vendor) + && java.util.Objects.equals(this.capabilities, other.capabilities) + && java.util.Objects.equals(this.apiCapability, other.apiCapability) + && java.util.Objects.equals(this.modalitySupport, other.modalitySupport) + && java.util.Objects.equals(this.modelAccess, other.modelAccess) + && java.util.Objects.equals(this.parameters, other.parameters) + && java.util.Objects.equals(this.availability, other.availability) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.modelId == null ? 43 : this.modelId.hashCode()); + result = (result * PRIME) + (this.vendor == null ? 43 : this.vendor.hashCode()); + result = (result * PRIME) + (this.capabilities == null ? 43 : this.capabilities.hashCode()); + result = + (result * PRIME) + + (this.apiCapability == null ? 43 : this.apiCapability.hashCode()); + result = + (result * PRIME) + + (this.modalitySupport == null ? 43 : this.modalitySupport.hashCode()); + result = (result * PRIME) + (this.modelAccess == null ? 43 : this.modelAccess.hashCode()); + result = (result * PRIME) + (this.parameters == null ? 43 : this.parameters.hashCode()); + result = (result * PRIME) + (this.availability == null ? 43 : this.availability.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelDiscoveryCollection.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelDiscoveryCollection.java new file mode 100644 index 00000000000..e349325caeb --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelDiscoveryCollection.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.generativeai.model; + +/** + * A paginated collection of model discovery results. Each item represents a model along with its + * capabilities and regional availability.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ModelDiscoveryCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ModelDiscoveryCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public ModelDiscoveryCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The list of discovered models matching the search criteria. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * The list of discovered models matching the search criteria. + * + * @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 ModelDiscoveryCollection build() { + ModelDiscoveryCollection model = new ModelDiscoveryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ModelDiscoveryCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The list of discovered models matching the search criteria. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * The list of discovered models matching the search criteria. + * + * @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("ModelDiscoveryCollection("); + 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 ModelDiscoveryCollection)) { + return false; + } + + ModelDiscoveryCollection other = (ModelDiscoveryCollection) 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-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelModality.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelModality.java new file mode 100644 index 00000000000..2b8db714804 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelModality.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.generativeai.model; + +/** A content modality supported by a model. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public enum ModelModality implements com.oracle.bmc.http.internal.BmcEnum { + Audio("AUDIO"), + Video("VIDEO"), + Text("TEXT"), + Image("IMAGE"), + + /** + * 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(ModelModality.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ModelModality v : ModelModality.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ModelModality(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ModelModality create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ModelModality', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelModalitySupport.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelModalitySupport.java new file mode 100644 index 00000000000..9e71e58ecb3 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelModalitySupport.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.generativeai.model; + +/** + * A supported input-to-output modality transformation for a model.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ModelModalitySupport.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ModelModalitySupport + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"input", "output"}) + public ModelModalitySupport(ModelModality input, ModelModality output) { + super(); + this.input = input; + this.output = output; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The source modality accepted by the model. */ + @com.fasterxml.jackson.annotation.JsonProperty("input") + private ModelModality input; + + /** + * The source modality accepted by the model. + * + * @param input the value to set + * @return this builder + */ + public Builder input(ModelModality input) { + this.input = input; + this.__explicitlySet__.add("input"); + return this; + } + /** The target modality produced by the model. */ + @com.fasterxml.jackson.annotation.JsonProperty("output") + private ModelModality output; + + /** + * The target modality produced by the model. + * + * @param output the value to set + * @return this builder + */ + public Builder output(ModelModality output) { + this.output = output; + this.__explicitlySet__.add("output"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ModelModalitySupport build() { + ModelModalitySupport model = new ModelModalitySupport(this.input, this.output); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ModelModalitySupport model) { + if (model.wasPropertyExplicitlySet("input")) { + this.input(model.getInput()); + } + if (model.wasPropertyExplicitlySet("output")) { + this.output(model.getOutput()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The source modality accepted by the model. */ + @com.fasterxml.jackson.annotation.JsonProperty("input") + private final ModelModality input; + + /** + * The source modality accepted by the model. + * + * @return the value + */ + public ModelModality getInput() { + return input; + } + + /** The target modality produced by the model. */ + @com.fasterxml.jackson.annotation.JsonProperty("output") + private final ModelModality output; + + /** + * The target modality produced by the model. + * + * @return the value + */ + public ModelModality getOutput() { + return output; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ModelModalitySupport("); + sb.append("super=").append(super.toString()); + sb.append("input=").append(String.valueOf(this.input)); + sb.append(", output=").append(String.valueOf(this.output)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ModelModalitySupport)) { + return false; + } + + ModelModalitySupport other = (ModelModalitySupport) o; + return java.util.Objects.equals(this.input, other.input) + && java.util.Objects.equals(this.output, other.output) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.input == null ? 43 : this.input.hashCode()); + result = (result * PRIME) + (this.output == null ? 43 : this.output.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-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelRoutingPolicy.java similarity index 55% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbConnectionString.java rename to bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelRoutingPolicy.java index f640d9cb96f..02d1c5b307d 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbConnectionString.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelRoutingPolicy.java @@ -2,10 +2,11 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.generativeai.model; /** - * Details of Globally distributed database connection String.
    + * The model routing policy for the routing profile. Routing candidates are selected from the + * allowed models list.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,44 +16,51 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDbConnectionString.Builder.class) + builder = ModelRoutingPolicy.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class DistributedDbConnectionString +public final class ModelRoutingPolicy extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"allConnectionStrings"}) - public DistributedDbConnectionString(java.util.Map allConnectionStrings) { + @java.beans.ConstructorProperties({"allowedModels"}) + public ModelRoutingPolicy(java.util.List allowedModels) { super(); - this.allConnectionStrings = allConnectionStrings; + this.allowedModels = allowedModels; } @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; + /** + * The ordered list of model names the routing candidate is selected from (for example, + * {@code meta.llama-3-70b-instruct}). + * + *

    The order of entries is preserved. Duplicate entries are not allowed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("allowedModels") + private java.util.List allowedModels; /** - * Collection of connection strings. + * The ordered list of model names the routing candidate is selected from (for example, + * {@code meta.llama-3-70b-instruct}). + * + *

    The order of entries is preserved. Duplicate entries are not allowed. * - * @param allConnectionStrings the value to set + * @param allowedModels the value to set * @return this builder */ - public Builder allConnectionStrings(java.util.Map allConnectionStrings) { - this.allConnectionStrings = allConnectionStrings; - this.__explicitlySet__.add("allConnectionStrings"); + public Builder allowedModels(java.util.List allowedModels) { + this.allowedModels = allowedModels; + this.__explicitlySet__.add("allowedModels"); 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); + public ModelRoutingPolicy build() { + ModelRoutingPolicy model = new ModelRoutingPolicy(this.allowedModels); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -60,9 +68,9 @@ public DistributedDbConnectionString build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDbConnectionString model) { - if (model.wasPropertyExplicitlySet("allConnectionStrings")) { - this.allConnectionStrings(model.getAllConnectionStrings()); + public Builder copy(ModelRoutingPolicy model) { + if (model.wasPropertyExplicitlySet("allowedModels")) { + this.allowedModels(model.getAllowedModels()); } return this; } @@ -77,17 +85,25 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Collection of connection strings. */ - @com.fasterxml.jackson.annotation.JsonProperty("allConnectionStrings") - private final java.util.Map allConnectionStrings; + /** + * The ordered list of model names the routing candidate is selected from (for example, {@code + * meta.llama-3-70b-instruct}). + * + *

    The order of entries is preserved. Duplicate entries are not allowed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("allowedModels") + private final java.util.List allowedModels; /** - * Collection of connection strings. + * The ordered list of model names the routing candidate is selected from (for example, {@code + * meta.llama-3-70b-instruct}). + * + *

    The order of entries is preserved. Duplicate entries are not allowed. * * @return the value */ - public java.util.Map getAllConnectionStrings() { - return allConnectionStrings; + public java.util.List getAllowedModels() { + return allowedModels; } @Override @@ -103,9 +119,9 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDbConnectionString("); + sb.append("ModelRoutingPolicy("); sb.append("super=").append(super.toString()); - sb.append("allConnectionStrings=").append(String.valueOf(this.allConnectionStrings)); + sb.append("allowedModels=").append(String.valueOf(this.allowedModels)); sb.append(")"); return sb.toString(); } @@ -115,12 +131,12 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DistributedDbConnectionString)) { + if (!(o instanceof ModelRoutingPolicy)) { return false; } - DistributedDbConnectionString other = (DistributedDbConnectionString) o; - return java.util.Objects.equals(this.allConnectionStrings, other.allConnectionStrings) + ModelRoutingPolicy other = (ModelRoutingPolicy) o; + return java.util.Objects.equals(this.allowedModels, other.allowedModels) && super.equals(other); } @@ -130,9 +146,7 @@ public int hashCode() { int result = 1; result = (result * PRIME) - + (this.allConnectionStrings == null - ? 43 - : this.allConnectionStrings.hashCode()); + + (this.allowedModels == null ? 43 : this.allowedModels.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/Parameter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/Parameter.java new file mode 100644 index 00000000000..895b108892b --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/Parameter.java @@ -0,0 +1,339 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.model; + +/** + * Defines a configurable parameter supported by a model.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Parameter.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Parameter extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "type", + "minimum", + "maximum", + "defaultValue", + "description" + }) + public Parameter( + String name, + String type, + Double minimum, + Double maximum, + String defaultValue, + String description) { + super(); + this.name = name; + this.type = type; + this.minimum = minimum; + this.maximum = maximum; + this.defaultValue = defaultValue; + this.description = description; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of this parameter. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of this parameter. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** The data type of the parameter (e.g., float, integer, string). */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private String type; + + /** + * The data type of the parameter (e.g., float, integer, string). + * + * @param type the value to set + * @return this builder + */ + public Builder type(String type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * The minimum allowed value for this parameter. Applicable only when type is FLOAT or + * INTEGER. + */ + @com.fasterxml.jackson.annotation.JsonProperty("minimum") + private Double minimum; + + /** + * The minimum allowed value for this parameter. Applicable only when type is FLOAT or + * INTEGER. + * + * @param minimum the value to set + * @return this builder + */ + public Builder minimum(Double minimum) { + this.minimum = minimum; + this.__explicitlySet__.add("minimum"); + return this; + } + /** + * The maximum allowed value for this parameter. Applicable only when type is FLOAT or + * INTEGER. + */ + @com.fasterxml.jackson.annotation.JsonProperty("maximum") + private Double maximum; + + /** + * The maximum allowed value for this parameter. Applicable only when type is FLOAT or + * INTEGER. + * + * @param maximum the value to set + * @return this builder + */ + public Builder maximum(Double maximum) { + this.maximum = maximum; + this.__explicitlySet__.add("maximum"); + return this; + } + /** The default value used when this parameter is not supplied. */ + @com.fasterxml.jackson.annotation.JsonProperty("defaultValue") + private String defaultValue; + + /** + * The default value used when this parameter is not supplied. + * + * @param defaultValue the value to set + * @return this builder + */ + public Builder defaultValue(String defaultValue) { + this.defaultValue = defaultValue; + this.__explicitlySet__.add("defaultValue"); + return this; + } + /** A human-readable description of this parameter. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A human-readable description of this parameter. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Parameter build() { + Parameter model = + new Parameter( + this.name, + this.type, + this.minimum, + this.maximum, + this.defaultValue, + this.description); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Parameter model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("minimum")) { + this.minimum(model.getMinimum()); + } + if (model.wasPropertyExplicitlySet("maximum")) { + this.maximum(model.getMaximum()); + } + if (model.wasPropertyExplicitlySet("defaultValue")) { + this.defaultValue(model.getDefaultValue()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The name of this parameter. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of this parameter. + * + * @return the value + */ + public String getName() { + return name; + } + + /** The data type of the parameter (e.g., float, integer, string). */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final String type; + + /** + * The data type of the parameter (e.g., float, integer, string). + * + * @return the value + */ + public String getType() { + return type; + } + + /** + * The minimum allowed value for this parameter. Applicable only when type is FLOAT or INTEGER. + */ + @com.fasterxml.jackson.annotation.JsonProperty("minimum") + private final Double minimum; + + /** + * The minimum allowed value for this parameter. Applicable only when type is FLOAT or INTEGER. + * + * @return the value + */ + public Double getMinimum() { + return minimum; + } + + /** + * The maximum allowed value for this parameter. Applicable only when type is FLOAT or INTEGER. + */ + @com.fasterxml.jackson.annotation.JsonProperty("maximum") + private final Double maximum; + + /** + * The maximum allowed value for this parameter. Applicable only when type is FLOAT or INTEGER. + * + * @return the value + */ + public Double getMaximum() { + return maximum; + } + + /** The default value used when this parameter is not supplied. */ + @com.fasterxml.jackson.annotation.JsonProperty("defaultValue") + private final String defaultValue; + + /** + * The default value used when this parameter is not supplied. + * + * @return the value + */ + public String getDefaultValue() { + return defaultValue; + } + + /** A human-readable description of this parameter. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A human-readable description of this parameter. + * + * @return the value + */ + public String getDescription() { + return description; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Parameter("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", minimum=").append(String.valueOf(this.minimum)); + sb.append(", maximum=").append(String.valueOf(this.maximum)); + sb.append(", defaultValue=").append(String.valueOf(this.defaultValue)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Parameter)) { + return false; + } + + Parameter other = (Parameter) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.minimum, other.minimum) + && java.util.Objects.equals(this.maximum, other.maximum) + && java.util.Objects.equals(this.defaultValue, other.defaultValue) + && java.util.Objects.equals(this.description, other.description) + && 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.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.minimum == null ? 43 : this.minimum.hashCode()); + result = (result * PRIME) + (this.maximum == null ? 43 : this.maximum.hashCode()); + result = (result * PRIME) + (this.defaultValue == null ? 43 : this.defaultValue.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/PreviousRoutingProfileState.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/PreviousRoutingProfileState.java new file mode 100644 index 00000000000..85237ee7859 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/PreviousRoutingProfileState.java @@ -0,0 +1,663 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.model; + +/** + * A bounded snapshot of the previous state of a routing profile. This object intentionally omits + * {@code previousState} to avoid recursive nesting.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PreviousRoutingProfileState.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PreviousRoutingProfileState + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "description", + "compartmentId", + "timeCreated", + "timeUpdated", + "lifecycleState", + "lifecycleDetails", + "regionRoutingPolicy", + "modelRoutingPolicy", + "freeformTags", + "definedTags", + "systemTags" + }) + public PreviousRoutingProfileState( + String id, + String displayName, + String description, + String compartmentId, + java.util.Date timeCreated, + java.util.Date timeUpdated, + RoutingProfile.LifecycleState lifecycleState, + String lifecycleDetails, + RegionRoutingPolicy regionRoutingPolicy, + ModelRoutingPolicy modelRoutingPolicy, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.description = description; + this.compartmentId = compartmentId; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.regionRoutingPolicy = regionRoutingPolicy; + this.modelRoutingPolicy = modelRoutingPolicy; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** An OCID that uniquely identifies this routing profile resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * An OCID that uniquely identifies this routing profile resource. + * + * @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; + } + /** An optional description of the routing profile. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * An optional description of the routing profile. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** The OCID of the compartment in which the routing profile lives. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment in which the routing profile lives. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The date and time that the routing profile was created in the format of an RFC3339 + * datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time that the routing profile was created in the format of an RFC3339 + * 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 date and time that the routing profile was updated in the format of an RFC3339 + * datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time that the routing profile was updated in the format of an RFC3339 + * 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 current state of the routing profile. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private RoutingProfile.LifecycleState lifecycleState; + + /** + * The current state of the routing profile. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(RoutingProfile.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state of the routing profile in more detail that can + * provide actionable information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state of the routing profile in more detail that can + * provide actionable information. + * + * @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("regionRoutingPolicy") + private RegionRoutingPolicy regionRoutingPolicy; + + public Builder regionRoutingPolicy(RegionRoutingPolicy regionRoutingPolicy) { + this.regionRoutingPolicy = regionRoutingPolicy; + this.__explicitlySet__.add("regionRoutingPolicy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("modelRoutingPolicy") + private ModelRoutingPolicy modelRoutingPolicy; + + public Builder modelRoutingPolicy(ModelRoutingPolicy modelRoutingPolicy) { + this.modelRoutingPolicy = modelRoutingPolicy; + this.__explicitlySet__.add("modelRoutingPolicy"); + 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": {"free-tier-retained": "true"}}} + */ + @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": {"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 PreviousRoutingProfileState build() { + PreviousRoutingProfileState model = + new PreviousRoutingProfileState( + this.id, + this.displayName, + this.description, + this.compartmentId, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleDetails, + this.regionRoutingPolicy, + this.modelRoutingPolicy, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PreviousRoutingProfileState model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("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("regionRoutingPolicy")) { + this.regionRoutingPolicy(model.getRegionRoutingPolicy()); + } + if (model.wasPropertyExplicitlySet("modelRoutingPolicy")) { + this.modelRoutingPolicy(model.getModelRoutingPolicy()); + } + 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); + } + + /** An OCID that uniquely identifies this routing profile resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * An OCID that uniquely identifies this routing profile resource. + * + * @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; + } + + /** An optional description of the routing profile. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * An optional description of the routing profile. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The OCID of the compartment in which the routing profile lives. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment in which the routing profile lives. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The date and time that the routing profile was created in the format of an RFC3339 datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time that the routing profile was created in the format of an RFC3339 datetime + * string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time that the routing profile was updated in the format of an RFC3339 datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time that the routing profile was updated in the format of an RFC3339 datetime + * string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The current state of the routing profile. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final RoutingProfile.LifecycleState lifecycleState; + + /** + * The current state of the routing profile. + * + * @return the value + */ + public RoutingProfile.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state of the routing profile in more detail that can provide + * actionable information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state of the routing profile in more detail that can provide + * actionable information. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("regionRoutingPolicy") + private final RegionRoutingPolicy regionRoutingPolicy; + + public RegionRoutingPolicy getRegionRoutingPolicy() { + return regionRoutingPolicy; + } + + @com.fasterxml.jackson.annotation.JsonProperty("modelRoutingPolicy") + private final ModelRoutingPolicy modelRoutingPolicy; + + public ModelRoutingPolicy getModelRoutingPolicy() { + return modelRoutingPolicy; + } + + /** + * 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": {"free-tier-retained": "true"}}} + */ + @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": {"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("PreviousRoutingProfileState("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", 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(", regionRoutingPolicy=").append(String.valueOf(this.regionRoutingPolicy)); + sb.append(", modelRoutingPolicy=").append(String.valueOf(this.modelRoutingPolicy)); + 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 PreviousRoutingProfileState)) { + return false; + } + + PreviousRoutingProfileState other = (PreviousRoutingProfileState) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.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.regionRoutingPolicy, other.regionRoutingPolicy) + && java.util.Objects.equals(this.modelRoutingPolicy, other.modelRoutingPolicy) + && 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.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.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.regionRoutingPolicy == null + ? 43 + : this.regionRoutingPolicy.hashCode()); + result = + (result * PRIME) + + (this.modelRoutingPolicy == null + ? 43 + : this.modelRoutingPolicy.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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/RegionRoutingPolicy.java similarity index 54% rename from bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails.java rename to bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/RegionRoutingPolicy.java index e0cf801b012..c0dce932f8b 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/RegionRoutingPolicy.java @@ -2,11 +2,11 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -package com.oracle.bmc.distributeddatabase.model; +package com.oracle.bmc.generativeai.model; /** - * Details of the request to upload the CA signed certificates to GSMs and generate wallets for GSMs - * of the Globally distributed database.
    + * The cross-region routing policy for the routing profile. If this policy is not specified, only + * the local region is allowed.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -16,46 +16,51 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails.Builder.class) + builder = RegionRoutingPolicy.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails +public final class RegionRoutingPolicy extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"caSignedCertificate"}) - public UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails( - String caSignedCertificate) { + @java.beans.ConstructorProperties({"allowedRegions"}) + public RegionRoutingPolicy(java.util.List allowedRegions) { super(); - this.caSignedCertificate = caSignedCertificate; + this.allowedRegions = allowedRegions; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The CA signed certificate key. */ - @com.fasterxml.jackson.annotation.JsonProperty("caSignedCertificate") - private String caSignedCertificate; + /** + * The ordered list of regions that routing is allowed to reach. Each entry is a region + * identifier (for example, {@code us-chicago-1}). + * + *

    The order of entries is preserved. Duplicate entries are not allowed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("allowedRegions") + private java.util.List allowedRegions; /** - * The CA signed certificate key. + * The ordered list of regions that routing is allowed to reach. Each entry is a region + * identifier (for example, {@code us-chicago-1}). + * + *

    The order of entries is preserved. Duplicate entries are not allowed. * - * @param caSignedCertificate the value to set + * @param allowedRegions the value to set * @return this builder */ - public Builder caSignedCertificate(String caSignedCertificate) { - this.caSignedCertificate = caSignedCertificate; - this.__explicitlySet__.add("caSignedCertificate"); + public Builder allowedRegions(java.util.List allowedRegions) { + this.allowedRegions = allowedRegions; + this.__explicitlySet__.add("allowedRegions"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails build() { - UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails model = - new UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails( - this.caSignedCertificate); + public RegionRoutingPolicy build() { + RegionRoutingPolicy model = new RegionRoutingPolicy(this.allowedRegions); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -63,10 +68,9 @@ public UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails build( } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy( - UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails model) { - if (model.wasPropertyExplicitlySet("caSignedCertificate")) { - this.caSignedCertificate(model.getCaSignedCertificate()); + public Builder copy(RegionRoutingPolicy model) { + if (model.wasPropertyExplicitlySet("allowedRegions")) { + this.allowedRegions(model.getAllowedRegions()); } return this; } @@ -81,17 +85,25 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The CA signed certificate key. */ - @com.fasterxml.jackson.annotation.JsonProperty("caSignedCertificate") - private final String caSignedCertificate; + /** + * The ordered list of regions that routing is allowed to reach. Each entry is a region + * identifier (for example, {@code us-chicago-1}). + * + *

    The order of entries is preserved. Duplicate entries are not allowed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("allowedRegions") + private final java.util.List allowedRegions; /** - * The CA signed certificate key. + * The ordered list of regions that routing is allowed to reach. Each entry is a region + * identifier (for example, {@code us-chicago-1}). + * + *

    The order of entries is preserved. Duplicate entries are not allowed. * * @return the value */ - public String getCaSignedCertificate() { - return caSignedCertificate; + public java.util.List getAllowedRegions() { + return allowedRegions; } @Override @@ -107,9 +119,9 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails("); + sb.append("RegionRoutingPolicy("); sb.append("super=").append(super.toString()); - sb.append("caSignedCertificate=").append(String.valueOf(this.caSignedCertificate)); + sb.append("allowedRegions=").append(String.valueOf(this.allowedRegions)); sb.append(")"); return sb.toString(); } @@ -119,13 +131,12 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails)) { + if (!(o instanceof RegionRoutingPolicy)) { return false; } - UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails other = - (UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails) o; - return java.util.Objects.equals(this.caSignedCertificate, other.caSignedCertificate) + RegionRoutingPolicy other = (RegionRoutingPolicy) o; + return java.util.Objects.equals(this.allowedRegions, other.allowedRegions) && super.equals(other); } @@ -135,9 +146,7 @@ public int hashCode() { int result = 1; result = (result * PRIME) - + (this.caSignedCertificate == null - ? 43 - : this.caSignedCertificate.hashCode()); + + (this.allowedRegions == null ? 43 : this.allowedRegions.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-generativeai/src/main/java/com/oracle/bmc/generativeai/model/RoutingProfile.java similarity index 61% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpoint.java rename to bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/RoutingProfile.java index a1db2476cdb..c05969b904e 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpoint.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/RoutingProfile.java @@ -2,10 +2,19 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.generativeai.model; /** - * DistributedDatabasePrivateEndpoint resource.
    + * A routing profile is a reusable set of policies that controls how Smart Router selects a target + * region and model for inference traffic. It can scope routing to allowed regions and allowed + * models. + * + *

    To use any of the API operations, you must be authorized in an IAM policy. If you're not + * authorized, talk to an administrator who gives OCI resource access to users. See [Getting Started + * with + * Policies](https://docs.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm) + * and [Getting Access to Generative AI + * Resources](https://docs.oracle.com/iaas/Content/generative-ai/iam-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 @@ -15,63 +24,56 @@ * 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) +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = RoutingProfile.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class DistributedDatabasePrivateEndpoint +public final class RoutingProfile extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ "id", - "compartmentId", - "subnetId", - "vcnId", "displayName", "description", - "privateIp", - "vcnNsgIds", + "compartmentId", "timeCreated", "timeUpdated", "lifecycleState", "lifecycleDetails", - "proxyComputeInstanceId", + "regionRoutingPolicy", + "modelRoutingPolicy", + "previousState", "freeformTags", "definedTags", "systemTags" }) - public DistributedDatabasePrivateEndpoint( + public RoutingProfile( String id, - String compartmentId, - String subnetId, - String vcnId, String displayName, String description, - String privateIp, - java.util.List vcnNsgIds, + String compartmentId, java.util.Date timeCreated, java.util.Date timeUpdated, LifecycleState lifecycleState, String lifecycleDetails, - String proxyComputeInstanceId, + RegionRoutingPolicy regionRoutingPolicy, + ModelRoutingPolicy modelRoutingPolicy, + PreviousRoutingProfileState previousState, 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.compartmentId = compartmentId; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; - this.proxyComputeInstanceId = proxyComputeInstanceId; + this.regionRoutingPolicy = regionRoutingPolicy; + this.modelRoutingPolicy = modelRoutingPolicy; + this.previousState = previousState; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -79,12 +81,12 @@ public DistributedDatabasePrivateEndpoint( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The identifier of the Private Endpoint. */ + /** An OCID that uniquely identifies this routing profile resource. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** - * The identifier of the Private Endpoint. + * An OCID that uniquely identifies this routing profile resource. * * @param id the value to set * @return this builder @@ -94,57 +96,12 @@ public Builder id(String 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. */ + /** A user-friendly name. Does not have to be unique, and it's changeable. */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private String displayName; /** - * DistributedDatabasePrivateEndpoint display name. + * A user-friendly name. Does not have to be unique, and it's changeable. * * @param displayName the value to set * @return this builder @@ -154,12 +111,12 @@ public Builder displayName(String displayName) { this.__explicitlySet__.add("displayName"); return this; } - /** DistributedDatabasePrivateEndpoint description. */ + /** An optional description of the routing profile. */ @com.fasterxml.jackson.annotation.JsonProperty("description") private String description; /** - * DistributedDatabasePrivateEndpoint description. + * An optional description of the routing profile. * * @param description the value to set * @return this builder @@ -169,48 +126,31 @@ public Builder description(String 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 OCID of the compartment in which the routing profile lives. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; /** - * The list of network security group (NSG) details associated with the private endpoint. + * The OCID of the compartment in which the routing profile lives. * - * @param vcnNsgIds the value to set + * @param compartmentId the value to set * @return this builder */ - public Builder vcnNsgIds(java.util.List vcnNsgIds) { - this.vcnNsgIds = vcnNsgIds; - this.__explicitlySet__.add("vcnNsgIds"); + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); return this; } /** - * The time the DistributedDatabasePrivateEndpoint was first created. An RFC3339 formatted - * datetime string + * The date and time that the routing profile was created in the format of an RFC3339 + * 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 + * The date and time that the routing profile was created in the format of an RFC3339 + * datetime string. * * @param timeCreated the value to set * @return this builder @@ -220,12 +160,16 @@ public Builder timeCreated(java.util.Date timeCreated) { this.__explicitlySet__.add("timeCreated"); return this; } - /** The time the Private Endpoint was last updated. An RFC3339 formatted datetime string */ + /** + * The date and time that the routing profile was updated in the format of an RFC3339 + * 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 + * The date and time that the routing profile was updated in the format of an RFC3339 + * datetime string. * * @param timeUpdated the value to set * @return this builder @@ -235,12 +179,12 @@ public Builder timeUpdated(java.util.Date timeUpdated) { this.__explicitlySet__.add("timeUpdated"); return this; } - /** Lifecycle states for private endpoint. */ + /** The current state of the routing profile. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; /** - * Lifecycle states for private endpoint. + * The current state of the routing profile. * * @param lifecycleState the value to set * @return this builder @@ -250,12 +194,16 @@ public Builder lifecycleState(LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } - /** Detailed message for the lifecycle state. */ + /** + * A message describing the current state of the routing profile in more detail that can + * provide actionable information. + */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") private String lifecycleDetails; /** - * Detailed message for the lifecycle state. + * A message describing the current state of the routing profile in more detail that can + * provide actionable information. * * @param lifecycleDetails the value to set * @return this builder @@ -265,31 +213,49 @@ public Builder lifecycleDetails(String 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"); + @com.fasterxml.jackson.annotation.JsonProperty("regionRoutingPolicy") + private RegionRoutingPolicy regionRoutingPolicy; + + public Builder regionRoutingPolicy(RegionRoutingPolicy regionRoutingPolicy) { + this.regionRoutingPolicy = regionRoutingPolicy; + this.__explicitlySet__.add("regionRoutingPolicy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("modelRoutingPolicy") + private ModelRoutingPolicy modelRoutingPolicy; + + public Builder modelRoutingPolicy(ModelRoutingPolicy modelRoutingPolicy) { + this.modelRoutingPolicy = modelRoutingPolicy; + this.__explicitlySet__.add("modelRoutingPolicy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("previousState") + private PreviousRoutingProfileState previousState; + + public Builder previousState(PreviousRoutingProfileState previousState) { + this.previousState = previousState; + this.__explicitlySet__.add("previousState"); 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"}} + * 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; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * 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 @@ -300,15 +266,21 @@ public Builder freeformTags(java.util.Map freeformTags) { return this; } /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * 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. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * 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 @@ -320,15 +292,17 @@ public Builder definedTags( return this; } /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code - * {"orcl-cloud": {"free-tier-retained": "true"}}} + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

    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"}}} + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

    Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} * * @param systemTags the value to set * @return this builder @@ -342,22 +316,20 @@ public Builder systemTags(java.util.Map> s @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public DistributedDatabasePrivateEndpoint build() { - DistributedDatabasePrivateEndpoint model = - new DistributedDatabasePrivateEndpoint( + public RoutingProfile build() { + RoutingProfile model = + new RoutingProfile( this.id, - this.compartmentId, - this.subnetId, - this.vcnId, this.displayName, this.description, - this.privateIp, - this.vcnNsgIds, + this.compartmentId, this.timeCreated, this.timeUpdated, this.lifecycleState, this.lifecycleDetails, - this.proxyComputeInstanceId, + this.regionRoutingPolicy, + this.modelRoutingPolicy, + this.previousState, this.freeformTags, this.definedTags, this.systemTags); @@ -368,30 +340,18 @@ public DistributedDatabasePrivateEndpoint build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabasePrivateEndpoint model) { + public Builder copy(RoutingProfile 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("compartmentId")) { + this.compartmentId(model.getCompartmentId()); } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); @@ -405,8 +365,14 @@ public Builder copy(DistributedDatabasePrivateEndpoint model) { if (model.wasPropertyExplicitlySet("lifecycleDetails")) { this.lifecycleDetails(model.getLifecycleDetails()); } - if (model.wasPropertyExplicitlySet("proxyComputeInstanceId")) { - this.proxyComputeInstanceId(model.getProxyComputeInstanceId()); + if (model.wasPropertyExplicitlySet("regionRoutingPolicy")) { + this.regionRoutingPolicy(model.getRegionRoutingPolicy()); + } + if (model.wasPropertyExplicitlySet("modelRoutingPolicy")) { + this.modelRoutingPolicy(model.getModelRoutingPolicy()); + } + if (model.wasPropertyExplicitlySet("previousState")) { + this.previousState(model.getPreviousState()); } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); @@ -430,12 +396,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The identifier of the Private Endpoint. */ + /** An OCID that uniquely identifies this routing profile resource. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** - * The identifier of the Private Endpoint. + * An OCID that uniquely identifies this routing profile resource. * * @return the value */ @@ -443,51 +409,12 @@ 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. */ + /** A user-friendly name. Does not have to be unique, and it's changeable. */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * DistributedDatabasePrivateEndpoint display name. + * A user-friendly name. Does not have to be unique, and it's changeable. * * @return the value */ @@ -495,12 +422,12 @@ public String getDisplayName() { return displayName; } - /** DistributedDatabasePrivateEndpoint description. */ + /** An optional description of the routing profile. */ @com.fasterxml.jackson.annotation.JsonProperty("description") private final String description; /** - * DistributedDatabasePrivateEndpoint description. + * An optional description of the routing profile. * * @return the value */ @@ -508,42 +435,29 @@ 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 OCID of the compartment in which the routing profile lives. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; /** - * The list of network security group (NSG) details associated with the private endpoint. + * The OCID of the compartment in which the routing profile lives. * * @return the value */ - public java.util.List getVcnNsgIds() { - return vcnNsgIds; + public String getCompartmentId() { + return compartmentId; } /** - * The time the DistributedDatabasePrivateEndpoint was first created. An RFC3339 formatted - * datetime string + * The date and time that the routing profile was created in the format of an RFC3339 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 + * The date and time that the routing profile was created in the format of an RFC3339 datetime + * string. * * @return the value */ @@ -551,12 +465,16 @@ public java.util.Date getTimeCreated() { return timeCreated; } - /** The time the Private Endpoint was last updated. An RFC3339 formatted datetime string */ + /** + * The date and time that the routing profile was updated in the format of an RFC3339 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 + * The date and time that the routing profile was updated in the format of an RFC3339 datetime + * string. * * @return the value */ @@ -564,15 +482,14 @@ public java.util.Date getTimeUpdated() { return timeUpdated; } - /** Lifecycle states for private endpoint. */ + /** The current state of the routing profile. */ public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { Active("ACTIVE"), - Failed("FAILED"), - Inactive("INACTIVE"), + Creating("CREATING"), + Updating("UPDATING"), Deleting("DELETING"), Deleted("DELETED"), - Updating("UPDATING"), - Creating("CREATING"), + Failed("FAILED"), /** * This value is used if a service returns a value for this enum that is not recognized by @@ -615,12 +532,12 @@ public static LifecycleState create(String key) { return UnknownEnumValue; } }; - /** Lifecycle states for private endpoint. */ + /** The current state of the routing profile. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final LifecycleState lifecycleState; /** - * Lifecycle states for private endpoint. + * The current state of the routing profile. * * @return the value */ @@ -628,12 +545,16 @@ public LifecycleState getLifecycleState() { return lifecycleState; } - /** Detailed message for the lifecycle state. */ + /** + * A message describing the current state of the routing profile in more detail that can provide + * actionable information. + */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") private final String lifecycleDetails; /** - * Detailed message for the lifecycle state. + * A message describing the current state of the routing profile in more detail that can provide + * actionable information. * * @return the value */ @@ -641,29 +562,43 @@ public String getLifecycleDetails() { return lifecycleDetails; } - /** The identifier of the proxy compute instance. */ - @com.fasterxml.jackson.annotation.JsonProperty("proxyComputeInstanceId") - private final String proxyComputeInstanceId; + @com.fasterxml.jackson.annotation.JsonProperty("regionRoutingPolicy") + private final RegionRoutingPolicy regionRoutingPolicy; - /** - * The identifier of the proxy compute instance. - * - * @return the value - */ - public String getProxyComputeInstanceId() { - return proxyComputeInstanceId; + public RegionRoutingPolicy getRegionRoutingPolicy() { + return regionRoutingPolicy; + } + + @com.fasterxml.jackson.annotation.JsonProperty("modelRoutingPolicy") + private final ModelRoutingPolicy modelRoutingPolicy; + + public ModelRoutingPolicy getModelRoutingPolicy() { + return modelRoutingPolicy; + } + + @com.fasterxml.jackson.annotation.JsonProperty("previousState") + private final PreviousRoutingProfileState previousState; + + public PreviousRoutingProfileState getPreviousState() { + return previousState; } /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * 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; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * 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 */ @@ -672,15 +607,21 @@ public java.util.Map getFreeformTags() { } /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: - * {@code {"foo-namespace": {"bar-key": "value"}}} + * 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. Example: - * {@code {"foo-namespace": {"bar-key": "value"}}} + * 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 */ @@ -689,15 +630,17 @@ public java.util.Map> getDefinedTags() { } /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code - * {"orcl-cloud": {"free-tier-retained": "true"}}} + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

    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"}}} + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

    Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} * * @return the value */ @@ -718,21 +661,19 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabasePrivateEndpoint("); + sb.append("RoutingProfile("); 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(", compartmentId=").append(String.valueOf(this.compartmentId)); 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(", regionRoutingPolicy=").append(String.valueOf(this.regionRoutingPolicy)); + sb.append(", modelRoutingPolicy=").append(String.valueOf(this.modelRoutingPolicy)); + sb.append(", previousState=").append(String.valueOf(this.previousState)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -745,25 +686,22 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DistributedDatabasePrivateEndpoint)) { + if (!(o instanceof RoutingProfile)) { return false; } - DistributedDatabasePrivateEndpoint other = (DistributedDatabasePrivateEndpoint) o; + RoutingProfile other = (RoutingProfile) 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.compartmentId, other.compartmentId) && 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.regionRoutingPolicy, other.regionRoutingPolicy) + && java.util.Objects.equals(this.modelRoutingPolicy, other.modelRoutingPolicy) + && java.util.Objects.equals(this.previousState, other.previousState) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -775,15 +713,11 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.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 = @@ -794,9 +728,17 @@ public int hashCode() { + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); result = (result * PRIME) - + (this.proxyComputeInstanceId == null + + (this.regionRoutingPolicy == null ? 43 - : this.proxyComputeInstanceId.hashCode()); + : this.regionRoutingPolicy.hashCode()); + result = + (result * PRIME) + + (this.modelRoutingPolicy == null + ? 43 + : this.modelRoutingPolicy.hashCode()); + result = + (result * PRIME) + + (this.previousState == null ? 43 : this.previousState.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/RoutingProfileCollection.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/RoutingProfileCollection.java new file mode 100644 index 00000000000..7f06c79a74c --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/RoutingProfileCollection.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.generativeai.model; + +/** + * Results of a routing profile search. Contains RoutingProfileSummary 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: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RoutingProfileCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RoutingProfileCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public RoutingProfileCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of routing profiles. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of routing profiles. + * + * @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 RoutingProfileCollection build() { + RoutingProfileCollection model = new RoutingProfileCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RoutingProfileCollection 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 routing profiles. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of routing profiles. + * + * @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("RoutingProfileCollection("); + 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 RoutingProfileCollection)) { + return false; + } + + RoutingProfileCollection other = (RoutingProfileCollection) 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-generativeai/src/main/java/com/oracle/bmc/generativeai/model/RoutingProfileSummary.java similarity index 65% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpointSummary.java rename to bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/RoutingProfileSummary.java index 9af84c736c0..8ac748f05a8 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpointSummary.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/RoutingProfileSummary.java @@ -2,10 +2,10 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.generativeai.model; /** - * DistributedDatabasePrivateEndpoint resource summary.
    + * Summary information for a routing profile 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 @@ -15,57 +15,54 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabasePrivateEndpointSummary.Builder.class) + builder = RoutingProfileSummary.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class DistributedDatabasePrivateEndpointSummary +public final class RoutingProfileSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ "id", + "displayName", "description", "compartmentId", - "subnetId", - "vcnId", - "displayName", - "vcnNsgIds", "timeCreated", "timeUpdated", "lifecycleState", "lifecycleDetails", + "regionRoutingPolicy", + "modelRoutingPolicy", "freeformTags", "definedTags", "systemTags" }) - public DistributedDatabasePrivateEndpointSummary( + public RoutingProfileSummary( String id, + String displayName, 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, + RoutingProfile.LifecycleState lifecycleState, String lifecycleDetails, + RegionRoutingPolicy regionRoutingPolicy, + ModelRoutingPolicy modelRoutingPolicy, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { super(); this.id = id; + this.displayName = displayName; 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.regionRoutingPolicy = regionRoutingPolicy; + this.modelRoutingPolicy = modelRoutingPolicy; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -73,12 +70,12 @@ public DistributedDatabasePrivateEndpointSummary( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** DistributedDatabasePrivateEndpoint identifier */ + /** An OCID that uniquely identifies this routing profile resource. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** - * DistributedDatabasePrivateEndpoint identifier + * An OCID that uniquely identifies this routing profile resource. * * @param id the value to set * @return this builder @@ -88,12 +85,27 @@ public Builder id(String id) { this.__explicitlySet__.add("id"); return this; } - /** DistributedDatabasePrivateEndpoint description. */ + /** 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; + } + /** An optional description of the routing profile. */ @com.fasterxml.jackson.annotation.JsonProperty("description") private String description; /** - * DistributedDatabasePrivateEndpoint description. + * An optional description of the routing profile. * * @param description the value to set * @return this builder @@ -103,12 +115,12 @@ public Builder description(String description) { this.__explicitlySet__.add("description"); return this; } - /** Identifier of the compartment where private endpoint exists. */ + /** The OCID of the compartment in which the routing profile lives. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * Identifier of the compartment where private endpoint exists. + * The OCID of the compartment in which the routing profile lives. * * @param compartmentId the value to set * @return this builder @@ -118,74 +130,16 @@ public Builder compartmentId(String 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. + * The date and time that the routing profile was created in the format of an RFC3339 + * datetime string. */ - @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 + * The date and time that the routing profile was created in the format of an RFC3339 + * datetime string. * * @param timeCreated the value to set * @return this builder @@ -195,12 +149,16 @@ public Builder timeCreated(java.util.Date timeCreated) { this.__explicitlySet__.add("timeCreated"); return this; } - /** The time the private endpoint was last updated. An RFC3339 formatted datetime string */ + /** + * The date and time that the routing profile was updated in the format of an RFC3339 + * 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 + * The date and time that the routing profile was updated in the format of an RFC3339 + * datetime string. * * @param timeUpdated the value to set * @return this builder @@ -210,28 +168,31 @@ public Builder timeUpdated(java.util.Date timeUpdated) { this.__explicitlySet__.add("timeUpdated"); return this; } - /** Lifecycle state of private endpoint. */ + /** The current state of the routing profile. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private DistributedDatabasePrivateEndpoint.LifecycleState lifecycleState; + private RoutingProfile.LifecycleState lifecycleState; /** - * Lifecycle state of private endpoint. + * The current state of the routing profile. * * @param lifecycleState the value to set * @return this builder */ - public Builder lifecycleState( - DistributedDatabasePrivateEndpoint.LifecycleState lifecycleState) { + public Builder lifecycleState(RoutingProfile.LifecycleState lifecycleState) { this.lifecycleState = lifecycleState; this.__explicitlySet__.add("lifecycleState"); return this; } - /** Detailed message for the lifecycle state. */ + /** + * A message describing the current state with detail that can provide actionable + * information. + */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") private String lifecycleDetails; /** - * Detailed message for the lifecycle state. + * A message describing the current state with detail that can provide actionable + * information. * * @param lifecycleDetails the value to set * @return this builder @@ -241,16 +202,40 @@ public Builder lifecycleDetails(String lifecycleDetails) { this.__explicitlySet__.add("lifecycleDetails"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("regionRoutingPolicy") + private RegionRoutingPolicy regionRoutingPolicy; + + public Builder regionRoutingPolicy(RegionRoutingPolicy regionRoutingPolicy) { + this.regionRoutingPolicy = regionRoutingPolicy; + this.__explicitlySet__.add("regionRoutingPolicy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("modelRoutingPolicy") + private ModelRoutingPolicy modelRoutingPolicy; + + public Builder modelRoutingPolicy(ModelRoutingPolicy modelRoutingPolicy) { + this.modelRoutingPolicy = modelRoutingPolicy; + this.__explicitlySet__.add("modelRoutingPolicy"); + 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"}} + * 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; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * 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 @@ -261,15 +246,21 @@ public Builder freeformTags(java.util.Map freeformTags) { return this; } /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * 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. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * 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 @@ -281,15 +272,17 @@ public Builder definedTags( return this; } /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code - * {"orcl-cloud": {"free-tier-retained": "true"}}} + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

    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"}}} + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

    Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} * * @param systemTags the value to set * @return this builder @@ -303,20 +296,19 @@ public Builder systemTags(java.util.Map> s @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public DistributedDatabasePrivateEndpointSummary build() { - DistributedDatabasePrivateEndpointSummary model = - new DistributedDatabasePrivateEndpointSummary( + public RoutingProfileSummary build() { + RoutingProfileSummary model = + new RoutingProfileSummary( this.id, + this.displayName, this.description, this.compartmentId, - this.subnetId, - this.vcnId, - this.displayName, - this.vcnNsgIds, this.timeCreated, this.timeUpdated, this.lifecycleState, this.lifecycleDetails, + this.regionRoutingPolicy, + this.modelRoutingPolicy, this.freeformTags, this.definedTags, this.systemTags); @@ -327,28 +319,19 @@ public DistributedDatabasePrivateEndpointSummary build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabasePrivateEndpointSummary model) { + public Builder copy(RoutingProfileSummary model) { if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } if (model.wasPropertyExplicitlySet("description")) { this.description(model.getDescription()); } if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } - if (model.wasPropertyExplicitlySet("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()); } @@ -361,6 +344,12 @@ public Builder copy(DistributedDatabasePrivateEndpointSummary model) { if (model.wasPropertyExplicitlySet("lifecycleDetails")) { this.lifecycleDetails(model.getLifecycleDetails()); } + if (model.wasPropertyExplicitlySet("regionRoutingPolicy")) { + this.regionRoutingPolicy(model.getRegionRoutingPolicy()); + } + if (model.wasPropertyExplicitlySet("modelRoutingPolicy")) { + this.modelRoutingPolicy(model.getModelRoutingPolicy()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -383,12 +372,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** DistributedDatabasePrivateEndpoint identifier */ + /** An OCID that uniquely identifies this routing profile resource. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** - * DistributedDatabasePrivateEndpoint identifier + * An OCID that uniquely identifies this routing profile resource. * * @return the value */ @@ -396,12 +385,25 @@ public String getId() { return id; } - /** DistributedDatabasePrivateEndpoint description. */ + /** 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; + } + + /** An optional description of the routing profile. */ @com.fasterxml.jackson.annotation.JsonProperty("description") private final String description; /** - * DistributedDatabasePrivateEndpoint description. + * An optional description of the routing profile. * * @return the value */ @@ -409,12 +411,12 @@ public String getDescription() { return description; } - /** Identifier of the compartment where private endpoint exists. */ + /** The OCID of the compartment in which the routing profile lives. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * Identifier of the compartment where private endpoint exists. + * The OCID of the compartment in which the routing profile lives. * * @return the value */ @@ -422,64 +424,16 @@ 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 + * The date and time that the routing profile was created in the format of an RFC3339 datetime + * string. */ - 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 + * The date and time that the routing profile was created in the format of an RFC3339 datetime + * string. * * @return the value */ @@ -487,12 +441,16 @@ public java.util.Date getTimeCreated() { return timeCreated; } - /** The time the private endpoint was last updated. An RFC3339 formatted datetime string */ + /** + * The date and time that the routing profile was updated in the format of an RFC3339 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 + * The date and time that the routing profile was updated in the format of an RFC3339 datetime + * string. * * @return the value */ @@ -500,25 +458,27 @@ public java.util.Date getTimeUpdated() { return timeUpdated; } - /** Lifecycle state of private endpoint. */ + /** The current state of the routing profile. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private final DistributedDatabasePrivateEndpoint.LifecycleState lifecycleState; + private final RoutingProfile.LifecycleState lifecycleState; /** - * Lifecycle state of private endpoint. + * The current state of the routing profile. * * @return the value */ - public DistributedDatabasePrivateEndpoint.LifecycleState getLifecycleState() { + public RoutingProfile.LifecycleState getLifecycleState() { return lifecycleState; } - /** Detailed message for the lifecycle state. */ + /** + * A message describing the current state with detail that can provide actionable information. + */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") private final String lifecycleDetails; /** - * Detailed message for the lifecycle state. + * A message describing the current state with detail that can provide actionable information. * * @return the value */ @@ -526,16 +486,36 @@ public String getLifecycleDetails() { return lifecycleDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("regionRoutingPolicy") + private final RegionRoutingPolicy regionRoutingPolicy; + + public RegionRoutingPolicy getRegionRoutingPolicy() { + return regionRoutingPolicy; + } + + @com.fasterxml.jackson.annotation.JsonProperty("modelRoutingPolicy") + private final ModelRoutingPolicy modelRoutingPolicy; + + public ModelRoutingPolicy getModelRoutingPolicy() { + return modelRoutingPolicy; + } + /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * 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; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * 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 */ @@ -544,15 +524,21 @@ public java.util.Map getFreeformTags() { } /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: - * {@code {"foo-namespace": {"bar-key": "value"}}} + * 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. Example: - * {@code {"foo-namespace": {"bar-key": "value"}}} + * 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 */ @@ -561,15 +547,17 @@ public java.util.Map> getDefinedTags() { } /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code - * {"orcl-cloud": {"free-tier-retained": "true"}}} + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

    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"}}} + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

    Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} * * @return the value */ @@ -590,19 +578,18 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabasePrivateEndpointSummary("); + sb.append("RoutingProfileSummary("); sb.append("super=").append(super.toString()); sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(", 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(", regionRoutingPolicy=").append(String.valueOf(this.regionRoutingPolicy)); + sb.append(", modelRoutingPolicy=").append(String.valueOf(this.modelRoutingPolicy)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -615,23 +602,21 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DistributedDatabasePrivateEndpointSummary)) { + if (!(o instanceof RoutingProfileSummary)) { return false; } - DistributedDatabasePrivateEndpointSummary other = - (DistributedDatabasePrivateEndpointSummary) o; + RoutingProfileSummary other = (RoutingProfileSummary) o; return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.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.regionRoutingPolicy, other.regionRoutingPolicy) + && java.util.Objects.equals(this.modelRoutingPolicy, other.modelRoutingPolicy) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -643,14 +628,11 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.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 = @@ -659,6 +641,16 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.regionRoutingPolicy == null + ? 43 + : this.regionRoutingPolicy.hashCode()); + result = + (result * PRIME) + + (this.modelRoutingPolicy == null + ? 43 + : this.modelRoutingPolicy.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ServingMode.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ServingMode.java new file mode 100644 index 00000000000..99245a2e58f --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ServingMode.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.model; + +/** + * The deployment mode of the model, which can be either ON_DEMAND (the model is hosted in a shared + * environment and can be accessed on demand) or DEDICATED (the model is hosted in a dedicated + * environment for better performance and isolation). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public enum ServingMode implements com.oracle.bmc.http.internal.BmcEnum { + OnDemand("ON_DEMAND"), + Dedicated("DEDICATED"), + + /** + * 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(ServingMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ServingMode v : ServingMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ServingMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ServingMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ServingMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedDatabasePrivateEndpointDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateRoutingProfileDetails.java similarity index 57% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedDatabasePrivateEndpointDetails.java rename to bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateRoutingProfileDetails.java index 240e6d8e538..88e7db899ac 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedDatabasePrivateEndpointDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateRoutingProfileDetails.java @@ -2,10 +2,10 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.generativeai.model; /** - * The details of private endpoint to be updated.
    + * The data to update a routing profile.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,35 +15,46 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdateDistributedDatabasePrivateEndpointDetails.Builder.class) + builder = UpdateRoutingProfileDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class UpdateDistributedDatabasePrivateEndpointDetails +public final class UpdateRoutingProfileDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"displayName", "description", "freeformTags", "definedTags"}) - public UpdateDistributedDatabasePrivateEndpointDetails( + @java.beans.ConstructorProperties({ + "displayName", + "description", + "regionRoutingPolicy", + "modelRoutingPolicy", + "freeformTags", + "definedTags" + }) + public UpdateRoutingProfileDetails( String displayName, String description, + RegionRoutingPolicy regionRoutingPolicy, + ModelRoutingPolicy modelRoutingPolicy, java.util.Map freeformTags, java.util.Map> definedTags) { super(); this.displayName = displayName; this.description = description; + this.regionRoutingPolicy = regionRoutingPolicy; + this.modelRoutingPolicy = modelRoutingPolicy; this.freeformTags = freeformTags; this.definedTags = definedTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Display name for DistributedDatabasePrivateEndpoint */ + /** A user-friendly name. Does not have to be unique, and it's changeable. */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private String displayName; /** - * Display name for DistributedDatabasePrivateEndpoint + * A user-friendly name. Does not have to be unique, and it's changeable. * * @param displayName the value to set * @return this builder @@ -53,12 +64,12 @@ public Builder displayName(String displayName) { this.__explicitlySet__.add("displayName"); return this; } - /** DistributedDatabasePrivateEndpoint description. */ + /** An optional description of the routing profile. */ @com.fasterxml.jackson.annotation.JsonProperty("description") private String description; /** - * DistributedDatabasePrivateEndpoint description. + * An optional description of the routing profile. * * @param description the value to set * @return this builder @@ -68,16 +79,40 @@ public Builder description(String description) { this.__explicitlySet__.add("description"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("regionRoutingPolicy") + private RegionRoutingPolicy regionRoutingPolicy; + + public Builder regionRoutingPolicy(RegionRoutingPolicy regionRoutingPolicy) { + this.regionRoutingPolicy = regionRoutingPolicy; + this.__explicitlySet__.add("regionRoutingPolicy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("modelRoutingPolicy") + private ModelRoutingPolicy modelRoutingPolicy; + + public Builder modelRoutingPolicy(ModelRoutingPolicy modelRoutingPolicy) { + this.modelRoutingPolicy = modelRoutingPolicy; + this.__explicitlySet__.add("modelRoutingPolicy"); + 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"}} + * 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; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * 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 @@ -88,15 +123,21 @@ public Builder freeformTags(java.util.Map freeformTags) { return this; } /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * 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. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * 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 @@ -111,11 +152,13 @@ public Builder definedTags( @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public UpdateDistributedDatabasePrivateEndpointDetails build() { - UpdateDistributedDatabasePrivateEndpointDetails model = - new UpdateDistributedDatabasePrivateEndpointDetails( + public UpdateRoutingProfileDetails build() { + UpdateRoutingProfileDetails model = + new UpdateRoutingProfileDetails( this.displayName, this.description, + this.regionRoutingPolicy, + this.modelRoutingPolicy, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -125,13 +168,19 @@ public UpdateDistributedDatabasePrivateEndpointDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdateDistributedDatabasePrivateEndpointDetails model) { + public Builder copy(UpdateRoutingProfileDetails model) { if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } if (model.wasPropertyExplicitlySet("description")) { this.description(model.getDescription()); } + if (model.wasPropertyExplicitlySet("regionRoutingPolicy")) { + this.regionRoutingPolicy(model.getRegionRoutingPolicy()); + } + if (model.wasPropertyExplicitlySet("modelRoutingPolicy")) { + this.modelRoutingPolicy(model.getModelRoutingPolicy()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -151,12 +200,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Display name for DistributedDatabasePrivateEndpoint */ + /** A user-friendly name. Does not have to be unique, and it's changeable. */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * Display name for DistributedDatabasePrivateEndpoint + * A user-friendly name. Does not have to be unique, and it's changeable. * * @return the value */ @@ -164,12 +213,12 @@ public String getDisplayName() { return displayName; } - /** DistributedDatabasePrivateEndpoint description. */ + /** An optional description of the routing profile. */ @com.fasterxml.jackson.annotation.JsonProperty("description") private final String description; /** - * DistributedDatabasePrivateEndpoint description. + * An optional description of the routing profile. * * @return the value */ @@ -177,16 +226,36 @@ public String getDescription() { return description; } + @com.fasterxml.jackson.annotation.JsonProperty("regionRoutingPolicy") + private final RegionRoutingPolicy regionRoutingPolicy; + + public RegionRoutingPolicy getRegionRoutingPolicy() { + return regionRoutingPolicy; + } + + @com.fasterxml.jackson.annotation.JsonProperty("modelRoutingPolicy") + private final ModelRoutingPolicy modelRoutingPolicy; + + public ModelRoutingPolicy getModelRoutingPolicy() { + return modelRoutingPolicy; + } + /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * 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; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * 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 */ @@ -195,15 +264,21 @@ public java.util.Map getFreeformTags() { } /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: - * {@code {"foo-namespace": {"bar-key": "value"}}} + * 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. Example: - * {@code {"foo-namespace": {"bar-key": "value"}}} + * 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 */ @@ -224,10 +299,12 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UpdateDistributedDatabasePrivateEndpointDetails("); + sb.append("UpdateRoutingProfileDetails("); sb.append("super=").append(super.toString()); sb.append("displayName=").append(String.valueOf(this.displayName)); sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", regionRoutingPolicy=").append(String.valueOf(this.regionRoutingPolicy)); + sb.append(", modelRoutingPolicy=").append(String.valueOf(this.modelRoutingPolicy)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -239,14 +316,15 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof UpdateDistributedDatabasePrivateEndpointDetails)) { + if (!(o instanceof UpdateRoutingProfileDetails)) { return false; } - UpdateDistributedDatabasePrivateEndpointDetails other = - (UpdateDistributedDatabasePrivateEndpointDetails) o; + UpdateRoutingProfileDetails other = (UpdateRoutingProfileDetails) o; return java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.regionRoutingPolicy, other.regionRoutingPolicy) + && java.util.Objects.equals(this.modelRoutingPolicy, other.modelRoutingPolicy) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -258,6 +336,16 @@ public int hashCode() { 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.regionRoutingPolicy == null + ? 43 + : this.regionRoutingPolicy.hashCode()); + result = + (result * PRIME) + + (this.modelRoutingPolicy == null + ? 43 + : this.modelRoutingPolicy.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/AddDistributedDatabaseGdsControlNodeRequest.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ChangeRoutingProfileCompartmentRequest.java similarity index 57% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/AddDistributedDatabaseGdsControlNodeRequest.java rename to bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ChangeRoutingProfileCompartmentRequest.java index 73e2629afcf..181bf7b975c 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/AddDistributedDatabaseGdsControlNodeRequest.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ChangeRoutingProfileCompartmentRequest.java @@ -2,49 +2,41 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.generativeai.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.generativeai.model.*; /** * Example: Click here to see how to use - * AddDistributedDatabaseGdsControlNodeRequest. + * ChangeRoutingProfileCompartmentRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class AddDistributedDatabaseGdsControlNodeRequest +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class ChangeRoutingProfileCompartmentRequest extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model - .AddDistributedDatabaseGdsControlNodeDetails> { + com.oracle.bmc.generativeai.model.ChangeRoutingProfileCompartmentDetails> { - /** 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. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * routing profile. */ - private com.oracle.bmc.distributeddatabasev26.model.AddDistributedDatabaseGdsControlNodeDetails - addDistributedDatabaseGdsControlNodeDetails; + private String routingProfileId; /** - * Details required to provision the new Global database services control(GDS CTL) node for the - * Distributed database. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * routing profile. */ - public com.oracle.bmc.distributeddatabasev26.model.AddDistributedDatabaseGdsControlNodeDetails - getAddDistributedDatabaseGdsControlNodeDetails() { - return addDistributedDatabaseGdsControlNodeDetails; + public String getRoutingProfileId() { + return routingProfileId; } - /** The client request ID for tracing. */ - private String opcRequestId; + /** The routing profile information to be updated. */ + private com.oracle.bmc.generativeai.model.ChangeRoutingProfileCompartmentDetails + changeRoutingProfileCompartmentDetails; - /** The client request ID for tracing. */ - public String getOpcRequestId() { - return opcRequestId; + /** The routing profile information to be updated. */ + public com.oracle.bmc.generativeai.model.ChangeRoutingProfileCompartmentDetails + getChangeRoutingProfileCompartmentDetails() { + return changeRoutingProfileCompartmentDetails; } /** * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code @@ -63,20 +55,35 @@ public String getOpcRequestId() { 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; + } /** * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 + * 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 purged from the system, then a retry of the original creation + * 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 executing that same action again. Retry tokens expire after 24 + * 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 purged from the system, then a retry of the original creation + * resource has been deleted and removed from the system, then a retry of the original creation * request might be rejected. */ public String getOpcRetryToken() { @@ -90,68 +97,49 @@ public String getOpcRetryToken() { */ @Override @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model.AddDistributedDatabaseGdsControlNodeDetails - getBody$() { - return addDistributedDatabaseGdsControlNodeDetails; + public com.oracle.bmc.generativeai.model.ChangeRoutingProfileCompartmentDetails getBody$() { + return changeRoutingProfileCompartmentDetails; } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - AddDistributedDatabaseGdsControlNodeRequest, - com.oracle.bmc.distributeddatabasev26.model - .AddDistributedDatabaseGdsControlNodeDetails> { + ChangeRoutingProfileCompartmentRequest, + com.oracle.bmc.generativeai.model.ChangeRoutingProfileCompartmentDetails> { 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 + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * routing profile. */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; - return this; - } + private String routingProfileId = null; /** - * 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. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * routing profile. * - * @param addDistributedDatabaseGdsControlNodeDetails the value to set + * @param routingProfileId the value to set * @return this builder instance */ - public Builder addDistributedDatabaseGdsControlNodeDetails( - com.oracle.bmc.distributeddatabasev26.model - .AddDistributedDatabaseGdsControlNodeDetails - addDistributedDatabaseGdsControlNodeDetails) { - this.addDistributedDatabaseGdsControlNodeDetails = - addDistributedDatabaseGdsControlNodeDetails; + public Builder routingProfileId(String routingProfileId) { + this.routingProfileId = routingProfileId; return this; } - /** The client request ID for tracing. */ - private String opcRequestId = null; + /** The routing profile information to be updated. */ + private com.oracle.bmc.generativeai.model.ChangeRoutingProfileCompartmentDetails + changeRoutingProfileCompartmentDetails = null; /** - * The client request ID for tracing. + * The routing profile information to be updated. * - * @param opcRequestId the value to set + * @param changeRoutingProfileCompartmentDetails the value to set * @return this builder instance */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; + public Builder changeRoutingProfileCompartmentDetails( + com.oracle.bmc.generativeai.model.ChangeRoutingProfileCompartmentDetails + changeRoutingProfileCompartmentDetails) { + this.changeRoutingProfileCompartmentDetails = changeRoutingProfileCompartmentDetails; return this; } @@ -177,20 +165,40 @@ public Builder ifMatch(String 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; + } + /** * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after - * 24 hours, but can be invalidated before then due to conflicting operations. For example, - * if a resource has been deleted and purged from the system, then a retry of the original + * 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 executing that same action again. Retry tokens expire after - * 24 hours, but can be invalidated before then due to conflicting operations. For example, - * if a resource has been deleted and purged from the system, then a retry of the original + * 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 @@ -230,12 +238,11 @@ public Builder retryConfiguration( * * @return this builder instance */ - public Builder copy(AddDistributedDatabaseGdsControlNodeRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - addDistributedDatabaseGdsControlNodeDetails( - o.getAddDistributedDatabaseGdsControlNodeDetails()); - opcRequestId(o.getOpcRequestId()); + public Builder copy(ChangeRoutingProfileCompartmentRequest o) { + routingProfileId(o.getRoutingProfileId()); + changeRoutingProfileCompartmentDetails(o.getChangeRoutingProfileCompartmentDetails()); ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -243,7 +250,7 @@ public Builder copy(AddDistributedDatabaseGdsControlNodeRequest o) { } /** - * Build the instance of AddDistributedDatabaseGdsControlNodeRequest as configured by this + * Build the instance of ChangeRoutingProfileCompartmentRequest as configured by this * builder * *

    Note that this method takes calls to {@link @@ -252,10 +259,10 @@ public Builder copy(AddDistributedDatabaseGdsControlNodeRequest o) { * *

    This is the preferred method to build an instance. * - * @return instance of AddDistributedDatabaseGdsControlNodeRequest + * @return instance of ChangeRoutingProfileCompartmentRequest */ - public AddDistributedDatabaseGdsControlNodeRequest build() { - AddDistributedDatabaseGdsControlNodeRequest request = buildWithoutInvocationCallback(); + public ChangeRoutingProfileCompartmentRequest build() { + ChangeRoutingProfileCompartmentRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; @@ -269,35 +276,32 @@ public AddDistributedDatabaseGdsControlNodeRequest build() { */ @com.oracle.bmc.InternalSdk public Builder body$( - com.oracle.bmc.distributeddatabasev26.model - .AddDistributedDatabaseGdsControlNodeDetails - body) { - addDistributedDatabaseGdsControlNodeDetails(body); + com.oracle.bmc.generativeai.model.ChangeRoutingProfileCompartmentDetails body) { + changeRoutingProfileCompartmentDetails(body); return this; } /** - * Build the instance of AddDistributedDatabaseGdsControlNodeRequest as configured by this + * Build the instance of ChangeRoutingProfileCompartmentRequest 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 + * @return instance of ChangeRoutingProfileCompartmentRequest */ - public AddDistributedDatabaseGdsControlNodeRequest buildWithoutInvocationCallback() { - AddDistributedDatabaseGdsControlNodeRequest request = - new AddDistributedDatabaseGdsControlNodeRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.addDistributedDatabaseGdsControlNodeDetails = - addDistributedDatabaseGdsControlNodeDetails; - request.opcRequestId = opcRequestId; + public ChangeRoutingProfileCompartmentRequest buildWithoutInvocationCallback() { + ChangeRoutingProfileCompartmentRequest request = + new ChangeRoutingProfileCompartmentRequest(); + request.routingProfileId = routingProfileId; + request.changeRoutingProfileCompartmentDetails = changeRoutingProfileCompartmentDetails; request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; return request; - // new AddDistributedDatabaseGdsControlNodeRequest(distributedDatabaseId, - // addDistributedDatabaseGdsControlNodeDetails, opcRequestId, ifMatch, opcRetryToken); + // new ChangeRoutingProfileCompartmentRequest(routingProfileId, + // changeRoutingProfileCompartmentDetails, ifMatch, opcRequestId, opcRetryToken); } } @@ -308,11 +312,10 @@ public AddDistributedDatabaseGdsControlNodeRequest buildWithoutInvocationCallbac */ public Builder toBuilder() { return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .addDistributedDatabaseGdsControlNodeDetails( - addDistributedDatabaseGdsControlNodeDetails) - .opcRequestId(opcRequestId) + .routingProfileId(routingProfileId) + .changeRoutingProfileCompartmentDetails(changeRoutingProfileCompartmentDetails) .ifMatch(ifMatch) + .opcRequestId(opcRequestId) .opcRetryToken(opcRetryToken); } @@ -330,11 +333,11 @@ 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(",routingProfileId=").append(String.valueOf(this.routingProfileId)); + sb.append(",changeRoutingProfileCompartmentDetails=") + .append(String.valueOf(this.changeRoutingProfileCompartmentDetails)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(")"); return sb.toString(); @@ -345,19 +348,18 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof AddDistributedDatabaseGdsControlNodeRequest)) { + if (!(o instanceof ChangeRoutingProfileCompartmentRequest)) { return false; } - AddDistributedDatabaseGdsControlNodeRequest other = - (AddDistributedDatabaseGdsControlNodeRequest) o; + ChangeRoutingProfileCompartmentRequest other = (ChangeRoutingProfileCompartmentRequest) o; return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && java.util.Objects.equals(this.routingProfileId, other.routingProfileId) && java.util.Objects.equals( - this.addDistributedDatabaseGdsControlNodeDetails, - other.addDistributedDatabaseGdsControlNodeDetails) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + this.changeRoutingProfileCompartmentDetails, + other.changeRoutingProfileCompartmentDetails) && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); } @@ -367,16 +369,14 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.distributedDatabaseId == null - ? 43 - : this.distributedDatabaseId.hashCode()); + + (this.routingProfileId == null ? 43 : this.routingProfileId.hashCode()); result = (result * PRIME) - + (this.addDistributedDatabaseGdsControlNodeDetails == null + + (this.changeRoutingProfileCompartmentDetails == null ? 43 - : this.addDistributedDatabaseGdsControlNodeDetails.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + : this.changeRoutingProfileCompartmentDetails.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedDatabasePrivateEndpointRequest.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/CreateRoutingProfileRequest.java similarity index 54% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedDatabasePrivateEndpointRequest.java rename to bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/CreateRoutingProfileRequest.java index eefd3090350..0f5b3f53085 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedDatabasePrivateEndpointRequest.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/CreateRoutingProfileRequest.java @@ -2,55 +2,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.requests; +package com.oracle.bmc.generativeai.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.generativeai.model.*; /** * Example: Click here to see how to use - * CreateDistributedDatabasePrivateEndpointRequest. + * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/generativeai/CreateRoutingProfileExample.java.html" + * target="_blank" rel="noopener noreferrer">here to see how to use CreateRoutingProfileRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class CreateDistributedDatabasePrivateEndpointRequest +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class CreateRoutingProfileRequest extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedDatabasePrivateEndpointDetails> { + com.oracle.bmc.generativeai.model.CreateRoutingProfileDetails> { - /** Details of DistributedDatabasePrivateEndpoint to be created. */ - private com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedDatabasePrivateEndpointDetails - createDistributedDatabasePrivateEndpointDetails; + /** Details for the new routing profile. */ + private com.oracle.bmc.generativeai.model.CreateRoutingProfileDetails + createRoutingProfileDetails; - /** Details of DistributedDatabasePrivateEndpoint to be created. */ - public com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedDatabasePrivateEndpointDetails - getCreateDistributedDatabasePrivateEndpointDetails() { - return createDistributedDatabasePrivateEndpointDetails; + /** Details for the new routing profile. */ + public com.oracle.bmc.generativeai.model.CreateRoutingProfileDetails + getCreateRoutingProfileDetails() { + return createRoutingProfileDetails; } /** * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 + * 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 purged from the system, then a retry of the original creation + * 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 executing that same action again. Retry tokens expire after 24 + * 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 purged from the system, then a retry of the original creation + * 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; } - /** The client request ID for tracing. */ + /** + * 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; - /** The client request ID for tracing. */ + /** + * 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; } @@ -62,54 +66,48 @@ public String getOpcRequestId() { */ @Override @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedDatabasePrivateEndpointDetails - getBody$() { - return createDistributedDatabasePrivateEndpointDetails; + public com.oracle.bmc.generativeai.model.CreateRoutingProfileDetails getBody$() { + return createRoutingProfileDetails; } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - CreateDistributedDatabasePrivateEndpointRequest, - com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedDatabasePrivateEndpointDetails> { + CreateRoutingProfileRequest, + com.oracle.bmc.generativeai.model.CreateRoutingProfileDetails> { 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 for the new routing profile. */ + private com.oracle.bmc.generativeai.model.CreateRoutingProfileDetails + createRoutingProfileDetails = null; /** - * Details of DistributedDatabasePrivateEndpoint to be created. + * Details for the new routing profile. * - * @param createDistributedDatabasePrivateEndpointDetails the value to set + * @param createRoutingProfileDetails the value to set * @return this builder instance */ - public Builder createDistributedDatabasePrivateEndpointDetails( - com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedDatabasePrivateEndpointDetails - createDistributedDatabasePrivateEndpointDetails) { - this.createDistributedDatabasePrivateEndpointDetails = - createDistributedDatabasePrivateEndpointDetails; + public Builder createRoutingProfileDetails( + com.oracle.bmc.generativeai.model.CreateRoutingProfileDetails + createRoutingProfileDetails) { + this.createRoutingProfileDetails = createRoutingProfileDetails; 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 + * 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 executing that same action again. Retry tokens expire after - * 24 hours, but can be invalidated before then due to conflicting operations. For example, - * if a resource has been deleted and purged from the system, then a retry of the original + * 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 @@ -120,11 +118,17 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } - /** The client request ID for tracing. */ + /** + * 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; /** - * The client request ID for tracing. + * 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 @@ -163,9 +167,8 @@ public Builder retryConfiguration( * * @return this builder instance */ - public Builder copy(CreateDistributedDatabasePrivateEndpointRequest o) { - createDistributedDatabasePrivateEndpointDetails( - o.getCreateDistributedDatabasePrivateEndpointDetails()); + public Builder copy(CreateRoutingProfileRequest o) { + createRoutingProfileDetails(o.getCreateRoutingProfileDetails()); opcRetryToken(o.getOpcRetryToken()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); @@ -174,8 +177,7 @@ public Builder copy(CreateDistributedDatabasePrivateEndpointRequest o) { } /** - * Build the instance of CreateDistributedDatabasePrivateEndpointRequest as configured by - * this builder + * Build the instance of CreateRoutingProfileRequest as configured by this builder * *

    Note that this method takes calls to {@link * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, @@ -183,11 +185,10 @@ public Builder copy(CreateDistributedDatabasePrivateEndpointRequest o) { * *

    This is the preferred method to build an instance. * - * @return instance of CreateDistributedDatabasePrivateEndpointRequest + * @return instance of CreateRoutingProfileRequest */ - public CreateDistributedDatabasePrivateEndpointRequest build() { - CreateDistributedDatabasePrivateEndpointRequest request = - buildWithoutInvocationCallback(); + public CreateRoutingProfileRequest build() { + CreateRoutingProfileRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; @@ -200,34 +201,28 @@ public CreateDistributedDatabasePrivateEndpointRequest build() { * @return this builder instance */ @com.oracle.bmc.InternalSdk - public Builder body$( - com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedDatabasePrivateEndpointDetails - body) { - createDistributedDatabasePrivateEndpointDetails(body); + public Builder body$(com.oracle.bmc.generativeai.model.CreateRoutingProfileDetails body) { + createRoutingProfileDetails(body); return this; } /** - * Build the instance of CreateDistributedDatabasePrivateEndpointRequest as configured by - * this builder + * Build the instance of CreateRoutingProfileRequest 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 + * @return instance of CreateRoutingProfileRequest */ - public CreateDistributedDatabasePrivateEndpointRequest buildWithoutInvocationCallback() { - CreateDistributedDatabasePrivateEndpointRequest request = - new CreateDistributedDatabasePrivateEndpointRequest(); - request.createDistributedDatabasePrivateEndpointDetails = - createDistributedDatabasePrivateEndpointDetails; + public CreateRoutingProfileRequest buildWithoutInvocationCallback() { + CreateRoutingProfileRequest request = new CreateRoutingProfileRequest(); + request.createRoutingProfileDetails = createRoutingProfileDetails; request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; return request; - // new - // CreateDistributedDatabasePrivateEndpointRequest(createDistributedDatabasePrivateEndpointDetails, opcRetryToken, opcRequestId); + // new CreateRoutingProfileRequest(createRoutingProfileDetails, opcRetryToken, + // opcRequestId); } } @@ -238,8 +233,7 @@ public CreateDistributedDatabasePrivateEndpointRequest buildWithoutInvocationCal */ public Builder toBuilder() { return new Builder() - .createDistributedDatabasePrivateEndpointDetails( - createDistributedDatabasePrivateEndpointDetails) + .createRoutingProfileDetails(createRoutingProfileDetails) .opcRetryToken(opcRetryToken) .opcRequestId(opcRequestId); } @@ -258,8 +252,8 @@ 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(",createRoutingProfileDetails=") + .append(String.valueOf(this.createRoutingProfileDetails)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); @@ -271,16 +265,14 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateDistributedDatabasePrivateEndpointRequest)) { + if (!(o instanceof CreateRoutingProfileRequest)) { return false; } - CreateDistributedDatabasePrivateEndpointRequest other = - (CreateDistributedDatabasePrivateEndpointRequest) o; + CreateRoutingProfileRequest other = (CreateRoutingProfileRequest) o; return super.equals(o) && java.util.Objects.equals( - this.createDistributedDatabasePrivateEndpointDetails, - other.createDistributedDatabasePrivateEndpointDetails) + this.createRoutingProfileDetails, other.createRoutingProfileDetails) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -291,9 +283,9 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.createDistributedDatabasePrivateEndpointDetails == null + + (this.createRoutingProfileDetails == null ? 43 - : this.createDistributedDatabasePrivateEndpointDetails.hashCode()); + : this.createRoutingProfileDetails.hashCode()); result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ReinstateProxyInstanceRequest.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/DeleteRoutingProfileRequest.java similarity index 55% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ReinstateProxyInstanceRequest.java rename to bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/DeleteRoutingProfileRequest.java index 32988c1b81d..cf27036aa1a 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ReinstateProxyInstanceRequest.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/DeleteRoutingProfileRequest.java @@ -2,32 +2,30 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.generativeai.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.generativeai.model.*; /** * Example: Click here to see how to use - * ReinstateProxyInstanceRequest. + * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/generativeai/DeleteRoutingProfileExample.java.html" + * target="_blank" rel="noopener noreferrer">here to see how to use DeleteRoutingProfileRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ReinstateProxyInstanceRequest +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class DeleteRoutingProfileRequest 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 [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * routing profile. + */ + private String routingProfileId; - /** The client request ID for tracing. */ - public String getOpcRequestId() { - return opcRequestId; + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * routing profile. + */ + public String getRoutingProfileId() { + return routingProfileId; } /** * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code @@ -47,57 +45,42 @@ 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. + * 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 opcRetryToken; + private String 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. + * 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 getOpcRetryToken() { - return opcRetryToken; + public String getOpcRequestId() { + return opcRequestId; } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - ReinstateProxyInstanceRequest, java.lang.Void> { + DeleteRoutingProfileRequest, 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 + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * routing profile. */ - public Builder distributedDatabasePrivateEndpointId( - String distributedDatabasePrivateEndpointId) { - this.distributedDatabasePrivateEndpointId = distributedDatabasePrivateEndpointId; - return this; - } - - /** The client request ID for tracing. */ - private String opcRequestId = null; + private String routingProfileId = null; /** - * The client request ID for tracing. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * routing profile. * - * @param opcRequestId the value to set + * @param routingProfileId the value to set * @return this builder instance */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; + public Builder routingProfileId(String routingProfileId) { + this.routingProfileId = routingProfileId; return this; } @@ -124,26 +107,22 @@ public Builder ifMatch(String 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. + * 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 opcRetryToken = null; + private String opcRequestId = 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. + * 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 opcRetryToken the value to set + * @param opcRequestId the value to set * @return this builder instance */ - public Builder opcRetryToken(String opcRetryToken) { - this.opcRetryToken = opcRetryToken; + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; return this; } @@ -176,18 +155,17 @@ public Builder retryConfiguration( * * @return this builder instance */ - public Builder copy(ReinstateProxyInstanceRequest o) { - distributedDatabasePrivateEndpointId(o.getDistributedDatabasePrivateEndpointId()); - opcRequestId(o.getOpcRequestId()); + public Builder copy(DeleteRoutingProfileRequest o) { + routingProfileId(o.getRoutingProfileId()); ifMatch(o.getIfMatch()); - opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; } /** - * Build the instance of ReinstateProxyInstanceRequest as configured by this builder + * Build the instance of DeleteRoutingProfileRequest as configured by this builder * *

    Note that this method takes calls to {@link * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, @@ -195,33 +173,31 @@ public Builder copy(ReinstateProxyInstanceRequest o) { * *

    This is the preferred method to build an instance. * - * @return instance of ReinstateProxyInstanceRequest + * @return instance of DeleteRoutingProfileRequest */ - public ReinstateProxyInstanceRequest build() { - ReinstateProxyInstanceRequest request = buildWithoutInvocationCallback(); + public DeleteRoutingProfileRequest build() { + DeleteRoutingProfileRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of ReinstateProxyInstanceRequest as configured by this builder + * Build the instance of DeleteRoutingProfileRequest 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 + * @return instance of DeleteRoutingProfileRequest */ - public ReinstateProxyInstanceRequest buildWithoutInvocationCallback() { - ReinstateProxyInstanceRequest request = new ReinstateProxyInstanceRequest(); - request.distributedDatabasePrivateEndpointId = distributedDatabasePrivateEndpointId; - request.opcRequestId = opcRequestId; + public DeleteRoutingProfileRequest buildWithoutInvocationCallback() { + DeleteRoutingProfileRequest request = new DeleteRoutingProfileRequest(); + request.routingProfileId = routingProfileId; request.ifMatch = ifMatch; - request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; return request; - // new ReinstateProxyInstanceRequest(distributedDatabasePrivateEndpointId, opcRequestId, - // ifMatch, opcRetryToken); + // new DeleteRoutingProfileRequest(routingProfileId, ifMatch, opcRequestId); } } @@ -232,10 +208,9 @@ public ReinstateProxyInstanceRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() - .distributedDatabasePrivateEndpointId(distributedDatabasePrivateEndpointId) - .opcRequestId(opcRequestId) + .routingProfileId(routingProfileId) .ifMatch(ifMatch) - .opcRetryToken(opcRetryToken); + .opcRequestId(opcRequestId); } /** @@ -252,11 +227,9 @@ 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(",routingProfileId=").append(String.valueOf(this.routingProfileId)); 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(); } @@ -266,18 +239,15 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ReinstateProxyInstanceRequest)) { + if (!(o instanceof DeleteRoutingProfileRequest)) { return false; } - ReinstateProxyInstanceRequest other = (ReinstateProxyInstanceRequest) o; + DeleteRoutingProfileRequest other = (DeleteRoutingProfileRequest) 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.routingProfileId, other.routingProfileId) && 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 @@ -286,14 +256,9 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.distributedDatabasePrivateEndpointId == null - ? 43 - : this.distributedDatabasePrivateEndpointId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + + (this.routingProfileId == null ? 43 : this.routingProfileId.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-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/GetRoutingProfileRequest.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/GetRoutingProfileRequest.java new file mode 100644 index 00000000000..390092224a5 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/GetRoutingProfileRequest.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.generativeai.requests; + +import com.oracle.bmc.generativeai.model.*; +/** + * Example: Click here to see how to use GetRoutingProfileRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class GetRoutingProfileRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * routing profile. + */ + private String routingProfileId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * routing profile. + */ + public String getRoutingProfileId() { + return routingProfileId; + } + /** + * 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< + GetRoutingProfileRequest, 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 + * routing profile. + */ + private String routingProfileId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * routing profile. + * + * @param routingProfileId the value to set + * @return this builder instance + */ + public Builder routingProfileId(String routingProfileId) { + this.routingProfileId = routingProfileId; + 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(GetRoutingProfileRequest o) { + routingProfileId(o.getRoutingProfileId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetRoutingProfileRequest 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 GetRoutingProfileRequest + */ + public GetRoutingProfileRequest build() { + GetRoutingProfileRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetRoutingProfileRequest 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 GetRoutingProfileRequest + */ + public GetRoutingProfileRequest buildWithoutInvocationCallback() { + GetRoutingProfileRequest request = new GetRoutingProfileRequest(); + request.routingProfileId = routingProfileId; + request.opcRequestId = opcRequestId; + return request; + // new GetRoutingProfileRequest(routingProfileId, 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().routingProfileId(routingProfileId).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(",routingProfileId=").append(String.valueOf(this.routingProfileId)); + 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 GetRoutingProfileRequest)) { + return false; + } + + GetRoutingProfileRequest other = (GetRoutingProfileRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.routingProfileId, other.routingProfileId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.routingProfileId == null ? 43 : this.routingProfileId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListModelDiscoveryRequest.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListModelDiscoveryRequest.java new file mode 100644 index 00000000000..59c576a4dad --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListModelDiscoveryRequest.java @@ -0,0 +1,711 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.requests; + +import com.oracle.bmc.generativeai.model.*; +/** + * Example: Click here to see how to use ListModelDiscoveryRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class ListModelDiscoveryRequest 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 whose realm matches the given realm. */ + private java.util.List realm; + + /** A filter to return only resources whose realm matches the given realm. */ + public java.util.List getRealm() { + return realm; + } + /** A filter to return only resources whose region matches the given region. */ + private java.util.List region; + + /** A filter to return only resources whose region matches the given region. */ + public java.util.List getRegion() { + return region; + } + /** A filter to return only resources whose model identifier matches the given modelId. */ + private String modelId; + + /** A filter to return only resources whose model identifier matches the given modelId. */ + public String getModelId() { + return modelId; + } + /** A filter to return only resources whose serving modes match the given servingModes. */ + private java.util.List servingMode; + + /** A filter to return only resources whose serving modes match the given servingModes. */ + public enum ServingMode implements com.oracle.bmc.http.internal.BmcEnum { + OnDemand("ON_DEMAND"), + Dedicated("DEDICATED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ServingMode v : ServingMode.values()) { + map.put(v.getValue(), v); + } + } + + ServingMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ServingMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ServingMode: " + key); + } + }; + + /** A filter to return only resources whose serving modes match the given servingModes. */ + public java.util.List getServingMode() { + return servingMode; + } + /** Filter models that support any of the specified API capabilities. */ + private java.util.List apiCapability; + + /** Filter models that support any of the specified API capabilities. */ + public java.util.List getApiCapability() { + return apiCapability; + } + /** A filter to return only resources their capability matches the given capability. */ + private java.util.List capability; + + /** A filter to return only resources their capability matches the given capability. */ + public java.util.List getCapability() { + return capability; + } + /** Filter models by access type. */ + private java.util.List modelAccess; + + /** Filter models by access type. */ + public enum ModelAccess implements com.oracle.bmc.http.internal.BmcEnum { + Hosted("HOSTED"), + Proxy("PROXY"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ModelAccess v : ModelAccess.values()) { + map.put(v.getValue(), v); + } + } + + ModelAccess(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ModelAccess create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ModelAccess: " + key); + } + }; + + /** Filter models by access type. */ + public java.util.List getModelAccess() { + return modelAccess; + } + /** If true, return only deprecated models; if false, exclude deprecated models. */ + private Boolean isDeprecated; + + /** If true, return only deprecated models; if false, exclude deprecated models. */ + public Boolean getIsDeprecated() { + return isDeprecated; + } + /** Filter models based on on-demand retirement status. */ + private Boolean isOnDemandRetired; + + /** Filter models based on on-demand retirement status. */ + public Boolean getIsOnDemandRetired() { + return isOnDemandRetired; + } + /** Filter models based on dedicated retirement status. */ + private Boolean isDedicatedRetired; + + /** Filter models based on dedicated retirement status. */ + public Boolean getIsDedicatedRetired() { + return isDedicatedRetired; + } + /** + * 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 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; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListModelDiscoveryRequest, 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 whose realm matches the given realm. */ + private java.util.List realm = null; + + /** + * A filter to return only resources whose realm matches the given realm. + * + * @param realm the value to set + * @return this builder instance + */ + public Builder realm(java.util.List realm) { + this.realm = realm; + return this; + } + + /** + * Singular setter. A filter to return only resources whose realm matches the given realm. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder realm(String singularValue) { + return this.realm(java.util.Arrays.asList(singularValue)); + } + + /** A filter to return only resources whose region matches the given region. */ + private java.util.List region = null; + + /** + * A filter to return only resources whose region matches the given region. + * + * @param region the value to set + * @return this builder instance + */ + public Builder region(java.util.List region) { + this.region = region; + return this; + } + + /** + * Singular setter. A filter to return only resources whose region matches the given region. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder region(String singularValue) { + return this.region(java.util.Arrays.asList(singularValue)); + } + + /** A filter to return only resources whose model identifier matches the given modelId. */ + private String modelId = null; + + /** + * A filter to return only resources whose model identifier matches the given modelId. + * + * @param modelId the value to set + * @return this builder instance + */ + public Builder modelId(String modelId) { + this.modelId = modelId; + return this; + } + + /** A filter to return only resources whose serving modes match the given servingModes. */ + private java.util.List servingMode = null; + + /** + * A filter to return only resources whose serving modes match the given servingModes. + * + * @param servingMode the value to set + * @return this builder instance + */ + public Builder servingMode(java.util.List servingMode) { + this.servingMode = servingMode; + return this; + } + + /** + * Singular setter. A filter to return only resources whose serving modes match the given + * servingModes. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder servingMode(ServingMode singularValue) { + return this.servingMode(java.util.Arrays.asList(singularValue)); + } + + /** Filter models that support any of the specified API capabilities. */ + private java.util.List apiCapability = null; + + /** + * Filter models that support any of the specified API capabilities. + * + * @param apiCapability the value to set + * @return this builder instance + */ + public Builder apiCapability(java.util.List apiCapability) { + this.apiCapability = apiCapability; + return this; + } + + /** + * Singular setter. Filter models that support any of the specified API capabilities. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder apiCapability(String singularValue) { + return this.apiCapability(java.util.Arrays.asList(singularValue)); + } + + /** A filter to return only resources their capability matches the given capability. */ + private java.util.List capability = null; + + /** + * A filter to return only resources their capability matches the given capability. + * + * @param capability the value to set + * @return this builder instance + */ + public Builder capability( + java.util.List capability) { + this.capability = capability; + return this; + } + + /** + * Singular setter. A filter to return only resources their capability matches the given + * capability. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder capability(ModelCapability singularValue) { + return this.capability(java.util.Arrays.asList(singularValue)); + } + + /** Filter models by access type. */ + private java.util.List modelAccess = null; + + /** + * Filter models by access type. + * + * @param modelAccess the value to set + * @return this builder instance + */ + public Builder modelAccess(java.util.List modelAccess) { + this.modelAccess = modelAccess; + return this; + } + + /** + * Singular setter. Filter models by access type. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder modelAccess(ModelAccess singularValue) { + return this.modelAccess(java.util.Arrays.asList(singularValue)); + } + + /** If true, return only deprecated models; if false, exclude deprecated models. */ + private Boolean isDeprecated = null; + + /** + * If true, return only deprecated models; if false, exclude deprecated models. + * + * @param isDeprecated the value to set + * @return this builder instance + */ + public Builder isDeprecated(Boolean isDeprecated) { + this.isDeprecated = isDeprecated; + return this; + } + + /** Filter models based on on-demand retirement status. */ + private Boolean isOnDemandRetired = null; + + /** + * Filter models based on on-demand retirement status. + * + * @param isOnDemandRetired the value to set + * @return this builder instance + */ + public Builder isOnDemandRetired(Boolean isOnDemandRetired) { + this.isOnDemandRetired = isOnDemandRetired; + return this; + } + + /** Filter models based on dedicated retirement status. */ + private Boolean isDedicatedRetired = null; + + /** + * Filter models based on dedicated retirement status. + * + * @param isDedicatedRetired the value to set + * @return this builder instance + */ + public Builder isDedicatedRetired(Boolean isDedicatedRetired) { + this.isDedicatedRetired = isDedicatedRetired; + 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 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; + } + + /** + * 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(ListModelDiscoveryRequest o) { + compartmentId(o.getCompartmentId()); + realm(o.getRealm()); + region(o.getRegion()); + modelId(o.getModelId()); + servingMode(o.getServingMode()); + apiCapability(o.getApiCapability()); + capability(o.getCapability()); + modelAccess(o.getModelAccess()); + isDeprecated(o.getIsDeprecated()); + isOnDemandRetired(o.getIsOnDemandRetired()); + isDedicatedRetired(o.getIsDedicatedRetired()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListModelDiscoveryRequest 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 ListModelDiscoveryRequest + */ + public ListModelDiscoveryRequest build() { + ListModelDiscoveryRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListModelDiscoveryRequest 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 ListModelDiscoveryRequest + */ + public ListModelDiscoveryRequest buildWithoutInvocationCallback() { + ListModelDiscoveryRequest request = new ListModelDiscoveryRequest(); + request.compartmentId = compartmentId; + request.realm = realm; + request.region = region; + request.modelId = modelId; + request.servingMode = servingMode; + request.apiCapability = apiCapability; + request.capability = capability; + request.modelAccess = modelAccess; + request.isDeprecated = isDeprecated; + request.isOnDemandRetired = isOnDemandRetired; + request.isDedicatedRetired = isDedicatedRetired; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + return request; + // new ListModelDiscoveryRequest(compartmentId, realm, region, modelId, servingMode, + // apiCapability, capability, modelAccess, isDeprecated, isOnDemandRetired, + // isDedicatedRetired, opcRequestId, limit, page); + } + } + + /** + * 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) + .realm(realm) + .region(region) + .modelId(modelId) + .servingMode(servingMode) + .apiCapability(apiCapability) + .capability(capability) + .modelAccess(modelAccess) + .isDeprecated(isDeprecated) + .isOnDemandRetired(isOnDemandRetired) + .isDedicatedRetired(isDedicatedRetired) + .opcRequestId(opcRequestId) + .limit(limit) + .page(page); + } + + /** + * 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(",realm=").append(String.valueOf(this.realm)); + sb.append(",region=").append(String.valueOf(this.region)); + sb.append(",modelId=").append(String.valueOf(this.modelId)); + sb.append(",servingMode=").append(String.valueOf(this.servingMode)); + sb.append(",apiCapability=").append(String.valueOf(this.apiCapability)); + sb.append(",capability=").append(String.valueOf(this.capability)); + sb.append(",modelAccess=").append(String.valueOf(this.modelAccess)); + sb.append(",isDeprecated=").append(String.valueOf(this.isDeprecated)); + sb.append(",isOnDemandRetired=").append(String.valueOf(this.isOnDemandRetired)); + sb.append(",isDedicatedRetired=").append(String.valueOf(this.isDedicatedRetired)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListModelDiscoveryRequest)) { + return false; + } + + ListModelDiscoveryRequest other = (ListModelDiscoveryRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.realm, other.realm) + && java.util.Objects.equals(this.region, other.region) + && java.util.Objects.equals(this.modelId, other.modelId) + && java.util.Objects.equals(this.servingMode, other.servingMode) + && java.util.Objects.equals(this.apiCapability, other.apiCapability) + && java.util.Objects.equals(this.capability, other.capability) + && java.util.Objects.equals(this.modelAccess, other.modelAccess) + && java.util.Objects.equals(this.isDeprecated, other.isDeprecated) + && java.util.Objects.equals(this.isOnDemandRetired, other.isOnDemandRetired) + && java.util.Objects.equals(this.isDedicatedRetired, other.isDedicatedRetired) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page); + } + + @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.realm == null ? 43 : this.realm.hashCode()); + result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); + result = (result * PRIME) + (this.modelId == null ? 43 : this.modelId.hashCode()); + result = (result * PRIME) + (this.servingMode == null ? 43 : this.servingMode.hashCode()); + result = + (result * PRIME) + + (this.apiCapability == null ? 43 : this.apiCapability.hashCode()); + result = (result * PRIME) + (this.capability == null ? 43 : this.capability.hashCode()); + result = (result * PRIME) + (this.modelAccess == null ? 43 : this.modelAccess.hashCode()); + result = (result * PRIME) + (this.isDeprecated == null ? 43 : this.isDeprecated.hashCode()); + result = + (result * PRIME) + + (this.isOnDemandRetired == null ? 43 : this.isOnDemandRetired.hashCode()); + result = + (result * PRIME) + + (this.isDedicatedRetired == null + ? 43 + : this.isDedicatedRetired.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListRoutingProfilesRequest.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListRoutingProfilesRequest.java new file mode 100644 index 00000000000..1955cd1bc4d --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListRoutingProfilesRequest.java @@ -0,0 +1,497 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.requests; + +import com.oracle.bmc.generativeai.model.*; +/** + * Example: Click here to see how to use ListRoutingProfilesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class ListRoutingProfilesRequest 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 whose lifecycle state matches the given value. */ + private com.oracle.bmc.generativeai.model.RoutingProfile.LifecycleState lifecycleState; + + /** A filter to return only resources whose lifecycle state matches the given value. */ + public com.oracle.bmc.generativeai.model.RoutingProfile.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 + * routing profile. + */ + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * routing profile. + */ + 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 'ASC' or 'DESC'. */ + private com.oracle.bmc.generativeai.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.generativeai.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 { + DisplayName("displayName"), + TimeCreated("timeCreated"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. 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< + ListRoutingProfilesRequest, 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 whose lifecycle state matches the given value. */ + private com.oracle.bmc.generativeai.model.RoutingProfile.LifecycleState lifecycleState = + null; + + /** + * A filter to return only resources whose lifecycle state matches the given value. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.generativeai.model.RoutingProfile.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 + * routing profile. + */ + private String id = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * routing profile. + * + * @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 'ASC' or 'DESC'. */ + private com.oracle.bmc.generativeai.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.generativeai.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(ListRoutingProfilesRequest 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 ListRoutingProfilesRequest 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 ListRoutingProfilesRequest + */ + public ListRoutingProfilesRequest build() { + ListRoutingProfilesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListRoutingProfilesRequest 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 ListRoutingProfilesRequest + */ + public ListRoutingProfilesRequest buildWithoutInvocationCallback() { + ListRoutingProfilesRequest request = new ListRoutingProfilesRequest(); + 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 ListRoutingProfilesRequest(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 ListRoutingProfilesRequest)) { + return false; + } + + ListRoutingProfilesRequest other = (ListRoutingProfilesRequest) 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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseCaBundleRequest.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/UpdateRoutingProfileRequest.java similarity index 55% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseCaBundleRequest.java rename to bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/UpdateRoutingProfileRequest.java index 23ba1b351e2..5188ab17286 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseCaBundleRequest.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/UpdateRoutingProfileRequest.java @@ -2,25 +2,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.requests; +package com.oracle.bmc.generativeai.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.generativeai.model.*; /** * Example: Click here to see how to use - * ValidateDistributedAutonomousDatabaseCaBundleRequest. + * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/generativeai/UpdateRoutingProfileExample.java.html" + * target="_blank" rel="noopener noreferrer">here to see how to use UpdateRoutingProfileRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ValidateDistributedAutonomousDatabaseCaBundleRequest - extends com.oracle.bmc.requests.BmcRequest { +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class UpdateRoutingProfileRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.generativeai.model.UpdateRoutingProfileDetails> { - /** Globally distributed autonomous database identifier. */ - private String distributedAutonomousDatabaseId; + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * routing profile. + */ + private String routingProfileId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * routing profile. + */ + public String getRoutingProfileId() { + return routingProfileId; + } + /** The information to be updated. */ + private com.oracle.bmc.generativeai.model.UpdateRoutingProfileDetails + updateRoutingProfileDetails; - /** Globally distributed autonomous database identifier. */ - public String getDistributedAutonomousDatabaseId() { - return distributedAutonomousDatabaseId; + /** The information to be updated. */ + public com.oracle.bmc.generativeai.model.UpdateRoutingProfileDetails + getUpdateRoutingProfileDetails() { + return updateRoutingProfileDetails; } /** * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code @@ -40,49 +55,71 @@ 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. + * 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 opcRetryToken; + private String 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. + * 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 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.generativeai.model.UpdateRoutingProfileDetails getBody$() { + return updateRoutingProfileDetails; + } + public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - ValidateDistributedAutonomousDatabaseCaBundleRequest, java.lang.Void> { + UpdateRoutingProfileRequest, + com.oracle.bmc.generativeai.model.UpdateRoutingProfileDetails> { 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; + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * routing profile. + */ + private String routingProfileId = null; /** - * Globally distributed autonomous database identifier. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * routing profile. * - * @param distributedAutonomousDatabaseId the value to set + * @param routingProfileId the value to set * @return this builder instance */ - public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { - this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + public Builder routingProfileId(String routingProfileId) { + this.routingProfileId = routingProfileId; + return this; + } + + /** The information to be updated. */ + private com.oracle.bmc.generativeai.model.UpdateRoutingProfileDetails + updateRoutingProfileDetails = null; + + /** + * The information to be updated. + * + * @param updateRoutingProfileDetails the value to set + * @return this builder instance + */ + public Builder updateRoutingProfileDetails( + com.oracle.bmc.generativeai.model.UpdateRoutingProfileDetails + updateRoutingProfileDetails) { + this.updateRoutingProfileDetails = updateRoutingProfileDetails; return this; } @@ -109,34 +146,16 @@ public Builder ifMatch(String 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. + * 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 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. + * 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 @@ -175,10 +194,10 @@ public Builder retryConfiguration( * * @return this builder instance */ - public Builder copy(ValidateDistributedAutonomousDatabaseCaBundleRequest o) { - distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); + public Builder copy(UpdateRoutingProfileRequest o) { + routingProfileId(o.getRoutingProfileId()); + updateRoutingProfileDetails(o.getUpdateRoutingProfileDetails()); ifMatch(o.getIfMatch()); - opcRetryToken(o.getOpcRetryToken()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -186,8 +205,7 @@ public Builder copy(ValidateDistributedAutonomousDatabaseCaBundleRequest o) { } /** - * Build the instance of ValidateDistributedAutonomousDatabaseCaBundleRequest as configured - * by this builder + * Build the instance of UpdateRoutingProfileRequest as configured by this builder * *

    Note that this method takes calls to {@link * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, @@ -195,38 +213,45 @@ public Builder copy(ValidateDistributedAutonomousDatabaseCaBundleRequest o) { * *

    This is the preferred method to build an instance. * - * @return instance of ValidateDistributedAutonomousDatabaseCaBundleRequest + * @return instance of UpdateRoutingProfileRequest */ - public ValidateDistributedAutonomousDatabaseCaBundleRequest build() { - ValidateDistributedAutonomousDatabaseCaBundleRequest request = - buildWithoutInvocationCallback(); + public UpdateRoutingProfileRequest build() { + UpdateRoutingProfileRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of ValidateDistributedAutonomousDatabaseCaBundleRequest as configured - * by this builder + * 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.generativeai.model.UpdateRoutingProfileDetails body) { + updateRoutingProfileDetails(body); + return this; + } + + /** + * Build the instance of UpdateRoutingProfileRequest 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 + * @return instance of UpdateRoutingProfileRequest */ - public ValidateDistributedAutonomousDatabaseCaBundleRequest - buildWithoutInvocationCallback() { - ValidateDistributedAutonomousDatabaseCaBundleRequest request = - new ValidateDistributedAutonomousDatabaseCaBundleRequest(); - request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + public UpdateRoutingProfileRequest buildWithoutInvocationCallback() { + UpdateRoutingProfileRequest request = new UpdateRoutingProfileRequest(); + request.routingProfileId = routingProfileId; + request.updateRoutingProfileDetails = updateRoutingProfileDetails; request.ifMatch = ifMatch; - request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; return request; - // new - // ValidateDistributedAutonomousDatabaseCaBundleRequest(distributedAutonomousDatabaseId, - // ifMatch, opcRetryToken, opcRequestId); + // new UpdateRoutingProfileRequest(routingProfileId, updateRoutingProfileDetails, + // ifMatch, opcRequestId); } } @@ -237,9 +262,9 @@ public ValidateDistributedAutonomousDatabaseCaBundleRequest build() { */ public Builder toBuilder() { return new Builder() - .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .routingProfileId(routingProfileId) + .updateRoutingProfileDetails(updateRoutingProfileDetails) .ifMatch(ifMatch) - .opcRetryToken(opcRetryToken) .opcRequestId(opcRequestId); } @@ -257,10 +282,10 @@ 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(",routingProfileId=").append(String.valueOf(this.routingProfileId)); + sb.append(",updateRoutingProfileDetails=") + .append(String.valueOf(this.updateRoutingProfileDetails)); 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(); @@ -271,17 +296,16 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ValidateDistributedAutonomousDatabaseCaBundleRequest)) { + if (!(o instanceof UpdateRoutingProfileRequest)) { return false; } - ValidateDistributedAutonomousDatabaseCaBundleRequest other = - (ValidateDistributedAutonomousDatabaseCaBundleRequest) o; + UpdateRoutingProfileRequest other = (UpdateRoutingProfileRequest) o; return super.equals(o) + && java.util.Objects.equals(this.routingProfileId, other.routingProfileId) && java.util.Objects.equals( - this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) + this.updateRoutingProfileDetails, other.updateRoutingProfileDetails) && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -291,13 +315,13 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.distributedAutonomousDatabaseId == null - ? 43 - : this.distributedAutonomousDatabaseId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + + (this.routingProfileId == null ? 43 : this.routingProfileId.hashCode()); result = (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + + (this.updateRoutingProfileDetails == null + ? 43 + : this.updateRoutingProfileDetails.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StartDistributedDatabaseResponse.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ChangeRoutingProfileCompartmentResponse.java similarity index 60% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StartDistributedDatabaseResponse.java rename to bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ChangeRoutingProfileCompartmentResponse.java index eaef9faa05a..ebc79dc14dd 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StartDistributedDatabaseResponse.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ChangeRoutingProfileCompartmentResponse.java @@ -2,28 +2,12 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.generativeai.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; - } +import com.oracle.bmc.generativeai.model.*; +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class ChangeRoutingProfileCompartmentResponse 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. @@ -40,25 +24,18 @@ public String getOpcRequestId() { return opcRequestId; } - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcWorkRequestId", - "opcRequestId" - }) - private StartDistributedDatabaseResponse( + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private ChangeRoutingProfileCompartmentResponse( 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> { + ChangeRoutingProfileCompartmentResponse> { private int __httpStatusCode__; @Override @@ -75,24 +52,6 @@ public Builder headers(java.util.Map> 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. @@ -117,10 +76,9 @@ public Builder opcRequestId(String opcRequestId) { * @return this builder instance */ @Override - public Builder copy(StartDistributedDatabaseResponse o) { + public Builder copy(ChangeRoutingProfileCompartmentResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); - opcWorkRequestId(o.getOpcWorkRequestId()); opcRequestId(o.getOpcRequestId()); return this; @@ -132,9 +90,9 @@ public Builder copy(StartDistributedDatabaseResponse o) { * @return the response object */ @Override - public StartDistributedDatabaseResponse build() { - return new StartDistributedDatabaseResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + public ChangeRoutingProfileCompartmentResponse build() { + return new ChangeRoutingProfileCompartmentResponse( + __httpStatusCode__, headers, opcRequestId); } } @@ -152,7 +110,6 @@ 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(); @@ -163,23 +120,18 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof StartDistributedDatabaseResponse)) { + if (!(o instanceof ChangeRoutingProfileCompartmentResponse)) { 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); + ChangeRoutingProfileCompartmentResponse other = (ChangeRoutingProfileCompartmentResponse) 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.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; } diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/CreateRoutingProfileResponse.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/CreateRoutingProfileResponse.java new file mode 100644 index 00000000000..e95d06823b4 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/CreateRoutingProfileResponse.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.generativeai.responses; + +import com.oracle.bmc.generativeai.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class CreateRoutingProfileResponse 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 RoutingProfile} instance. */ + private com.oracle.bmc.generativeai.model.RoutingProfile routingProfile; + + /** + * The returned {@code RoutingProfile} instance. + * + * @return the value + */ + public com.oracle.bmc.generativeai.model.RoutingProfile getRoutingProfile() { + return routingProfile; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "routingProfile" + }) + private CreateRoutingProfileResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.generativeai.model.RoutingProfile routingProfile) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.routingProfile = routingProfile; + } + + 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 RoutingProfile} instance. */ + private com.oracle.bmc.generativeai.model.RoutingProfile routingProfile; + + /** + * The returned {@code RoutingProfile} instance. + * + * @param routingProfile the value to set + * @return this builder + */ + public Builder routingProfile( + com.oracle.bmc.generativeai.model.RoutingProfile routingProfile) { + this.routingProfile = routingProfile; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateRoutingProfileResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + routingProfile(o.getRoutingProfile()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateRoutingProfileResponse build() { + return new CreateRoutingProfileResponse( + __httpStatusCode__, headers, etag, opcRequestId, routingProfile); + } + } + + /** + * 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(",routingProfile=").append(String.valueOf(routingProfile)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateRoutingProfileResponse)) { + return false; + } + + CreateRoutingProfileResponse other = (CreateRoutingProfileResponse) 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.routingProfile, other.routingProfile); + } + + @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.routingProfile == null ? 43 : this.routingProfile.hashCode()); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/DeleteRoutingProfileResponse.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/DeleteRoutingProfileResponse.java new file mode 100644 index 00000000000..c83783986ab --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/DeleteRoutingProfileResponse.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.generativeai.responses; + +import com.oracle.bmc.generativeai.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class DeleteRoutingProfileResponse 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 DeleteRoutingProfileResponse( + 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(DeleteRoutingProfileResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeleteRoutingProfileResponse build() { + return new DeleteRoutingProfileResponse(__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 DeleteRoutingProfileResponse)) { + return false; + } + + DeleteRoutingProfileResponse other = (DeleteRoutingProfileResponse) 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-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/GetRoutingProfileResponse.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/GetRoutingProfileResponse.java new file mode 100644 index 00000000000..3fcce32f46c --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/GetRoutingProfileResponse.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.generativeai.responses; + +import com.oracle.bmc.generativeai.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class GetRoutingProfileResponse 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 RoutingProfile} instance. */ + private com.oracle.bmc.generativeai.model.RoutingProfile routingProfile; + + /** + * The returned {@code RoutingProfile} instance. + * + * @return the value + */ + public com.oracle.bmc.generativeai.model.RoutingProfile getRoutingProfile() { + return routingProfile; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "routingProfile" + }) + private GetRoutingProfileResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.generativeai.model.RoutingProfile routingProfile) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.routingProfile = routingProfile; + } + + 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 RoutingProfile} instance. */ + private com.oracle.bmc.generativeai.model.RoutingProfile routingProfile; + + /** + * The returned {@code RoutingProfile} instance. + * + * @param routingProfile the value to set + * @return this builder + */ + public Builder routingProfile( + com.oracle.bmc.generativeai.model.RoutingProfile routingProfile) { + this.routingProfile = routingProfile; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetRoutingProfileResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + routingProfile(o.getRoutingProfile()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetRoutingProfileResponse build() { + return new GetRoutingProfileResponse( + __httpStatusCode__, headers, etag, opcRequestId, routingProfile); + } + } + + /** + * 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(",routingProfile=").append(String.valueOf(routingProfile)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetRoutingProfileResponse)) { + return false; + } + + GetRoutingProfileResponse other = (GetRoutingProfileResponse) 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.routingProfile, other.routingProfile); + } + + @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.routingProfile == null ? 43 : this.routingProfile.hashCode()); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ListModelDiscoveryResponse.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ListModelDiscoveryResponse.java new file mode 100644 index 00000000000..8e6c707cf5b --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ListModelDiscoveryResponse.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.generativeai.responses; + +import com.oracle.bmc.generativeai.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class ListModelDiscoveryResponse 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 ModelDiscoveryCollection} instance. */ + private com.oracle.bmc.generativeai.model.ModelDiscoveryCollection modelDiscoveryCollection; + + /** + * The returned {@code ModelDiscoveryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.generativeai.model.ModelDiscoveryCollection + getModelDiscoveryCollection() { + return modelDiscoveryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "modelDiscoveryCollection" + }) + private ListModelDiscoveryResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.generativeai.model.ModelDiscoveryCollection modelDiscoveryCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.modelDiscoveryCollection = modelDiscoveryCollection; + } + + 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 ModelDiscoveryCollection} instance. */ + private com.oracle.bmc.generativeai.model.ModelDiscoveryCollection modelDiscoveryCollection; + + /** + * The returned {@code ModelDiscoveryCollection} instance. + * + * @param modelDiscoveryCollection the value to set + * @return this builder + */ + public Builder modelDiscoveryCollection( + com.oracle.bmc.generativeai.model.ModelDiscoveryCollection + modelDiscoveryCollection) { + this.modelDiscoveryCollection = modelDiscoveryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListModelDiscoveryResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + modelDiscoveryCollection(o.getModelDiscoveryCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListModelDiscoveryResponse build() { + return new ListModelDiscoveryResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + modelDiscoveryCollection); + } + } + + /** + * 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(",modelDiscoveryCollection=").append(String.valueOf(modelDiscoveryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListModelDiscoveryResponse)) { + return false; + } + + ListModelDiscoveryResponse other = (ListModelDiscoveryResponse) 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.modelDiscoveryCollection, other.modelDiscoveryCollection); + } + + @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.modelDiscoveryCollection == null + ? 43 + : this.modelDiscoveryCollection.hashCode()); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ListRoutingProfilesResponse.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ListRoutingProfilesResponse.java new file mode 100644 index 00000000000..92a553dfc6e --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ListRoutingProfilesResponse.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.generativeai.responses; + +import com.oracle.bmc.generativeai.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class ListRoutingProfilesResponse 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 RoutingProfileCollection} instance. */ + private com.oracle.bmc.generativeai.model.RoutingProfileCollection routingProfileCollection; + + /** + * The returned {@code RoutingProfileCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.generativeai.model.RoutingProfileCollection + getRoutingProfileCollection() { + return routingProfileCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "routingProfileCollection" + }) + private ListRoutingProfilesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.generativeai.model.RoutingProfileCollection routingProfileCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.routingProfileCollection = routingProfileCollection; + } + + 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 RoutingProfileCollection} instance. */ + private com.oracle.bmc.generativeai.model.RoutingProfileCollection routingProfileCollection; + + /** + * The returned {@code RoutingProfileCollection} instance. + * + * @param routingProfileCollection the value to set + * @return this builder + */ + public Builder routingProfileCollection( + com.oracle.bmc.generativeai.model.RoutingProfileCollection + routingProfileCollection) { + this.routingProfileCollection = routingProfileCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListRoutingProfilesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + routingProfileCollection(o.getRoutingProfileCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListRoutingProfilesResponse build() { + return new ListRoutingProfilesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + routingProfileCollection); + } + } + + /** + * 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(",routingProfileCollection=").append(String.valueOf(routingProfileCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListRoutingProfilesResponse)) { + return false; + } + + ListRoutingProfilesResponse other = (ListRoutingProfilesResponse) 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.routingProfileCollection, other.routingProfileCollection); + } + + @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.routingProfileCollection == null + ? 43 + : this.routingProfileCollection.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseResponse.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/UpdateRoutingProfileResponse.java similarity index 71% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseResponse.java rename to bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/UpdateRoutingProfileResponse.java index 806e40e7d00..630589c8a33 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseResponse.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/UpdateRoutingProfileResponse.java @@ -2,12 +2,12 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.generativeai.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.generativeai.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class UpdateRoutingProfileResponse 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. @@ -36,17 +36,16 @@ public String getEtag() { return etag; } - /** The returned {@code DistributedDatabase} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase; + /** The returned {@code RoutingProfile} instance. */ + private com.oracle.bmc.generativeai.model.RoutingProfile routingProfile; /** - * The returned {@code DistributedDatabase} instance. + * The returned {@code RoutingProfile} instance. * * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase - getDistributedDatabase() { - return distributedDatabase; + public com.oracle.bmc.generativeai.model.RoutingProfile getRoutingProfile() { + return routingProfile; } @java.beans.ConstructorProperties({ @@ -54,23 +53,22 @@ public String getEtag() { "headers", "opcRequestId", "etag", - "distributedDatabase" + "routingProfile" }) - private GetDistributedDatabaseResponse( + private UpdateRoutingProfileResponse( int __httpStatusCode__, java.util.Map> headers, String opcRequestId, String etag, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase) { + com.oracle.bmc.generativeai.model.RoutingProfile routingProfile) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; this.etag = etag; - this.distributedDatabase = distributedDatabase; + this.routingProfile = routingProfile; } public static class Builder - implements com.oracle.bmc.responses.BmcResponse.Builder< - GetDistributedDatabaseResponse> { + implements com.oracle.bmc.responses.BmcResponse.Builder { private int __httpStatusCode__; @Override @@ -119,19 +117,18 @@ public Builder etag(String etag) { return this; } - /** The returned {@code DistributedDatabase} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase; + /** The returned {@code RoutingProfile} instance. */ + private com.oracle.bmc.generativeai.model.RoutingProfile routingProfile; /** - * The returned {@code DistributedDatabase} instance. + * The returned {@code RoutingProfile} instance. * - * @param distributedDatabase the value to set + * @param routingProfile the value to set * @return this builder */ - public Builder distributedDatabase( - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase - distributedDatabase) { - this.distributedDatabase = distributedDatabase; + public Builder routingProfile( + com.oracle.bmc.generativeai.model.RoutingProfile routingProfile) { + this.routingProfile = routingProfile; return this; } @@ -141,12 +138,12 @@ public Builder distributedDatabase( * @return this builder instance */ @Override - public Builder copy(GetDistributedDatabaseResponse o) { + public Builder copy(UpdateRoutingProfileResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); etag(o.getEtag()); - distributedDatabase(o.getDistributedDatabase()); + routingProfile(o.getRoutingProfile()); return this; } @@ -157,9 +154,9 @@ public Builder copy(GetDistributedDatabaseResponse o) { * @return the response object */ @Override - public GetDistributedDatabaseResponse build() { - return new GetDistributedDatabaseResponse( - __httpStatusCode__, headers, opcRequestId, etag, distributedDatabase); + public UpdateRoutingProfileResponse build() { + return new UpdateRoutingProfileResponse( + __httpStatusCode__, headers, opcRequestId, etag, routingProfile); } } @@ -179,7 +176,7 @@ public String toString() { 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(",routingProfile=").append(String.valueOf(routingProfile)); sb.append(")"); return sb.toString(); } @@ -189,15 +186,15 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof GetDistributedDatabaseResponse)) { + if (!(o instanceof UpdateRoutingProfileResponse)) { return false; } - GetDistributedDatabaseResponse other = (GetDistributedDatabaseResponse) o; + UpdateRoutingProfileResponse other = (UpdateRoutingProfileResponse) 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); + && java.util.Objects.equals(this.routingProfile, other.routingProfile); } @Override @@ -208,9 +205,7 @@ public int hashCode() { result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) - + (this.distributedDatabase == null - ? 43 - : this.distributedDatabase.hashCode()); + + (this.routingProfile == null ? 43 : this.routingProfile.hashCode()); return result; } } diff --git a/bmc-generativeai/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-generativeai/reflect-config.json b/bmc-generativeai/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-generativeai/reflect-config.json index 93f0e286392..e5182ec4299 100644 --- a/bmc-generativeai/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-generativeai/reflect-config.json +++ b/bmc-generativeai/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-generativeai/reflect-config.json @@ -106,6 +106,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.Availability", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.Availability$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.generativeai.model.ChangeApiKeyCompartmentDetails", @@ -232,6 +246,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.ChangeRoutingProfileCompartmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.ChangeRoutingProfileCompartmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.generativeai.model.ChangeSemanticStoreCompartmentDetails", @@ -529,6 +557,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.CreateRoutingProfileDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.CreateRoutingProfileDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.generativeai.model.CreateSchemasDatabaseToolsConnectionDetails", @@ -1500,6 +1542,40 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.ModelDiscovery", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.ModelDiscovery$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.ModelDiscovery$ModelAccess", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.ModelDiscoveryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.ModelDiscoveryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.generativeai.model.ModelMetrics", @@ -1513,6 +1589,40 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.ModelModality", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.ModelModalitySupport", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.ModelModalitySupport$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.ModelRoutingPolicy", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.ModelRoutingPolicy$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.generativeai.model.ModelSummary", @@ -1629,6 +1739,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.Parameter", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.Parameter$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.generativeai.model.PiiDetectionConfig", @@ -1643,6 +1767,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.PreviousRoutingProfileState", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.PreviousRoutingProfileState$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.generativeai.model.PromptInjectionConfig", @@ -1712,6 +1850,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.RegionRoutingPolicy", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.RegionRoutingPolicy$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.generativeai.model.RenewApiKeyDetails", @@ -1726,6 +1878,54 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.RoutingProfile", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.RoutingProfile$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.RoutingProfile$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.RoutingProfileCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.RoutingProfileCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.RoutingProfileSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.RoutingProfileSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.generativeai.model.ScalingConfig", @@ -1901,6 +2101,12 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.ServingMode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.generativeai.model.SetApiKeyStateDetails", @@ -2172,6 +2378,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.UpdateRoutingProfileDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.UpdateRoutingProfileDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.generativeai.model.UpdateSemanticStoreDetails", diff --git a/bmc-generativeaiagent/pom.xml b/bmc-generativeaiagent/pom.xml index 07494f99565..41f1049cbcc 100644 --- a/bmc-generativeaiagent/pom.xml +++ b/bmc-generativeaiagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-generativeaiagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-generativeaiagentruntime/pom.xml b/bmc-generativeaiagentruntime/pom.xml index b54bb07443d..568c59cf806 100644 --- a/bmc-generativeaiagentruntime/pom.xml +++ b/bmc-generativeaiagentruntime/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-generativeaiagentruntime @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-generativeaidata/pom.xml b/bmc-generativeaidata/pom.xml index 3f49bf20e4d..c61a957fff0 100644 --- a/bmc-generativeaidata/pom.xml +++ b/bmc-generativeaidata/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-generativeaidata @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-generativeaiinference/pom.xml b/bmc-generativeaiinference/pom.xml index f6ca38b94ff..bb5a4cb8a00 100644 --- a/bmc-generativeaiinference/pom.xml +++ b/bmc-generativeaiinference/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-generativeaiinference @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-genericartifactscontent/pom.xml b/bmc-genericartifactscontent/pom.xml index 4cad05bfebd..8dd6acb5c55 100644 --- a/bmc-genericartifactscontent/pom.xml +++ b/bmc-genericartifactscontent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-genericartifactscontent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-goldengate/pom.xml b/bmc-goldengate/pom.xml index 7cff7301411..003c76aa170 100644 --- a/bmc-goldengate/pom.xml +++ b/bmc-goldengate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-goldengate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-governancerulescontrolplane/pom.xml b/bmc-governancerulescontrolplane/pom.xml index 4dabd537cd0..997d8bb3612 100644 --- a/bmc-governancerulescontrolplane/pom.xml +++ b/bmc-governancerulescontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-governancerulescontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index 7ffe27b9917..fa6a5081dee 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-healthchecks @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index 67aa38b84be..dc55d5b9789 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 diff --git a/bmc-identitydataplane/pom.xml b/bmc-identitydataplane/pom.xml index f6680e9fc30..4bb4725849b 100644 --- a/bmc-identitydataplane/pom.xml +++ b/bmc-identitydataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-identitydataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-identitydomains/pom.xml b/bmc-identitydomains/pom.xml index 433786e5ef7..441b3644cf9 100644 --- a/bmc-identitydomains/pom.xml +++ b/bmc-identitydomains/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-identitydomains @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index 5e4547703d5..c4fb1d5d7a0 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-integration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-iot/pom.xml b/bmc-iot/pom.xml index 59ef6477f35..67196740ed9 100644 --- a/bmc-iot/pom.xml +++ b/bmc-iot/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-iot @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-jms/pom.xml b/bmc-jms/pom.xml index 584318ad5a6..4742242bd92 100644 --- a/bmc-jms/pom.xml +++ b/bmc-jms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-jms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-jmsjavadownloads/pom.xml b/bmc-jmsjavadownloads/pom.xml index f57e78aa15d..930757f9e59 100644 --- a/bmc-jmsjavadownloads/pom.xml +++ b/bmc-jmsjavadownloads/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-jmsjavadownloads @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-jmsutils/pom.xml b/bmc-jmsutils/pom.xml index 1b2e08a7fdc..2e7d1958270 100644 --- a/bmc-jmsutils/pom.xml +++ b/bmc-jmsutils/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-jmsutils @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index 060fb6d2f85..421176bee8b 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-keymanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-licensemanager/pom.xml b/bmc-licensemanager/pom.xml index d82aee90190..c0777cd10d6 100644 --- a/bmc-licensemanager/pom.xml +++ b/bmc-licensemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-licensemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index 167bcc02553..6f3355fc000 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-limits @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-limitsincrease/pom.xml b/bmc-limitsincrease/pom.xml index f1e2a49f604..736846c5ce3 100644 --- a/bmc-limitsincrease/pom.xml +++ b/bmc-limitsincrease/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-limitsincrease @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index f49683f3d5e..53681d30cc0 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 diff --git a/bmc-lockbox/pom.xml b/bmc-lockbox/pom.xml index c5d1a9cb59d..760c7736638 100644 --- a/bmc-lockbox/pom.xml +++ b/bmc-lockbox/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-lockbox @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-loganalytics/pom.xml b/bmc-loganalytics/pom.xml index fb646ee9c81..43d07c71380 100644 --- a/bmc-loganalytics/pom.xml +++ b/bmc-loganalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-loganalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-logging/pom.xml b/bmc-logging/pom.xml index 8b50020a76e..eb0f9525f2f 100644 --- a/bmc-logging/pom.xml +++ b/bmc-logging/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-logging @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml index 67cbf527815..9d5d9c4a11c 100644 --- a/bmc-loggingingestion/pom.xml +++ b/bmc-loggingingestion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-loggingingestion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml index 5cf78248ba4..06c09fbfbfd 100644 --- a/bmc-loggingsearch/pom.xml +++ b/bmc-loggingsearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-loggingsearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-lustrefilestorage/pom.xml b/bmc-lustrefilestorage/pom.xml index 13b5d595074..ff8d8161641 100644 --- a/bmc-lustrefilestorage/pom.xml +++ b/bmc-lustrefilestorage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-lustrefilestorage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-managedkafka/pom.xml b/bmc-managedkafka/pom.xml index 6de2f900b2e..31774d109a6 100644 --- a/bmc-managedkafka/pom.xml +++ b/bmc-managedkafka/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-managedkafka @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-managementagent/pom.xml b/bmc-managementagent/pom.xml index ed3701914b5..64adb2f518e 100644 --- a/bmc-managementagent/pom.xml +++ b/bmc-managementagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-managementagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml index 451149117c7..fa71323fd93 100644 --- a/bmc-managementdashboard/pom.xml +++ b/bmc-managementdashboard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-managementdashboard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index 7a122e5fea5..ef8fc26d599 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-marketplace @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-marketplaceprivateoffer/pom.xml b/bmc-marketplaceprivateoffer/pom.xml index 49779d731ec..f522a73359d 100644 --- a/bmc-marketplaceprivateoffer/pom.xml +++ b/bmc-marketplaceprivateoffer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-marketplaceprivateoffer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-marketplacepublisher/pom.xml b/bmc-marketplacepublisher/pom.xml index a44a618764f..db7ef5813c8 100644 --- a/bmc-marketplacepublisher/pom.xml +++ b/bmc-marketplacepublisher/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-marketplacepublisher @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifact.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifact.java new file mode 100644 index 00000000000..aa8bdd3800a --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifact.java @@ -0,0 +1,82 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher; + +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; + +/** + * Use the Marketplace Publisher API to manage the publishing of applications in Oracle Cloud + * Infrastructure Marketplace. 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: 20241201") +public interface AdministratorArtifact 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); + + /** + * Updates the specified Artifact Status identified by the 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 + * UpdateAdminArtifactStatus API. + */ + UpdateAdminArtifactStatusResponse updateAdminArtifactStatus( + UpdateAdminArtifactStatusRequest request); +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifactAsync.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifactAsync.java new file mode 100644 index 00000000000..134c8a13a66 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifactAsync.java @@ -0,0 +1,80 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher; + +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; + +/** + * Use the Marketplace Publisher API to manage the publishing of applications in Oracle Cloud + * Infrastructure Marketplace. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public interface AdministratorArtifactAsync 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); + + /** + * Updates the specified Artifact Status identified by the 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 updateAdminArtifactStatus( + UpdateAdminArtifactStatusRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateAdminArtifactStatusRequest, UpdateAdminArtifactStatusResponse> + handler); +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifactAsyncClient.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifactAsyncClient.java new file mode 100644 index 00000000000..3ef17725b66 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifactAsyncClient.java @@ -0,0 +1,296 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; + +import java.util.Objects; + +/** + * Async client implementation for AdministratorArtifact 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: 20241201") +public class AdministratorArtifactAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient + implements AdministratorArtifactAsync { + /** Service instance for AdministratorArtifact. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(AdministratorArtifactClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://marketplace-publisher.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AdministratorArtifactAsyncClient.class); + + AdministratorArtifactAsyncClient( + 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, AdministratorArtifactAsyncClient> { + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "marketplacepublisher"; + 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 AdministratorArtifactAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new AdministratorArtifactAsyncClient(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 updateAdminArtifactStatus( + UpdateAdminArtifactStatusRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateAdminArtifactStatusRequest, UpdateAdminArtifactStatusResponse> + handler) { + Objects.requireNonNull( + request.getUpdateAdminArtifactStatusDetails(), + "updateAdminArtifactStatusDetails is required"); + + Validate.notBlank(request.getArtifactId(), "artifactId must not be blank"); + + return clientCall(request, UpdateAdminArtifactStatusResponse::builder) + .logger(LOG, "updateAdminArtifactStatus") + .serviceDetails( + "AdministratorArtifact", + "UpdateAdminArtifactStatus", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminPublisher/UpdateAdminArtifactStatus") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateAdminArtifactStatusRequest::builder) + .basePath("/20241201") + .appendPathParam("adminArtifacts") + .appendPathParam(request.getArtifactId()) + .appendPathParam("status") + .appendPathParam("new") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.Artifact.class, + UpdateAdminArtifactStatusResponse.Builder::artifact) + .handleResponseHeaderString("etag", UpdateAdminArtifactStatusResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateAdminArtifactStatusResponse.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 AdministratorArtifactAsyncClient( + 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 AdministratorArtifactAsyncClient( + 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 AdministratorArtifactAsyncClient( + 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 AdministratorArtifactAsyncClient( + 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 AdministratorArtifactAsyncClient( + 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 AdministratorArtifactAsyncClient( + 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 AdministratorArtifactAsyncClient( + 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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifactClient.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifactClient.java new file mode 100644 index 00000000000..95dfedaa3c4 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifactClient.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.marketplacepublisher; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.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: 20241201") +public class AdministratorArtifactClient extends com.oracle.bmc.http.internal.BaseSyncClient + implements AdministratorArtifact { + /** Service instance for AdministratorArtifact. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(AdministratorArtifactClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://marketplace-publisher.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AdministratorArtifactClient.class); + + AdministratorArtifactClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + super( + builder, + authenticationDetailsProvider, + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION); + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, AdministratorArtifactClient> { + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "marketplacepublisher"; + 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 AdministratorArtifactClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new AdministratorArtifactClient(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 UpdateAdminArtifactStatusResponse updateAdminArtifactStatus( + UpdateAdminArtifactStatusRequest request) { + Objects.requireNonNull( + request.getUpdateAdminArtifactStatusDetails(), + "updateAdminArtifactStatusDetails is required"); + + Validate.notBlank(request.getArtifactId(), "artifactId must not be blank"); + + return clientCall(request, UpdateAdminArtifactStatusResponse::builder) + .logger(LOG, "updateAdminArtifactStatus") + .serviceDetails( + "AdministratorArtifact", + "UpdateAdminArtifactStatus", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminPublisher/UpdateAdminArtifactStatus") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateAdminArtifactStatusRequest::builder) + .basePath("/20241201") + .appendPathParam("adminArtifacts") + .appendPathParam(request.getArtifactId()) + .appendPathParam("status") + .appendPathParam("new") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.Artifact.class, + UpdateAdminArtifactStatusResponse.Builder::artifact) + .handleResponseHeaderString("etag", UpdateAdminArtifactStatusResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateAdminArtifactStatusResponse.Builder::opcRequestId) + .callSync(); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public AdministratorArtifactClient( + 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 AdministratorArtifactClient( + 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 AdministratorArtifactClient( + 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 AdministratorArtifactClient( + 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 AdministratorArtifactClient( + 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 AdministratorArtifactClient( + 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 AdministratorArtifactClient( + 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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisher.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisher.java new file mode 100644 index 00000000000..4080a4965b3 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisher.java @@ -0,0 +1,81 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher; + +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; + +/** + * Use the Marketplace Publisher API to manage the publishing of applications in Oracle Cloud + * Infrastructure Marketplace. 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: 20241201") +public interface AdministratorPublisher 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 a Publisher by identifier + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

    Example: Click here to see how to use GetAdminPublisher + * API. + */ + GetAdminPublisherResponse getAdminPublisher(GetAdminPublisherRequest request); +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisherAsync.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisherAsync.java new file mode 100644 index 00000000000..cc6d78741fa --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisherAsync.java @@ -0,0 +1,80 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher; + +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; + +/** + * Use the Marketplace Publisher API to manage the publishing of applications in Oracle Cloud + * Infrastructure Marketplace. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public interface AdministratorPublisherAsync 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 a Publisher by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getAdminPublisher( + GetAdminPublisherRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetAdminPublisherRequest, GetAdminPublisherResponse> + handler); +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisherAsyncClient.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisherAsyncClient.java new file mode 100644 index 00000000000..19af1831b0a --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisherAsyncClient.java @@ -0,0 +1,289 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; + +import java.util.Objects; + +/** + * Async client implementation for AdministratorPublisher 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: 20241201") +public class AdministratorPublisherAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient + implements AdministratorPublisherAsync { + /** Service instance for AdministratorPublisher. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(AdministratorPublisherClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://marketplace-publisher.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AdministratorPublisherAsyncClient.class); + + AdministratorPublisherAsyncClient( + 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, AdministratorPublisherAsyncClient> { + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "marketplacepublisher"; + 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 AdministratorPublisherAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new AdministratorPublisherAsyncClient(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 getAdminPublisher( + GetAdminPublisherRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetAdminPublisherRequest, GetAdminPublisherResponse> + handler) { + + Validate.notBlank(request.getPublisherId(), "publisherId must not be blank"); + + return clientCall(request, GetAdminPublisherResponse::builder) + .logger(LOG, "getAdminPublisher") + .serviceDetails( + "AdministratorPublisher", + "GetAdminPublisher", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminPublisher/GetAdminPublisher") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAdminPublisherRequest::builder) + .basePath("/20241201") + .appendPathParam("adminPublishers") + .appendPathParam(request.getPublisherId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.marketplacepublisher.model.AdminPublisher.class, + GetAdminPublisherResponse.Builder::adminPublisher) + .handleResponseHeaderString("etag", GetAdminPublisherResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetAdminPublisherResponse.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 AdministratorPublisherAsyncClient( + 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 AdministratorPublisherAsyncClient( + 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 AdministratorPublisherAsyncClient( + 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 AdministratorPublisherAsyncClient( + 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 AdministratorPublisherAsyncClient( + 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 AdministratorPublisherAsyncClient( + 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 AdministratorPublisherAsyncClient( + 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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisherClient.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisherClient.java new file mode 100644 index 00000000000..aaefd3a0880 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisherClient.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.marketplacepublisher; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.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: 20241201") +public class AdministratorPublisherClient extends com.oracle.bmc.http.internal.BaseSyncClient + implements AdministratorPublisher { + /** Service instance for AdministratorPublisher. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(AdministratorPublisherClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://marketplace-publisher.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AdministratorPublisherClient.class); + + AdministratorPublisherClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + super( + builder, + authenticationDetailsProvider, + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION); + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, AdministratorPublisherClient> { + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "marketplacepublisher"; + 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 AdministratorPublisherClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new AdministratorPublisherClient(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 GetAdminPublisherResponse getAdminPublisher(GetAdminPublisherRequest request) { + + Validate.notBlank(request.getPublisherId(), "publisherId must not be blank"); + + return clientCall(request, GetAdminPublisherResponse::builder) + .logger(LOG, "getAdminPublisher") + .serviceDetails( + "AdministratorPublisher", + "GetAdminPublisher", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminPublisher/GetAdminPublisher") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAdminPublisherRequest::builder) + .basePath("/20241201") + .appendPathParam("adminPublishers") + .appendPathParam(request.getPublisherId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.AdminPublisher.class, + GetAdminPublisherResponse.Builder::adminPublisher) + .handleResponseHeaderString("etag", GetAdminPublisherResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetAdminPublisherResponse.Builder::opcRequestId) + .callSync(); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public AdministratorPublisherClient( + 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 AdministratorPublisherClient( + 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 AdministratorPublisherClient( + 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 AdministratorPublisherClient( + 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 AdministratorPublisherClient( + 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 AdministratorPublisherClient( + 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 AdministratorPublisherClient( + 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/DistributedDbService.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministrator.java similarity index 52% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbService.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministrator.java index 16337d5ceb9..33c1109b179 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbService.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministrator.java @@ -2,18 +2,18 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -package com.oracle.bmc.distributeddatabasev26; +package com.oracle.bmc.marketplacepublisher; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.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. + * Use the Marketplace Publisher API to manage the publishing of applications in Oracle Cloud + * Infrastructure Marketplace. 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 { +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public interface MarketplaceAdministrator extends AutoCloseable { /** Rebuilds the client from scratch. Useful to refresh certificates. */ void refreshClient(); @@ -64,7 +64,7 @@ public interface DistributedDbService extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Add new Global database services control(GDS CTL) node for the Globally distributed database. + * Change the Listing Revision status to New * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -73,16 +73,15 @@ public interface DistributedDbService extends AutoCloseable { * 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. + * ChangeListingRevisionStatusToNew API. */ - AddDistributedDatabaseGdsControlNodeResponse addDistributedDatabaseGdsControlNode( - AddDistributedDatabaseGdsControlNodeRequest request); + ChangeListingRevisionStatusToNewResponse changeListingRevisionStatusToNew( + ChangeListingRevisionStatusToNewRequest request); /** - * Move the Globally distributed database and its dependent resources to the specified - * compartment. + * Creates a new Market. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -91,51 +90,13 @@ AddDistributedDatabaseGdsControlNodeResponse addDistributedDatabaseGdsControlNod * 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. + * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/marketplacepublisher/CreateMarketExample.java.html" + * target="_blank" rel="noopener noreferrer" >here to see how to use CreateMarket API. */ - ConfigureDistributedDatabaseAutoResourceManagementResponse - configureDistributedDatabaseAutoResourceManagement( - ConfigureDistributedDatabaseAutoResourceManagementRequest request); + CreateMarketResponse createMarket(CreateMarketRequest request); /** - * Configure new Global Service Manager(GSM aka shard manager) instances for the Globally - * distributed database. + * Gets the specified artifact's information. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -144,20 +105,14 @@ ChangeDistributedDbBackupConfigResponse changeDistributedDbBackupConfig( * 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. + * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/marketplacepublisher/GetAdminArtifactExample.java.html" + * target="_blank" rel="noopener noreferrer" >here to see how to use GetAdminArtifact + * API. */ - ConfigureDistributedDatabaseGsmsResponse configureDistributedDatabaseGsms( - ConfigureDistributedDatabaseGsmsRequest request); + GetAdminArtifactResponse getAdminArtifact(GetAdminArtifactRequest 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. + * Returns details of the Listing. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -166,15 +121,14 @@ ConfigureDistributedDatabaseGsmsResponse configureDistributedDatabaseGsms( * 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. + * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/marketplacepublisher/GetAdminListingExample.java.html" + * target="_blank" rel="noopener noreferrer" >here to see how to use GetAdminListing + * API. */ - ConfigureDistributedDatabaseShardingResponse configureDistributedDatabaseSharding( - ConfigureDistributedDatabaseShardingRequest request); + GetAdminListingResponse getAdminListing(GetAdminListingRequest request); /** - * Creates a Globally distributed database. + * Returns details of the Listing revision. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -183,15 +137,14 @@ ConfigureDistributedDatabaseShardingResponse configureDistributedDatabaseShardin * 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. + * GetAdminListingRevision API. */ - CreateDistributedDatabaseResponse createDistributedDatabase( - CreateDistributedDatabaseRequest request); + GetAdminListingRevisionResponse getAdminListingRevision(GetAdminListingRevisionRequest request); /** - * Terminate the given Globally distributed database. + * Get the details of the specified listing revision attachment. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -200,15 +153,15 @@ CreateDistributedDatabaseResponse createDistributedDatabase( * 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. + * GetAdminListingRevisionAttachment API. */ - DeleteDistributedDatabaseResponse deleteDistributedDatabase( - DeleteDistributedDatabaseRequest request); + GetAdminListingRevisionAttachmentResponse getAdminListingRevisionAttachment( + GetAdminListingRevisionAttachmentRequest request); /** - * Generate the wallet associated with Globally distributed database. + * Get the details of the specified version of a package. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -217,15 +170,15 @@ DeleteDistributedDatabaseResponse deleteDistributedDatabase( * 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. + * GetAdminListingRevisionPackage API. */ - GenerateDistributedDatabaseWalletResponse generateDistributedDatabaseWallet( - GenerateDistributedDatabaseWalletRequest request); + GetAdminListingRevisionPackageResponse getAdminListingRevisionPackage( + GetAdminListingRevisionPackageRequest request); /** - * Gets the details of the Globally distributed database identified by given id. + * Gets a Term by identifier * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -234,15 +187,13 @@ GenerateDistributedDatabaseWalletResponse generateDistributedDatabaseWallet( * 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. + * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/marketplacepublisher/GetAdminTermExample.java.html" + * target="_blank" rel="noopener noreferrer" >here to see how to use GetAdminTerm API. */ - GetDistributedDatabaseResponse getDistributedDatabase(GetDistributedDatabaseRequest request); + GetAdminTermResponse getAdminTerm(GetAdminTermRequest 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. + * Gets a Term Version by the identifier * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -251,16 +202,16 @@ GenerateDistributedDatabaseWalletResponse generateDistributedDatabaseWallet( * 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. + * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/marketplacepublisher/GetAdminTermVersionExample.java.html" + * target="_blank" rel="noopener noreferrer" >here to see how to use GetAdminTermVersion + * API. */ - GetDistributedDatabaseRaftMetricResponse getDistributedDatabaseRaftMetric( - GetDistributedDatabaseRaftMetricRequest request); + GetAdminTermVersionResponse getAdminTermVersion(GetAdminTermVersionRequest request); /** - * Operation to retrieve move RU invocation history and status for the Globally distributed - * database. Results are ordered by created timestamp in descending order. + * Lists the artifacts in your compartment. You must specify your compartment's OCID as the + * value for the compartment ID. For information about OCIDs, see Resource Identifiers + * (Content/General/Concepts/identifiers.htm). * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -269,15 +220,14 @@ GetDistributedDatabaseRaftMetricResponse getDistributedDatabaseRaftMetric( * 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. + * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/marketplacepublisher/ListAdminArtifactsExample.java.html" + * target="_blank" rel="noopener noreferrer" >here to see how to use ListAdminArtifacts + * API. */ - GetDistributedDatabaseRuChangeLogResponse getDistributedDatabaseRuChangeLog( - GetDistributedDatabaseRuChangeLogRequest request); + ListAdminArtifactsResponse listAdminArtifacts(ListAdminArtifactsRequest request); /** - * List of Globally distributed databases. + * Gets the list of attachments for a listing revision * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -286,16 +236,15 @@ GetDistributedDatabaseRuChangeLogResponse getDistributedDatabaseRuChangeLog( * 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. + * ListAdminListingRevisionAttachments API. */ - ListDistributedDatabasesResponse listDistributedDatabases( - ListDistributedDatabasesRequest request); + ListAdminListingRevisionAttachmentsResponse listAdminListingRevisionAttachments( + ListAdminListingRevisionAttachmentsRequest request); /** - * Move the replication units for RAFT based globally distributed database from source shard to - * destination shard. + * Gets the list of packages for a listing revision. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -304,17 +253,15 @@ ListDistributedDatabasesResponse listDistributedDatabases( * 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. + * ListAdminListingRevisionPackages API. */ - MoveDistributedDatabaseReplicationUnitResponse moveDistributedDatabaseReplicationUnit( - MoveDistributedDatabaseReplicationUnitRequest request); + ListAdminListingRevisionPackagesResponse listAdminListingRevisionPackages( + ListAdminListingRevisionPackagesRequest 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. + * Returns a list of all the Listing revisions. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -323,15 +270,15 @@ MoveDistributedDatabaseReplicationUnitResponse moveDistributedDatabaseReplicatio * 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. + * ListAdminListingRevisions API. */ - PatchDistributedDatabaseResponse patchDistributedDatabase( - PatchDistributedDatabaseRequest request); + ListAdminListingRevisionsResponse listAdminListingRevisions( + ListAdminListingRevisionsRequest request); /** - * Recreate the failed resource for the Globally Distributed Database. + * Retrieve a list of publisher SKUs * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -340,16 +287,14 @@ PatchDistributedDatabaseResponse patchDistributedDatabase( * 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. + * ListAdminPublisherSkus API. */ - RecreateFailedDistributedDatabaseResourceResponse recreateFailedDistributedDatabaseResource( - RecreateFailedDistributedDatabaseResourceRequest request); + ListAdminPublisherSkusResponse listAdminPublisherSkus(ListAdminPublisherSkusRequest request); /** - * Rotate the gsmuser and gsmcatuser passwords for shards and catalog of the Globally - * distributed database. This operation will also remove GdsCtlNodes if present. + * Returns a list of the publisher term versions. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -358,16 +303,14 @@ RecreateFailedDistributedDatabaseResourceResponse recreateFailedDistributedDatab * 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. + * ListAdminTermVersions API. */ - RotateDistributedDatabasePasswordsResponse rotateDistributedDatabasePasswords( - RotateDistributedDatabasePasswordsRequest request); + ListAdminTermVersionsResponse listAdminTermVersions(ListAdminTermVersionsRequest request); /** - * Scale global service manager(GSM aka shard manager) instances for the Globally distributed - * database. + * Returns a list of the publisher terms. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -376,15 +319,13 @@ RotateDistributedDatabasePasswordsResponse rotateDistributedDatabasePasswords( * 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. + * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/marketplacepublisher/ListAdminTermsExample.java.html" + * target="_blank" rel="noopener noreferrer" >here to see how to use ListAdminTerms API. */ - ScaleDistributedDatabaseGsmsResponse scaleDistributedDatabaseGsms( - ScaleDistributedDatabaseGsmsRequest request); + ListAdminTermsResponse listAdminTerms(ListAdminTermsRequest request); /** - * Start the shards, catalog, GSMs and GDSCTL instances of Globally distributed database. + * 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 @@ -393,69 +334,11 @@ ScaleDistributedDatabaseGsmsResponse scaleDistributedDatabaseGsms( * 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. + * ListAdminWorkRequests API. */ - DistributedDbServiceWaiters getWaiters(); + ListAdminWorkRequestsResponse listAdminWorkRequests(ListAdminWorkRequestsRequest request); /** * Gets the pre-configured paginators available for list operations in this service which may @@ -465,5 +348,5 @@ ValidateDistributedDatabaseNetworkResponse validateDistributedDatabaseNetwork( * * @return The service paginators. */ - DistributedDbServicePaginators getPaginators(); + MarketplaceAdministratorPaginators getPaginators(); } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministratorAsync.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministratorAsync.java new file mode 100644 index 00000000000..0944e8554c7 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministratorAsync.java @@ -0,0 +1,343 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher; + +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; + +/** + * Use the Marketplace Publisher API to manage the publishing of applications in Oracle Cloud + * Infrastructure Marketplace. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public interface MarketplaceAdministratorAsync 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); + + /** + * Change the Listing Revision status to New + * + * @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 + changeListingRevisionStatusToNew( + ChangeListingRevisionStatusToNewRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeListingRevisionStatusToNewRequest, + ChangeListingRevisionStatusToNewResponse> + handler); + + /** + * Creates a new Market. + * + * @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 createMarket( + CreateMarketRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets the specified artifact's information. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getAdminArtifact( + GetAdminArtifactRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Returns details of the Listing. + * + * @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 getAdminListing( + GetAdminListingRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Returns details of the Listing revision. + * + * @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 getAdminListingRevision( + GetAdminListingRevisionRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetAdminListingRevisionRequest, GetAdminListingRevisionResponse> + handler); + + /** + * Get the details of the specified listing revision attachment. + * + * @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 + getAdminListingRevisionAttachment( + GetAdminListingRevisionAttachmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetAdminListingRevisionAttachmentRequest, + GetAdminListingRevisionAttachmentResponse> + handler); + + /** + * Get the details of the specified version of a package. + * + * @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 + getAdminListingRevisionPackage( + GetAdminListingRevisionPackageRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetAdminListingRevisionPackageRequest, + GetAdminListingRevisionPackageResponse> + handler); + + /** + * Gets a Term by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getAdminTerm( + GetAdminTermRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets a Term Version by the identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getAdminTermVersion( + GetAdminTermVersionRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetAdminTermVersionRequest, GetAdminTermVersionResponse> + handler); + + /** + * Lists the artifacts in your compartment. You must specify your compartment's OCID as the + * value for the compartment ID. For information about OCIDs, see Resource Identifiers + * (Content/General/Concepts/identifiers.htm). + * + * @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 listAdminArtifacts( + ListAdminArtifactsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListAdminArtifactsRequest, ListAdminArtifactsResponse> + handler); + + /** + * Gets the list of attachments for a listing revision + * + * @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 + listAdminListingRevisionAttachments( + ListAdminListingRevisionAttachmentsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListAdminListingRevisionAttachmentsRequest, + ListAdminListingRevisionAttachmentsResponse> + handler); + + /** + * Gets the list of packages for a listing revision. + * + * @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 + listAdminListingRevisionPackages( + ListAdminListingRevisionPackagesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListAdminListingRevisionPackagesRequest, + ListAdminListingRevisionPackagesResponse> + handler); + + /** + * Returns a list of all the Listing revisions. + * + * @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 listAdminListingRevisions( + ListAdminListingRevisionsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListAdminListingRevisionsRequest, ListAdminListingRevisionsResponse> + handler); + + /** + * Retrieve a list of publisher SKUs + * + * @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 listAdminPublisherSkus( + ListAdminPublisherSkusRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListAdminPublisherSkusRequest, ListAdminPublisherSkusResponse> + handler); + + /** + * Returns a list of the publisher term versions. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listAdminTermVersions( + ListAdminTermVersionsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListAdminTermVersionsRequest, ListAdminTermVersionsResponse> + handler); + + /** + * Returns a list of the publisher terms. + * + * @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 listAdminTerms( + ListAdminTermsRequest request, + com.oracle.bmc.responses.AsyncHandler + 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 listAdminWorkRequests( + ListAdminWorkRequestsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListAdminWorkRequestsRequest, ListAdminWorkRequestsResponse> + handler); +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministratorAsyncClient.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministratorAsyncClient.java new file mode 100644 index 00000000000..32f088637c9 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministratorAsyncClient.java @@ -0,0 +1,873 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; + +import java.util.Objects; + +/** + * Async client implementation for MarketplaceAdministrator 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: 20241201") +public class MarketplaceAdministratorAsyncClient + extends com.oracle.bmc.http.internal.BaseAsyncClient + implements MarketplaceAdministratorAsync { + /** Service instance for MarketplaceAdministrator. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(MarketplaceAdministratorClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://marketplace-publisher.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MarketplaceAdministratorAsyncClient.class); + + MarketplaceAdministratorAsyncClient( + 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, MarketplaceAdministratorAsyncClient> { + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "marketplacepublisher"; + 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 MarketplaceAdministratorAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new MarketplaceAdministratorAsyncClient(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 + changeListingRevisionStatusToNew( + ChangeListingRevisionStatusToNewRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeListingRevisionStatusToNewRequest, + ChangeListingRevisionStatusToNewResponse> + handler) { + + Validate.notBlank(request.getListingRevisionId(), "listingRevisionId must not be blank"); + + return clientCall(request, ChangeListingRevisionStatusToNewResponse::builder) + .logger(LOG, "changeListingRevisionStatusToNew") + .serviceDetails( + "MarketplaceAdministrator", + "ChangeListingRevisionStatusToNew", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevision/ChangeListingRevisionStatusToNew") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeListingRevisionStatusToNewRequest::builder) + .basePath("/20241201") + .appendPathParam("adminListingRevisions") + .appendPathParam(request.getListingRevisionId()) + .appendPathParam("status") + .appendPathParam("new") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.marketplacepublisher.model.AdminListingRevision.class, + ChangeListingRevisionStatusToNewResponse.Builder::adminListingRevision) + .handleResponseHeaderString( + "opc-request-id", + ChangeListingRevisionStatusToNewResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", ChangeListingRevisionStatusToNewResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future createMarket( + CreateMarketRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + Objects.requireNonNull(request.getCreateMarketDetails(), "createMarketDetails is required"); + + return clientCall(request, CreateMarketResponse::builder) + .logger(LOG, "createMarket") + .serviceDetails( + "MarketplaceAdministrator", + "CreateMarket", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/Market/CreateMarket") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateMarketRequest::builder) + .basePath("/20241201") + .appendPathParam("adminMarkets") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", CreateMarketResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateMarketResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getAdminArtifact( + GetAdminArtifactRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetAdminArtifactRequest, GetAdminArtifactResponse> + handler) { + + Validate.notBlank(request.getArtifactId(), "artifactId must not be blank"); + + return clientCall(request, GetAdminArtifactResponse::builder) + .logger(LOG, "getAdminArtifact") + .serviceDetails( + "MarketplaceAdministrator", + "GetAdminArtifact", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminArtifact/GetAdminArtifact") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAdminArtifactRequest::builder) + .basePath("/20241201") + .appendPathParam("adminArtifacts") + .appendPathParam(request.getArtifactId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.marketplacepublisher.model.AdminArtifact.class, + GetAdminArtifactResponse.Builder::adminArtifact) + .handleResponseHeaderString("etag", GetAdminArtifactResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetAdminArtifactResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getAdminListing( + GetAdminListingRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetAdminListingRequest, GetAdminListingResponse> + handler) { + + Validate.notBlank(request.getListingId(), "listingId must not be blank"); + + return clientCall(request, GetAdminListingResponse::builder) + .logger(LOG, "getAdminListing") + .serviceDetails( + "MarketplaceAdministrator", + "GetAdminListing", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListing/GetAdminListing") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAdminListingRequest::builder) + .basePath("/20241201") + .appendPathParam("adminListings") + .appendPathParam(request.getListingId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.marketplacepublisher.model.AdminListing.class, + GetAdminListingResponse.Builder::adminListing) + .handleResponseHeaderString( + "opc-request-id", GetAdminListingResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetAdminListingResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getAdminListingRevision( + GetAdminListingRevisionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetAdminListingRevisionRequest, GetAdminListingRevisionResponse> + handler) { + + Validate.notBlank(request.getListingRevisionId(), "listingRevisionId must not be blank"); + + return clientCall(request, GetAdminListingRevisionResponse::builder) + .logger(LOG, "getAdminListingRevision") + .serviceDetails( + "MarketplaceAdministrator", + "GetAdminListingRevision", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevision/GetAdminListingRevision") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAdminListingRevisionRequest::builder) + .basePath("/20241201") + .appendPathParam("adminListingRevisions") + .appendPathParam(request.getListingRevisionId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.marketplacepublisher.model.AdminListingRevision.class, + GetAdminListingRevisionResponse.Builder::adminListingRevision) + .handleResponseHeaderString( + "opc-request-id", GetAdminListingRevisionResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", GetAdminListingRevisionResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getAdminListingRevisionAttachment( + GetAdminListingRevisionAttachmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetAdminListingRevisionAttachmentRequest, + GetAdminListingRevisionAttachmentResponse> + handler) { + + Validate.notBlank( + request.getListingRevisionAttachmentId(), + "listingRevisionAttachmentId must not be blank"); + + return clientCall(request, GetAdminListingRevisionAttachmentResponse::builder) + .logger(LOG, "getAdminListingRevisionAttachment") + .serviceDetails( + "MarketplaceAdministrator", + "GetAdminListingRevisionAttachment", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevisionAttachment/GetAdminListingRevisionAttachment") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAdminListingRevisionAttachmentRequest::builder) + .basePath("/20241201") + .appendPathParam("adminListingRevisionAttachments") + .appendPathParam(request.getListingRevisionAttachmentId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionAttachment + .class, + GetAdminListingRevisionAttachmentResponse.Builder + ::adminListingRevisionAttachment) + .handleResponseHeaderString( + "opc-request-id", + GetAdminListingRevisionAttachmentResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", GetAdminListingRevisionAttachmentResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getAdminListingRevisionPackage( + GetAdminListingRevisionPackageRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetAdminListingRevisionPackageRequest, + GetAdminListingRevisionPackageResponse> + handler) { + + Validate.notBlank( + request.getListingRevisionPackageId(), + "listingRevisionPackageId must not be blank"); + + return clientCall(request, GetAdminListingRevisionPackageResponse::builder) + .logger(LOG, "getAdminListingRevisionPackage") + .serviceDetails( + "MarketplaceAdministrator", + "GetAdminListingRevisionPackage", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevisionPackage/GetAdminListingRevisionPackage") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAdminListingRevisionPackageRequest::builder) + .basePath("/20241201") + .appendPathParam("adminListingRevisionPackages") + .appendPathParam(request.getListingRevisionPackageId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionPackage.class, + GetAdminListingRevisionPackageResponse.Builder::adminListingRevisionPackage) + .handleResponseHeaderString( + "opc-request-id", + GetAdminListingRevisionPackageResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", GetAdminListingRevisionPackageResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getAdminTerm( + GetAdminTermRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getTermId(), "termId must not be blank"); + + return clientCall(request, GetAdminTermResponse::builder) + .logger(LOG, "getAdminTerm") + .serviceDetails( + "MarketplaceAdministrator", + "GetAdminTerm", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminTerm/GetAdminTerm") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAdminTermRequest::builder) + .basePath("/20241201") + .appendPathParam("adminTerms") + .appendPathParam(request.getTermId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.marketplacepublisher.model.AdminTerm.class, + GetAdminTermResponse.Builder::adminTerm) + .handleResponseHeaderString("etag", GetAdminTermResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetAdminTermResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getAdminTermVersion( + GetAdminTermVersionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetAdminTermVersionRequest, GetAdminTermVersionResponse> + handler) { + + Validate.notBlank(request.getTermVersionId(), "termVersionId must not be blank"); + + return clientCall(request, GetAdminTermVersionResponse::builder) + .logger(LOG, "getAdminTermVersion") + .serviceDetails( + "MarketplaceAdministrator", + "GetAdminTermVersion", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminTermVersion/GetAdminTermVersion") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAdminTermVersionRequest::builder) + .basePath("/20241201") + .appendPathParam("adminTermVersions") + .appendPathParam(request.getTermVersionId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.marketplacepublisher.model.AdminTermVersion.class, + GetAdminTermVersionResponse.Builder::adminTermVersion) + .handleResponseHeaderString("etag", GetAdminTermVersionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetAdminTermVersionResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listAdminArtifacts( + ListAdminArtifactsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAdminArtifactsRequest, ListAdminArtifactsResponse> + handler) { + + return clientCall(request, ListAdminArtifactsResponse::builder) + .logger(LOG, "listAdminArtifacts") + .serviceDetails( + "MarketplaceAdministrator", + "ListAdminArtifacts", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminArtifactCollection/ListAdminArtifacts") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAdminArtifactsRequest::builder) + .basePath("/20241201") + .appendPathParam("adminArtifacts") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("publisherId", request.getPublisherId()) + .appendEnumQueryParam("artifactType", request.getArtifactType()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("status", request.getStatus()) + .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.marketplacepublisher.model.AdminArtifactCollection.class, + ListAdminArtifactsResponse.Builder::adminArtifactCollection) + .handleResponseHeaderString( + "opc-request-id", ListAdminArtifactsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListAdminArtifactsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listAdminListingRevisionAttachments( + ListAdminListingRevisionAttachmentsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAdminListingRevisionAttachmentsRequest, + ListAdminListingRevisionAttachmentsResponse> + handler) { + Objects.requireNonNull(request.getListingRevisionId(), "listingRevisionId is required"); + + return clientCall(request, ListAdminListingRevisionAttachmentsResponse::builder) + .logger(LOG, "listAdminListingRevisionAttachments") + .serviceDetails( + "MarketplaceAdministrator", + "ListAdminListingRevisionAttachments", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevisionAttachmentCollection/ListAdminListingRevisionAttachments") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAdminListingRevisionAttachmentsRequest::builder) + .basePath("/20241201") + .appendPathParam("adminListingRevisionAttachments") + .appendQueryParam("listingRevisionId", request.getListingRevisionId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .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.marketplacepublisher.model + .AdminListingRevisionAttachmentCollection.class, + ListAdminListingRevisionAttachmentsResponse.Builder + ::adminListingRevisionAttachmentCollection) + .handleResponseHeaderString( + "opc-request-id", + ListAdminListingRevisionAttachmentsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListAdminListingRevisionAttachmentsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listAdminListingRevisionPackages( + ListAdminListingRevisionPackagesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAdminListingRevisionPackagesRequest, + ListAdminListingRevisionPackagesResponse> + handler) { + Objects.requireNonNull(request.getListingRevisionId(), "listingRevisionId is required"); + + return clientCall(request, ListAdminListingRevisionPackagesResponse::builder) + .logger(LOG, "listAdminListingRevisionPackages") + .serviceDetails( + "MarketplaceAdministrator", + "ListAdminListingRevisionPackages", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevisionPackageCollection/ListAdminListingRevisionPackages") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAdminListingRevisionPackagesRequest::builder) + .basePath("/20241201") + .appendPathParam("adminListingRevisionPackages") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("listingRevisionId", request.getListingRevisionId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionPackageCollection.class, + ListAdminListingRevisionPackagesResponse.Builder + ::adminListingRevisionPackageCollection) + .handleResponseHeaderString( + "opc-request-id", + ListAdminListingRevisionPackagesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListAdminListingRevisionPackagesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listAdminListingRevisions( + ListAdminListingRevisionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAdminListingRevisionsRequest, ListAdminListingRevisionsResponse> + handler) { + + return clientCall(request, ListAdminListingRevisionsResponse::builder) + .logger(LOG, "listAdminListingRevisions") + .serviceDetails( + "MarketplaceAdministrator", + "ListAdminListingRevisions", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevisionCollection/ListAdminListingRevisions") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAdminListingRevisionsRequest::builder) + .basePath("/20241201") + .appendPathParam("adminListingRevisions") + .appendQueryParam("listingId", request.getListingId()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("listingType", request.getListingType()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("publisherId", request.getPublisherId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendEnumQueryParam("listingRevisionStatus", request.getListingRevisionStatus()) + .appendQueryParam("statusCsv", request.getStatusCsv()) + .appendQueryParam("product", request.getProduct()) + .appendQueryParam("timeCreatedAfter", request.getTimeCreatedAfter()) + .appendQueryParam("timeUpdatedAfter", request.getTimeUpdatedAfter()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("pricingType", request.getPricingType()) + .appendQueryParam("isPrivateOfferEnabled", request.getIsPrivateOfferEnabled()) + .appendQueryParam("dataSource", request.getDataSource()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionCollection + .class, + ListAdminListingRevisionsResponse.Builder::adminListingRevisionCollection) + .handleResponseHeaderString( + "opc-request-id", ListAdminListingRevisionsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListAdminListingRevisionsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listAdminPublisherSkus( + ListAdminPublisherSkusRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAdminPublisherSkusRequest, ListAdminPublisherSkusResponse> + handler) { + + return clientCall(request, ListAdminPublisherSkusResponse::builder) + .logger(LOG, "listAdminPublisherSkus") + .serviceDetails( + "MarketplaceAdministrator", + "ListAdminPublisherSkus", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminPublisherSkuCollection/ListAdminPublisherSkus") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAdminPublisherSkusRequest::builder) + .basePath("/20241201") + .appendPathParam("adminPublisherSkus") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.marketplacepublisher.model.AdminPublisherSkuCollection.class, + ListAdminPublisherSkusResponse.Builder::adminPublisherSkuCollection) + .handleResponseHeaderString( + "opc-request-id", ListAdminPublisherSkusResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListAdminPublisherSkusResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listAdminTermVersions( + ListAdminTermVersionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAdminTermVersionsRequest, ListAdminTermVersionsResponse> + handler) { + Objects.requireNonNull(request.getTermId(), "termId is required"); + + return clientCall(request, ListAdminTermVersionsResponse::builder) + .logger(LOG, "listAdminTermVersions") + .serviceDetails( + "MarketplaceAdministrator", + "ListAdminTermVersions", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminTermVersionCollection/ListAdminTermVersions") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAdminTermVersionsRequest::builder) + .basePath("/20241201") + .appendPathParam("adminTermVersions") + .appendQueryParam("termId", request.getTermId()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .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.marketplacepublisher.model.AdminTermVersionCollection.class, + ListAdminTermVersionsResponse.Builder::adminTermVersionCollection) + .handleResponseHeaderString( + "opc-next-page", ListAdminTermVersionsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListAdminTermVersionsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listAdminTerms( + ListAdminTermsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAdminTermsRequest, ListAdminTermsResponse> + handler) { + + return clientCall(request, ListAdminTermsResponse::builder) + .logger(LOG, "listAdminTerms") + .serviceDetails( + "MarketplaceAdministrator", + "ListAdminTerms", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminTermCollection/ListAdminTerms") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAdminTermsRequest::builder) + .basePath("/20241201") + .appendPathParam("adminTerms") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("name", request.getName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.marketplacepublisher.model.AdminTermCollection.class, + ListAdminTermsResponse.Builder::adminTermCollection) + .handleResponseHeaderString( + "opc-next-page", ListAdminTermsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListAdminTermsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listAdminWorkRequests( + ListAdminWorkRequestsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAdminWorkRequestsRequest, ListAdminWorkRequestsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListAdminWorkRequestsResponse::builder) + .logger(LOG, "listAdminWorkRequests") + .serviceDetails( + "MarketplaceAdministrator", + "ListAdminWorkRequests", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminWorkRequestSummary/ListAdminWorkRequests") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAdminWorkRequestsRequest::builder) + .basePath("/20241201") + .appendPathParam("adminWorkRequests") + .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.marketplacepublisher.model.AdminWorkRequestSummaryCollection + .class, + ListAdminWorkRequestsResponse.Builder::adminWorkRequestSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", ListAdminWorkRequestsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListAdminWorkRequestsResponse.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 MarketplaceAdministratorAsyncClient( + 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 MarketplaceAdministratorAsyncClient( + 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 MarketplaceAdministratorAsyncClient( + 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 MarketplaceAdministratorAsyncClient( + 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 MarketplaceAdministratorAsyncClient( + 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 MarketplaceAdministratorAsyncClient( + 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 MarketplaceAdministratorAsyncClient( + 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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministratorClient.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministratorClient.java new file mode 100644 index 00000000000..9c34df49c0c --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministratorClient.java @@ -0,0 +1,822 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.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: 20241201") +public class MarketplaceAdministratorClient extends com.oracle.bmc.http.internal.BaseSyncClient + implements MarketplaceAdministrator { + /** Service instance for MarketplaceAdministrator. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(MarketplaceAdministratorClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://marketplace-publisher.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MarketplaceAdministratorClient.class); + + private final MarketplaceAdministratorPaginators paginators; + + MarketplaceAdministratorClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + super( + builder, + authenticationDetailsProvider, + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION); + + this.paginators = new MarketplaceAdministratorPaginators(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, MarketplaceAdministratorClient> { + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "marketplacepublisher"; + 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 MarketplaceAdministratorClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new MarketplaceAdministratorClient(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 ChangeListingRevisionStatusToNewResponse changeListingRevisionStatusToNew( + ChangeListingRevisionStatusToNewRequest request) { + + Validate.notBlank(request.getListingRevisionId(), "listingRevisionId must not be blank"); + + return clientCall(request, ChangeListingRevisionStatusToNewResponse::builder) + .logger(LOG, "changeListingRevisionStatusToNew") + .serviceDetails( + "MarketplaceAdministrator", + "ChangeListingRevisionStatusToNew", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevision/ChangeListingRevisionStatusToNew") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeListingRevisionStatusToNewRequest::builder) + .basePath("/20241201") + .appendPathParam("adminListingRevisions") + .appendPathParam(request.getListingRevisionId()) + .appendPathParam("status") + .appendPathParam("new") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.AdminListingRevision.class, + ChangeListingRevisionStatusToNewResponse.Builder::adminListingRevision) + .handleResponseHeaderString( + "opc-request-id", + ChangeListingRevisionStatusToNewResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", ChangeListingRevisionStatusToNewResponse.Builder::etag) + .callSync(); + } + + @Override + public CreateMarketResponse createMarket(CreateMarketRequest request) { + Objects.requireNonNull(request.getCreateMarketDetails(), "createMarketDetails is required"); + + return clientCall(request, CreateMarketResponse::builder) + .logger(LOG, "createMarket") + .serviceDetails( + "MarketplaceAdministrator", + "CreateMarket", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/Market/CreateMarket") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateMarketRequest::builder) + .basePath("/20241201") + .appendPathParam("adminMarkets") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", CreateMarketResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateMarketResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetAdminArtifactResponse getAdminArtifact(GetAdminArtifactRequest request) { + + Validate.notBlank(request.getArtifactId(), "artifactId must not be blank"); + + return clientCall(request, GetAdminArtifactResponse::builder) + .logger(LOG, "getAdminArtifact") + .serviceDetails( + "MarketplaceAdministrator", + "GetAdminArtifact", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminArtifact/GetAdminArtifact") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAdminArtifactRequest::builder) + .basePath("/20241201") + .appendPathParam("adminArtifacts") + .appendPathParam(request.getArtifactId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.AdminArtifact.class, + GetAdminArtifactResponse.Builder::adminArtifact) + .handleResponseHeaderString("etag", GetAdminArtifactResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetAdminArtifactResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetAdminListingResponse getAdminListing(GetAdminListingRequest request) { + + Validate.notBlank(request.getListingId(), "listingId must not be blank"); + + return clientCall(request, GetAdminListingResponse::builder) + .logger(LOG, "getAdminListing") + .serviceDetails( + "MarketplaceAdministrator", + "GetAdminListing", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListing/GetAdminListing") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAdminListingRequest::builder) + .basePath("/20241201") + .appendPathParam("adminListings") + .appendPathParam(request.getListingId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.AdminListing.class, + GetAdminListingResponse.Builder::adminListing) + .handleResponseHeaderString( + "opc-request-id", GetAdminListingResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetAdminListingResponse.Builder::etag) + .callSync(); + } + + @Override + public GetAdminListingRevisionResponse getAdminListingRevision( + GetAdminListingRevisionRequest request) { + + Validate.notBlank(request.getListingRevisionId(), "listingRevisionId must not be blank"); + + return clientCall(request, GetAdminListingRevisionResponse::builder) + .logger(LOG, "getAdminListingRevision") + .serviceDetails( + "MarketplaceAdministrator", + "GetAdminListingRevision", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevision/GetAdminListingRevision") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAdminListingRevisionRequest::builder) + .basePath("/20241201") + .appendPathParam("adminListingRevisions") + .appendPathParam(request.getListingRevisionId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.AdminListingRevision.class, + GetAdminListingRevisionResponse.Builder::adminListingRevision) + .handleResponseHeaderString( + "opc-request-id", GetAdminListingRevisionResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", GetAdminListingRevisionResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public GetAdminListingRevisionAttachmentResponse getAdminListingRevisionAttachment( + GetAdminListingRevisionAttachmentRequest request) { + + Validate.notBlank( + request.getListingRevisionAttachmentId(), + "listingRevisionAttachmentId must not be blank"); + + return clientCall(request, GetAdminListingRevisionAttachmentResponse::builder) + .logger(LOG, "getAdminListingRevisionAttachment") + .serviceDetails( + "MarketplaceAdministrator", + "GetAdminListingRevisionAttachment", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevisionAttachment/GetAdminListingRevisionAttachment") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAdminListingRevisionAttachmentRequest::builder) + .basePath("/20241201") + .appendPathParam("adminListingRevisionAttachments") + .appendPathParam(request.getListingRevisionAttachmentId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionAttachment + .class, + GetAdminListingRevisionAttachmentResponse.Builder + ::adminListingRevisionAttachment) + .handleResponseHeaderString( + "opc-request-id", + GetAdminListingRevisionAttachmentResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", GetAdminListingRevisionAttachmentResponse.Builder::etag) + .callSync(); + } + + @Override + public GetAdminListingRevisionPackageResponse getAdminListingRevisionPackage( + GetAdminListingRevisionPackageRequest request) { + + Validate.notBlank( + request.getListingRevisionPackageId(), + "listingRevisionPackageId must not be blank"); + + return clientCall(request, GetAdminListingRevisionPackageResponse::builder) + .logger(LOG, "getAdminListingRevisionPackage") + .serviceDetails( + "MarketplaceAdministrator", + "GetAdminListingRevisionPackage", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevisionPackage/GetAdminListingRevisionPackage") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAdminListingRevisionPackageRequest::builder) + .basePath("/20241201") + .appendPathParam("adminListingRevisionPackages") + .appendPathParam(request.getListingRevisionPackageId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionPackage.class, + GetAdminListingRevisionPackageResponse.Builder::adminListingRevisionPackage) + .handleResponseHeaderString( + "opc-request-id", + GetAdminListingRevisionPackageResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", GetAdminListingRevisionPackageResponse.Builder::etag) + .callSync(); + } + + @Override + public GetAdminTermResponse getAdminTerm(GetAdminTermRequest request) { + + Validate.notBlank(request.getTermId(), "termId must not be blank"); + + return clientCall(request, GetAdminTermResponse::builder) + .logger(LOG, "getAdminTerm") + .serviceDetails( + "MarketplaceAdministrator", + "GetAdminTerm", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminTerm/GetAdminTerm") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAdminTermRequest::builder) + .basePath("/20241201") + .appendPathParam("adminTerms") + .appendPathParam(request.getTermId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.AdminTerm.class, + GetAdminTermResponse.Builder::adminTerm) + .handleResponseHeaderString("etag", GetAdminTermResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetAdminTermResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetAdminTermVersionResponse getAdminTermVersion(GetAdminTermVersionRequest request) { + + Validate.notBlank(request.getTermVersionId(), "termVersionId must not be blank"); + + return clientCall(request, GetAdminTermVersionResponse::builder) + .logger(LOG, "getAdminTermVersion") + .serviceDetails( + "MarketplaceAdministrator", + "GetAdminTermVersion", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminTermVersion/GetAdminTermVersion") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAdminTermVersionRequest::builder) + .basePath("/20241201") + .appendPathParam("adminTermVersions") + .appendPathParam(request.getTermVersionId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.AdminTermVersion.class, + GetAdminTermVersionResponse.Builder::adminTermVersion) + .handleResponseHeaderString("etag", GetAdminTermVersionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetAdminTermVersionResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListAdminArtifactsResponse listAdminArtifacts(ListAdminArtifactsRequest request) { + + return clientCall(request, ListAdminArtifactsResponse::builder) + .logger(LOG, "listAdminArtifacts") + .serviceDetails( + "MarketplaceAdministrator", + "ListAdminArtifacts", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminArtifactCollection/ListAdminArtifacts") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAdminArtifactsRequest::builder) + .basePath("/20241201") + .appendPathParam("adminArtifacts") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("publisherId", request.getPublisherId()) + .appendEnumQueryParam("artifactType", request.getArtifactType()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("status", request.getStatus()) + .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.marketplacepublisher.model.AdminArtifactCollection.class, + ListAdminArtifactsResponse.Builder::adminArtifactCollection) + .handleResponseHeaderString( + "opc-request-id", ListAdminArtifactsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListAdminArtifactsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListAdminListingRevisionAttachmentsResponse listAdminListingRevisionAttachments( + ListAdminListingRevisionAttachmentsRequest request) { + Objects.requireNonNull(request.getListingRevisionId(), "listingRevisionId is required"); + + return clientCall(request, ListAdminListingRevisionAttachmentsResponse::builder) + .logger(LOG, "listAdminListingRevisionAttachments") + .serviceDetails( + "MarketplaceAdministrator", + "ListAdminListingRevisionAttachments", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevisionAttachmentCollection/ListAdminListingRevisionAttachments") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAdminListingRevisionAttachmentsRequest::builder) + .basePath("/20241201") + .appendPathParam("adminListingRevisionAttachments") + .appendQueryParam("listingRevisionId", request.getListingRevisionId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .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.marketplacepublisher.model + .AdminListingRevisionAttachmentCollection.class, + ListAdminListingRevisionAttachmentsResponse.Builder + ::adminListingRevisionAttachmentCollection) + .handleResponseHeaderString( + "opc-request-id", + ListAdminListingRevisionAttachmentsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListAdminListingRevisionAttachmentsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListAdminListingRevisionPackagesResponse listAdminListingRevisionPackages( + ListAdminListingRevisionPackagesRequest request) { + Objects.requireNonNull(request.getListingRevisionId(), "listingRevisionId is required"); + + return clientCall(request, ListAdminListingRevisionPackagesResponse::builder) + .logger(LOG, "listAdminListingRevisionPackages") + .serviceDetails( + "MarketplaceAdministrator", + "ListAdminListingRevisionPackages", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevisionPackageCollection/ListAdminListingRevisionPackages") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAdminListingRevisionPackagesRequest::builder) + .basePath("/20241201") + .appendPathParam("adminListingRevisionPackages") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("listingRevisionId", request.getListingRevisionId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionPackageCollection.class, + ListAdminListingRevisionPackagesResponse.Builder + ::adminListingRevisionPackageCollection) + .handleResponseHeaderString( + "opc-request-id", + ListAdminListingRevisionPackagesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListAdminListingRevisionPackagesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListAdminListingRevisionsResponse listAdminListingRevisions( + ListAdminListingRevisionsRequest request) { + + return clientCall(request, ListAdminListingRevisionsResponse::builder) + .logger(LOG, "listAdminListingRevisions") + .serviceDetails( + "MarketplaceAdministrator", + "ListAdminListingRevisions", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevisionCollection/ListAdminListingRevisions") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAdminListingRevisionsRequest::builder) + .basePath("/20241201") + .appendPathParam("adminListingRevisions") + .appendQueryParam("listingId", request.getListingId()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("listingType", request.getListingType()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("publisherId", request.getPublisherId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendEnumQueryParam("listingRevisionStatus", request.getListingRevisionStatus()) + .appendQueryParam("statusCsv", request.getStatusCsv()) + .appendQueryParam("product", request.getProduct()) + .appendQueryParam("timeCreatedAfter", request.getTimeCreatedAfter()) + .appendQueryParam("timeUpdatedAfter", request.getTimeUpdatedAfter()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("pricingType", request.getPricingType()) + .appendQueryParam("isPrivateOfferEnabled", request.getIsPrivateOfferEnabled()) + .appendQueryParam("dataSource", request.getDataSource()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionCollection + .class, + ListAdminListingRevisionsResponse.Builder::adminListingRevisionCollection) + .handleResponseHeaderString( + "opc-request-id", ListAdminListingRevisionsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListAdminListingRevisionsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListAdminPublisherSkusResponse listAdminPublisherSkus( + ListAdminPublisherSkusRequest request) { + + return clientCall(request, ListAdminPublisherSkusResponse::builder) + .logger(LOG, "listAdminPublisherSkus") + .serviceDetails( + "MarketplaceAdministrator", + "ListAdminPublisherSkus", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminPublisherSkuCollection/ListAdminPublisherSkus") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAdminPublisherSkusRequest::builder) + .basePath("/20241201") + .appendPathParam("adminPublisherSkus") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.AdminPublisherSkuCollection.class, + ListAdminPublisherSkusResponse.Builder::adminPublisherSkuCollection) + .handleResponseHeaderString( + "opc-request-id", ListAdminPublisherSkusResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListAdminPublisherSkusResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListAdminTermVersionsResponse listAdminTermVersions( + ListAdminTermVersionsRequest request) { + Objects.requireNonNull(request.getTermId(), "termId is required"); + + return clientCall(request, ListAdminTermVersionsResponse::builder) + .logger(LOG, "listAdminTermVersions") + .serviceDetails( + "MarketplaceAdministrator", + "ListAdminTermVersions", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminTermVersionCollection/ListAdminTermVersions") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAdminTermVersionsRequest::builder) + .basePath("/20241201") + .appendPathParam("adminTermVersions") + .appendQueryParam("termId", request.getTermId()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .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.marketplacepublisher.model.AdminTermVersionCollection.class, + ListAdminTermVersionsResponse.Builder::adminTermVersionCollection) + .handleResponseHeaderString( + "opc-next-page", ListAdminTermVersionsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListAdminTermVersionsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListAdminTermsResponse listAdminTerms(ListAdminTermsRequest request) { + + return clientCall(request, ListAdminTermsResponse::builder) + .logger(LOG, "listAdminTerms") + .serviceDetails( + "MarketplaceAdministrator", + "ListAdminTerms", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminTermCollection/ListAdminTerms") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAdminTermsRequest::builder) + .basePath("/20241201") + .appendPathParam("adminTerms") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("name", request.getName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.AdminTermCollection.class, + ListAdminTermsResponse.Builder::adminTermCollection) + .handleResponseHeaderString( + "opc-next-page", ListAdminTermsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListAdminTermsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListAdminWorkRequestsResponse listAdminWorkRequests( + ListAdminWorkRequestsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListAdminWorkRequestsResponse::builder) + .logger(LOG, "listAdminWorkRequests") + .serviceDetails( + "MarketplaceAdministrator", + "ListAdminWorkRequests", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminWorkRequestSummary/ListAdminWorkRequests") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAdminWorkRequestsRequest::builder) + .basePath("/20241201") + .appendPathParam("adminWorkRequests") + .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.marketplacepublisher.model.AdminWorkRequestSummaryCollection + .class, + ListAdminWorkRequestsResponse.Builder::adminWorkRequestSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", ListAdminWorkRequestsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListAdminWorkRequestsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public MarketplaceAdministratorPaginators 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 MarketplaceAdministratorClient( + 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 MarketplaceAdministratorClient( + 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 MarketplaceAdministratorClient( + 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 MarketplaceAdministratorClient( + 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 MarketplaceAdministratorClient( + 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 MarketplaceAdministratorClient( + 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 MarketplaceAdministratorClient( + 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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministratorPaginators.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministratorPaginators.java new file mode 100644 index 00000000000..7c5bc587ae7 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministratorPaginators.java @@ -0,0 +1,1050 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher; + +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of MarketplaceAdministrator 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: 20241201") +public class MarketplaceAdministratorPaginators { + private final MarketplaceAdministrator client; + + public MarketplaceAdministratorPaginators(MarketplaceAdministrator client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listAdminArtifacts 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 listAdminArtifactsResponseIterator( + final ListAdminArtifactsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListAdminArtifactsRequest.Builder, + ListAdminArtifactsRequest, + ListAdminArtifactsResponse>( + new java.util.function.Supplier() { + @Override + public ListAdminArtifactsRequest.Builder get() { + return ListAdminArtifactsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAdminArtifactsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminArtifactsRequest.Builder>, + ListAdminArtifactsRequest>() { + @Override + public ListAdminArtifactsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminArtifactsRequest.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< + ListAdminArtifactsRequest, ListAdminArtifactsResponse>() { + @Override + public ListAdminArtifactsResponse apply(ListAdminArtifactsRequest request) { + return client.listAdminArtifacts(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.marketplacepublisher.model.AdminArtifactSummary} objects contained in + * responses from the listAdminArtifacts 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.marketplacepublisher.model.AdminArtifactSummary} objects contained in + * responses received from the service. + */ + public Iterable + listAdminArtifactsRecordIterator(final ListAdminArtifactsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListAdminArtifactsRequest.Builder, + ListAdminArtifactsRequest, + ListAdminArtifactsResponse, + com.oracle.bmc.marketplacepublisher.model.AdminArtifactSummary>( + new java.util.function.Supplier() { + @Override + public ListAdminArtifactsRequest.Builder get() { + return ListAdminArtifactsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAdminArtifactsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminArtifactsRequest.Builder>, + ListAdminArtifactsRequest>() { + @Override + public ListAdminArtifactsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminArtifactsRequest.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< + ListAdminArtifactsRequest, ListAdminArtifactsResponse>() { + @Override + public ListAdminArtifactsResponse apply(ListAdminArtifactsRequest request) { + return client.listAdminArtifacts(request); + } + }, + new java.util.function.Function< + ListAdminArtifactsResponse, + java.util.List< + com.oracle.bmc.marketplacepublisher.model.AdminArtifactSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.marketplacepublisher.model.AdminArtifactSummary> + apply(ListAdminArtifactsResponse response) { + return response.getAdminArtifactCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listAdminListingRevisionAttachments 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 + listAdminListingRevisionAttachmentsResponseIterator( + final ListAdminListingRevisionAttachmentsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListAdminListingRevisionAttachmentsRequest.Builder, + ListAdminListingRevisionAttachmentsRequest, + ListAdminListingRevisionAttachmentsResponse>( + new java.util.function.Supplier< + ListAdminListingRevisionAttachmentsRequest.Builder>() { + @Override + public ListAdminListingRevisionAttachmentsRequest.Builder get() { + return ListAdminListingRevisionAttachmentsRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListAdminListingRevisionAttachmentsResponse, String>() { + @Override + public String apply(ListAdminListingRevisionAttachmentsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminListingRevisionAttachmentsRequest.Builder>, + ListAdminListingRevisionAttachmentsRequest>() { + @Override + public ListAdminListingRevisionAttachmentsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminListingRevisionAttachmentsRequest.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< + ListAdminListingRevisionAttachmentsRequest, + ListAdminListingRevisionAttachmentsResponse>() { + @Override + public ListAdminListingRevisionAttachmentsResponse apply( + ListAdminListingRevisionAttachmentsRequest request) { + return client.listAdminListingRevisionAttachments(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionAttachmentSummary} objects + * contained in responses from the listAdminListingRevisionAttachments 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.marketplacepublisher.model.AdminListingRevisionAttachmentSummary} objects + * contained in responses received from the service. + */ + public Iterable + listAdminListingRevisionAttachmentsRecordIterator( + final ListAdminListingRevisionAttachmentsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListAdminListingRevisionAttachmentsRequest.Builder, + ListAdminListingRevisionAttachmentsRequest, + ListAdminListingRevisionAttachmentsResponse, + com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionAttachmentSummary>( + new java.util.function.Supplier< + ListAdminListingRevisionAttachmentsRequest.Builder>() { + @Override + public ListAdminListingRevisionAttachmentsRequest.Builder get() { + return ListAdminListingRevisionAttachmentsRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListAdminListingRevisionAttachmentsResponse, String>() { + @Override + public String apply(ListAdminListingRevisionAttachmentsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminListingRevisionAttachmentsRequest.Builder>, + ListAdminListingRevisionAttachmentsRequest>() { + @Override + public ListAdminListingRevisionAttachmentsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminListingRevisionAttachmentsRequest.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< + ListAdminListingRevisionAttachmentsRequest, + ListAdminListingRevisionAttachmentsResponse>() { + @Override + public ListAdminListingRevisionAttachmentsResponse apply( + ListAdminListingRevisionAttachmentsRequest request) { + return client.listAdminListingRevisionAttachments(request); + } + }, + new java.util.function.Function< + ListAdminListingRevisionAttachmentsResponse, + java.util.List< + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionAttachmentSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionAttachmentSummary> + apply(ListAdminListingRevisionAttachmentsResponse response) { + return response.getAdminListingRevisionAttachmentCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listAdminListingRevisionPackages 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 + listAdminListingRevisionPackagesResponseIterator( + final ListAdminListingRevisionPackagesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListAdminListingRevisionPackagesRequest.Builder, + ListAdminListingRevisionPackagesRequest, + ListAdminListingRevisionPackagesResponse>( + new java.util.function.Supplier() { + @Override + public ListAdminListingRevisionPackagesRequest.Builder get() { + return ListAdminListingRevisionPackagesRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListAdminListingRevisionPackagesResponse, String>() { + @Override + public String apply(ListAdminListingRevisionPackagesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminListingRevisionPackagesRequest.Builder>, + ListAdminListingRevisionPackagesRequest>() { + @Override + public ListAdminListingRevisionPackagesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminListingRevisionPackagesRequest.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< + ListAdminListingRevisionPackagesRequest, + ListAdminListingRevisionPackagesResponse>() { + @Override + public ListAdminListingRevisionPackagesResponse apply( + ListAdminListingRevisionPackagesRequest request) { + return client.listAdminListingRevisionPackages(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionPackageSummary} objects + * contained in responses from the listAdminListingRevisionPackages 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.marketplacepublisher.model.AdminListingRevisionPackageSummary} objects + * contained in responses received from the service. + */ + public Iterable + listAdminListingRevisionPackagesRecordIterator( + final ListAdminListingRevisionPackagesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListAdminListingRevisionPackagesRequest.Builder, + ListAdminListingRevisionPackagesRequest, + ListAdminListingRevisionPackagesResponse, + com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionPackageSummary>( + new java.util.function.Supplier() { + @Override + public ListAdminListingRevisionPackagesRequest.Builder get() { + return ListAdminListingRevisionPackagesRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListAdminListingRevisionPackagesResponse, String>() { + @Override + public String apply(ListAdminListingRevisionPackagesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminListingRevisionPackagesRequest.Builder>, + ListAdminListingRevisionPackagesRequest>() { + @Override + public ListAdminListingRevisionPackagesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminListingRevisionPackagesRequest.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< + ListAdminListingRevisionPackagesRequest, + ListAdminListingRevisionPackagesResponse>() { + @Override + public ListAdminListingRevisionPackagesResponse apply( + ListAdminListingRevisionPackagesRequest request) { + return client.listAdminListingRevisionPackages(request); + } + }, + new java.util.function.Function< + ListAdminListingRevisionPackagesResponse, + java.util.List< + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionPackageSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionPackageSummary> + apply(ListAdminListingRevisionPackagesResponse response) { + return response.getAdminListingRevisionPackageCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listAdminListingRevisions 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 listAdminListingRevisionsResponseIterator( + final ListAdminListingRevisionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListAdminListingRevisionsRequest.Builder, + ListAdminListingRevisionsRequest, + ListAdminListingRevisionsResponse>( + new java.util.function.Supplier() { + @Override + public ListAdminListingRevisionsRequest.Builder get() { + return ListAdminListingRevisionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAdminListingRevisionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminListingRevisionsRequest.Builder>, + ListAdminListingRevisionsRequest>() { + @Override + public ListAdminListingRevisionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminListingRevisionsRequest.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< + ListAdminListingRevisionsRequest, ListAdminListingRevisionsResponse>() { + @Override + public ListAdminListingRevisionsResponse apply( + ListAdminListingRevisionsRequest request) { + return client.listAdminListingRevisions(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionSummary} objects contained in + * responses from the listAdminListingRevisions 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.marketplacepublisher.model.AdminListingRevisionSummary} objects contained + * in responses received from the service. + */ + public Iterable + listAdminListingRevisionsRecordIterator( + final ListAdminListingRevisionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListAdminListingRevisionsRequest.Builder, + ListAdminListingRevisionsRequest, + ListAdminListingRevisionsResponse, + com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionSummary>( + new java.util.function.Supplier() { + @Override + public ListAdminListingRevisionsRequest.Builder get() { + return ListAdminListingRevisionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAdminListingRevisionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminListingRevisionsRequest.Builder>, + ListAdminListingRevisionsRequest>() { + @Override + public ListAdminListingRevisionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminListingRevisionsRequest.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< + ListAdminListingRevisionsRequest, ListAdminListingRevisionsResponse>() { + @Override + public ListAdminListingRevisionsResponse apply( + ListAdminListingRevisionsRequest request) { + return client.listAdminListingRevisions(request); + } + }, + new java.util.function.Function< + ListAdminListingRevisionsResponse, + java.util.List< + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionSummary> + apply(ListAdminListingRevisionsResponse response) { + return response.getAdminListingRevisionCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listAdminPublisherSkus 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 listAdminPublisherSkusResponseIterator( + final ListAdminPublisherSkusRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListAdminPublisherSkusRequest.Builder, + ListAdminPublisherSkusRequest, + ListAdminPublisherSkusResponse>( + new java.util.function.Supplier() { + @Override + public ListAdminPublisherSkusRequest.Builder get() { + return ListAdminPublisherSkusRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAdminPublisherSkusResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminPublisherSkusRequest.Builder>, + ListAdminPublisherSkusRequest>() { + @Override + public ListAdminPublisherSkusRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminPublisherSkusRequest.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< + ListAdminPublisherSkusRequest, ListAdminPublisherSkusResponse>() { + @Override + public ListAdminPublisherSkusResponse apply( + ListAdminPublisherSkusRequest request) { + return client.listAdminPublisherSkus(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.marketplacepublisher.model.AdminPublisherSku} objects contained in responses + * from the listAdminPublisherSkus 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.marketplacepublisher.model.AdminPublisherSku} objects contained in + * responses received from the service. + */ + public Iterable + listAdminPublisherSkusRecordIterator(final ListAdminPublisherSkusRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListAdminPublisherSkusRequest.Builder, + ListAdminPublisherSkusRequest, + ListAdminPublisherSkusResponse, + com.oracle.bmc.marketplacepublisher.model.AdminPublisherSku>( + new java.util.function.Supplier() { + @Override + public ListAdminPublisherSkusRequest.Builder get() { + return ListAdminPublisherSkusRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAdminPublisherSkusResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminPublisherSkusRequest.Builder>, + ListAdminPublisherSkusRequest>() { + @Override + public ListAdminPublisherSkusRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminPublisherSkusRequest.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< + ListAdminPublisherSkusRequest, ListAdminPublisherSkusResponse>() { + @Override + public ListAdminPublisherSkusResponse apply( + ListAdminPublisherSkusRequest request) { + return client.listAdminPublisherSkus(request); + } + }, + new java.util.function.Function< + ListAdminPublisherSkusResponse, + java.util.List< + com.oracle.bmc.marketplacepublisher.model.AdminPublisherSku>>() { + @Override + public java.util.List< + com.oracle.bmc.marketplacepublisher.model.AdminPublisherSku> + apply(ListAdminPublisherSkusResponse response) { + return response.getAdminPublisherSkuCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listAdminTermVersions 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 listAdminTermVersionsResponseIterator( + final ListAdminTermVersionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListAdminTermVersionsRequest.Builder, + ListAdminTermVersionsRequest, + ListAdminTermVersionsResponse>( + new java.util.function.Supplier() { + @Override + public ListAdminTermVersionsRequest.Builder get() { + return ListAdminTermVersionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAdminTermVersionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminTermVersionsRequest.Builder>, + ListAdminTermVersionsRequest>() { + @Override + public ListAdminTermVersionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminTermVersionsRequest.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< + ListAdminTermVersionsRequest, ListAdminTermVersionsResponse>() { + @Override + public ListAdminTermVersionsResponse apply( + ListAdminTermVersionsRequest request) { + return client.listAdminTermVersions(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.marketplacepublisher.model.AdminTermVersionSummary} objects contained in + * responses from the listAdminTermVersions 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.marketplacepublisher.model.AdminTermVersionSummary} objects contained in + * responses received from the service. + */ + public Iterable + listAdminTermVersionsRecordIterator(final ListAdminTermVersionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListAdminTermVersionsRequest.Builder, + ListAdminTermVersionsRequest, + ListAdminTermVersionsResponse, + com.oracle.bmc.marketplacepublisher.model.AdminTermVersionSummary>( + new java.util.function.Supplier() { + @Override + public ListAdminTermVersionsRequest.Builder get() { + return ListAdminTermVersionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAdminTermVersionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminTermVersionsRequest.Builder>, + ListAdminTermVersionsRequest>() { + @Override + public ListAdminTermVersionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminTermVersionsRequest.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< + ListAdminTermVersionsRequest, ListAdminTermVersionsResponse>() { + @Override + public ListAdminTermVersionsResponse apply( + ListAdminTermVersionsRequest request) { + return client.listAdminTermVersions(request); + } + }, + new java.util.function.Function< + ListAdminTermVersionsResponse, + java.util.List< + com.oracle.bmc.marketplacepublisher.model + .AdminTermVersionSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.marketplacepublisher.model + .AdminTermVersionSummary> + apply(ListAdminTermVersionsResponse response) { + return response.getAdminTermVersionCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listAdminTerms + * 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 listAdminTermsResponseIterator( + final ListAdminTermsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListAdminTermsRequest.Builder, ListAdminTermsRequest, ListAdminTermsResponse>( + new java.util.function.Supplier() { + @Override + public ListAdminTermsRequest.Builder get() { + return ListAdminTermsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAdminTermsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminTermsRequest.Builder>, + ListAdminTermsRequest>() { + @Override + public ListAdminTermsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminTermsRequest.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 ListAdminTermsResponse apply(ListAdminTermsRequest request) { + return client.listAdminTerms(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.marketplacepublisher.model.AdminTermSummary} objects contained in responses + * from the listAdminTerms 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.marketplacepublisher.model.AdminTermSummary} objects contained in + * responses received from the service. + */ + public Iterable + listAdminTermsRecordIterator(final ListAdminTermsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListAdminTermsRequest.Builder, + ListAdminTermsRequest, + ListAdminTermsResponse, + com.oracle.bmc.marketplacepublisher.model.AdminTermSummary>( + new java.util.function.Supplier() { + @Override + public ListAdminTermsRequest.Builder get() { + return ListAdminTermsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAdminTermsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminTermsRequest.Builder>, + ListAdminTermsRequest>() { + @Override + public ListAdminTermsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminTermsRequest.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 ListAdminTermsResponse apply(ListAdminTermsRequest request) { + return client.listAdminTerms(request); + } + }, + new java.util.function.Function< + ListAdminTermsResponse, + java.util.List< + com.oracle.bmc.marketplacepublisher.model.AdminTermSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.marketplacepublisher.model.AdminTermSummary> + apply(ListAdminTermsResponse response) { + return response.getAdminTermCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listAdminWorkRequests 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 listAdminWorkRequestsResponseIterator( + final ListAdminWorkRequestsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListAdminWorkRequestsRequest.Builder, + ListAdminWorkRequestsRequest, + ListAdminWorkRequestsResponse>( + new java.util.function.Supplier() { + @Override + public ListAdminWorkRequestsRequest.Builder get() { + return ListAdminWorkRequestsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAdminWorkRequestsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminWorkRequestsRequest.Builder>, + ListAdminWorkRequestsRequest>() { + @Override + public ListAdminWorkRequestsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminWorkRequestsRequest.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< + ListAdminWorkRequestsRequest, ListAdminWorkRequestsResponse>() { + @Override + public ListAdminWorkRequestsResponse apply( + ListAdminWorkRequestsRequest request) { + return client.listAdminWorkRequests(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.marketplacepublisher.model.AdminWorkRequestSummary} objects contained in + * responses from the listAdminWorkRequests 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.marketplacepublisher.model.AdminWorkRequestSummary} objects contained in + * responses received from the service. + */ + public Iterable + listAdminWorkRequestsRecordIterator(final ListAdminWorkRequestsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListAdminWorkRequestsRequest.Builder, + ListAdminWorkRequestsRequest, + ListAdminWorkRequestsResponse, + com.oracle.bmc.marketplacepublisher.model.AdminWorkRequestSummary>( + new java.util.function.Supplier() { + @Override + public ListAdminWorkRequestsRequest.Builder get() { + return ListAdminWorkRequestsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAdminWorkRequestsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminWorkRequestsRequest.Builder>, + ListAdminWorkRequestsRequest>() { + @Override + public ListAdminWorkRequestsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAdminWorkRequestsRequest.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< + ListAdminWorkRequestsRequest, ListAdminWorkRequestsResponse>() { + @Override + public ListAdminWorkRequestsResponse apply( + ListAdminWorkRequestsRequest request) { + return client.listAdminWorkRequests(request); + } + }, + new java.util.function.Function< + ListAdminWorkRequestsResponse, + java.util.List< + com.oracle.bmc.marketplacepublisher.model + .AdminWorkRequestSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.marketplacepublisher.model + .AdminWorkRequestSummary> + apply(ListAdminWorkRequestsResponse response) { + return response.getAdminWorkRequestSummaryCollection().getItems(); + } + }); + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplacePublisher.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplacePublisher.java index f458947aadb..c2b44354715 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplacePublisher.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplacePublisher.java @@ -248,8 +248,8 @@ ChangeListingRevisionToNewStatusResponse changeListingRevisionToNewStatus( * *

    You must also specify a *name* for the listing and cannot be updated later. * - *

    You must also specify a *packageType* for the listing. Allowed values are CONTAINER_IMAGE - * and HELM_CHART + *

    You must also specify a *packageType* for the listing. Allowed values are CONTAINER_IMAGE, + * HELM_CHART, COMPUTE_IMAGE, TERRAFORM_STACK and SAAS * *

    After you send your request, the new object's `lifecycleState` will be CREATING. Before * using the object, first make sure its `lifecycleState` has changed to ACTIVE. @@ -333,6 +333,22 @@ CreateListingRevisionNoteResponse createListingRevisionNote( CreateListingRevisionPackageResponse createListingRevisionPackage( CreateListingRevisionPackageRequest request); + /** + * Creates a new publisher + * + * @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 CreatePublisher + * API. + */ + CreatePublisherResponse createPublisher(CreatePublisherRequest request); + /** * Creates a new Term. * @@ -409,6 +425,23 @@ CreateListingRevisionPackageResponse createListingRevisionPackage( */ DeleteArtifactResponse deleteArtifact(DeleteArtifactRequest request); + /** + * Deletes a generated Customer Instance Report export. + * + * @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 + * DeleteCustomerInstanceReportExport API. + */ + DeleteCustomerInstanceReportExportResponse deleteCustomerInstanceReportExport( + DeleteCustomerInstanceReportExportRequest request); + /** * Deletes a listing by the identifier * @@ -522,6 +555,23 @@ DeleteListingRevisionPackageResponse deleteListingRevisionPackage( */ DeleteTermVersionResponse deleteTermVersion(DeleteTermVersionRequest request); + /** + * Generates a new asynchronous Customer Instance Report export for the selected filters. + * + * @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 + * GenerateCustomerInstanceReportExport API. + */ + GenerateCustomerInstanceReportExportResponse generateCustomerInstanceReportExport( + GenerateCustomerInstanceReportExportRequest request); + /** * Gets the specified artifact's information. * @@ -552,6 +602,40 @@ DeleteListingRevisionPackageResponse deleteListingRevisionPackage( */ GetCategoryResponse getCategory(GetCategoryRequest request); + /** + * Gets details for a specific Customer Instance Report export. + * + * @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 + * GetCustomerInstanceReportExport API. + */ + GetCustomerInstanceReportExportResponse getCustomerInstanceReportExport( + GetCustomerInstanceReportExportRequest request); + + /** + * Downloads the generated Customer Instance Report CSV for the specified export. + * + * @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 + * GetCustomerInstanceReportExportContent API. + */ + GetCustomerInstanceReportExportContentResponse getCustomerInstanceReportExportContent( + GetCustomerInstanceReportExportContentRequest request); + /** * Gets the details for a lead. * @@ -869,6 +953,23 @@ GetListingRevisionPackageResponse getListingRevisionPackage( */ ListCategoriesResponse listCategories(ListCategoriesRequest request); + /** + * Lists existing Customer Instance Report exports for the caller. + * + * @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 + * ListCustomerInstanceReportExports API. + */ + ListCustomerInstanceReportExportsResponse listCustomerInstanceReportExports( + ListCustomerInstanceReportExportsRequest request); + /** * List customer instance report records * @@ -973,10 +1074,9 @@ ListListingRevisionPackagesResponse listListingRevisionPackages( /** * Lists the list of listing revisions for a specific listing ID, compartment ID or listing - * revision status. - * - *

    You can specify your compartment's OCID as the value for the compartment ID. For - * information about OCIDs, see Resource Identifiers (Content/General/Concepts/identifiers.htm). + * revision status. You can specify your compartment's OCID as the value for the compartment ID. + * For information about OCIDs, see Resource Identifiers + * (Content/General/Concepts/identifiers.htm). * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -1399,6 +1499,53 @@ UpdateListingRevisionAttachmentResponse updateListingRevisionAttachment( UpdateListingRevisionAttachmentContentResponse updateListingRevisionAttachmentContent( UpdateListingRevisionAttachmentContentRequest request); + /** + * Updates the Listing Revision + * + *

    Note: This operation consumes a stream. + * + *

    If the stream supports {@link java.io.InputStream#mark(int)} and {@link + * java.io.InputStream#reset()}, when a retry is necessary, the stream is reset so it starts at + * the beginning (or whatever the stream's position was at the time this operation is called}. + * + *

    Note this means that if the caller has used {@link java.io.InputStream#mark(int)} before, + * then the mark will not be the same anymore after this operation, and a subsequent call to + * {@link java.io.InputStream#reset()} by the caller will reset the stream not to the caller's + * mark, but to the position the stream was in when this operation was called. + * + *

    If the stream is a {@link java.io.FileInputStream}, and the stream's {@link + * java.nio.channels.FileChannel} position can be changed (like for a regular file), the stream + * will be wrapped in such a way that it does provide support for {@link + * java.io.InputStream#mark(int)} and {@link java.io.InputStream#reset()}. Then the same + * procedure as above is followed. If the stream's {@link java.nio.channels.FileChannel} + * position cannot be changed (like for a named pipe), then the stream's contents will be + * buffered in memory, as described below. + * + *

    If the stream does not support {@link java.io.InputStream#mark(int)} and {@link + * java.io.InputStream#reset()}, then the stream is wrapped in a {@link + * java.io.BufferedInputStream}, which means the entire contents may be buffered in memory. Then + * the same procedure as above is followed. + * + *

    The contents of the stream, except when the stream is a {@link java.io.FileInputStream} + * whose {@link java.nio.channels.FileChannel} position can be changed, should be less than 2 + * GiB in size if retries are used. This is because streams 2 GiB in size or larger do no + * guarantee that mark-and-reset can be performed. If the stream is larger, do not use built-in + * retries and manage retries yourself. + * + * @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 + * UpdateListingRevisionBannerContent API. + */ + UpdateListingRevisionBannerContentResponse updateListingRevisionBannerContent( + UpdateListingRevisionBannerContentRequest request); + /** * Updates the Listing Revision * diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplacePublisherAsync.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplacePublisherAsync.java index e9e05e6bfae..a07e67bd97c 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplacePublisherAsync.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplacePublisherAsync.java @@ -247,8 +247,8 @@ java.util.concurrent.Future createArtifact( * *

    You must also specify a *name* for the listing and cannot be updated later. * - *

    You must also specify a *packageType* for the listing. Allowed values are CONTAINER_IMAGE - * and HELM_CHART + *

    You must also specify a *packageType* for the listing. Allowed values are CONTAINER_IMAGE, + * HELM_CHART, COMPUTE_IMAGE, TERRAFORM_STACK and SAAS * *

    After you send your request, the new object's `lifecycleState` will be CREATING. Before * using the object, first make sure its `lifecycleState` has changed to ACTIVE. @@ -332,6 +332,21 @@ java.util.concurrent.Future createListingR CreateListingRevisionPackageResponse> handler); + /** + * Creates a new publisher + * + * @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 createPublisher( + CreatePublisherRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Creates a new Term. * @@ -377,6 +392,24 @@ java.util.concurrent.Future deleteArtifact( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Deletes a generated Customer Instance Report export. + * + * @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 + deleteCustomerInstanceReportExport( + DeleteCustomerInstanceReportExportRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteCustomerInstanceReportExportRequest, + DeleteCustomerInstanceReportExportResponse> + handler); + /** * Deletes a listing by the identifier * @@ -489,6 +522,24 @@ java.util.concurrent.Future deleteTermVersion( DeleteTermVersionRequest, DeleteTermVersionResponse> handler); + /** + * Generates a new asynchronous Customer Instance Report export for the selected filters. + * + * @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 + generateCustomerInstanceReportExport( + GenerateCustomerInstanceReportExportRequest request, + com.oracle.bmc.responses.AsyncHandler< + GenerateCustomerInstanceReportExportRequest, + GenerateCustomerInstanceReportExportResponse> + handler); + /** * Gets the specified artifact's information. * @@ -517,6 +568,42 @@ java.util.concurrent.Future getCategory( GetCategoryRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Gets details for a specific Customer Instance Report export. + * + * @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 + getCustomerInstanceReportExport( + GetCustomerInstanceReportExportRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetCustomerInstanceReportExportRequest, + GetCustomerInstanceReportExportResponse> + handler); + + /** + * Downloads the generated Customer Instance Report CSV for the specified export. + * + * @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 + getCustomerInstanceReportExportContent( + GetCustomerInstanceReportExportContentRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetCustomerInstanceReportExportContentRequest, + GetCustomerInstanceReportExportContentResponse> + handler); + /** * Gets the details for a lead. * @@ -830,6 +917,24 @@ java.util.concurrent.Future listCategories( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Lists existing Customer Instance Report exports for the caller. + * + * @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 + listCustomerInstanceReportExports( + ListCustomerInstanceReportExportsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListCustomerInstanceReportExportsRequest, + ListCustomerInstanceReportExportsResponse> + handler); + /** * List customer instance report records * @@ -934,10 +1039,9 @@ java.util.concurrent.Future listListingRevi /** * Lists the list of listing revisions for a specific listing ID, compartment ID or listing - * revision status. - * - *

    You can specify your compartment's OCID as the value for the compartment ID. For - * information about OCIDs, see Resource Identifiers (Content/General/Concepts/identifiers.htm). + * revision status. You can specify your compartment's OCID as the value for the compartment ID. + * For information about OCIDs, see Resource Identifiers + * (Content/General/Concepts/identifiers.htm). * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -1332,6 +1436,24 @@ java.util.concurrent.Future updateListingRevision UpdateListingRevisionAttachmentContentResponse> handler); + /** + * Updates the Listing Revision + * + * @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 + updateListingRevisionBannerContent( + UpdateListingRevisionBannerContentRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateListingRevisionBannerContentRequest, + UpdateListingRevisionBannerContentResponse> + handler); + /** * Updates the Listing Revision * diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplacePublisherAsyncClient.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplacePublisherAsyncClient.java index 6156e3613e9..272e5a2fff4 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplacePublisherAsyncClient.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplacePublisherAsyncClient.java @@ -645,6 +645,38 @@ public java.util.concurrent.Future createList .callAsync(handler); } + @Override + public java.util.concurrent.Future createPublisher( + CreatePublisherRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreatePublisherRequest, CreatePublisherResponse> + handler) { + Objects.requireNonNull( + request.getCreatePublisherDetails(), "createPublisherDetails is required"); + + return clientCall(request, CreatePublisherResponse::builder) + .logger(LOG, "createPublisher") + .serviceDetails( + "MarketplacePublisher", + "CreatePublisher", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/Publisher/CreatePublisher") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreatePublisherRequest::builder) + .basePath("/20241201") + .appendPathParam("publishers") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.Publisher.class, + CreatePublisherResponse.Builder::publisher) + .handleResponseHeaderString("etag", CreatePublisherResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreatePublisherResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future createTerm( CreateTermRequest request, @@ -743,6 +775,39 @@ public java.util.concurrent.Future deleteArtifact( .callAsync(handler); } + @Override + public java.util.concurrent.Future + deleteCustomerInstanceReportExport( + DeleteCustomerInstanceReportExportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteCustomerInstanceReportExportRequest, + DeleteCustomerInstanceReportExportResponse> + handler) { + + Validate.notBlank( + request.getCustomerInstanceReportExportId(), + "customerInstanceReportExportId must not be blank"); + + return clientCall(request, DeleteCustomerInstanceReportExportResponse::builder) + .logger(LOG, "deleteCustomerInstanceReportExport") + .serviceDetails( + "MarketplacePublisher", + "DeleteCustomerInstanceReportExport", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/CustomerInstanceReportExport/DeleteCustomerInstanceReportExport") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteCustomerInstanceReportExportRequest::builder) + .basePath("/20241201") + .appendPathParam("customerInstanceReportExports") + .appendPathParam(request.getCustomerInstanceReportExportId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", + DeleteCustomerInstanceReportExportResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future deleteListing( DeleteListingRequest request, @@ -948,6 +1013,46 @@ public java.util.concurrent.Future deleteTermVersion( .callAsync(handler); } + @Override + public java.util.concurrent.Future + generateCustomerInstanceReportExport( + GenerateCustomerInstanceReportExportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GenerateCustomerInstanceReportExportRequest, + GenerateCustomerInstanceReportExportResponse> + handler) { + Objects.requireNonNull( + request.getGenerateCustomerInstanceReportExportDetails(), + "generateCustomerInstanceReportExportDetails is required"); + + return clientCall(request, GenerateCustomerInstanceReportExportResponse::builder) + .logger(LOG, "generateCustomerInstanceReportExport") + .serviceDetails( + "MarketplacePublisher", + "GenerateCustomerInstanceReportExport", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/CustomerInstanceReportExport/GenerateCustomerInstanceReportExport") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(GenerateCustomerInstanceReportExportRequest::builder) + .basePath("/20241201") + .appendPathParam("customerInstanceReportExports") + .appendPathParam("actions") + .appendPathParam("generate") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + GenerateCustomerInstanceReportExportResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + GenerateCustomerInstanceReportExportResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "exportIdentifier", + GenerateCustomerInstanceReportExportResponse.Builder::exportIdentifier) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getArtifact( GetArtifactRequest request, @@ -1010,6 +1115,78 @@ public java.util.concurrent.Future getCategory( .callAsync(handler); } + @Override + public java.util.concurrent.Future + getCustomerInstanceReportExport( + GetCustomerInstanceReportExportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetCustomerInstanceReportExportRequest, + GetCustomerInstanceReportExportResponse> + handler) { + + Validate.notBlank( + request.getCustomerInstanceReportExportId(), + "customerInstanceReportExportId must not be blank"); + + return clientCall(request, GetCustomerInstanceReportExportResponse::builder) + .logger(LOG, "getCustomerInstanceReportExport") + .serviceDetails( + "MarketplacePublisher", + "GetCustomerInstanceReportExport", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/CustomerInstanceReportExport/GetCustomerInstanceReportExport") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetCustomerInstanceReportExportRequest::builder) + .basePath("/20241201") + .appendPathParam("customerInstanceReportExports") + .appendPathParam(request.getCustomerInstanceReportExportId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExport + .class, + GetCustomerInstanceReportExportResponse.Builder + ::customerInstanceReportExport) + .handleResponseHeaderString( + "opc-request-id", + GetCustomerInstanceReportExportResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", GetCustomerInstanceReportExportResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getCustomerInstanceReportExportContent( + GetCustomerInstanceReportExportContentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetCustomerInstanceReportExportContentRequest, + GetCustomerInstanceReportExportContentResponse> + handler) { + + Validate.notBlank( + request.getCustomerInstanceReportExportId(), + "customerInstanceReportExportId must not be blank"); + + return clientCall(request, GetCustomerInstanceReportExportContentResponse::builder) + .logger(LOG, "getCustomerInstanceReportExportContent") + .serviceDetails( + "MarketplacePublisher", + "GetCustomerInstanceReportExportContent", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/CustomerInstanceReportExport/GetCustomerInstanceReportExportContent") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetCustomerInstanceReportExportContentRequest::builder) + .basePath("/20241201") + .appendPathParam("customerInstanceReportExports") + .appendPathParam(request.getCustomerInstanceReportExportId()) + .appendPathParam("content") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", + GetCustomerInstanceReportExportContentResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getLead( GetLeadRequest request, @@ -1661,6 +1838,65 @@ public java.util.concurrent.Future listCategories( .callAsync(handler); } + @Override + public java.util.concurrent.Future + listCustomerInstanceReportExports( + ListCustomerInstanceReportExportsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCustomerInstanceReportExportsRequest, + ListCustomerInstanceReportExportsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListCustomerInstanceReportExportsResponse::builder) + .logger(LOG, "listCustomerInstanceReportExports") + .serviceDetails( + "MarketplacePublisher", + "ListCustomerInstanceReportExports", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/CustomerInstanceReportExportCollection/ListCustomerInstanceReportExports") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCustomerInstanceReportExportsRequest::builder) + .basePath("/20241201") + .appendPathParam("customerInstanceReportExports") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("name", request.getName()) + .appendQueryParam("listingId", request.getListingId()) + .appendEnumQueryParam("status", request.getStatus()) + .appendQueryParam("shape", request.getShape()) + .appendQueryParam("region", request.getRegion()) + .appendQueryParam("realm", request.getRealm()) + .appendQueryParam("tenantAdminDomain", request.getTenantAdminDomain()) + .appendQueryParam("packageVersion", request.getPackageVersion()) + .appendQueryParam("instanceOcid", request.getInstanceOcid()) + .appendQueryParam( + "timeInstanceCreationFromDate", request.getTimeInstanceCreationFromDate()) + .appendQueryParam( + "timeInstanceCreationToDate", request.getTimeInstanceCreationToDate()) + .appendQueryParam( + "timeInstanceTerminationFromDate", + request.getTimeInstanceTerminationFromDate()) + .appendQueryParam( + "timeInstanceTerminationToDate", request.getTimeInstanceTerminationToDate()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.marketplacepublisher.model + .CustomerInstanceReportExportCollection.class, + ListCustomerInstanceReportExportsResponse.Builder + ::customerInstanceReportExportCollection) + .handleResponseHeaderString( + "opc-request-id", + ListCustomerInstanceReportExportsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListCustomerInstanceReportExportsResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listCustomerInstanceReportRecords( @@ -1671,8 +1907,6 @@ public java.util.concurrent.Future listCategories( handler) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); - Objects.requireNonNull(request.getDateRange(), "dateRange is required"); - return clientCall(request, ListCustomerInstanceReportRecordsResponse::builder) .logger(LOG, "listCustomerInstanceReportRecords") .serviceDetails( @@ -1684,12 +1918,28 @@ public java.util.concurrent.Future listCategories( .basePath("/20241201") .appendPathParam("customerInstanceReportRecords") .appendQueryParam("compartmentId", request.getCompartmentId()) - .appendEnumQueryParam("dateRange", request.getDateRange()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("sortBy", request.getSortBy()) .appendQueryParam("name", request.getName()) + .appendQueryParam("listingId", request.getListingId()) + .appendEnumQueryParam("status", request.getStatus()) + .appendQueryParam("shape", request.getShape()) + .appendQueryParam("region", request.getRegion()) + .appendQueryParam("realm", request.getRealm()) + .appendQueryParam("tenantAdminDomain", request.getTenantAdminDomain()) + .appendQueryParam("packageVersion", request.getPackageVersion()) + .appendQueryParam("instanceOcid", request.getInstanceOcid()) + .appendQueryParam( + "timeInstanceCreationFromDate", request.getTimeInstanceCreationFromDate()) + .appendQueryParam( + "timeInstanceCreationToDate", request.getTimeInstanceCreationToDate()) + .appendQueryParam( + "timeInstanceTerminationFromDate", + request.getTimeInstanceTerminationFromDate()) + .appendQueryParam( + "timeInstanceTerminationToDate", request.getTimeInstanceTerminationToDate()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( @@ -2809,6 +3059,52 @@ public java.util.concurrent.Future updateListingR .callAsync(handler); } + @Override + public java.util.concurrent.Future + updateListingRevisionBannerContent( + UpdateListingRevisionBannerContentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateListingRevisionBannerContentRequest, + UpdateListingRevisionBannerContentResponse> + handler) { + + Validate.notBlank(request.getListingRevisionId(), "listingRevisionId must not be blank"); + Objects.requireNonNull(request.getBannerName(), "bannerName is required"); + + Objects.requireNonNull( + request.getUpdateListingRevisionBannerContent(), + "updateListingRevisionBannerContent is required"); + + return clientCall(request, UpdateListingRevisionBannerContentResponse::builder) + .logger(LOG, "updateListingRevisionBannerContent") + .serviceDetails( + "MarketplacePublisher", + "UpdateListingRevisionBannerContent", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/ListingRevision/UpdateListingRevisionBannerContent") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateListingRevisionBannerContentRequest::builder) + .basePath("/20241201") + .appendPathParam("listingRevisions") + .appendPathParam(request.getListingRevisionId()) + .appendPathParam("banner") + .appendPathParam("content") + .appendQueryParam("bannerName", request.getBannerName()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBinaryRequestBody() + .hasBody() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.ListingRevision.class, + UpdateListingRevisionBannerContentResponse.Builder::listingRevision) + .handleResponseHeaderString( + "etag", UpdateListingRevisionBannerContentResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + UpdateListingRevisionBannerContentResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updateListingRevisionIconContent( diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplacePublisherClient.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplacePublisherClient.java index 57c03de37aa..91cd5a7b69f 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplacePublisherClient.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplacePublisherClient.java @@ -630,6 +630,35 @@ public CreateListingRevisionPackageResponse createListingRevisionPackage( .callSync(); } + @Override + public CreatePublisherResponse createPublisher(CreatePublisherRequest request) { + Objects.requireNonNull( + request.getCreatePublisherDetails(), "createPublisherDetails is required"); + + return clientCall(request, CreatePublisherResponse::builder) + .logger(LOG, "createPublisher") + .serviceDetails( + "MarketplacePublisher", + "CreatePublisher", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/Publisher/CreatePublisher") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreatePublisherRequest::builder) + .basePath("/20241201") + .appendPathParam("publishers") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.Publisher.class, + CreatePublisherResponse.Builder::publisher) + .handleResponseHeaderString("etag", CreatePublisherResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreatePublisherResponse.Builder::opcRequestId) + .callSync(); + } + @Override public CreateTermResponse createTerm(CreateTermRequest request) { Objects.requireNonNull(request.getCreateTermDetails(), "createTermDetails is required"); @@ -720,6 +749,35 @@ public DeleteArtifactResponse deleteArtifact(DeleteArtifactRequest request) { .callSync(); } + @Override + public DeleteCustomerInstanceReportExportResponse deleteCustomerInstanceReportExport( + DeleteCustomerInstanceReportExportRequest request) { + + Validate.notBlank( + request.getCustomerInstanceReportExportId(), + "customerInstanceReportExportId must not be blank"); + + return clientCall(request, DeleteCustomerInstanceReportExportResponse::builder) + .logger(LOG, "deleteCustomerInstanceReportExport") + .serviceDetails( + "MarketplacePublisher", + "DeleteCustomerInstanceReportExport", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/CustomerInstanceReportExport/DeleteCustomerInstanceReportExport") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteCustomerInstanceReportExportRequest::builder) + .basePath("/20241201") + .appendPathParam("customerInstanceReportExports") + .appendPathParam(request.getCustomerInstanceReportExportId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", + DeleteCustomerInstanceReportExportResponse.Builder::opcRequestId) + .callSync(); + } + @Override public DeleteListingResponse deleteListing(DeleteListingRequest request) { @@ -906,6 +964,42 @@ public DeleteTermVersionResponse deleteTermVersion(DeleteTermVersionRequest requ .callSync(); } + @Override + public GenerateCustomerInstanceReportExportResponse generateCustomerInstanceReportExport( + GenerateCustomerInstanceReportExportRequest request) { + Objects.requireNonNull( + request.getGenerateCustomerInstanceReportExportDetails(), + "generateCustomerInstanceReportExportDetails is required"); + + return clientCall(request, GenerateCustomerInstanceReportExportResponse::builder) + .logger(LOG, "generateCustomerInstanceReportExport") + .serviceDetails( + "MarketplacePublisher", + "GenerateCustomerInstanceReportExport", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/CustomerInstanceReportExport/GenerateCustomerInstanceReportExport") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(GenerateCustomerInstanceReportExportRequest::builder) + .basePath("/20241201") + .appendPathParam("customerInstanceReportExports") + .appendPathParam("actions") + .appendPathParam("generate") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + GenerateCustomerInstanceReportExportResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + GenerateCustomerInstanceReportExportResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "exportIdentifier", + GenerateCustomerInstanceReportExportResponse.Builder::exportIdentifier) + .callSync(); + } + @Override public GetArtifactResponse getArtifact(GetArtifactRequest request) { @@ -964,6 +1058,70 @@ public GetCategoryResponse getCategory(GetCategoryRequest request) { .callSync(); } + @Override + public GetCustomerInstanceReportExportResponse getCustomerInstanceReportExport( + GetCustomerInstanceReportExportRequest request) { + + Validate.notBlank( + request.getCustomerInstanceReportExportId(), + "customerInstanceReportExportId must not be blank"); + + return clientCall(request, GetCustomerInstanceReportExportResponse::builder) + .logger(LOG, "getCustomerInstanceReportExport") + .serviceDetails( + "MarketplacePublisher", + "GetCustomerInstanceReportExport", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/CustomerInstanceReportExport/GetCustomerInstanceReportExport") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetCustomerInstanceReportExportRequest::builder) + .basePath("/20241201") + .appendPathParam("customerInstanceReportExports") + .appendPathParam(request.getCustomerInstanceReportExportId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExport + .class, + GetCustomerInstanceReportExportResponse.Builder + ::customerInstanceReportExport) + .handleResponseHeaderString( + "opc-request-id", + GetCustomerInstanceReportExportResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", GetCustomerInstanceReportExportResponse.Builder::etag) + .callSync(); + } + + @Override + public GetCustomerInstanceReportExportContentResponse getCustomerInstanceReportExportContent( + GetCustomerInstanceReportExportContentRequest request) { + + Validate.notBlank( + request.getCustomerInstanceReportExportId(), + "customerInstanceReportExportId must not be blank"); + + return clientCall(request, GetCustomerInstanceReportExportContentResponse::builder) + .logger(LOG, "getCustomerInstanceReportExportContent") + .serviceDetails( + "MarketplacePublisher", + "GetCustomerInstanceReportExportContent", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/CustomerInstanceReportExport/GetCustomerInstanceReportExportContent") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetCustomerInstanceReportExportContentRequest::builder) + .basePath("/20241201") + .appendPathParam("customerInstanceReportExports") + .appendPathParam(request.getCustomerInstanceReportExportId()) + .appendPathParam("content") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", + GetCustomerInstanceReportExportContentResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetLeadResponse getLead(GetLeadRequest request) { @@ -1566,13 +1724,66 @@ public ListCategoriesResponse listCategories(ListCategoriesRequest request) { .callSync(); } + @Override + public ListCustomerInstanceReportExportsResponse listCustomerInstanceReportExports( + ListCustomerInstanceReportExportsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListCustomerInstanceReportExportsResponse::builder) + .logger(LOG, "listCustomerInstanceReportExports") + .serviceDetails( + "MarketplacePublisher", + "ListCustomerInstanceReportExports", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/CustomerInstanceReportExportCollection/ListCustomerInstanceReportExports") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCustomerInstanceReportExportsRequest::builder) + .basePath("/20241201") + .appendPathParam("customerInstanceReportExports") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("name", request.getName()) + .appendQueryParam("listingId", request.getListingId()) + .appendEnumQueryParam("status", request.getStatus()) + .appendQueryParam("shape", request.getShape()) + .appendQueryParam("region", request.getRegion()) + .appendQueryParam("realm", request.getRealm()) + .appendQueryParam("tenantAdminDomain", request.getTenantAdminDomain()) + .appendQueryParam("packageVersion", request.getPackageVersion()) + .appendQueryParam("instanceOcid", request.getInstanceOcid()) + .appendQueryParam( + "timeInstanceCreationFromDate", request.getTimeInstanceCreationFromDate()) + .appendQueryParam( + "timeInstanceCreationToDate", request.getTimeInstanceCreationToDate()) + .appendQueryParam( + "timeInstanceTerminationFromDate", + request.getTimeInstanceTerminationFromDate()) + .appendQueryParam( + "timeInstanceTerminationToDate", request.getTimeInstanceTerminationToDate()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.marketplacepublisher.model + .CustomerInstanceReportExportCollection.class, + ListCustomerInstanceReportExportsResponse.Builder + ::customerInstanceReportExportCollection) + .handleResponseHeaderString( + "opc-request-id", + ListCustomerInstanceReportExportsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListCustomerInstanceReportExportsResponse.Builder::opcNextPage) + .callSync(); + } + @Override public ListCustomerInstanceReportRecordsResponse listCustomerInstanceReportRecords( ListCustomerInstanceReportRecordsRequest request) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); - Objects.requireNonNull(request.getDateRange(), "dateRange is required"); - return clientCall(request, ListCustomerInstanceReportRecordsResponse::builder) .logger(LOG, "listCustomerInstanceReportRecords") .serviceDetails( @@ -1584,12 +1795,28 @@ public ListCustomerInstanceReportRecordsResponse listCustomerInstanceReportRecor .basePath("/20241201") .appendPathParam("customerInstanceReportRecords") .appendQueryParam("compartmentId", request.getCompartmentId()) - .appendEnumQueryParam("dateRange", request.getDateRange()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("sortBy", request.getSortBy()) .appendQueryParam("name", request.getName()) + .appendQueryParam("listingId", request.getListingId()) + .appendEnumQueryParam("status", request.getStatus()) + .appendQueryParam("shape", request.getShape()) + .appendQueryParam("region", request.getRegion()) + .appendQueryParam("realm", request.getRealm()) + .appendQueryParam("tenantAdminDomain", request.getTenantAdminDomain()) + .appendQueryParam("packageVersion", request.getPackageVersion()) + .appendQueryParam("instanceOcid", request.getInstanceOcid()) + .appendQueryParam( + "timeInstanceCreationFromDate", request.getTimeInstanceCreationFromDate()) + .appendQueryParam( + "timeInstanceCreationToDate", request.getTimeInstanceCreationToDate()) + .appendQueryParam( + "timeInstanceTerminationFromDate", + request.getTimeInstanceTerminationFromDate()) + .appendQueryParam( + "timeInstanceTerminationToDate", request.getTimeInstanceTerminationToDate()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .operationUsesDefaultRetries() @@ -2624,6 +2851,48 @@ public UpdateListingRevisionAttachmentContentResponse updateListingRevisionAttac .callSync(); } + @Override + public UpdateListingRevisionBannerContentResponse updateListingRevisionBannerContent( + UpdateListingRevisionBannerContentRequest request) { + + Validate.notBlank(request.getListingRevisionId(), "listingRevisionId must not be blank"); + Objects.requireNonNull(request.getBannerName(), "bannerName is required"); + + Objects.requireNonNull( + request.getUpdateListingRevisionBannerContent(), + "updateListingRevisionBannerContent is required"); + + return clientCall(request, UpdateListingRevisionBannerContentResponse::builder) + .logger(LOG, "updateListingRevisionBannerContent") + .serviceDetails( + "MarketplacePublisher", + "UpdateListingRevisionBannerContent", + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/ListingRevision/UpdateListingRevisionBannerContent") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateListingRevisionBannerContentRequest::builder) + .basePath("/20241201") + .appendPathParam("listingRevisions") + .appendPathParam(request.getListingRevisionId()) + .appendPathParam("banner") + .appendPathParam("content") + .appendQueryParam("bannerName", request.getBannerName()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBinaryRequestBody() + .hasBody() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.ListingRevision.class, + UpdateListingRevisionBannerContentResponse.Builder::listingRevision) + .handleResponseHeaderString( + "etag", UpdateListingRevisionBannerContentResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + UpdateListingRevisionBannerContentResponse.Builder::opcRequestId) + .callSync(); + } + @Override public UpdateListingRevisionIconContentResponse updateListingRevisionIconContent( UpdateListingRevisionIconContentRequest request) { diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplacePublisherPaginators.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplacePublisherPaginators.java index 1e6181838a4..666f116a28e 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplacePublisherPaginators.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplacePublisherPaginators.java @@ -399,6 +399,140 @@ public ListCategoriesResponse apply(ListCategoriesRequest request) { }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listCustomerInstanceReportExports 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 + listCustomerInstanceReportExportsResponseIterator( + final ListCustomerInstanceReportExportsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListCustomerInstanceReportExportsRequest.Builder, + ListCustomerInstanceReportExportsRequest, + ListCustomerInstanceReportExportsResponse>( + new java.util.function.Supplier< + ListCustomerInstanceReportExportsRequest.Builder>() { + @Override + public ListCustomerInstanceReportExportsRequest.Builder get() { + return ListCustomerInstanceReportExportsRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListCustomerInstanceReportExportsResponse, String>() { + @Override + public String apply(ListCustomerInstanceReportExportsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCustomerInstanceReportExportsRequest.Builder>, + ListCustomerInstanceReportExportsRequest>() { + @Override + public ListCustomerInstanceReportExportsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCustomerInstanceReportExportsRequest.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< + ListCustomerInstanceReportExportsRequest, + ListCustomerInstanceReportExportsResponse>() { + @Override + public ListCustomerInstanceReportExportsResponse apply( + ListCustomerInstanceReportExportsRequest request) { + return client.listCustomerInstanceReportExports(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExportSummary} objects + * contained in responses from the listCustomerInstanceReportExports 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.marketplacepublisher.model.CustomerInstanceReportExportSummary} objects + * contained in responses received from the service. + */ + public Iterable + listCustomerInstanceReportExportsRecordIterator( + final ListCustomerInstanceReportExportsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListCustomerInstanceReportExportsRequest.Builder, + ListCustomerInstanceReportExportsRequest, + ListCustomerInstanceReportExportsResponse, + com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExportSummary>( + new java.util.function.Supplier< + ListCustomerInstanceReportExportsRequest.Builder>() { + @Override + public ListCustomerInstanceReportExportsRequest.Builder get() { + return ListCustomerInstanceReportExportsRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListCustomerInstanceReportExportsResponse, String>() { + @Override + public String apply(ListCustomerInstanceReportExportsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCustomerInstanceReportExportsRequest.Builder>, + ListCustomerInstanceReportExportsRequest>() { + @Override + public ListCustomerInstanceReportExportsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCustomerInstanceReportExportsRequest.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< + ListCustomerInstanceReportExportsRequest, + ListCustomerInstanceReportExportsResponse>() { + @Override + public ListCustomerInstanceReportExportsResponse apply( + ListCustomerInstanceReportExportsRequest request) { + return client.listCustomerInstanceReportExports(request); + } + }, + new java.util.function.Function< + ListCustomerInstanceReportExportsResponse, + java.util.List< + com.oracle.bmc.marketplacepublisher.model + .CustomerInstanceReportExportSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.marketplacepublisher.model + .CustomerInstanceReportExportSummary> + apply(ListCustomerInstanceReportExportsResponse response) { + return response.getCustomerInstanceReportExportCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the * listCustomerInstanceReportRecords operation. This iterable will fetch more data from the diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplacePublisherWaiters.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplacePublisherWaiters.java index 6005e1a1591..7d0aa19f0fe 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplacePublisherWaiters.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplacePublisherWaiters.java @@ -225,6 +225,130 @@ public boolean test(GetCategoryResponse response) { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetCustomerInstanceReportExportRequest, GetCustomerInstanceReportExportResponse> + forCustomerInstanceReportExport( + GetCustomerInstanceReportExportRequest request, + com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExport + .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 forCustomerInstanceReportExport( + 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< + GetCustomerInstanceReportExportRequest, GetCustomerInstanceReportExportResponse> + forCustomerInstanceReportExport( + GetCustomerInstanceReportExportRequest request, + com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExport + .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 forCustomerInstanceReportExport( + 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< + GetCustomerInstanceReportExportRequest, GetCustomerInstanceReportExportResponse> + forCustomerInstanceReportExport( + GetCustomerInstanceReportExportRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExport + .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 forCustomerInstanceReportExport( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for CustomerInstanceReportExport. + private com.oracle.bmc.waiter.Waiter< + GetCustomerInstanceReportExportRequest, GetCustomerInstanceReportExportResponse> + forCustomerInstanceReportExport( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetCustomerInstanceReportExportRequest request, + final com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExport + .LifecycleState + ... + targetStates) { + final java.util.Set< + com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExport + .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< + GetCustomerInstanceReportExportRequest, + GetCustomerInstanceReportExportResponse>() { + @Override + public GetCustomerInstanceReportExportResponse apply( + GetCustomerInstanceReportExportRequest request) { + return client.getCustomerInstanceReportExport(request); + } + }, + new java.util.function.Predicate< + GetCustomerInstanceReportExportResponse>() { + @Override + public boolean test(GetCustomerInstanceReportExportResponse response) { + return targetStatesSet.contains( + response.getCustomerInstanceReportExport() + .getLifecycleState()); + } + }, + false), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdditionalFilter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdditionalFilter.java index 99ac86ebd6b..e6f82da41cb 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdditionalFilter.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdditionalFilter.java @@ -25,6 +25,7 @@ public final class AdditionalFilter @java.beans.ConstructorProperties({ "name", "code", + "timeCreated", "usageInstructions", "isMultiSelect", "isMandatory", @@ -33,6 +34,7 @@ public final class AdditionalFilter public AdditionalFilter( String name, String code, + java.util.Date timeCreated, String usageInstructions, Boolean isMultiSelect, Boolean isMandatory, @@ -40,6 +42,7 @@ public AdditionalFilter( super(); this.name = name; this.code = code; + this.timeCreated = timeCreated; this.usageInstructions = usageInstructions; this.isMultiSelect = isMultiSelect; this.isMandatory = isMandatory; @@ -78,6 +81,29 @@ public Builder code(String code) { this.__explicitlySet__.add("code"); return this; } + /** + * The date and time the additional filter was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

    Example: {@code 2022-09-15T21: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; + } /** Usage instructions for the properties */ @com.fasterxml.jackson.annotation.JsonProperty("usageInstructions") private String usageInstructions; @@ -147,6 +173,7 @@ public AdditionalFilter build() { new AdditionalFilter( this.name, this.code, + this.timeCreated, this.usageInstructions, this.isMultiSelect, this.isMandatory, @@ -165,6 +192,9 @@ public Builder copy(AdditionalFilter model) { if (model.wasPropertyExplicitlySet("code")) { this.code(model.getCode()); } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } if (model.wasPropertyExplicitlySet("usageInstructions")) { this.usageInstructions(model.getUsageInstructions()); } @@ -216,6 +246,27 @@ public String getCode() { return code; } + /** + * The date and time the additional filter was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

    Example: {@code 2022-09-15T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + /** Usage instructions for the properties */ @com.fasterxml.jackson.annotation.JsonProperty("usageInstructions") private final String usageInstructions; @@ -285,6 +336,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("name=").append(String.valueOf(this.name)); sb.append(", code=").append(String.valueOf(this.code)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", usageInstructions=").append(String.valueOf(this.usageInstructions)); sb.append(", isMultiSelect=").append(String.valueOf(this.isMultiSelect)); sb.append(", isMandatory=").append(String.valueOf(this.isMandatory)); @@ -305,6 +357,7 @@ public boolean equals(Object o) { AdditionalFilter other = (AdditionalFilter) o; return java.util.Objects.equals(this.name, other.name) && java.util.Objects.equals(this.code, other.code) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.usageInstructions, other.usageInstructions) && java.util.Objects.equals(this.isMultiSelect, other.isMultiSelect) && java.util.Objects.equals(this.isMandatory, other.isMandatory) @@ -318,6 +371,7 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); result = (result * PRIME) + (this.code == null ? 43 : this.code.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.usageInstructions == null ? 43 : this.usageInstructions.hashCode()); diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminAiAgentListingRevision.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminAiAgentListingRevision.java new file mode 100644 index 00000000000..178046b10f9 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminAiAgentListingRevision.java @@ -0,0 +1,1029 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Listing revision details for AI agent listings
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminAiAgentListingRevision.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "listingType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminAiAgentListingRevision extends AdminListingRevision { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private String legacyId; + + public Builder legacyId(String legacyId) { + this.legacyId = legacyId; + this.__explicitlySet__.add("legacyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("listingId") + private String listingId; + + public Builder listingId(String listingId) { + this.listingId = listingId; + this.__explicitlySet__.add("listingId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("publisherId") + private String publisherId; + + public Builder publisherId(String publisherId) { + this.publisherId = publisherId; + this.__explicitlySet__.add("publisherId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("approverId") + private String approverId; + + public Builder approverId(String approverId) { + this.approverId = approverId; + this.__explicitlySet__.add("approverId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("approverEmail") + private String approverEmail; + + public Builder approverEmail(String approverEmail) { + this.approverEmail = approverEmail; + this.__explicitlySet__.add("approverEmail"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("revisionNumber") + private String revisionNumber; + + public Builder revisionNumber(String revisionNumber) { + this.revisionNumber = revisionNumber; + this.__explicitlySet__.add("revisionNumber"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("headline") + private String headline; + + public Builder headline(String headline) { + this.headline = headline; + this.__explicitlySet__.add("headline"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tagline") + private String tagline; + + public Builder tagline(String tagline) { + this.tagline = tagline; + this.__explicitlySet__.add("tagline"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("keywords") + private String keywords; + + public Builder keywords(String keywords) { + this.keywords = keywords; + this.__explicitlySet__.add("keywords"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("shortDescription") + private String shortDescription; + + public Builder shortDescription(String shortDescription) { + this.shortDescription = shortDescription; + this.__explicitlySet__.add("shortDescription"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("usageInformation") + private String usageInformation; + + public Builder usageInformation(String usageInformation) { + this.usageInformation = usageInformation; + this.__explicitlySet__.add("usageInformation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("longDescription") + private String longDescription; + + public Builder longDescription(String longDescription) { + this.longDescription = longDescription; + this.__explicitlySet__.add("longDescription"); + 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("contentLanguage") + private LanguageItem contentLanguage; + + public Builder contentLanguage(LanguageItem contentLanguage) { + this.contentLanguage = contentLanguage; + this.__explicitlySet__.add("contentLanguage"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("supportedlanguages") + private java.util.List supportedlanguages; + + public Builder supportedlanguages(java.util.List supportedlanguages) { + this.supportedlanguages = supportedlanguages; + this.__explicitlySet__.add("supportedlanguages"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("supportContacts") + private java.util.List supportContacts; + + public Builder supportContacts(java.util.List supportContacts) { + this.supportContacts = supportContacts; + this.__explicitlySet__.add("supportContacts"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("supportLinks") + private java.util.List supportLinks; + + public Builder supportLinks(java.util.List supportLinks) { + this.supportLinks = supportLinks; + this.__explicitlySet__.add("supportLinks"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("icon") + private ListingRevisionIconAttachment icon; + + public Builder icon(ListingRevisionIconAttachment icon) { + this.icon = icon; + this.__explicitlySet__.add("icon"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("banner") + private ListingRevisionBannerAttachment banner; + + public Builder banner(ListingRevisionBannerAttachment banner) { + this.banner = banner; + this.__explicitlySet__.add("banner"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("status") + private ListingRevision.Status status; + + public Builder status(ListingRevision.Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("statusNotes") + private String statusNotes; + + public Builder statusNotes(String statusNotes) { + this.statusNotes = statusNotes; + this.__explicitlySet__.add("statusNotes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private ListingRevision.LifecycleState lifecycleState; + + public Builder lifecycleState(ListingRevision.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("packageType") + private PackageType packageType; + + public Builder packageType(PackageType packageType) { + this.packageType = packageType; + this.__explicitlySet__.add("packageType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("extendedMetadata") + private java.util.Map extendedMetadata; + + public Builder extendedMetadata(java.util.Map extendedMetadata) { + this.extendedMetadata = extendedMetadata; + this.__explicitlySet__.add("extendedMetadata"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("versionDetails") + private VersionDetails versionDetails; + + public Builder versionDetails(VersionDetails versionDetails) { + this.versionDetails = versionDetails; + this.__explicitlySet__.add("versionDetails"); + return this; + } + /** Custom link to the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("vanityUrl") + private String vanityUrl; + + /** + * Custom link to the listing + * + * @param vanityUrl the value to set + * @return this builder + */ + public Builder vanityUrl(String vanityUrl) { + this.vanityUrl = vanityUrl; + this.__explicitlySet__.add("vanityUrl"); + return this; + } + /** Measurable or compelling value of the agent */ + @com.fasterxml.jackson.annotation.JsonProperty("keyBenefits") + private String keyBenefits; + + /** + * Measurable or compelling value of the agent + * + * @param keyBenefits the value to set + * @return this builder + */ + public Builder keyBenefits(String keyBenefits) { + this.keyBenefits = keyBenefits; + this.__explicitlySet__.add("keyBenefits"); + return this; + } + /** Capture asset competitive differentiator */ + @com.fasterxml.jackson.annotation.JsonProperty("competitiveDifferentiators") + private String competitiveDifferentiators; + + /** + * Capture asset competitive differentiator + * + * @param competitiveDifferentiators the value to set + * @return this builder + */ + public Builder competitiveDifferentiators(String competitiveDifferentiators) { + this.competitiveDifferentiators = competitiveDifferentiators; + this.__explicitlySet__.add("competitiveDifferentiators"); + return this; + } + /** Target audience for the asset */ + @com.fasterxml.jackson.annotation.JsonProperty("targetAudience") + private String targetAudience; + + /** + * Target audience for the asset + * + * @param targetAudience the value to set + * @return this builder + */ + public Builder targetAudience(String targetAudience) { + this.targetAudience = targetAudience; + this.__explicitlySet__.add("targetAudience"); + return this; + } + /** List of industries subscribed by listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("industries") + private java.util.List industries; + + /** + * List of industries subscribed by listing. + * + * @param industries the value to set + * @return this builder + */ + public Builder industries(java.util.List industries) { + this.industries = industries; + this.__explicitlySet__.add("industries"); + return this; + } + /** Support details based on geographic location */ + @com.fasterxml.jackson.annotation.JsonProperty("geoLocations") + private java.util.List geoLocations; + + /** + * Support details based on geographic location + * + * @param geoLocations the value to set + * @return this builder + */ + public Builder geoLocations(java.util.List geoLocations) { + this.geoLocations = geoLocations; + this.__explicitlySet__.add("geoLocations"); + return this; + } + /** Agent asset type */ + @com.fasterxml.jackson.annotation.JsonProperty("assetType") + private AssetType assetType; + + /** + * Agent asset type + * + * @param assetType the value to set + * @return this builder + */ + public Builder assetType(AssetType assetType) { + this.assetType = assetType; + this.__explicitlySet__.add("assetType"); + return this; + } + /** Work area that surfaces the AI agent */ + @com.fasterxml.jackson.annotation.JsonProperty("location") + private Location location; + + /** + * Work area that surfaces the AI agent + * + * @param location the value to set + * @return this builder + */ + public Builder location(Location location) { + this.location = location; + this.__explicitlySet__.add("location"); + return this; + } + /** List of products subscribed by listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("products") + private java.util.List products; + + /** + * List of products subscribed by listing. + * + * @param products the value to set + * @return this builder + */ + public Builder products(java.util.List products) { + this.products = products; + this.__explicitlySet__.add("products"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdminAiAgentListingRevision build() { + AdminAiAgentListingRevision model = + new AdminAiAgentListingRevision( + this.id, + this.legacyId, + this.listingId, + this.compartmentId, + this.publisherId, + this.approverId, + this.approverEmail, + this.displayName, + this.revisionNumber, + this.headline, + this.tagline, + this.keywords, + this.shortDescription, + this.usageInformation, + this.longDescription, + this.timeCreated, + this.timeUpdated, + this.contentLanguage, + this.supportedlanguages, + this.supportContacts, + this.supportLinks, + this.icon, + this.banner, + this.status, + this.statusNotes, + this.lifecycleState, + this.packageType, + this.extendedMetadata, + this.freeformTags, + this.definedTags, + this.systemTags, + this.versionDetails, + this.vanityUrl, + this.keyBenefits, + this.competitiveDifferentiators, + this.targetAudience, + this.industries, + this.geoLocations, + this.assetType, + this.location, + this.products); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminAiAgentListingRevision model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("legacyId")) { + this.legacyId(model.getLegacyId()); + } + if (model.wasPropertyExplicitlySet("listingId")) { + this.listingId(model.getListingId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("publisherId")) { + this.publisherId(model.getPublisherId()); + } + if (model.wasPropertyExplicitlySet("approverId")) { + this.approverId(model.getApproverId()); + } + if (model.wasPropertyExplicitlySet("approverEmail")) { + this.approverEmail(model.getApproverEmail()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("revisionNumber")) { + this.revisionNumber(model.getRevisionNumber()); + } + if (model.wasPropertyExplicitlySet("headline")) { + this.headline(model.getHeadline()); + } + if (model.wasPropertyExplicitlySet("tagline")) { + this.tagline(model.getTagline()); + } + if (model.wasPropertyExplicitlySet("keywords")) { + this.keywords(model.getKeywords()); + } + if (model.wasPropertyExplicitlySet("shortDescription")) { + this.shortDescription(model.getShortDescription()); + } + if (model.wasPropertyExplicitlySet("usageInformation")) { + this.usageInformation(model.getUsageInformation()); + } + if (model.wasPropertyExplicitlySet("longDescription")) { + this.longDescription(model.getLongDescription()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("contentLanguage")) { + this.contentLanguage(model.getContentLanguage()); + } + if (model.wasPropertyExplicitlySet("supportedlanguages")) { + this.supportedlanguages(model.getSupportedlanguages()); + } + if (model.wasPropertyExplicitlySet("supportContacts")) { + this.supportContacts(model.getSupportContacts()); + } + if (model.wasPropertyExplicitlySet("supportLinks")) { + this.supportLinks(model.getSupportLinks()); + } + if (model.wasPropertyExplicitlySet("icon")) { + this.icon(model.getIcon()); + } + if (model.wasPropertyExplicitlySet("banner")) { + this.banner(model.getBanner()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("statusNotes")) { + this.statusNotes(model.getStatusNotes()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("packageType")) { + this.packageType(model.getPackageType()); + } + if (model.wasPropertyExplicitlySet("extendedMetadata")) { + this.extendedMetadata(model.getExtendedMetadata()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("versionDetails")) { + this.versionDetails(model.getVersionDetails()); + } + if (model.wasPropertyExplicitlySet("vanityUrl")) { + this.vanityUrl(model.getVanityUrl()); + } + if (model.wasPropertyExplicitlySet("keyBenefits")) { + this.keyBenefits(model.getKeyBenefits()); + } + if (model.wasPropertyExplicitlySet("competitiveDifferentiators")) { + this.competitiveDifferentiators(model.getCompetitiveDifferentiators()); + } + if (model.wasPropertyExplicitlySet("targetAudience")) { + this.targetAudience(model.getTargetAudience()); + } + if (model.wasPropertyExplicitlySet("industries")) { + this.industries(model.getIndustries()); + } + if (model.wasPropertyExplicitlySet("geoLocations")) { + this.geoLocations(model.getGeoLocations()); + } + if (model.wasPropertyExplicitlySet("assetType")) { + this.assetType(model.getAssetType()); + } + if (model.wasPropertyExplicitlySet("location")) { + this.location(model.getLocation()); + } + if (model.wasPropertyExplicitlySet("products")) { + this.products(model.getProducts()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public AdminAiAgentListingRevision( + String id, + String legacyId, + String listingId, + String compartmentId, + String publisherId, + String approverId, + String approverEmail, + String displayName, + String revisionNumber, + String headline, + String tagline, + String keywords, + String shortDescription, + String usageInformation, + String longDescription, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LanguageItem contentLanguage, + java.util.List supportedlanguages, + java.util.List supportContacts, + java.util.List supportLinks, + ListingRevisionIconAttachment icon, + ListingRevisionBannerAttachment banner, + ListingRevision.Status status, + String statusNotes, + ListingRevision.LifecycleState lifecycleState, + PackageType packageType, + java.util.Map extendedMetadata, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + VersionDetails versionDetails, + String vanityUrl, + String keyBenefits, + String competitiveDifferentiators, + String targetAudience, + java.util.List industries, + java.util.List geoLocations, + AssetType assetType, + Location location, + java.util.List products) { + super( + id, + legacyId, + listingId, + compartmentId, + publisherId, + approverId, + approverEmail, + displayName, + revisionNumber, + headline, + tagline, + keywords, + shortDescription, + usageInformation, + longDescription, + timeCreated, + timeUpdated, + contentLanguage, + supportedlanguages, + supportContacts, + supportLinks, + icon, + banner, + status, + statusNotes, + lifecycleState, + packageType, + extendedMetadata, + freeformTags, + definedTags, + systemTags); + this.versionDetails = versionDetails; + this.vanityUrl = vanityUrl; + this.keyBenefits = keyBenefits; + this.competitiveDifferentiators = competitiveDifferentiators; + this.targetAudience = targetAudience; + this.industries = industries; + this.geoLocations = geoLocations; + this.assetType = assetType; + this.location = location; + this.products = products; + } + + @com.fasterxml.jackson.annotation.JsonProperty("versionDetails") + private final VersionDetails versionDetails; + + public VersionDetails getVersionDetails() { + return versionDetails; + } + + /** Custom link to the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("vanityUrl") + private final String vanityUrl; + + /** + * Custom link to the listing + * + * @return the value + */ + public String getVanityUrl() { + return vanityUrl; + } + + /** Measurable or compelling value of the agent */ + @com.fasterxml.jackson.annotation.JsonProperty("keyBenefits") + private final String keyBenefits; + + /** + * Measurable or compelling value of the agent + * + * @return the value + */ + public String getKeyBenefits() { + return keyBenefits; + } + + /** Capture asset competitive differentiator */ + @com.fasterxml.jackson.annotation.JsonProperty("competitiveDifferentiators") + private final String competitiveDifferentiators; + + /** + * Capture asset competitive differentiator + * + * @return the value + */ + public String getCompetitiveDifferentiators() { + return competitiveDifferentiators; + } + + /** Target audience for the asset */ + @com.fasterxml.jackson.annotation.JsonProperty("targetAudience") + private final String targetAudience; + + /** + * Target audience for the asset + * + * @return the value + */ + public String getTargetAudience() { + return targetAudience; + } + + /** List of industries subscribed by listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("industries") + private final java.util.List industries; + + /** + * List of industries subscribed by listing. + * + * @return the value + */ + public java.util.List getIndustries() { + return industries; + } + + /** Support details based on geographic location */ + @com.fasterxml.jackson.annotation.JsonProperty("geoLocations") + private final java.util.List geoLocations; + + /** + * Support details based on geographic location + * + * @return the value + */ + public java.util.List getGeoLocations() { + return geoLocations; + } + + /** Agent asset type */ + public enum AssetType implements com.oracle.bmc.http.internal.BmcEnum { + Foundational("FOUNDATIONAL"), + Team("TEAM"), + Workflow("WORKFLOW"), + Application("APPLICATION"), + Connector("CONNECTOR"), + + /** + * 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(AssetType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AssetType v : AssetType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AssetType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AssetType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AssetType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Agent asset type */ + @com.fasterxml.jackson.annotation.JsonProperty("assetType") + private final AssetType assetType; + + /** + * Agent asset type + * + * @return the value + */ + public AssetType getAssetType() { + return assetType; + } + + /** Work area that surfaces the AI agent */ + public enum Location implements com.oracle.bmc.http.internal.BmcEnum { + Seeded("SEEDED"), + LeadGen("LEAD_GEN"), + + /** + * 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(Location.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Location v : Location.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Location(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Location create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Location', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Work area that surfaces the AI agent */ + @com.fasterxml.jackson.annotation.JsonProperty("location") + private final Location location; + + /** + * Work area that surfaces the AI agent + * + * @return the value + */ + public Location getLocation() { + return location; + } + + /** List of products subscribed by listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("products") + private final java.util.List products; + + /** + * List of products subscribed by listing. + * + * @return the value + */ + public java.util.List getProducts() { + return products; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AdminAiAgentListingRevision("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", versionDetails=").append(String.valueOf(this.versionDetails)); + sb.append(", vanityUrl=").append(String.valueOf(this.vanityUrl)); + sb.append(", keyBenefits=").append(String.valueOf(this.keyBenefits)); + sb.append(", competitiveDifferentiators=") + .append(String.valueOf(this.competitiveDifferentiators)); + sb.append(", targetAudience=").append(String.valueOf(this.targetAudience)); + sb.append(", industries=").append(String.valueOf(this.industries)); + sb.append(", geoLocations=").append(String.valueOf(this.geoLocations)); + sb.append(", assetType=").append(String.valueOf(this.assetType)); + sb.append(", location=").append(String.valueOf(this.location)); + sb.append(", products=").append(String.valueOf(this.products)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminAiAgentListingRevision)) { + return false; + } + + AdminAiAgentListingRevision other = (AdminAiAgentListingRevision) o; + return java.util.Objects.equals(this.versionDetails, other.versionDetails) + && java.util.Objects.equals(this.vanityUrl, other.vanityUrl) + && java.util.Objects.equals(this.keyBenefits, other.keyBenefits) + && java.util.Objects.equals( + this.competitiveDifferentiators, other.competitiveDifferentiators) + && java.util.Objects.equals(this.targetAudience, other.targetAudience) + && java.util.Objects.equals(this.industries, other.industries) + && java.util.Objects.equals(this.geoLocations, other.geoLocations) + && java.util.Objects.equals(this.assetType, other.assetType) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.products, other.products) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.versionDetails == null ? 43 : this.versionDetails.hashCode()); + result = (result * PRIME) + (this.vanityUrl == null ? 43 : this.vanityUrl.hashCode()); + result = (result * PRIME) + (this.keyBenefits == null ? 43 : this.keyBenefits.hashCode()); + result = + (result * PRIME) + + (this.competitiveDifferentiators == null + ? 43 + : this.competitiveDifferentiators.hashCode()); + result = + (result * PRIME) + + (this.targetAudience == null ? 43 : this.targetAudience.hashCode()); + result = (result * PRIME) + (this.industries == null ? 43 : this.industries.hashCode()); + result = (result * PRIME) + (this.geoLocations == null ? 43 : this.geoLocations.hashCode()); + result = (result * PRIME) + (this.assetType == null ? 43 : this.assetType.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = (result * PRIME) + (this.products == null ? 43 : this.products.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminArtifact.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminArtifact.java new file mode 100644 index 00000000000..c2564f80613 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminArtifact.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.marketplacepublisher.model; + +/** + * Base model object for the artifacts.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "artifactType", + defaultImpl = AdminArtifact.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = AdminStackArtifact.class, + name = "STACK"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = AdminMachineImageArtifact.class, + name = "MACHINE_IMAGE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = AdminKubernetesImageArtifact.class, + name = "HELM_CHART"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = AdminContainerImageArtifact.class, + name = "CONTAINER_IMAGE") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class AdminArtifact extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "legacyId", + "displayName", + "status", + "statusNotes", + "lifecycleState", + "timeCreated", + "compartmentId", + "publisherId", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + protected AdminArtifact( + String id, + String legacyId, + String displayName, + Artifact.Status status, + String statusNotes, + Artifact.LifecycleState lifecycleState, + java.util.Date timeCreated, + String compartmentId, + String publisherId, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.legacyId = legacyId; + this.displayName = displayName; + this.status = status; + this.statusNotes = statusNotes; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.compartmentId = compartmentId; + this.publisherId = publisherId; + this.timeUpdated = timeUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + /** Unique OCID identifier for the artifact. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique OCID identifier for the artifact. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The unique legacy identifier for the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private final String legacyId; + + /** + * The unique legacy identifier for the listing. + * + * @return the value + */ + public String getLegacyId() { + return legacyId; + } + + /** A display name for the artifact. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A display name for the artifact. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The current status for the Artifact. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Artifact.Status status; + + /** + * The current status for the Artifact. + * + * @return the value + */ + public Artifact.Status getStatus() { + return status; + } + + /** Status notes for the Artifact. */ + @com.fasterxml.jackson.annotation.JsonProperty("statusNotes") + private final String statusNotes; + + /** + * Status notes for the Artifact. + * + * @return the value + */ + public String getStatusNotes() { + return statusNotes; + } + + /** The current state for the Artifact. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final Artifact.LifecycleState lifecycleState; + + /** + * The current state for the Artifact. + * + * @return the value + */ + public Artifact.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The date and time the artifact was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

    Example: {@code 2022-09-15T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The unique identifier for the compartment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The unique identifier for the compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The unique identifier for the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("publisherId") + private final String publisherId; + + /** + * The unique identifier for the publisher. + * + * @return the value + */ + public String getPublisherId() { + return publisherId; + } + + /** + * The date and time the artifact was updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

    Example: {@code 2022-09-15T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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("AdminArtifact("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", legacyId=").append(String.valueOf(this.legacyId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", statusNotes=").append(String.valueOf(this.statusNotes)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", publisherId=").append(String.valueOf(this.publisherId)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminArtifact)) { + return false; + } + + AdminArtifact other = (AdminArtifact) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.legacyId, other.legacyId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.statusNotes, other.statusNotes) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.publisherId, other.publisherId) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.legacyId == null ? 43 : this.legacyId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.statusNotes == null ? 43 : this.statusNotes.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.publisherId == null ? 43 : this.publisherId.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCollection.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminArtifactCollection.java similarity index 75% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCollection.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminArtifactCollection.java index 42334a3c1e0..f3d66745c3c 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCollection.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminArtifactCollection.java @@ -2,10 +2,10 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.model; /** - * Collection of Globally distributed databases.
    + * Results of the artifact search. Contains the artifact items.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,33 +15,33 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabaseCollection.Builder.class) + builder = AdminArtifactCollection.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class DistributedDatabaseCollection +public final class AdminArtifactCollection extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"items"}) - public DistributedDatabaseCollection(java.util.List items) { + public AdminArtifactCollection(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. */ + /** List of artifact summary. */ @com.fasterxml.jackson.annotation.JsonProperty("items") - private java.util.List items; + private java.util.List items; /** - * Array of Globally distributed database summaries. + * List of artifact summary. * * @param items the value to set * @return this builder */ - public Builder items(java.util.List items) { + public Builder items(java.util.List items) { this.items = items; this.__explicitlySet__.add("items"); return this; @@ -50,8 +50,8 @@ public Builder items(java.util.List items) { @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public DistributedDatabaseCollection build() { - DistributedDatabaseCollection model = new DistributedDatabaseCollection(this.items); + public AdminArtifactCollection build() { + AdminArtifactCollection model = new AdminArtifactCollection(this.items); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -59,7 +59,7 @@ public DistributedDatabaseCollection build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabaseCollection model) { + public Builder copy(AdminArtifactCollection model) { if (model.wasPropertyExplicitlySet("items")) { this.items(model.getItems()); } @@ -76,16 +76,16 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Array of Globally distributed database summaries. */ + /** List of artifact summary. */ @com.fasterxml.jackson.annotation.JsonProperty("items") - private final java.util.List items; + private final java.util.List items; /** - * Array of Globally distributed database summaries. + * List of artifact summary. * * @return the value */ - public java.util.List getItems() { + public java.util.List getItems() { return items; } @@ -102,7 +102,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabaseCollection("); + sb.append("AdminArtifactCollection("); sb.append("super=").append(super.toString()); sb.append("items=").append(String.valueOf(this.items)); sb.append(")"); @@ -114,11 +114,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DistributedDatabaseCollection)) { + if (!(o instanceof AdminArtifactCollection)) { return false; } - DistributedDatabaseCollection other = (DistributedDatabaseCollection) o; + AdminArtifactCollection other = (AdminArtifactCollection) o; return java.util.Objects.equals(this.items, other.items) && super.equals(other); } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminArtifactSummary.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminArtifactSummary.java new file mode 100644 index 00000000000..b63f1b9f426 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminArtifactSummary.java @@ -0,0 +1,618 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * The model for the admin artifact 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: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminArtifactSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminArtifactSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "legacyId", + "compartmentId", + "displayName", + "artifactType", + "lifecycleState", + "status", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public AdminArtifactSummary( + String id, + String legacyId, + String compartmentId, + String displayName, + ArtifactTypeEnum artifactType, + Artifact.LifecycleState lifecycleState, + Artifact.Status status, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.legacyId = legacyId; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.artifactType = artifactType; + this.lifecycleState = lifecycleState; + this.status = status; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique identifier for the artifact. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique identifier for the artifact. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The unique legacy identifier for the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private String legacyId; + + /** + * The unique legacy identifier for the listing. + * + * @param legacyId the value to set + * @return this builder + */ + public Builder legacyId(String legacyId) { + this.legacyId = legacyId; + this.__explicitlySet__.add("legacyId"); + return this; + } + /** The unique identifier for the compartment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The unique identifier for the compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The display name for the artifact. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name for the artifact. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Artifact Type for the artifact. */ + @com.fasterxml.jackson.annotation.JsonProperty("artifactType") + private ArtifactTypeEnum artifactType; + + /** + * Artifact Type for the artifact. + * + * @param artifactType the value to set + * @return this builder + */ + public Builder artifactType(ArtifactTypeEnum artifactType) { + this.artifactType = artifactType; + this.__explicitlySet__.add("artifactType"); + return this; + } + /** The current state for the Artifact. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private Artifact.LifecycleState lifecycleState; + + /** + * The current state for the Artifact. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(Artifact.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** The current status for the Artifact. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Artifact.Status status; + + /** + * The current status for the Artifact. + * + * @param status the value to set + * @return this builder + */ + public Builder status(Artifact.Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * The date and time the artifact was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

    Example: {@code 2023-03-27T21: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 artifact was updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

    Example: {@code 2023-03-27T21: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; + } + /** + * 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; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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 AdminArtifactSummary build() { + AdminArtifactSummary model = + new AdminArtifactSummary( + this.id, + this.legacyId, + this.compartmentId, + this.displayName, + this.artifactType, + this.lifecycleState, + this.status, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminArtifactSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("legacyId")) { + this.legacyId(model.getLegacyId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("artifactType")) { + this.artifactType(model.getArtifactType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Unique identifier for the artifact. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique identifier for the artifact. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The unique legacy identifier for the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private final String legacyId; + + /** + * The unique legacy identifier for the listing. + * + * @return the value + */ + public String getLegacyId() { + return legacyId; + } + + /** The unique identifier for the compartment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The unique identifier for the compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The display name for the artifact. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name for the artifact. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Artifact Type for the artifact. */ + @com.fasterxml.jackson.annotation.JsonProperty("artifactType") + private final ArtifactTypeEnum artifactType; + + /** + * Artifact Type for the artifact. + * + * @return the value + */ + public ArtifactTypeEnum getArtifactType() { + return artifactType; + } + + /** The current state for the Artifact. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final Artifact.LifecycleState lifecycleState; + + /** + * The current state for the Artifact. + * + * @return the value + */ + public Artifact.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The current status for the Artifact. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Artifact.Status status; + + /** + * The current status for the Artifact. + * + * @return the value + */ + public Artifact.Status getStatus() { + return status; + } + + /** + * The date and time the artifact was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

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

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

    Example: {@code 2023-03-27T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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("AdminArtifactSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", legacyId=").append(String.valueOf(this.legacyId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", artifactType=").append(String.valueOf(this.artifactType)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminArtifactSummary)) { + return false; + } + + AdminArtifactSummary other = (AdminArtifactSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.legacyId, other.legacyId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.artifactType, other.artifactType) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.legacyId == null ? 43 : this.legacyId.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.artifactType == null ? 43 : this.artifactType.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseConnectionString.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminBillToCountries.java similarity index 54% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseConnectionString.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminBillToCountries.java index 1b6f10821ba..9c3207cac19 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseConnectionString.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminBillToCountries.java @@ -2,10 +2,10 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.model; /** - * Details of Globally distributed autonomous database connection String.
    + * The model for the admin bill to countries 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 @@ -15,45 +15,59 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedAutonomousDatabaseConnectionString.Builder.class) + builder = AdminBillToCountries.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class DistributedAutonomousDatabaseConnectionString +public final class AdminBillToCountries extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"allConnectionStrings"}) - public DistributedAutonomousDatabaseConnectionString( - java.util.Map allConnectionStrings) { + @java.beans.ConstructorProperties({"name", "code"}) + public AdminBillToCountries(String name, String code) { super(); - this.allConnectionStrings = allConnectionStrings; + this.name = name; + this.code = code; } @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; + /** The name of the Bill to Country. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; /** - * Collection of connection strings. + * The name of the Bill to Country. * - * @param allConnectionStrings the value to set + * @param name the value to set * @return this builder */ - public Builder allConnectionStrings(java.util.Map allConnectionStrings) { - this.allConnectionStrings = allConnectionStrings; - this.__explicitlySet__.add("allConnectionStrings"); + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** The code of the Bill to Country. */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private String code; + + /** + * The code of the Bill to Country. + * + * @param code the value to set + * @return this builder + */ + public Builder code(String code) { + this.code = code; + this.__explicitlySet__.add("code"); 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); + public AdminBillToCountries build() { + AdminBillToCountries model = new AdminBillToCountries(this.name, this.code); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -61,9 +75,12 @@ public DistributedAutonomousDatabaseConnectionString build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedAutonomousDatabaseConnectionString model) { - if (model.wasPropertyExplicitlySet("allConnectionStrings")) { - this.allConnectionStrings(model.getAllConnectionStrings()); + public Builder copy(AdminBillToCountries model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("code")) { + this.code(model.getCode()); } return this; } @@ -78,17 +95,30 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Collection of connection strings. */ - @com.fasterxml.jackson.annotation.JsonProperty("allConnectionStrings") - private final java.util.Map allConnectionStrings; + /** The name of the Bill to Country. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the Bill to Country. + * + * @return the value + */ + public String getName() { + return name; + } + + /** The code of the Bill to Country. */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private final String code; /** - * Collection of connection strings. + * The code of the Bill to Country. * * @return the value */ - public java.util.Map getAllConnectionStrings() { - return allConnectionStrings; + public String getCode() { + return code; } @Override @@ -104,9 +134,10 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedAutonomousDatabaseConnectionString("); + sb.append("AdminBillToCountries("); sb.append("super=").append(super.toString()); - sb.append("allConnectionStrings=").append(String.valueOf(this.allConnectionStrings)); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", code=").append(String.valueOf(this.code)); sb.append(")"); return sb.toString(); } @@ -116,13 +147,13 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DistributedAutonomousDatabaseConnectionString)) { + if (!(o instanceof AdminBillToCountries)) { return false; } - DistributedAutonomousDatabaseConnectionString other = - (DistributedAutonomousDatabaseConnectionString) o; - return java.util.Objects.equals(this.allConnectionStrings, other.allConnectionStrings) + AdminBillToCountries other = (AdminBillToCountries) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.code, other.code) && super.equals(other); } @@ -130,11 +161,8 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; - result = - (result * PRIME) - + (this.allConnectionStrings == null - ? 43 - : this.allConnectionStrings.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.code == null ? 43 : this.code.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminContainerImageArtifact.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminContainerImageArtifact.java new file mode 100644 index 00000000000..3fb5a7b77b9 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminContainerImageArtifact.java @@ -0,0 +1,323 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Container Image artifact 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: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminContainerImageArtifact.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "artifactType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminContainerImageArtifact extends AdminArtifact { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private String legacyId; + + public Builder legacyId(String legacyId) { + this.legacyId = legacyId; + this.__explicitlySet__.add("legacyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Artifact.Status status; + + public Builder status(Artifact.Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("statusNotes") + private String statusNotes; + + public Builder statusNotes(String statusNotes) { + this.statusNotes = statusNotes; + this.__explicitlySet__.add("statusNotes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private Artifact.LifecycleState lifecycleState; + + public Builder lifecycleState(Artifact.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + 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("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("publisherId") + private String publisherId; + + public Builder publisherId(String publisherId) { + this.publisherId = publisherId; + this.__explicitlySet__.add("publisherId"); + 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("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("containerImage") + private ContainerImageDetails containerImage; + + public Builder containerImage(ContainerImageDetails containerImage) { + this.containerImage = containerImage; + this.__explicitlySet__.add("containerImage"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdminContainerImageArtifact build() { + AdminContainerImageArtifact model = + new AdminContainerImageArtifact( + this.id, + this.legacyId, + this.displayName, + this.status, + this.statusNotes, + this.lifecycleState, + this.timeCreated, + this.compartmentId, + this.publisherId, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags, + this.containerImage); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminContainerImageArtifact model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("legacyId")) { + this.legacyId(model.getLegacyId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("statusNotes")) { + this.statusNotes(model.getStatusNotes()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("publisherId")) { + this.publisherId(model.getPublisherId()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("containerImage")) { + this.containerImage(model.getContainerImage()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public AdminContainerImageArtifact( + String id, + String legacyId, + String displayName, + Artifact.Status status, + String statusNotes, + Artifact.LifecycleState lifecycleState, + java.util.Date timeCreated, + String compartmentId, + String publisherId, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + ContainerImageDetails containerImage) { + super( + id, + legacyId, + displayName, + status, + statusNotes, + lifecycleState, + timeCreated, + compartmentId, + publisherId, + timeUpdated, + freeformTags, + definedTags, + systemTags); + this.containerImage = containerImage; + } + + @com.fasterxml.jackson.annotation.JsonProperty("containerImage") + private final ContainerImageDetails containerImage; + + public ContainerImageDetails getContainerImage() { + return containerImage; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AdminContainerImageArtifact("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", containerImage=").append(String.valueOf(this.containerImage)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminContainerImageArtifact)) { + return false; + } + + AdminContainerImageArtifact other = (AdminContainerImageArtifact) o; + return java.util.Objects.equals(this.containerImage, other.containerImage) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.containerImage == null ? 43 : this.containerImage.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminContainerPackage.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminContainerPackage.java new file mode 100644 index 00000000000..ea6441543aa --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminContainerPackage.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.marketplacepublisher.model; + +/** + * A package for container image listings.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminContainerPackage.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "packageType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminContainerPackage extends AdminListingRevisionPackage { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private String legacyId; + + public Builder legacyId(String legacyId) { + this.legacyId = legacyId; + this.__explicitlySet__.add("legacyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("listingRevisionId") + private String listingRevisionId; + + public Builder listingRevisionId(String listingRevisionId) { + this.listingRevisionId = listingRevisionId; + this.__explicitlySet__.add("listingRevisionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("artifactId") + private String artifactId; + + public Builder artifactId(String artifactId) { + this.artifactId = artifactId; + this.__explicitlySet__.add("artifactId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termId") + private String termId; + + public Builder termId(String termId) { + this.termId = termId; + this.__explicitlySet__.add("termId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("packageVersion") + private String packageVersion; + + public Builder packageVersion(String packageVersion) { + this.packageVersion = packageVersion; + this.__explicitlySet__.add("packageVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private ListingRevisionPackage.LifecycleState lifecycleState; + + public Builder lifecycleState(ListingRevisionPackage.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("status") + private ListingRevisionPackage.Status status; + + public Builder status(ListingRevisionPackage.Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("areSecurityUpgradesProvided") + private Boolean areSecurityUpgradesProvided; + + public Builder areSecurityUpgradesProvided(Boolean areSecurityUpgradesProvided) { + this.areSecurityUpgradesProvided = areSecurityUpgradesProvided; + this.__explicitlySet__.add("areSecurityUpgradesProvided"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") + private Boolean isDefault; + + public Builder isDefault(Boolean isDefault) { + this.isDefault = isDefault; + this.__explicitlySet__.add("isDefault"); + 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("extendedMetadata") + private java.util.Map extendedMetadata; + + public Builder extendedMetadata(java.util.Map extendedMetadata) { + this.extendedMetadata = extendedMetadata; + this.__explicitlySet__.add("extendedMetadata"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdminContainerPackage build() { + AdminContainerPackage model = + new AdminContainerPackage( + this.id, + this.legacyId, + this.displayName, + this.description, + this.listingRevisionId, + this.compartmentId, + this.artifactId, + this.termId, + this.packageVersion, + this.lifecycleState, + this.status, + this.areSecurityUpgradesProvided, + this.isDefault, + this.timeCreated, + this.timeUpdated, + this.extendedMetadata, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminContainerPackage model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("legacyId")) { + this.legacyId(model.getLegacyId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("listingRevisionId")) { + this.listingRevisionId(model.getListingRevisionId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("artifactId")) { + this.artifactId(model.getArtifactId()); + } + if (model.wasPropertyExplicitlySet("termId")) { + this.termId(model.getTermId()); + } + if (model.wasPropertyExplicitlySet("packageVersion")) { + this.packageVersion(model.getPackageVersion()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("areSecurityUpgradesProvided")) { + this.areSecurityUpgradesProvided(model.getAreSecurityUpgradesProvided()); + } + if (model.wasPropertyExplicitlySet("isDefault")) { + this.isDefault(model.getIsDefault()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("extendedMetadata")) { + this.extendedMetadata(model.getExtendedMetadata()); + } + 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); + } + + @Deprecated + public AdminContainerPackage( + String id, + String legacyId, + String displayName, + String description, + String listingRevisionId, + String compartmentId, + String artifactId, + String termId, + String packageVersion, + ListingRevisionPackage.LifecycleState lifecycleState, + ListingRevisionPackage.Status status, + Boolean areSecurityUpgradesProvided, + Boolean isDefault, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map extendedMetadata, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super( + id, + legacyId, + displayName, + description, + listingRevisionId, + compartmentId, + artifactId, + termId, + packageVersion, + lifecycleState, + status, + areSecurityUpgradesProvided, + isDefault, + timeCreated, + timeUpdated, + extendedMetadata, + freeformTags, + definedTags, + 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("AdminContainerPackage("); + 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 AdminContainerPackage)) { + return false; + } + + AdminContainerPackage other = (AdminContainerPackage) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminCustomerSuccessAttachment.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminCustomerSuccessAttachment.java new file mode 100644 index 00000000000..cce3337f5e7 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminCustomerSuccessAttachment.java @@ -0,0 +1,507 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Customer success attachment for the listing revision.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminCustomerSuccessAttachment.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "attachmentType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminCustomerSuccessAttachment extends AdminListingRevisionAttachment { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("listingRevisionId") + private String listingRevisionId; + + public Builder listingRevisionId(String listingRevisionId) { + this.listingRevisionId = listingRevisionId; + this.__explicitlySet__.add("listingRevisionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private ListingRevisionAttachment.SourceType sourceType; + + public Builder sourceType(ListingRevisionAttachment.SourceType sourceType) { + this.sourceType = sourceType; + this.__explicitlySet__.add("sourceType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private ListingRevisionAttachment.LifecycleState lifecycleState; + + public Builder lifecycleState(ListingRevisionAttachment.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + 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("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * Identifies whether the attachment is for Internal Oracle Users or external users as well. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isOracleUsersOnly") + private Boolean isOracleUsersOnly; + + /** + * Identifies whether the attachment is for Internal Oracle Users or external users as well. + * + * @param isOracleUsersOnly the value to set + * @return this builder + */ + public Builder isOracleUsersOnly(Boolean isOracleUsersOnly) { + this.isOracleUsersOnly = isOracleUsersOnly; + this.__explicitlySet__.add("isOracleUsersOnly"); + return this; + } + /** Name of the customer */ + @com.fasterxml.jackson.annotation.JsonProperty("customerName") + private String customerName; + + /** + * Name of the customer + * + * @param customerName the value to set + * @return this builder + */ + public Builder customerName(String customerName) { + this.customerName = customerName; + this.__explicitlySet__.add("customerName"); + return this; + } + /** Optional url to success story */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private String url; + + /** + * Optional url to success story + * + * @param url the value to set + * @return this builder + */ + public Builder url(String url) { + this.url = url; + this.__explicitlySet__.add("url"); + return this; + } + /** List of product codes this success */ + @com.fasterxml.jackson.annotation.JsonProperty("productCodes") + private java.util.List productCodes; + + /** + * List of product codes this success + * + * @param productCodes the value to set + * @return this builder + */ + public Builder productCodes(java.util.List productCodes) { + this.productCodes = productCodes; + this.__explicitlySet__.add("productCodes"); + return this; + } + /** URL of the uploaded document. */ + @com.fasterxml.jackson.annotation.JsonProperty("contentUrl") + private String contentUrl; + + /** + * URL of the uploaded document. + * + * @param contentUrl the value to set + * @return this builder + */ + public Builder contentUrl(String contentUrl) { + this.contentUrl = contentUrl; + this.__explicitlySet__.add("contentUrl"); + return this; + } + /** The MIME type of the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("mimeType") + private String mimeType; + + /** + * The MIME type of the uploaded data. + * + * @param mimeType the value to set + * @return this builder + */ + public Builder mimeType(String mimeType) { + this.mimeType = mimeType; + this.__explicitlySet__.add("mimeType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdminCustomerSuccessAttachment build() { + AdminCustomerSuccessAttachment model = + new AdminCustomerSuccessAttachment( + this.id, + this.compartmentId, + this.listingRevisionId, + this.displayName, + this.description, + this.sourceType, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags, + this.isOracleUsersOnly, + this.customerName, + this.url, + this.productCodes, + this.contentUrl, + this.mimeType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminCustomerSuccessAttachment model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("listingRevisionId")) { + this.listingRevisionId(model.getListingRevisionId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("sourceType")) { + this.sourceType(model.getSourceType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("isOracleUsersOnly")) { + this.isOracleUsersOnly(model.getIsOracleUsersOnly()); + } + if (model.wasPropertyExplicitlySet("customerName")) { + this.customerName(model.getCustomerName()); + } + if (model.wasPropertyExplicitlySet("url")) { + this.url(model.getUrl()); + } + if (model.wasPropertyExplicitlySet("productCodes")) { + this.productCodes(model.getProductCodes()); + } + if (model.wasPropertyExplicitlySet("contentUrl")) { + this.contentUrl(model.getContentUrl()); + } + if (model.wasPropertyExplicitlySet("mimeType")) { + this.mimeType(model.getMimeType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public AdminCustomerSuccessAttachment( + String id, + String compartmentId, + String listingRevisionId, + String displayName, + String description, + ListingRevisionAttachment.SourceType sourceType, + ListingRevisionAttachment.LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + Boolean isOracleUsersOnly, + String customerName, + String url, + java.util.List productCodes, + String contentUrl, + String mimeType) { + super( + id, + compartmentId, + listingRevisionId, + displayName, + description, + sourceType, + lifecycleState, + timeCreated, + timeUpdated, + freeformTags, + definedTags, + systemTags); + this.isOracleUsersOnly = isOracleUsersOnly; + this.customerName = customerName; + this.url = url; + this.productCodes = productCodes; + this.contentUrl = contentUrl; + this.mimeType = mimeType; + } + + /** Identifies whether the attachment is for Internal Oracle Users or external users as well. */ + @com.fasterxml.jackson.annotation.JsonProperty("isOracleUsersOnly") + private final Boolean isOracleUsersOnly; + + /** + * Identifies whether the attachment is for Internal Oracle Users or external users as well. + * + * @return the value + */ + public Boolean getIsOracleUsersOnly() { + return isOracleUsersOnly; + } + + /** Name of the customer */ + @com.fasterxml.jackson.annotation.JsonProperty("customerName") + private final String customerName; + + /** + * Name of the customer + * + * @return the value + */ + public String getCustomerName() { + return customerName; + } + + /** Optional url to success story */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private final String url; + + /** + * Optional url to success story + * + * @return the value + */ + public String getUrl() { + return url; + } + + /** List of product codes this success */ + @com.fasterxml.jackson.annotation.JsonProperty("productCodes") + private final java.util.List productCodes; + + /** + * List of product codes this success + * + * @return the value + */ + public java.util.List getProductCodes() { + return productCodes; + } + + /** URL of the uploaded document. */ + @com.fasterxml.jackson.annotation.JsonProperty("contentUrl") + private final String contentUrl; + + /** + * URL of the uploaded document. + * + * @return the value + */ + public String getContentUrl() { + return contentUrl; + } + + /** The MIME type of the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("mimeType") + private final String mimeType; + + /** + * The MIME type of the uploaded data. + * + * @return the value + */ + public String getMimeType() { + return mimeType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AdminCustomerSuccessAttachment("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", isOracleUsersOnly=").append(String.valueOf(this.isOracleUsersOnly)); + sb.append(", customerName=").append(String.valueOf(this.customerName)); + sb.append(", url=").append(String.valueOf(this.url)); + sb.append(", productCodes=").append(String.valueOf(this.productCodes)); + sb.append(", contentUrl=").append(String.valueOf(this.contentUrl)); + sb.append(", mimeType=").append(String.valueOf(this.mimeType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminCustomerSuccessAttachment)) { + return false; + } + + AdminCustomerSuccessAttachment other = (AdminCustomerSuccessAttachment) o; + return java.util.Objects.equals(this.isOracleUsersOnly, other.isOracleUsersOnly) + && java.util.Objects.equals(this.customerName, other.customerName) + && java.util.Objects.equals(this.url, other.url) + && java.util.Objects.equals(this.productCodes, other.productCodes) + && java.util.Objects.equals(this.contentUrl, other.contentUrl) + && java.util.Objects.equals(this.mimeType, other.mimeType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.isOracleUsersOnly == null ? 43 : this.isOracleUsersOnly.hashCode()); + result = (result * PRIME) + (this.customerName == null ? 43 : this.customerName.hashCode()); + result = (result * PRIME) + (this.url == null ? 43 : this.url.hashCode()); + result = (result * PRIME) + (this.productCodes == null ? 43 : this.productCodes.hashCode()); + result = (result * PRIME) + (this.contentUrl == null ? 43 : this.contentUrl.hashCode()); + result = (result * PRIME) + (this.mimeType == null ? 43 : this.mimeType.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminHelmChartPackage.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminHelmChartPackage.java new file mode 100644 index 00000000000..a8420bf9c8e --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminHelmChartPackage.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.marketplacepublisher.model; + +/** + * A package for container image listings.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminHelmChartPackage.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "packageType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminHelmChartPackage extends AdminListingRevisionPackage { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private String legacyId; + + public Builder legacyId(String legacyId) { + this.legacyId = legacyId; + this.__explicitlySet__.add("legacyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("listingRevisionId") + private String listingRevisionId; + + public Builder listingRevisionId(String listingRevisionId) { + this.listingRevisionId = listingRevisionId; + this.__explicitlySet__.add("listingRevisionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("artifactId") + private String artifactId; + + public Builder artifactId(String artifactId) { + this.artifactId = artifactId; + this.__explicitlySet__.add("artifactId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termId") + private String termId; + + public Builder termId(String termId) { + this.termId = termId; + this.__explicitlySet__.add("termId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("packageVersion") + private String packageVersion; + + public Builder packageVersion(String packageVersion) { + this.packageVersion = packageVersion; + this.__explicitlySet__.add("packageVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private ListingRevisionPackage.LifecycleState lifecycleState; + + public Builder lifecycleState(ListingRevisionPackage.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("status") + private ListingRevisionPackage.Status status; + + public Builder status(ListingRevisionPackage.Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("areSecurityUpgradesProvided") + private Boolean areSecurityUpgradesProvided; + + public Builder areSecurityUpgradesProvided(Boolean areSecurityUpgradesProvided) { + this.areSecurityUpgradesProvided = areSecurityUpgradesProvided; + this.__explicitlySet__.add("areSecurityUpgradesProvided"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") + private Boolean isDefault; + + public Builder isDefault(Boolean isDefault) { + this.isDefault = isDefault; + this.__explicitlySet__.add("isDefault"); + 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("extendedMetadata") + private java.util.Map extendedMetadata; + + public Builder extendedMetadata(java.util.Map extendedMetadata) { + this.extendedMetadata = extendedMetadata; + this.__explicitlySet__.add("extendedMetadata"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdminHelmChartPackage build() { + AdminHelmChartPackage model = + new AdminHelmChartPackage( + this.id, + this.legacyId, + this.displayName, + this.description, + this.listingRevisionId, + this.compartmentId, + this.artifactId, + this.termId, + this.packageVersion, + this.lifecycleState, + this.status, + this.areSecurityUpgradesProvided, + this.isDefault, + this.timeCreated, + this.timeUpdated, + this.extendedMetadata, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminHelmChartPackage model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("legacyId")) { + this.legacyId(model.getLegacyId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("listingRevisionId")) { + this.listingRevisionId(model.getListingRevisionId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("artifactId")) { + this.artifactId(model.getArtifactId()); + } + if (model.wasPropertyExplicitlySet("termId")) { + this.termId(model.getTermId()); + } + if (model.wasPropertyExplicitlySet("packageVersion")) { + this.packageVersion(model.getPackageVersion()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("areSecurityUpgradesProvided")) { + this.areSecurityUpgradesProvided(model.getAreSecurityUpgradesProvided()); + } + if (model.wasPropertyExplicitlySet("isDefault")) { + this.isDefault(model.getIsDefault()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("extendedMetadata")) { + this.extendedMetadata(model.getExtendedMetadata()); + } + 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); + } + + @Deprecated + public AdminHelmChartPackage( + String id, + String legacyId, + String displayName, + String description, + String listingRevisionId, + String compartmentId, + String artifactId, + String termId, + String packageVersion, + ListingRevisionPackage.LifecycleState lifecycleState, + ListingRevisionPackage.Status status, + Boolean areSecurityUpgradesProvided, + Boolean isDefault, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map extendedMetadata, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super( + id, + legacyId, + displayName, + description, + listingRevisionId, + compartmentId, + artifactId, + termId, + packageVersion, + lifecycleState, + status, + areSecurityUpgradesProvided, + isDefault, + timeCreated, + timeUpdated, + extendedMetadata, + freeformTags, + definedTags, + 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("AdminHelmChartPackage("); + 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 AdminHelmChartPackage)) { + return false; + } + + AdminHelmChartPackage other = (AdminHelmChartPackage) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminKubernetesImageArtifact.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminKubernetesImageArtifact.java new file mode 100644 index 00000000000..d15275882ca --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminKubernetesImageArtifact.java @@ -0,0 +1,364 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Kubernetes HelmChart Image artifact 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: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminKubernetesImageArtifact.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "artifactType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminKubernetesImageArtifact extends AdminArtifact { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private String legacyId; + + public Builder legacyId(String legacyId) { + this.legacyId = legacyId; + this.__explicitlySet__.add("legacyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Artifact.Status status; + + public Builder status(Artifact.Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("statusNotes") + private String statusNotes; + + public Builder statusNotes(String statusNotes) { + this.statusNotes = statusNotes; + this.__explicitlySet__.add("statusNotes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private Artifact.LifecycleState lifecycleState; + + public Builder lifecycleState(Artifact.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + 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("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("publisherId") + private String publisherId; + + public Builder publisherId(String publisherId) { + this.publisherId = publisherId; + this.__explicitlySet__.add("publisherId"); + 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("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("helmChart") + private HelmChartImageDetails helmChart; + + public Builder helmChart(HelmChartImageDetails helmChart) { + this.helmChart = helmChart; + this.__explicitlySet__.add("helmChart"); + return this; + } + /** List of container image artifact unique identifiers included in the helm chart. */ + @com.fasterxml.jackson.annotation.JsonProperty("containerImageArtifactIds") + private java.util.List containerImageArtifactIds; + + /** + * List of container image artifact unique identifiers included in the helm chart. + * + * @param containerImageArtifactIds the value to set + * @return this builder + */ + public Builder containerImageArtifactIds(java.util.List containerImageArtifactIds) { + this.containerImageArtifactIds = containerImageArtifactIds; + this.__explicitlySet__.add("containerImageArtifactIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdminKubernetesImageArtifact build() { + AdminKubernetesImageArtifact model = + new AdminKubernetesImageArtifact( + this.id, + this.legacyId, + this.displayName, + this.status, + this.statusNotes, + this.lifecycleState, + this.timeCreated, + this.compartmentId, + this.publisherId, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags, + this.helmChart, + this.containerImageArtifactIds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminKubernetesImageArtifact model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("legacyId")) { + this.legacyId(model.getLegacyId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("statusNotes")) { + this.statusNotes(model.getStatusNotes()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("publisherId")) { + this.publisherId(model.getPublisherId()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("helmChart")) { + this.helmChart(model.getHelmChart()); + } + if (model.wasPropertyExplicitlySet("containerImageArtifactIds")) { + this.containerImageArtifactIds(model.getContainerImageArtifactIds()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public AdminKubernetesImageArtifact( + String id, + String legacyId, + String displayName, + Artifact.Status status, + String statusNotes, + Artifact.LifecycleState lifecycleState, + java.util.Date timeCreated, + String compartmentId, + String publisherId, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + HelmChartImageDetails helmChart, + java.util.List containerImageArtifactIds) { + super( + id, + legacyId, + displayName, + status, + statusNotes, + lifecycleState, + timeCreated, + compartmentId, + publisherId, + timeUpdated, + freeformTags, + definedTags, + systemTags); + this.helmChart = helmChart; + this.containerImageArtifactIds = containerImageArtifactIds; + } + + @com.fasterxml.jackson.annotation.JsonProperty("helmChart") + private final HelmChartImageDetails helmChart; + + public HelmChartImageDetails getHelmChart() { + return helmChart; + } + + /** List of container image artifact unique identifiers included in the helm chart. */ + @com.fasterxml.jackson.annotation.JsonProperty("containerImageArtifactIds") + private final java.util.List containerImageArtifactIds; + + /** + * List of container image artifact unique identifiers included in the helm chart. + * + * @return the value + */ + public java.util.List getContainerImageArtifactIds() { + return containerImageArtifactIds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AdminKubernetesImageArtifact("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", helmChart=").append(String.valueOf(this.helmChart)); + sb.append(", containerImageArtifactIds=") + .append(String.valueOf(this.containerImageArtifactIds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminKubernetesImageArtifact)) { + return false; + } + + AdminKubernetesImageArtifact other = (AdminKubernetesImageArtifact) o; + return java.util.Objects.equals(this.helmChart, other.helmChart) + && java.util.Objects.equals( + this.containerImageArtifactIds, other.containerImageArtifactIds) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.helmChart == null ? 43 : this.helmChart.hashCode()); + result = + (result * PRIME) + + (this.containerImageArtifactIds == null + ? 43 + : this.containerImageArtifactIds.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminLeadGenListingRevision.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminLeadGenListingRevision.java new file mode 100644 index 00000000000..65d1726c748 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminLeadGenListingRevision.java @@ -0,0 +1,931 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Listing revision details for lead gen listings
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminLeadGenListingRevision.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "listingType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminLeadGenListingRevision extends AdminListingRevision { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private String legacyId; + + public Builder legacyId(String legacyId) { + this.legacyId = legacyId; + this.__explicitlySet__.add("legacyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("listingId") + private String listingId; + + public Builder listingId(String listingId) { + this.listingId = listingId; + this.__explicitlySet__.add("listingId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("publisherId") + private String publisherId; + + public Builder publisherId(String publisherId) { + this.publisherId = publisherId; + this.__explicitlySet__.add("publisherId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("approverId") + private String approverId; + + public Builder approverId(String approverId) { + this.approverId = approverId; + this.__explicitlySet__.add("approverId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("approverEmail") + private String approverEmail; + + public Builder approverEmail(String approverEmail) { + this.approverEmail = approverEmail; + this.__explicitlySet__.add("approverEmail"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("revisionNumber") + private String revisionNumber; + + public Builder revisionNumber(String revisionNumber) { + this.revisionNumber = revisionNumber; + this.__explicitlySet__.add("revisionNumber"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("headline") + private String headline; + + public Builder headline(String headline) { + this.headline = headline; + this.__explicitlySet__.add("headline"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tagline") + private String tagline; + + public Builder tagline(String tagline) { + this.tagline = tagline; + this.__explicitlySet__.add("tagline"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("keywords") + private String keywords; + + public Builder keywords(String keywords) { + this.keywords = keywords; + this.__explicitlySet__.add("keywords"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("shortDescription") + private String shortDescription; + + public Builder shortDescription(String shortDescription) { + this.shortDescription = shortDescription; + this.__explicitlySet__.add("shortDescription"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("usageInformation") + private String usageInformation; + + public Builder usageInformation(String usageInformation) { + this.usageInformation = usageInformation; + this.__explicitlySet__.add("usageInformation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("longDescription") + private String longDescription; + + public Builder longDescription(String longDescription) { + this.longDescription = longDescription; + this.__explicitlySet__.add("longDescription"); + 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("contentLanguage") + private LanguageItem contentLanguage; + + public Builder contentLanguage(LanguageItem contentLanguage) { + this.contentLanguage = contentLanguage; + this.__explicitlySet__.add("contentLanguage"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("supportedlanguages") + private java.util.List supportedlanguages; + + public Builder supportedlanguages(java.util.List supportedlanguages) { + this.supportedlanguages = supportedlanguages; + this.__explicitlySet__.add("supportedlanguages"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("supportContacts") + private java.util.List supportContacts; + + public Builder supportContacts(java.util.List supportContacts) { + this.supportContacts = supportContacts; + this.__explicitlySet__.add("supportContacts"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("supportLinks") + private java.util.List supportLinks; + + public Builder supportLinks(java.util.List supportLinks) { + this.supportLinks = supportLinks; + this.__explicitlySet__.add("supportLinks"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("icon") + private ListingRevisionIconAttachment icon; + + public Builder icon(ListingRevisionIconAttachment icon) { + this.icon = icon; + this.__explicitlySet__.add("icon"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("banner") + private ListingRevisionBannerAttachment banner; + + public Builder banner(ListingRevisionBannerAttachment banner) { + this.banner = banner; + this.__explicitlySet__.add("banner"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("status") + private ListingRevision.Status status; + + public Builder status(ListingRevision.Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("statusNotes") + private String statusNotes; + + public Builder statusNotes(String statusNotes) { + this.statusNotes = statusNotes; + this.__explicitlySet__.add("statusNotes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private ListingRevision.LifecycleState lifecycleState; + + public Builder lifecycleState(ListingRevision.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("packageType") + private PackageType packageType; + + public Builder packageType(PackageType packageType) { + this.packageType = packageType; + this.__explicitlySet__.add("packageType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("extendedMetadata") + private java.util.Map extendedMetadata; + + public Builder extendedMetadata(java.util.Map extendedMetadata) { + this.extendedMetadata = extendedMetadata; + this.__explicitlySet__.add("extendedMetadata"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("versionDetails") + private VersionDetails versionDetails; + + public Builder versionDetails(VersionDetails versionDetails) { + this.versionDetails = versionDetails; + this.__explicitlySet__.add("versionDetails"); + return this; + } + /** System requirements for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRequirements") + private String systemRequirements; + + /** + * System requirements for the listing revision. + * + * @param systemRequirements the value to set + * @return this builder + */ + public Builder systemRequirements(String systemRequirements) { + this.systemRequirements = systemRequirements; + this.__explicitlySet__.add("systemRequirements"); + return this; + } + /** The pricing model for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("pricingType") + private OciListingRevision.PricingType pricingType; + + /** + * The pricing model for the listing revision. + * + * @param pricingType the value to set + * @return this builder + */ + public Builder pricingType(OciListingRevision.PricingType pricingType) { + this.pricingType = pricingType; + this.__explicitlySet__.add("pricingType"); + return this; + } + /** Url to demo of the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("demoUrl") + private String demoUrl; + + /** + * Url to demo of the listing + * + * @param demoUrl the value to set + * @return this builder + */ + public Builder demoUrl(String demoUrl) { + this.demoUrl = demoUrl; + this.__explicitlySet__.add("demoUrl"); + return this; + } + /** Url to training resources of the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("selfPacedTrainingUrl") + private String selfPacedTrainingUrl; + + /** + * Url to training resources of the listing + * + * @param selfPacedTrainingUrl the value to set + * @return this builder + */ + public Builder selfPacedTrainingUrl(String selfPacedTrainingUrl) { + this.selfPacedTrainingUrl = selfPacedTrainingUrl; + this.__explicitlySet__.add("selfPacedTrainingUrl"); + return this; + } + /** OCIDs of service listings attached to lead gen listing */ + @com.fasterxml.jackson.annotation.JsonProperty("recommendedServiceProviderListingIds") + private java.util.List recommendedServiceProviderListingIds; + + /** + * OCIDs of service listings attached to lead gen listing + * + * @param recommendedServiceProviderListingIds the value to set + * @return this builder + */ + public Builder recommendedServiceProviderListingIds( + java.util.List recommendedServiceProviderListingIds) { + this.recommendedServiceProviderListingIds = recommendedServiceProviderListingIds; + this.__explicitlySet__.add("recommendedServiceProviderListingIds"); + return this; + } + /** Custom link to the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("vanityUrl") + private String vanityUrl; + + /** + * Custom link to the listing + * + * @param vanityUrl the value to set + * @return this builder + */ + public Builder vanityUrl(String vanityUrl) { + this.vanityUrl = vanityUrl; + this.__explicitlySet__.add("vanityUrl"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("downloadInfo") + private DownloadInfo downloadInfo; + + public Builder downloadInfo(DownloadInfo downloadInfo) { + this.downloadInfo = downloadInfo; + this.__explicitlySet__.add("downloadInfo"); + return this; + } + /** Pricing details for lead gen listing */ + @com.fasterxml.jackson.annotation.JsonProperty("pricingPlans") + private String pricingPlans; + + /** + * Pricing details for lead gen listing + * + * @param pricingPlans the value to set + * @return this builder + */ + public Builder pricingPlans(String pricingPlans) { + this.pricingPlans = pricingPlans; + this.__explicitlySet__.add("pricingPlans"); + return this; + } + /** List of Products subscribed by listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("products") + private java.util.List products; + + /** + * List of Products subscribed by listing. + * + * @param products the value to set + * @return this builder + */ + public Builder products(java.util.List products) { + this.products = products; + this.__explicitlySet__.add("products"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdminLeadGenListingRevision build() { + AdminLeadGenListingRevision model = + new AdminLeadGenListingRevision( + this.id, + this.legacyId, + this.listingId, + this.compartmentId, + this.publisherId, + this.approverId, + this.approverEmail, + this.displayName, + this.revisionNumber, + this.headline, + this.tagline, + this.keywords, + this.shortDescription, + this.usageInformation, + this.longDescription, + this.timeCreated, + this.timeUpdated, + this.contentLanguage, + this.supportedlanguages, + this.supportContacts, + this.supportLinks, + this.icon, + this.banner, + this.status, + this.statusNotes, + this.lifecycleState, + this.packageType, + this.extendedMetadata, + this.freeformTags, + this.definedTags, + this.systemTags, + this.versionDetails, + this.systemRequirements, + this.pricingType, + this.demoUrl, + this.selfPacedTrainingUrl, + this.recommendedServiceProviderListingIds, + this.vanityUrl, + this.downloadInfo, + this.pricingPlans, + this.products); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminLeadGenListingRevision model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("legacyId")) { + this.legacyId(model.getLegacyId()); + } + if (model.wasPropertyExplicitlySet("listingId")) { + this.listingId(model.getListingId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("publisherId")) { + this.publisherId(model.getPublisherId()); + } + if (model.wasPropertyExplicitlySet("approverId")) { + this.approverId(model.getApproverId()); + } + if (model.wasPropertyExplicitlySet("approverEmail")) { + this.approverEmail(model.getApproverEmail()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("revisionNumber")) { + this.revisionNumber(model.getRevisionNumber()); + } + if (model.wasPropertyExplicitlySet("headline")) { + this.headline(model.getHeadline()); + } + if (model.wasPropertyExplicitlySet("tagline")) { + this.tagline(model.getTagline()); + } + if (model.wasPropertyExplicitlySet("keywords")) { + this.keywords(model.getKeywords()); + } + if (model.wasPropertyExplicitlySet("shortDescription")) { + this.shortDescription(model.getShortDescription()); + } + if (model.wasPropertyExplicitlySet("usageInformation")) { + this.usageInformation(model.getUsageInformation()); + } + if (model.wasPropertyExplicitlySet("longDescription")) { + this.longDescription(model.getLongDescription()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("contentLanguage")) { + this.contentLanguage(model.getContentLanguage()); + } + if (model.wasPropertyExplicitlySet("supportedlanguages")) { + this.supportedlanguages(model.getSupportedlanguages()); + } + if (model.wasPropertyExplicitlySet("supportContacts")) { + this.supportContacts(model.getSupportContacts()); + } + if (model.wasPropertyExplicitlySet("supportLinks")) { + this.supportLinks(model.getSupportLinks()); + } + if (model.wasPropertyExplicitlySet("icon")) { + this.icon(model.getIcon()); + } + if (model.wasPropertyExplicitlySet("banner")) { + this.banner(model.getBanner()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("statusNotes")) { + this.statusNotes(model.getStatusNotes()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("packageType")) { + this.packageType(model.getPackageType()); + } + if (model.wasPropertyExplicitlySet("extendedMetadata")) { + this.extendedMetadata(model.getExtendedMetadata()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("versionDetails")) { + this.versionDetails(model.getVersionDetails()); + } + if (model.wasPropertyExplicitlySet("systemRequirements")) { + this.systemRequirements(model.getSystemRequirements()); + } + if (model.wasPropertyExplicitlySet("pricingType")) { + this.pricingType(model.getPricingType()); + } + if (model.wasPropertyExplicitlySet("demoUrl")) { + this.demoUrl(model.getDemoUrl()); + } + if (model.wasPropertyExplicitlySet("selfPacedTrainingUrl")) { + this.selfPacedTrainingUrl(model.getSelfPacedTrainingUrl()); + } + if (model.wasPropertyExplicitlySet("recommendedServiceProviderListingIds")) { + this.recommendedServiceProviderListingIds( + model.getRecommendedServiceProviderListingIds()); + } + if (model.wasPropertyExplicitlySet("vanityUrl")) { + this.vanityUrl(model.getVanityUrl()); + } + if (model.wasPropertyExplicitlySet("downloadInfo")) { + this.downloadInfo(model.getDownloadInfo()); + } + if (model.wasPropertyExplicitlySet("pricingPlans")) { + this.pricingPlans(model.getPricingPlans()); + } + if (model.wasPropertyExplicitlySet("products")) { + this.products(model.getProducts()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public AdminLeadGenListingRevision( + String id, + String legacyId, + String listingId, + String compartmentId, + String publisherId, + String approverId, + String approverEmail, + String displayName, + String revisionNumber, + String headline, + String tagline, + String keywords, + String shortDescription, + String usageInformation, + String longDescription, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LanguageItem contentLanguage, + java.util.List supportedlanguages, + java.util.List supportContacts, + java.util.List supportLinks, + ListingRevisionIconAttachment icon, + ListingRevisionBannerAttachment banner, + ListingRevision.Status status, + String statusNotes, + ListingRevision.LifecycleState lifecycleState, + PackageType packageType, + java.util.Map extendedMetadata, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + VersionDetails versionDetails, + String systemRequirements, + OciListingRevision.PricingType pricingType, + String demoUrl, + String selfPacedTrainingUrl, + java.util.List recommendedServiceProviderListingIds, + String vanityUrl, + DownloadInfo downloadInfo, + String pricingPlans, + java.util.List products) { + super( + id, + legacyId, + listingId, + compartmentId, + publisherId, + approverId, + approverEmail, + displayName, + revisionNumber, + headline, + tagline, + keywords, + shortDescription, + usageInformation, + longDescription, + timeCreated, + timeUpdated, + contentLanguage, + supportedlanguages, + supportContacts, + supportLinks, + icon, + banner, + status, + statusNotes, + lifecycleState, + packageType, + extendedMetadata, + freeformTags, + definedTags, + systemTags); + this.versionDetails = versionDetails; + this.systemRequirements = systemRequirements; + this.pricingType = pricingType; + this.demoUrl = demoUrl; + this.selfPacedTrainingUrl = selfPacedTrainingUrl; + this.recommendedServiceProviderListingIds = recommendedServiceProviderListingIds; + this.vanityUrl = vanityUrl; + this.downloadInfo = downloadInfo; + this.pricingPlans = pricingPlans; + this.products = products; + } + + @com.fasterxml.jackson.annotation.JsonProperty("versionDetails") + private final VersionDetails versionDetails; + + public VersionDetails getVersionDetails() { + return versionDetails; + } + + /** System requirements for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRequirements") + private final String systemRequirements; + + /** + * System requirements for the listing revision. + * + * @return the value + */ + public String getSystemRequirements() { + return systemRequirements; + } + + /** The pricing model for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("pricingType") + private final OciListingRevision.PricingType pricingType; + + /** + * The pricing model for the listing revision. + * + * @return the value + */ + public OciListingRevision.PricingType getPricingType() { + return pricingType; + } + + /** Url to demo of the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("demoUrl") + private final String demoUrl; + + /** + * Url to demo of the listing + * + * @return the value + */ + public String getDemoUrl() { + return demoUrl; + } + + /** Url to training resources of the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("selfPacedTrainingUrl") + private final String selfPacedTrainingUrl; + + /** + * Url to training resources of the listing + * + * @return the value + */ + public String getSelfPacedTrainingUrl() { + return selfPacedTrainingUrl; + } + + /** OCIDs of service listings attached to lead gen listing */ + @com.fasterxml.jackson.annotation.JsonProperty("recommendedServiceProviderListingIds") + private final java.util.List recommendedServiceProviderListingIds; + + /** + * OCIDs of service listings attached to lead gen listing + * + * @return the value + */ + public java.util.List getRecommendedServiceProviderListingIds() { + return recommendedServiceProviderListingIds; + } + + /** Custom link to the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("vanityUrl") + private final String vanityUrl; + + /** + * Custom link to the listing + * + * @return the value + */ + public String getVanityUrl() { + return vanityUrl; + } + + @com.fasterxml.jackson.annotation.JsonProperty("downloadInfo") + private final DownloadInfo downloadInfo; + + public DownloadInfo getDownloadInfo() { + return downloadInfo; + } + + /** Pricing details for lead gen listing */ + @com.fasterxml.jackson.annotation.JsonProperty("pricingPlans") + private final String pricingPlans; + + /** + * Pricing details for lead gen listing + * + * @return the value + */ + public String getPricingPlans() { + return pricingPlans; + } + + /** List of Products subscribed by listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("products") + private final java.util.List products; + + /** + * List of Products subscribed by listing. + * + * @return the value + */ + public java.util.List getProducts() { + return products; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AdminLeadGenListingRevision("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", versionDetails=").append(String.valueOf(this.versionDetails)); + sb.append(", systemRequirements=").append(String.valueOf(this.systemRequirements)); + sb.append(", pricingType=").append(String.valueOf(this.pricingType)); + sb.append(", demoUrl=").append(String.valueOf(this.demoUrl)); + sb.append(", selfPacedTrainingUrl=").append(String.valueOf(this.selfPacedTrainingUrl)); + sb.append(", recommendedServiceProviderListingIds=") + .append(String.valueOf(this.recommendedServiceProviderListingIds)); + sb.append(", vanityUrl=").append(String.valueOf(this.vanityUrl)); + sb.append(", downloadInfo=").append(String.valueOf(this.downloadInfo)); + sb.append(", pricingPlans=").append(String.valueOf(this.pricingPlans)); + sb.append(", products=").append(String.valueOf(this.products)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminLeadGenListingRevision)) { + return false; + } + + AdminLeadGenListingRevision other = (AdminLeadGenListingRevision) o; + return java.util.Objects.equals(this.versionDetails, other.versionDetails) + && java.util.Objects.equals(this.systemRequirements, other.systemRequirements) + && java.util.Objects.equals(this.pricingType, other.pricingType) + && java.util.Objects.equals(this.demoUrl, other.demoUrl) + && java.util.Objects.equals(this.selfPacedTrainingUrl, other.selfPacedTrainingUrl) + && java.util.Objects.equals( + this.recommendedServiceProviderListingIds, + other.recommendedServiceProviderListingIds) + && java.util.Objects.equals(this.vanityUrl, other.vanityUrl) + && java.util.Objects.equals(this.downloadInfo, other.downloadInfo) + && java.util.Objects.equals(this.pricingPlans, other.pricingPlans) + && java.util.Objects.equals(this.products, other.products) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.versionDetails == null ? 43 : this.versionDetails.hashCode()); + result = + (result * PRIME) + + (this.systemRequirements == null + ? 43 + : this.systemRequirements.hashCode()); + result = (result * PRIME) + (this.pricingType == null ? 43 : this.pricingType.hashCode()); + result = (result * PRIME) + (this.demoUrl == null ? 43 : this.demoUrl.hashCode()); + result = + (result * PRIME) + + (this.selfPacedTrainingUrl == null + ? 43 + : this.selfPacedTrainingUrl.hashCode()); + result = + (result * PRIME) + + (this.recommendedServiceProviderListingIds == null + ? 43 + : this.recommendedServiceProviderListingIds.hashCode()); + result = (result * PRIME) + (this.vanityUrl == null ? 43 : this.vanityUrl.hashCode()); + result = (result * PRIME) + (this.downloadInfo == null ? 43 : this.downloadInfo.hashCode()); + result = (result * PRIME) + (this.pricingPlans == null ? 43 : this.pricingPlans.hashCode()); + result = (result * PRIME) + (this.products == null ? 43 : this.products.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListing.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListing.java new file mode 100644 index 00000000000..148777c1cd5 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListing.java @@ -0,0 +1,790 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * The model for the Admin Marketplace Publisher listing.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AdminListing.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminListing extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "legacyId", + "compartmentId", + "publisherId", + "listingType", + "name", + "packageType", + "extendedMetadata", + "lifecycleState", + "parts", + "timeCreated", + "timeUpdated", + "isFeatured", + "freeformTags", + "definedTags", + "systemTags" + }) + public AdminListing( + String id, + String legacyId, + String compartmentId, + String publisherId, + ListingType listingType, + String name, + PackageType packageType, + java.util.Map extendedMetadata, + Listing.LifecycleState lifecycleState, + java.util.List parts, + java.util.Date timeCreated, + java.util.Date timeUpdated, + Boolean isFeatured, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.legacyId = legacyId; + this.compartmentId = compartmentId; + this.publisherId = publisherId; + this.listingType = listingType; + this.name = name; + this.packageType = packageType; + this.extendedMetadata = extendedMetadata; + this.lifecycleState = lifecycleState; + this.parts = parts; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.isFeatured = isFeatured; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique OCID identifier for the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique OCID identifier for the listing. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The unique legacy identifier for the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private String legacyId; + + /** + * The unique legacy identifier for the listing. + * + * @param legacyId the value to set + * @return this builder + */ + public Builder legacyId(String legacyId) { + this.legacyId = legacyId; + this.__explicitlySet__.add("legacyId"); + return this; + } + /** The unique identifier for the compartment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The unique identifier for 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 unique identifier for the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("publisherId") + private String publisherId; + + /** + * The unique identifier for the publisher. + * + * @param publisherId the value to set + * @return this builder + */ + public Builder publisherId(String publisherId) { + this.publisherId = publisherId; + this.__explicitlySet__.add("publisherId"); + return this; + } + /** The listing type for the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("listingType") + private ListingType listingType; + + /** + * The listing type for the listing. + * + * @param listingType the value to set + * @return this builder + */ + public Builder listingType(ListingType listingType) { + this.listingType = listingType; + this.__explicitlySet__.add("listingType"); + return this; + } + /** Name for the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Name for the listing. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** The package type for the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("packageType") + private PackageType packageType; + + /** + * The package type for the listing. + * + * @param packageType the value to set + * @return this builder + */ + public Builder packageType(PackageType packageType) { + this.packageType = packageType; + this.__explicitlySet__.add("packageType"); + return this; + } + /** + * Additional metadata key/value pairs for the listing summary. + * + *

    For example: + * + *

    {@code {"listingRevisionStatus": "Published","listingRevision": "1" }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("extendedMetadata") + private java.util.Map extendedMetadata; + + /** + * Additional metadata key/value pairs for the listing summary. + * + *

    For example: + * + *

    {@code {"listingRevisionStatus": "Published","listingRevision": "1" }} + * + * @param extendedMetadata the value to set + * @return this builder + */ + public Builder extendedMetadata(java.util.Map extendedMetadata) { + this.extendedMetadata = extendedMetadata; + this.__explicitlySet__.add("extendedMetadata"); + return this; + } + /** The current state of the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private Listing.LifecycleState lifecycleState; + + /** + * The current state of the listing revision. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(Listing.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** List of parts provider by marketplace admin. */ + @com.fasterxml.jackson.annotation.JsonProperty("parts") + private java.util.List parts; + + /** + * List of parts provider by marketplace admin. + * + * @param parts the value to set + * @return this builder + */ + public Builder parts(java.util.List parts) { + this.parts = parts; + this.__explicitlySet__.add("parts"); + return this; + } + /** + * The date and time the listing was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

    Example: {@code 2023-03-27T21: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 listing was updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

    Example: {@code 2023-03-27T21: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; + } + /** Indicates whether the listing is featured. */ + @com.fasterxml.jackson.annotation.JsonProperty("isFeatured") + private Boolean isFeatured; + + /** + * Indicates whether the listing is featured. + * + * @param isFeatured the value to set + * @return this builder + */ + public Builder isFeatured(Boolean isFeatured) { + this.isFeatured = isFeatured; + this.__explicitlySet__.add("isFeatured"); + 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; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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 AdminListing build() { + AdminListing model = + new AdminListing( + this.id, + this.legacyId, + this.compartmentId, + this.publisherId, + this.listingType, + this.name, + this.packageType, + this.extendedMetadata, + this.lifecycleState, + this.parts, + this.timeCreated, + this.timeUpdated, + this.isFeatured, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminListing model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("legacyId")) { + this.legacyId(model.getLegacyId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("publisherId")) { + this.publisherId(model.getPublisherId()); + } + if (model.wasPropertyExplicitlySet("listingType")) { + this.listingType(model.getListingType()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("packageType")) { + this.packageType(model.getPackageType()); + } + if (model.wasPropertyExplicitlySet("extendedMetadata")) { + this.extendedMetadata(model.getExtendedMetadata()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("parts")) { + this.parts(model.getParts()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("isFeatured")) { + this.isFeatured(model.getIsFeatured()); + } + 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); + } + + /** Unique OCID identifier for the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique OCID identifier for the listing. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The unique legacy identifier for the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private final String legacyId; + + /** + * The unique legacy identifier for the listing. + * + * @return the value + */ + public String getLegacyId() { + return legacyId; + } + + /** The unique identifier for the compartment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The unique identifier for the compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The unique identifier for the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("publisherId") + private final String publisherId; + + /** + * The unique identifier for the publisher. + * + * @return the value + */ + public String getPublisherId() { + return publisherId; + } + + /** The listing type for the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("listingType") + private final ListingType listingType; + + /** + * The listing type for the listing. + * + * @return the value + */ + public ListingType getListingType() { + return listingType; + } + + /** Name for the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name for the listing. + * + * @return the value + */ + public String getName() { + return name; + } + + /** The package type for the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("packageType") + private final PackageType packageType; + + /** + * The package type for the listing. + * + * @return the value + */ + public PackageType getPackageType() { + return packageType; + } + + /** + * Additional metadata key/value pairs for the listing summary. + * + *

    For example: + * + *

    {@code {"listingRevisionStatus": "Published","listingRevision": "1" }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("extendedMetadata") + private final java.util.Map extendedMetadata; + + /** + * Additional metadata key/value pairs for the listing summary. + * + *

    For example: + * + *

    {@code {"listingRevisionStatus": "Published","listingRevision": "1" }} + * + * @return the value + */ + public java.util.Map getExtendedMetadata() { + return extendedMetadata; + } + + /** The current state of the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final Listing.LifecycleState lifecycleState; + + /** + * The current state of the listing revision. + * + * @return the value + */ + public Listing.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** List of parts provider by marketplace admin. */ + @com.fasterxml.jackson.annotation.JsonProperty("parts") + private final java.util.List parts; + + /** + * List of parts provider by marketplace admin. + * + * @return the value + */ + public java.util.List getParts() { + return parts; + } + + /** + * The date and time the listing was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

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

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

    Example: {@code 2023-03-27T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Indicates whether the listing is featured. */ + @com.fasterxml.jackson.annotation.JsonProperty("isFeatured") + private final Boolean isFeatured; + + /** + * Indicates whether the listing is featured. + * + * @return the value + */ + public Boolean getIsFeatured() { + return isFeatured; + } + + /** + * 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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("AdminListing("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", legacyId=").append(String.valueOf(this.legacyId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", publisherId=").append(String.valueOf(this.publisherId)); + sb.append(", listingType=").append(String.valueOf(this.listingType)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", packageType=").append(String.valueOf(this.packageType)); + sb.append(", extendedMetadata=").append(String.valueOf(this.extendedMetadata)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", parts=").append(String.valueOf(this.parts)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", isFeatured=").append(String.valueOf(this.isFeatured)); + 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 AdminListing)) { + return false; + } + + AdminListing other = (AdminListing) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.legacyId, other.legacyId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.publisherId, other.publisherId) + && java.util.Objects.equals(this.listingType, other.listingType) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.packageType, other.packageType) + && java.util.Objects.equals(this.extendedMetadata, other.extendedMetadata) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.parts, other.parts) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.isFeatured, other.isFeatured) + && 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.legacyId == null ? 43 : this.legacyId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.publisherId == null ? 43 : this.publisherId.hashCode()); + result = (result * PRIME) + (this.listingType == null ? 43 : this.listingType.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.packageType == null ? 43 : this.packageType.hashCode()); + result = + (result * PRIME) + + (this.extendedMetadata == null ? 43 : this.extendedMetadata.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.parts == null ? 43 : this.parts.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.isFeatured == null ? 43 : this.isFeatured.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingProduct.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingProduct.java new file mode 100644 index 00000000000..712c7f92457 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingProduct.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.marketplacepublisher.model; + +/** + * Products associated with listing.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminListingProduct.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminListingProduct + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "code", + "categories", + "productGroup", + "productName", + "additionalFilters" + }) + public AdminListingProduct( + String code, + java.util.List categories, + String productGroup, + String productName, + java.util.List additionalFilters) { + super(); + this.code = code; + this.categories = categories; + this.productGroup = productGroup; + this.productName = productName; + this.additionalFilters = additionalFilters; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Product Code */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private String code; + + /** + * Product Code + * + * @param code the value to set + * @return this builder + */ + public Builder code(String code) { + this.code = code; + this.__explicitlySet__.add("code"); + return this; + } + /** List of category codes within a Product which are applicable to the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("categories") + private java.util.List categories; + + /** + * List of category codes within a Product which are applicable to the listing revision. + * + * @param categories the value to set + * @return this builder + */ + public Builder categories(java.util.List categories) { + this.categories = categories; + this.__explicitlySet__.add("categories"); + return this; + } + /** The product group for the product. */ + @com.fasterxml.jackson.annotation.JsonProperty("productGroup") + private String productGroup; + + /** + * The product group for the product. + * + * @param productGroup the value to set + * @return this builder + */ + public Builder productGroup(String productGroup) { + this.productGroup = productGroup; + this.__explicitlySet__.add("productGroup"); + return this; + } + /** The product name for the product. */ + @com.fasterxml.jackson.annotation.JsonProperty("productName") + private String productName; + + /** + * The product name for the product. + * + * @param productName the value to set + * @return this builder + */ + public Builder productName(String productName) { + this.productName = productName; + this.__explicitlySet__.add("productName"); + return this; + } + /** Custom filter for the product */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalFilters") + private java.util.List additionalFilters; + + /** + * Custom filter for the product + * + * @param additionalFilters the value to set + * @return this builder + */ + public Builder additionalFilters( + java.util.List additionalFilters) { + this.additionalFilters = additionalFilters; + this.__explicitlySet__.add("additionalFilters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdminListingProduct build() { + AdminListingProduct model = + new AdminListingProduct( + this.code, + this.categories, + this.productGroup, + this.productName, + this.additionalFilters); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminListingProduct model) { + if (model.wasPropertyExplicitlySet("code")) { + this.code(model.getCode()); + } + if (model.wasPropertyExplicitlySet("categories")) { + this.categories(model.getCategories()); + } + if (model.wasPropertyExplicitlySet("productGroup")) { + this.productGroup(model.getProductGroup()); + } + if (model.wasPropertyExplicitlySet("productName")) { + this.productName(model.getProductName()); + } + if (model.wasPropertyExplicitlySet("additionalFilters")) { + this.additionalFilters(model.getAdditionalFilters()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Product Code */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private final String code; + + /** + * Product Code + * + * @return the value + */ + public String getCode() { + return code; + } + + /** List of category codes within a Product which are applicable to the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("categories") + private final java.util.List categories; + + /** + * List of category codes within a Product which are applicable to the listing revision. + * + * @return the value + */ + public java.util.List getCategories() { + return categories; + } + + /** The product group for the product. */ + @com.fasterxml.jackson.annotation.JsonProperty("productGroup") + private final String productGroup; + + /** + * The product group for the product. + * + * @return the value + */ + public String getProductGroup() { + return productGroup; + } + + /** The product name for the product. */ + @com.fasterxml.jackson.annotation.JsonProperty("productName") + private final String productName; + + /** + * The product name for the product. + * + * @return the value + */ + public String getProductName() { + return productName; + } + + /** Custom filter for the product */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalFilters") + private final java.util.List additionalFilters; + + /** + * Custom filter for the product + * + * @return the value + */ + public java.util.List getAdditionalFilters() { + return additionalFilters; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AdminListingProduct("); + sb.append("super=").append(super.toString()); + sb.append("code=").append(String.valueOf(this.code)); + sb.append(", categories=").append(String.valueOf(this.categories)); + sb.append(", productGroup=").append(String.valueOf(this.productGroup)); + sb.append(", productName=").append(String.valueOf(this.productName)); + sb.append(", additionalFilters=").append(String.valueOf(this.additionalFilters)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminListingProduct)) { + return false; + } + + AdminListingProduct other = (AdminListingProduct) o; + return java.util.Objects.equals(this.code, other.code) + && java.util.Objects.equals(this.categories, other.categories) + && java.util.Objects.equals(this.productGroup, other.productGroup) + && java.util.Objects.equals(this.productName, other.productName) + && java.util.Objects.equals(this.additionalFilters, other.additionalFilters) + && 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.categories == null ? 43 : this.categories.hashCode()); + result = (result * PRIME) + (this.productGroup == null ? 43 : this.productGroup.hashCode()); + result = (result * PRIME) + (this.productName == null ? 43 : this.productName.hashCode()); + result = + (result * PRIME) + + (this.additionalFilters == null ? 43 : this.additionalFilters.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevision.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevision.java new file mode 100644 index 00000000000..9aba299bf92 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevision.java @@ -0,0 +1,705 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * The model for an Oracle Cloud Infrastructure Marketplace Publisher listing revision.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "listingType", + defaultImpl = AdminListingRevision.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = AdminServiceListingRevision.class, + name = "SERVICE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = AdminAiAgentListingRevision.class, + name = "AI_AGENT"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = AdminOciListingRevision.class, + name = "OCI_APPLICATION"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = AdminLeadGenListingRevision.class, + name = "LEAD_GENERATION") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class AdminListingRevision + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "legacyId", + "listingId", + "compartmentId", + "publisherId", + "approverId", + "approverEmail", + "displayName", + "revisionNumber", + "headline", + "tagline", + "keywords", + "shortDescription", + "usageInformation", + "longDescription", + "timeCreated", + "timeUpdated", + "contentLanguage", + "supportedlanguages", + "supportContacts", + "supportLinks", + "icon", + "banner", + "status", + "statusNotes", + "lifecycleState", + "packageType", + "extendedMetadata", + "freeformTags", + "definedTags", + "systemTags" + }) + protected AdminListingRevision( + String id, + String legacyId, + String listingId, + String compartmentId, + String publisherId, + String approverId, + String approverEmail, + String displayName, + String revisionNumber, + String headline, + String tagline, + String keywords, + String shortDescription, + String usageInformation, + String longDescription, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LanguageItem contentLanguage, + java.util.List supportedlanguages, + java.util.List supportContacts, + java.util.List supportLinks, + ListingRevisionIconAttachment icon, + ListingRevisionBannerAttachment banner, + ListingRevision.Status status, + String statusNotes, + ListingRevision.LifecycleState lifecycleState, + PackageType packageType, + java.util.Map extendedMetadata, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.legacyId = legacyId; + this.listingId = listingId; + this.compartmentId = compartmentId; + this.publisherId = publisherId; + this.approverId = approverId; + this.approverEmail = approverEmail; + this.displayName = displayName; + this.revisionNumber = revisionNumber; + this.headline = headline; + this.tagline = tagline; + this.keywords = keywords; + this.shortDescription = shortDescription; + this.usageInformation = usageInformation; + this.longDescription = longDescription; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.contentLanguage = contentLanguage; + this.supportedlanguages = supportedlanguages; + this.supportContacts = supportContacts; + this.supportLinks = supportLinks; + this.icon = icon; + this.banner = banner; + this.status = status; + this.statusNotes = statusNotes; + this.lifecycleState = lifecycleState; + this.packageType = packageType; + this.extendedMetadata = extendedMetadata; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + /** The OCID for the listing revision in Marketplace Publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID for the listing revision in Marketplace Publisher. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The unique legacy identifier for the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private final String legacyId; + + /** + * The unique legacy identifier for the listing. + * + * @return the value + */ + public String getLegacyId() { + return legacyId; + } + + /** The unique identifier for the listing this revision belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("listingId") + private final String listingId; + + /** + * The unique identifier for the listing this revision belongs to. + * + * @return the value + */ + public String getListingId() { + return listingId; + } + + /** The unique identifier for the compartment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The unique identifier for the compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The OCID for the publisher in Marketplace Publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("publisherId") + private final String publisherId; + + /** + * The OCID for the publisher in Marketplace Publisher. + * + * @return the value + */ + public String getPublisherId() { + return publisherId; + } + + /** The user OCID of the administrator who approved the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("approverId") + private final String approverId; + + /** + * The user OCID of the administrator who approved the listing revision. + * + * @return the value + */ + public String getApproverId() { + return approverId; + } + + /** The email address of the administrator who approved the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("approverEmail") + private final String approverEmail; + + /** + * The email address of the administrator who approved the listing revision. + * + * @return the value + */ + public String getApproverEmail() { + return approverEmail; + } + + /** The name for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The name for the listing revision. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The revision number of the listing revision. This is an internal attribute */ + @com.fasterxml.jackson.annotation.JsonProperty("revisionNumber") + private final String revisionNumber; + + /** + * The revision number of the listing revision. This is an internal attribute + * + * @return the value + */ + public String getRevisionNumber() { + return revisionNumber; + } + + /** Single line introduction for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("headline") + private final String headline; + + /** + * Single line introduction for the listing revision. + * + * @return the value + */ + public String getHeadline() { + return headline; + } + + /** The tagline for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("tagline") + private final String tagline; + + /** + * The tagline for the listing revision. + * + * @return the value + */ + public String getTagline() { + return tagline; + } + + /** Keywords associated with the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("keywords") + private final String keywords; + + /** + * Keywords associated with the listing revision. + * + * @return the value + */ + public String getKeywords() { + return keywords; + } + + /** A short description of the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("shortDescription") + private final String shortDescription; + + /** + * A short description of the listing revision. + * + * @return the value + */ + public String getShortDescription() { + return shortDescription; + } + + /** Usage information for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("usageInformation") + private final String usageInformation; + + /** + * Usage information for the listing revision. + * + * @return the value + */ + public String getUsageInformation() { + return usageInformation; + } + + /** A long description for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("longDescription") + private final String longDescription; + + /** + * A long description for the listing revision. + * + * @return the value + */ + public String getLongDescription() { + return longDescription; + } + + /** The time the listing revision was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the listing revision was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time the listing revision was updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the listing revision was updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @com.fasterxml.jackson.annotation.JsonProperty("contentLanguage") + private final LanguageItem contentLanguage; + + public LanguageItem getContentLanguage() { + return contentLanguage; + } + + /** Languages supported by the publisher for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportedlanguages") + private final java.util.List supportedlanguages; + + /** + * Languages supported by the publisher for the listing revision. + * + * @return the value + */ + public java.util.List getSupportedlanguages() { + return supportedlanguages; + } + + /** Contact information to use to get support from the publisher for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportContacts") + private final java.util.List supportContacts; + + /** + * Contact information to use to get support from the publisher for the listing revision. + * + * @return the value + */ + public java.util.List getSupportContacts() { + return supportContacts; + } + + /** Links to support resources for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportLinks") + private final java.util.List supportLinks; + + /** + * Links to support resources for the listing revision. + * + * @return the value + */ + public java.util.List getSupportLinks() { + return supportLinks; + } + + @com.fasterxml.jackson.annotation.JsonProperty("icon") + private final ListingRevisionIconAttachment icon; + + public ListingRevisionIconAttachment getIcon() { + return icon; + } + + @com.fasterxml.jackson.annotation.JsonProperty("banner") + private final ListingRevisionBannerAttachment banner; + + public ListingRevisionBannerAttachment getBanner() { + return banner; + } + + /** The current status for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final ListingRevision.Status status; + + /** + * The current status for the listing revision. + * + * @return the value + */ + public ListingRevision.Status getStatus() { + return status; + } + + /** Status notes for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("statusNotes") + private final String statusNotes; + + /** + * Status notes for the listing revision. + * + * @return the value + */ + public String getStatusNotes() { + return statusNotes; + } + + /** The current state of the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final ListingRevision.LifecycleState lifecycleState; + + /** + * The current state of the listing revision. + * + * @return the value + */ + public ListingRevision.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The listing's package type. Populated from the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("packageType") + private final PackageType packageType; + + /** + * The listing's package type. Populated from the listing. + * + * @return the value + */ + public PackageType getPackageType() { + return packageType; + } + + /** + * Additional metadata key/value pairs for the listing revision. + * + *

    For example: + * + *

    {@code {"oracleStandardTermVersionId": "1234"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("extendedMetadata") + private final java.util.Map extendedMetadata; + + /** + * Additional metadata key/value pairs for the listing revision. + * + *

    For example: + * + *

    {@code {"oracleStandardTermVersionId": "1234"}} + * + * @return the value + */ + public java.util.Map getExtendedMetadata() { + return extendedMetadata; + } + + /** + * 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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("AdminListingRevision("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", legacyId=").append(String.valueOf(this.legacyId)); + sb.append(", listingId=").append(String.valueOf(this.listingId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", publisherId=").append(String.valueOf(this.publisherId)); + sb.append(", approverId=").append(String.valueOf(this.approverId)); + sb.append(", approverEmail=").append(String.valueOf(this.approverEmail)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", revisionNumber=").append(String.valueOf(this.revisionNumber)); + sb.append(", headline=").append(String.valueOf(this.headline)); + sb.append(", tagline=").append(String.valueOf(this.tagline)); + sb.append(", keywords=").append(String.valueOf(this.keywords)); + sb.append(", shortDescription=").append(String.valueOf(this.shortDescription)); + sb.append(", usageInformation=").append(String.valueOf(this.usageInformation)); + sb.append(", longDescription=").append(String.valueOf(this.longDescription)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", contentLanguage=").append(String.valueOf(this.contentLanguage)); + sb.append(", supportedlanguages=").append(String.valueOf(this.supportedlanguages)); + sb.append(", supportContacts=").append(String.valueOf(this.supportContacts)); + sb.append(", supportLinks=").append(String.valueOf(this.supportLinks)); + sb.append(", icon=").append(String.valueOf(this.icon)); + sb.append(", banner=").append(String.valueOf(this.banner)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", statusNotes=").append(String.valueOf(this.statusNotes)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", packageType=").append(String.valueOf(this.packageType)); + sb.append(", extendedMetadata=").append(String.valueOf(this.extendedMetadata)); + 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 AdminListingRevision)) { + return false; + } + + AdminListingRevision other = (AdminListingRevision) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.legacyId, other.legacyId) + && java.util.Objects.equals(this.listingId, other.listingId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.publisherId, other.publisherId) + && java.util.Objects.equals(this.approverId, other.approverId) + && java.util.Objects.equals(this.approverEmail, other.approverEmail) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.revisionNumber, other.revisionNumber) + && java.util.Objects.equals(this.headline, other.headline) + && java.util.Objects.equals(this.tagline, other.tagline) + && java.util.Objects.equals(this.keywords, other.keywords) + && java.util.Objects.equals(this.shortDescription, other.shortDescription) + && java.util.Objects.equals(this.usageInformation, other.usageInformation) + && java.util.Objects.equals(this.longDescription, other.longDescription) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.contentLanguage, other.contentLanguage) + && java.util.Objects.equals(this.supportedlanguages, other.supportedlanguages) + && java.util.Objects.equals(this.supportContacts, other.supportContacts) + && java.util.Objects.equals(this.supportLinks, other.supportLinks) + && java.util.Objects.equals(this.icon, other.icon) + && java.util.Objects.equals(this.banner, other.banner) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.statusNotes, other.statusNotes) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.packageType, other.packageType) + && java.util.Objects.equals(this.extendedMetadata, other.extendedMetadata) + && 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.legacyId == null ? 43 : this.legacyId.hashCode()); + result = (result * PRIME) + (this.listingId == null ? 43 : this.listingId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.publisherId == null ? 43 : this.publisherId.hashCode()); + result = (result * PRIME) + (this.approverId == null ? 43 : this.approverId.hashCode()); + result = + (result * PRIME) + + (this.approverEmail == null ? 43 : this.approverEmail.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.revisionNumber == null ? 43 : this.revisionNumber.hashCode()); + result = (result * PRIME) + (this.headline == null ? 43 : this.headline.hashCode()); + result = (result * PRIME) + (this.tagline == null ? 43 : this.tagline.hashCode()); + result = (result * PRIME) + (this.keywords == null ? 43 : this.keywords.hashCode()); + result = + (result * PRIME) + + (this.shortDescription == null ? 43 : this.shortDescription.hashCode()); + result = + (result * PRIME) + + (this.usageInformation == null ? 43 : this.usageInformation.hashCode()); + result = + (result * PRIME) + + (this.longDescription == null ? 43 : this.longDescription.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.contentLanguage == null ? 43 : this.contentLanguage.hashCode()); + result = + (result * PRIME) + + (this.supportedlanguages == null + ? 43 + : this.supportedlanguages.hashCode()); + result = + (result * PRIME) + + (this.supportContacts == null ? 43 : this.supportContacts.hashCode()); + result = (result * PRIME) + (this.supportLinks == null ? 43 : this.supportLinks.hashCode()); + result = (result * PRIME) + (this.icon == null ? 43 : this.icon.hashCode()); + result = (result * PRIME) + (this.banner == null ? 43 : this.banner.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.statusNotes == null ? 43 : this.statusNotes.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.packageType == null ? 43 : this.packageType.hashCode()); + result = + (result * PRIME) + + (this.extendedMetadata == null ? 43 : this.extendedMetadata.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionAttachment.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionAttachment.java new file mode 100644 index 00000000000..65e885c51c7 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionAttachment.java @@ -0,0 +1,344 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * A attachment for the listing revision. User can provide an external URL/upload a file
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "attachmentType", + defaultImpl = AdminListingRevisionAttachment.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = AdminRelatedDocumentAttachment.class, + name = "RELATED_DOCUMENT"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = AdminScreenShotAttachment.class, + name = "SCREENSHOT"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = AdminReviewSupportDocumentAttachment.class, + name = "REVIEW_SUPPORT_DOCUMENT"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = AdminSupportedServiceAttachment.class, + name = "SUPPORTED_SERVICES"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = AdminCustomerSuccessAttachment.class, + name = "CUSTOMER_SUCCESS"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = AdminVideoAttachment.class, + name = "VIDEO") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class AdminListingRevisionAttachment + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "listingRevisionId", + "displayName", + "description", + "sourceType", + "lifecycleState", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + protected AdminListingRevisionAttachment( + String id, + String compartmentId, + String listingRevisionId, + String displayName, + String description, + ListingRevisionAttachment.SourceType sourceType, + ListingRevisionAttachment.LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.listingRevisionId = listingRevisionId; + this.displayName = displayName; + this.description = description; + this.sourceType = sourceType; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + /** Unique OCID identifier for the listing revision attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique OCID identifier for the listing revision attachment. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The unique identifier for the compartment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The unique identifier for the compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The unique identifier of the listing revision that the specified attachment belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("listingRevisionId") + private final String listingRevisionId; + + /** + * The unique identifier of the listing revision that the specified attachment belongs to. + * + * @return the value + */ + public String getListingRevisionId() { + return listingRevisionId; + } + + /** Name of the listing revision attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Name of the listing revision attachment. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Description of the listing revision attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the listing revision attachment. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * Possible values for the publisher listing revision attachments. The source type informs + * whether the type of attachment for the listing revision is external or internal. + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private final ListingRevisionAttachment.SourceType sourceType; + + /** + * Possible values for the publisher listing revision attachments. The source type informs + * whether the type of attachment for the listing revision is external or internal. + * + * @return the value + */ + public ListingRevisionAttachment.SourceType getSourceType() { + return sourceType; + } + + /** The current state of the attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final ListingRevisionAttachment.LifecycleState lifecycleState; + + /** + * The current state of the attachment. + * + * @return the value + */ + public ListingRevisionAttachment.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The time the attachment was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the attachment was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time the attachment was updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the attachment was updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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("AdminListingRevisionAttachment("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", listingRevisionId=").append(String.valueOf(this.listingRevisionId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", sourceType=").append(String.valueOf(this.sourceType)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminListingRevisionAttachment)) { + return false; + } + + AdminListingRevisionAttachment other = (AdminListingRevisionAttachment) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.listingRevisionId, other.listingRevisionId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.sourceType, other.sourceType) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.listingRevisionId == null ? 43 : this.listingRevisionId.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.sourceType == null ? 43 : this.sourceType.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionAttachmentCollection.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionAttachmentCollection.java new file mode 100644 index 00000000000..9c3434dd547 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionAttachmentCollection.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.marketplacepublisher.model; + +/** + * Results of the listing attachments search. Contains attachment items.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminListingRevisionAttachmentCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminListingRevisionAttachmentCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public AdminListingRevisionAttachmentCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of attachment summary. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of attachment summary. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdminListingRevisionAttachmentCollection build() { + AdminListingRevisionAttachmentCollection model = + new AdminListingRevisionAttachmentCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminListingRevisionAttachmentCollection 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 attachment summary. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of attachment summary. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AdminListingRevisionAttachmentCollection("); + 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 AdminListingRevisionAttachmentCollection)) { + return false; + } + + AdminListingRevisionAttachmentCollection other = + (AdminListingRevisionAttachmentCollection) 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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionAttachmentSummary.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionAttachmentSummary.java new file mode 100644 index 00000000000..bf454d8f048 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionAttachmentSummary.java @@ -0,0 +1,781 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * The model for a summary of a admin listing revision related attachments.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminListingRevisionAttachmentSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminListingRevisionAttachmentSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "listingRevisionId", + "compartmentId", + "displayName", + "attachmentType", + "sourceType", + "documentCategory", + "isOracleUsersOnly", + "contentUrl", + "mimeType", + "lifecycleState", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public AdminListingRevisionAttachmentSummary( + String id, + String listingRevisionId, + String compartmentId, + String displayName, + ListingRevisionAttachment.AttachmentType attachmentType, + ListingRevisionAttachment.SourceType sourceType, + ListingRevisionAttachmentSummary.DocumentCategory documentCategory, + Boolean isOracleUsersOnly, + String contentUrl, + String mimeType, + ListingRevisionAttachment.LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.listingRevisionId = listingRevisionId; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.attachmentType = attachmentType; + this.sourceType = sourceType; + this.documentCategory = documentCategory; + this.isOracleUsersOnly = isOracleUsersOnly; + this.contentUrl = contentUrl; + this.mimeType = mimeType; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the listing revision attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the listing revision attachment. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The ID of the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("listingRevisionId") + private String listingRevisionId; + + /** + * The ID of the listing revision. + * + * @param listingRevisionId the value to set + * @return this builder + */ + public Builder listingRevisionId(String listingRevisionId) { + this.listingRevisionId = listingRevisionId; + this.__explicitlySet__.add("listingRevisionId"); + return this; + } + /** The unique identifier for the compartment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The unique identifier for 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 name of the specified document. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The name of the specified document. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The specified attachment type. */ + @com.fasterxml.jackson.annotation.JsonProperty("attachmentType") + private ListingRevisionAttachment.AttachmentType attachmentType; + + /** + * The specified attachment type. + * + * @param attachmentType the value to set + * @return this builder + */ + public Builder attachmentType(ListingRevisionAttachment.AttachmentType attachmentType) { + this.attachmentType = attachmentType; + this.__explicitlySet__.add("attachmentType"); + return this; + } + /** The specified attachment type is Internal or External. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private ListingRevisionAttachment.SourceType sourceType; + + /** + * The specified attachment type is Internal or External. + * + * @param sourceType the value to set + * @return this builder + */ + public Builder sourceType(ListingRevisionAttachment.SourceType sourceType) { + this.sourceType = sourceType; + this.__explicitlySet__.add("sourceType"); + return this; + } + /** The specified document type. */ + @com.fasterxml.jackson.annotation.JsonProperty("documentCategory") + private ListingRevisionAttachmentSummary.DocumentCategory documentCategory; + + /** + * The specified document type. + * + * @param documentCategory the value to set + * @return this builder + */ + public Builder documentCategory( + ListingRevisionAttachmentSummary.DocumentCategory documentCategory) { + this.documentCategory = documentCategory; + this.__explicitlySet__.add("documentCategory"); + return this; + } + /** + * Identifies whether the attachment is for Internal Oracle Users or external users as well. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isOracleUsersOnly") + private Boolean isOracleUsersOnly; + + /** + * Identifies whether the attachment is for Internal Oracle Users or external users as well. + * + * @param isOracleUsersOnly the value to set + * @return this builder + */ + public Builder isOracleUsersOnly(Boolean isOracleUsersOnly) { + this.isOracleUsersOnly = isOracleUsersOnly; + this.__explicitlySet__.add("isOracleUsersOnly"); + return this; + } + /** The URL of the specified attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("contentUrl") + private String contentUrl; + + /** + * The URL of the specified attachment. + * + * @param contentUrl the value to set + * @return this builder + */ + public Builder contentUrl(String contentUrl) { + this.contentUrl = contentUrl; + this.__explicitlySet__.add("contentUrl"); + return this; + } + /** The MIME type of the screenshot. */ + @com.fasterxml.jackson.annotation.JsonProperty("mimeType") + private String mimeType; + + /** + * The MIME type of the screenshot. + * + * @param mimeType the value to set + * @return this builder + */ + public Builder mimeType(String mimeType) { + this.mimeType = mimeType; + this.__explicitlySet__.add("mimeType"); + return this; + } + /** The current state of the document. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private ListingRevisionAttachment.LifecycleState lifecycleState; + + /** + * The current state of the document. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(ListingRevisionAttachment.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The date and time the related document was created, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + *

    Example: {@code 2022-09-24T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the related document was created, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + *

    Example: {@code 2022-09-24T21: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 related document was updated, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + *

    Example: {@code 2022-09-24T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the related document was updated, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + *

    Example: {@code 2022-09-24T21: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; + } + /** + * 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; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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 AdminListingRevisionAttachmentSummary build() { + AdminListingRevisionAttachmentSummary model = + new AdminListingRevisionAttachmentSummary( + this.id, + this.listingRevisionId, + this.compartmentId, + this.displayName, + this.attachmentType, + this.sourceType, + this.documentCategory, + this.isOracleUsersOnly, + this.contentUrl, + this.mimeType, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminListingRevisionAttachmentSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("listingRevisionId")) { + this.listingRevisionId(model.getListingRevisionId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("attachmentType")) { + this.attachmentType(model.getAttachmentType()); + } + if (model.wasPropertyExplicitlySet("sourceType")) { + this.sourceType(model.getSourceType()); + } + if (model.wasPropertyExplicitlySet("documentCategory")) { + this.documentCategory(model.getDocumentCategory()); + } + if (model.wasPropertyExplicitlySet("isOracleUsersOnly")) { + this.isOracleUsersOnly(model.getIsOracleUsersOnly()); + } + if (model.wasPropertyExplicitlySet("contentUrl")) { + this.contentUrl(model.getContentUrl()); + } + if (model.wasPropertyExplicitlySet("mimeType")) { + this.mimeType(model.getMimeType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the listing revision attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the listing revision attachment. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The ID of the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("listingRevisionId") + private final String listingRevisionId; + + /** + * The ID of the listing revision. + * + * @return the value + */ + public String getListingRevisionId() { + return listingRevisionId; + } + + /** The unique identifier for the compartment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The unique identifier for the compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The name of the specified document. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The name of the specified document. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The specified attachment type. */ + @com.fasterxml.jackson.annotation.JsonProperty("attachmentType") + private final ListingRevisionAttachment.AttachmentType attachmentType; + + /** + * The specified attachment type. + * + * @return the value + */ + public ListingRevisionAttachment.AttachmentType getAttachmentType() { + return attachmentType; + } + + /** The specified attachment type is Internal or External. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private final ListingRevisionAttachment.SourceType sourceType; + + /** + * The specified attachment type is Internal or External. + * + * @return the value + */ + public ListingRevisionAttachment.SourceType getSourceType() { + return sourceType; + } + + /** The specified document type. */ + @com.fasterxml.jackson.annotation.JsonProperty("documentCategory") + private final ListingRevisionAttachmentSummary.DocumentCategory documentCategory; + + /** + * The specified document type. + * + * @return the value + */ + public ListingRevisionAttachmentSummary.DocumentCategory getDocumentCategory() { + return documentCategory; + } + + /** Identifies whether the attachment is for Internal Oracle Users or external users as well. */ + @com.fasterxml.jackson.annotation.JsonProperty("isOracleUsersOnly") + private final Boolean isOracleUsersOnly; + + /** + * Identifies whether the attachment is for Internal Oracle Users or external users as well. + * + * @return the value + */ + public Boolean getIsOracleUsersOnly() { + return isOracleUsersOnly; + } + + /** The URL of the specified attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("contentUrl") + private final String contentUrl; + + /** + * The URL of the specified attachment. + * + * @return the value + */ + public String getContentUrl() { + return contentUrl; + } + + /** The MIME type of the screenshot. */ + @com.fasterxml.jackson.annotation.JsonProperty("mimeType") + private final String mimeType; + + /** + * The MIME type of the screenshot. + * + * @return the value + */ + public String getMimeType() { + return mimeType; + } + + /** The current state of the document. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final ListingRevisionAttachment.LifecycleState lifecycleState; + + /** + * The current state of the document. + * + * @return the value + */ + public ListingRevisionAttachment.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The date and time the related document was created, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + *

    Example: {@code 2022-09-24T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the related document was created, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + *

    Example: {@code 2022-09-24T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time the related document was updated, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + *

    Example: {@code 2022-09-24T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the related document was updated, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + *

    Example: {@code 2022-09-24T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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("AdminListingRevisionAttachmentSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", listingRevisionId=").append(String.valueOf(this.listingRevisionId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", attachmentType=").append(String.valueOf(this.attachmentType)); + sb.append(", sourceType=").append(String.valueOf(this.sourceType)); + sb.append(", documentCategory=").append(String.valueOf(this.documentCategory)); + sb.append(", isOracleUsersOnly=").append(String.valueOf(this.isOracleUsersOnly)); + sb.append(", contentUrl=").append(String.valueOf(this.contentUrl)); + sb.append(", mimeType=").append(String.valueOf(this.mimeType)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminListingRevisionAttachmentSummary)) { + return false; + } + + AdminListingRevisionAttachmentSummary other = (AdminListingRevisionAttachmentSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.listingRevisionId, other.listingRevisionId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.attachmentType, other.attachmentType) + && java.util.Objects.equals(this.sourceType, other.sourceType) + && java.util.Objects.equals(this.documentCategory, other.documentCategory) + && java.util.Objects.equals(this.isOracleUsersOnly, other.isOracleUsersOnly) + && java.util.Objects.equals(this.contentUrl, other.contentUrl) + && java.util.Objects.equals(this.mimeType, other.mimeType) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.listingRevisionId == null ? 43 : this.listingRevisionId.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.attachmentType == null ? 43 : this.attachmentType.hashCode()); + result = (result * PRIME) + (this.sourceType == null ? 43 : this.sourceType.hashCode()); + result = + (result * PRIME) + + (this.documentCategory == null ? 43 : this.documentCategory.hashCode()); + result = + (result * PRIME) + + (this.isOracleUsersOnly == null ? 43 : this.isOracleUsersOnly.hashCode()); + result = (result * PRIME) + (this.contentUrl == null ? 43 : this.contentUrl.hashCode()); + result = (result * PRIME) + (this.mimeType == null ? 43 : this.mimeType.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionCollection.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionCollection.java new file mode 100644 index 00000000000..ef7cc885c99 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionCollection.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.marketplacepublisher.model; + +/** + * Results of admin listing revision search. Contains Listing revision items.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminListingRevisionCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminListingRevisionCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public AdminListingRevisionCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of listing revision summary. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of listing revision summary. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdminListingRevisionCollection build() { + AdminListingRevisionCollection model = new AdminListingRevisionCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminListingRevisionCollection 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 listing revision summary. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of listing revision summary. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AdminListingRevisionCollection("); + 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 AdminListingRevisionCollection)) { + return false; + } + + AdminListingRevisionCollection other = (AdminListingRevisionCollection) 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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionPackage.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionPackage.java new file mode 100644 index 00000000000..d2605c8a5a3 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionPackage.java @@ -0,0 +1,505 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * A base object for all types of listing revision packages.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "packageType", + defaultImpl = AdminListingRevisionPackage.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = AdminStackPackage.class, + name = "STACK"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = AdminContainerPackage.class, + name = "CONTAINER_IMAGE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = AdminMachineImagePackage.class, + name = "MACHINE_IMAGE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = AdminHelmChartPackage.class, + name = "HELM_CHART") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class AdminListingRevisionPackage + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "legacyId", + "displayName", + "description", + "listingRevisionId", + "compartmentId", + "artifactId", + "termId", + "packageVersion", + "lifecycleState", + "status", + "areSecurityUpgradesProvided", + "isDefault", + "timeCreated", + "timeUpdated", + "extendedMetadata", + "freeformTags", + "definedTags", + "systemTags" + }) + protected AdminListingRevisionPackage( + String id, + String legacyId, + String displayName, + String description, + String listingRevisionId, + String compartmentId, + String artifactId, + String termId, + String packageVersion, + ListingRevisionPackage.LifecycleState lifecycleState, + ListingRevisionPackage.Status status, + Boolean areSecurityUpgradesProvided, + Boolean isDefault, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map extendedMetadata, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.legacyId = legacyId; + this.displayName = displayName; + this.description = description; + this.listingRevisionId = listingRevisionId; + this.compartmentId = compartmentId; + this.artifactId = artifactId; + this.termId = termId; + this.packageVersion = packageVersion; + this.lifecycleState = lifecycleState; + this.status = status; + this.areSecurityUpgradesProvided = areSecurityUpgradesProvided; + this.isDefault = isDefault; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.extendedMetadata = extendedMetadata; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + /** The OCID for the listing revision package in Marketplace Publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID for the listing revision package in Marketplace Publisher. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The unique legacy identifier for the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private final String legacyId; + + /** + * The unique legacy identifier for the listing. + * + * @return the value + */ + public String getLegacyId() { + return legacyId; + } + + /** The name of the listing revision package. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The name of the listing revision package. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The description of this package. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of this package. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The unique identifier for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("listingRevisionId") + private final String listingRevisionId; + + /** + * The unique identifier for the listing revision. + * + * @return the value + */ + public String getListingRevisionId() { + return listingRevisionId; + } + + /** The unique identifier for the compartment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The unique identifier for the compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The unique identifier for the artifact. */ + @com.fasterxml.jackson.annotation.JsonProperty("artifactId") + private final String artifactId; + + /** + * The unique identifier for the artifact. + * + * @return the value + */ + public String getArtifactId() { + return artifactId; + } + + /** The unique identifier for the term. */ + @com.fasterxml.jackson.annotation.JsonProperty("termId") + private final String termId; + + /** + * The unique identifier for the term. + * + * @return the value + */ + public String getTermId() { + return termId; + } + + /** The version for the package. */ + @com.fasterxml.jackson.annotation.JsonProperty("packageVersion") + private final String packageVersion; + + /** + * The version for the package. + * + * @return the value + */ + public String getPackageVersion() { + return packageVersion; + } + + /** The current state for the listing revision package. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final ListingRevisionPackage.LifecycleState lifecycleState; + + /** + * The current state for the listing revision package. + * + * @return the value + */ + public ListingRevisionPackage.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The current status for the listing revision package. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final ListingRevisionPackage.Status status; + + /** + * The current status for the listing revision package. + * + * @return the value + */ + public ListingRevisionPackage.Status getStatus() { + return status; + } + + /** Identifies whether security upgrades will be provided for this package. */ + @com.fasterxml.jackson.annotation.JsonProperty("areSecurityUpgradesProvided") + private final Boolean areSecurityUpgradesProvided; + + /** + * Identifies whether security upgrades will be provided for this package. + * + * @return the value + */ + public Boolean getAreSecurityUpgradesProvided() { + return areSecurityUpgradesProvided; + } + + /** Identifies that this will be default package for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") + private final Boolean isDefault; + + /** + * Identifies that this will be default package for the listing revision. + * + * @return the value + */ + public Boolean getIsDefault() { + return isDefault; + } + + /** + * The date and time this listing revision package was created, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + *

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

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

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

    Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Additional metadata key/value pairs for the listing revision package summary. + * + *

    For example: + * + *

    {@code {"partnerListingRevisionPackageStatus": + * "Published","parentListingRevisionPackageId": "1" }} + */ + @com.fasterxml.jackson.annotation.JsonProperty("extendedMetadata") + private final java.util.Map extendedMetadata; + + /** + * Additional metadata key/value pairs for the listing revision package summary. + * + *

    For example: + * + *

    {@code {"partnerListingRevisionPackageStatus": + * "Published","parentListingRevisionPackageId": "1" }} + * + * @return the value + */ + public java.util.Map getExtendedMetadata() { + return extendedMetadata; + } + + /** + * 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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("AdminListingRevisionPackage("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", legacyId=").append(String.valueOf(this.legacyId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", listingRevisionId=").append(String.valueOf(this.listingRevisionId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", artifactId=").append(String.valueOf(this.artifactId)); + sb.append(", termId=").append(String.valueOf(this.termId)); + sb.append(", packageVersion=").append(String.valueOf(this.packageVersion)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", areSecurityUpgradesProvided=") + .append(String.valueOf(this.areSecurityUpgradesProvided)); + sb.append(", isDefault=").append(String.valueOf(this.isDefault)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", extendedMetadata=").append(String.valueOf(this.extendedMetadata)); + 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 AdminListingRevisionPackage)) { + return false; + } + + AdminListingRevisionPackage other = (AdminListingRevisionPackage) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.legacyId, other.legacyId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.listingRevisionId, other.listingRevisionId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.artifactId, other.artifactId) + && java.util.Objects.equals(this.termId, other.termId) + && java.util.Objects.equals(this.packageVersion, other.packageVersion) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals( + this.areSecurityUpgradesProvided, other.areSecurityUpgradesProvided) + && java.util.Objects.equals(this.isDefault, other.isDefault) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.extendedMetadata, other.extendedMetadata) + && 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.legacyId == null ? 43 : this.legacyId.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.listingRevisionId == null ? 43 : this.listingRevisionId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.artifactId == null ? 43 : this.artifactId.hashCode()); + result = (result * PRIME) + (this.termId == null ? 43 : this.termId.hashCode()); + result = + (result * PRIME) + + (this.packageVersion == null ? 43 : this.packageVersion.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.areSecurityUpgradesProvided == null + ? 43 + : this.areSecurityUpgradesProvided.hashCode()); + result = (result * PRIME) + (this.isDefault == null ? 43 : this.isDefault.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.extendedMetadata == null ? 43 : this.extendedMetadata.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionPackageCollection.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionPackageCollection.java new file mode 100644 index 00000000000..eeb96a26c10 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionPackageCollection.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.marketplacepublisher.model; + +/** + * Results of package search. Contains Package items.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminListingRevisionPackageCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminListingRevisionPackageCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public AdminListingRevisionPackageCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of package summary. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of package summary. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdminListingRevisionPackageCollection build() { + AdminListingRevisionPackageCollection model = + new AdminListingRevisionPackageCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminListingRevisionPackageCollection 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 package summary. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of package summary. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AdminListingRevisionPackageCollection("); + 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 AdminListingRevisionPackageCollection)) { + return false; + } + + AdminListingRevisionPackageCollection other = (AdminListingRevisionPackageCollection) 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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionPackageSummary.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionPackageSummary.java new file mode 100644 index 00000000000..fd3ef435e23 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionPackageSummary.java @@ -0,0 +1,780 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * The model for a summary of a package.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminListingRevisionPackageSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminListingRevisionPackageSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "legacyId", + "listingRevisionId", + "compartmentId", + "displayName", + "packageVersion", + "packageType", + "areSecurityUpgradesProvided", + "isDefault", + "lifecycleState", + "status", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public AdminListingRevisionPackageSummary( + String id, + String legacyId, + String listingRevisionId, + String compartmentId, + String displayName, + String packageVersion, + PackageType packageType, + Boolean areSecurityUpgradesProvided, + Boolean isDefault, + ListingRevisionPackage.LifecycleState lifecycleState, + ListingRevisionPackage.Status status, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.legacyId = legacyId; + this.listingRevisionId = listingRevisionId; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.packageVersion = packageVersion; + this.packageType = packageType; + this.areSecurityUpgradesProvided = areSecurityUpgradesProvided; + this.isDefault = isDefault; + this.lifecycleState = lifecycleState; + this.status = status; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The ID of the listing revision package. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The ID of the listing revision package. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The unique legacy identifier for the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private String legacyId; + + /** + * The unique legacy identifier for the listing. + * + * @param legacyId the value to set + * @return this builder + */ + public Builder legacyId(String legacyId) { + this.legacyId = legacyId; + this.__explicitlySet__.add("legacyId"); + return this; + } + /** The ID of the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("listingRevisionId") + private String listingRevisionId; + + /** + * The ID of the listing revision. + * + * @param listingRevisionId the value to set + * @return this builder + */ + public Builder listingRevisionId(String listingRevisionId) { + this.listingRevisionId = listingRevisionId; + this.__explicitlySet__.add("listingRevisionId"); + return this; + } + /** The unique identifier for the compartment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The unique identifier for 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 name of the listing revision package. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The name of the listing revision package. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The version of the specified package. */ + @com.fasterxml.jackson.annotation.JsonProperty("packageVersion") + private String packageVersion; + + /** + * The version of the specified package. + * + * @param packageVersion the value to set + * @return this builder + */ + public Builder packageVersion(String packageVersion) { + this.packageVersion = packageVersion; + this.__explicitlySet__.add("packageVersion"); + return this; + } + /** The specified package's type. */ + @com.fasterxml.jackson.annotation.JsonProperty("packageType") + private PackageType packageType; + + /** + * The specified package's type. + * + * @param packageType the value to set + * @return this builder + */ + public Builder packageType(PackageType packageType) { + this.packageType = packageType; + this.__explicitlySet__.add("packageType"); + return this; + } + /** Identifies whether security upgrades will be provided for this package. */ + @com.fasterxml.jackson.annotation.JsonProperty("areSecurityUpgradesProvided") + private Boolean areSecurityUpgradesProvided; + + /** + * Identifies whether security upgrades will be provided for this package. + * + * @param areSecurityUpgradesProvided the value to set + * @return this builder + */ + public Builder areSecurityUpgradesProvided(Boolean areSecurityUpgradesProvided) { + this.areSecurityUpgradesProvided = areSecurityUpgradesProvided; + this.__explicitlySet__.add("areSecurityUpgradesProvided"); + return this; + } + /** Identifies that this will be default package for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") + private Boolean isDefault; + + /** + * Identifies that this will be default package for the listing revision. + * + * @param isDefault the value to set + * @return this builder + */ + public Builder isDefault(Boolean isDefault) { + this.isDefault = isDefault; + this.__explicitlySet__.add("isDefault"); + return this; + } + /** The current state of the Package. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private ListingRevisionPackage.LifecycleState lifecycleState; + + /** + * The current state of the Package. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(ListingRevisionPackage.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** The current status of the package. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private ListingRevisionPackage.Status status; + + /** + * The current status of the package. + * + * @param status the value to set + * @return this builder + */ + public Builder status(ListingRevisionPackage.Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * The date and time the publication package was created, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + *

    Example: {@code 2022-09-24T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the publication package was created, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + *

    Example: {@code 2022-09-24T21: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 publication package was updated, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + *

    Example: {@code 2022-09-24T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the publication package was updated, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + *

    Example: {@code 2022-09-24T21: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; + } + /** + * 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; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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 AdminListingRevisionPackageSummary build() { + AdminListingRevisionPackageSummary model = + new AdminListingRevisionPackageSummary( + this.id, + this.legacyId, + this.listingRevisionId, + this.compartmentId, + this.displayName, + this.packageVersion, + this.packageType, + this.areSecurityUpgradesProvided, + this.isDefault, + this.lifecycleState, + this.status, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminListingRevisionPackageSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("legacyId")) { + this.legacyId(model.getLegacyId()); + } + if (model.wasPropertyExplicitlySet("listingRevisionId")) { + this.listingRevisionId(model.getListingRevisionId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("packageVersion")) { + this.packageVersion(model.getPackageVersion()); + } + if (model.wasPropertyExplicitlySet("packageType")) { + this.packageType(model.getPackageType()); + } + if (model.wasPropertyExplicitlySet("areSecurityUpgradesProvided")) { + this.areSecurityUpgradesProvided(model.getAreSecurityUpgradesProvided()); + } + if (model.wasPropertyExplicitlySet("isDefault")) { + this.isDefault(model.getIsDefault()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The ID of the listing revision package. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The ID of the listing revision package. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The unique legacy identifier for the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private final String legacyId; + + /** + * The unique legacy identifier for the listing. + * + * @return the value + */ + public String getLegacyId() { + return legacyId; + } + + /** The ID of the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("listingRevisionId") + private final String listingRevisionId; + + /** + * The ID of the listing revision. + * + * @return the value + */ + public String getListingRevisionId() { + return listingRevisionId; + } + + /** The unique identifier for the compartment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The unique identifier for the compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The name of the listing revision package. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The name of the listing revision package. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The version of the specified package. */ + @com.fasterxml.jackson.annotation.JsonProperty("packageVersion") + private final String packageVersion; + + /** + * The version of the specified package. + * + * @return the value + */ + public String getPackageVersion() { + return packageVersion; + } + + /** The specified package's type. */ + @com.fasterxml.jackson.annotation.JsonProperty("packageType") + private final PackageType packageType; + + /** + * The specified package's type. + * + * @return the value + */ + public PackageType getPackageType() { + return packageType; + } + + /** Identifies whether security upgrades will be provided for this package. */ + @com.fasterxml.jackson.annotation.JsonProperty("areSecurityUpgradesProvided") + private final Boolean areSecurityUpgradesProvided; + + /** + * Identifies whether security upgrades will be provided for this package. + * + * @return the value + */ + public Boolean getAreSecurityUpgradesProvided() { + return areSecurityUpgradesProvided; + } + + /** Identifies that this will be default package for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") + private final Boolean isDefault; + + /** + * Identifies that this will be default package for the listing revision. + * + * @return the value + */ + public Boolean getIsDefault() { + return isDefault; + } + + /** The current state of the Package. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final ListingRevisionPackage.LifecycleState lifecycleState; + + /** + * The current state of the Package. + * + * @return the value + */ + public ListingRevisionPackage.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The current status of the package. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final ListingRevisionPackage.Status status; + + /** + * The current status of the package. + * + * @return the value + */ + public ListingRevisionPackage.Status getStatus() { + return status; + } + + /** + * The date and time the publication package was created, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + *

    Example: {@code 2022-09-24T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the publication package was created, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + *

    Example: {@code 2022-09-24T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time the publication package was updated, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + *

    Example: {@code 2022-09-24T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the publication package was updated, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * + *

    Example: {@code 2022-09-24T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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("AdminListingRevisionPackageSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", legacyId=").append(String.valueOf(this.legacyId)); + sb.append(", listingRevisionId=").append(String.valueOf(this.listingRevisionId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", packageVersion=").append(String.valueOf(this.packageVersion)); + sb.append(", packageType=").append(String.valueOf(this.packageType)); + sb.append(", areSecurityUpgradesProvided=") + .append(String.valueOf(this.areSecurityUpgradesProvided)); + sb.append(", isDefault=").append(String.valueOf(this.isDefault)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminListingRevisionPackageSummary)) { + return false; + } + + AdminListingRevisionPackageSummary other = (AdminListingRevisionPackageSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.legacyId, other.legacyId) + && java.util.Objects.equals(this.listingRevisionId, other.listingRevisionId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.packageVersion, other.packageVersion) + && java.util.Objects.equals(this.packageType, other.packageType) + && java.util.Objects.equals( + this.areSecurityUpgradesProvided, other.areSecurityUpgradesProvided) + && java.util.Objects.equals(this.isDefault, other.isDefault) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.legacyId == null ? 43 : this.legacyId.hashCode()); + result = + (result * PRIME) + + (this.listingRevisionId == null ? 43 : this.listingRevisionId.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.packageVersion == null ? 43 : this.packageVersion.hashCode()); + result = (result * PRIME) + (this.packageType == null ? 43 : this.packageType.hashCode()); + result = + (result * PRIME) + + (this.areSecurityUpgradesProvided == null + ? 43 + : this.areSecurityUpgradesProvided.hashCode()); + result = (result * PRIME) + (this.isDefault == null ? 43 : this.isDefault.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionSummary.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionSummary.java new file mode 100644 index 00000000000..10014a6977b --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionSummary.java @@ -0,0 +1,1409 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * The model for a summary of an Oracle Cloud Infrastructure Marketplace Publisher listing revision. + *
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminListingRevisionSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminListingRevisionSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "legacyId", + "listingId", + "compartmentId", + "publisherId", + "displayName", + "status", + "lifecycleState", + "packageType", + "shortDescription", + "longDescription", + "pricingPlans", + "supportedlanguages", + "supportLinks", + "systemRequirements", + "versionDetails", + "trainedProfessionals", + "geoLocations", + "pricingType", + "markets", + "tagline", + "products", + "icon", + "banner", + "demoUrl", + "industries", + "listingType", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public AdminListingRevisionSummary( + String id, + String legacyId, + String listingId, + String compartmentId, + String publisherId, + String displayName, + ListingRevision.Status status, + ListingRevision.LifecycleState lifecycleState, + PackageType packageType, + String shortDescription, + String longDescription, + java.util.List pricingPlans, + java.util.List supportedlanguages, + java.util.List supportLinks, + String systemRequirements, + VersionDetails versionDetails, + java.util.List trainedProfessionals, + java.util.List geoLocations, + PricingType pricingType, + java.util.List markets, + String tagline, + java.util.List products, + ListingRevisionIconAttachment icon, + ListingRevisionBannerAttachment banner, + String demoUrl, + java.util.List industries, + ListingType listingType, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.legacyId = legacyId; + this.listingId = listingId; + this.compartmentId = compartmentId; + this.publisherId = publisherId; + this.displayName = displayName; + this.status = status; + this.lifecycleState = lifecycleState; + this.packageType = packageType; + this.shortDescription = shortDescription; + this.longDescription = longDescription; + this.pricingPlans = pricingPlans; + this.supportedlanguages = supportedlanguages; + this.supportLinks = supportLinks; + this.systemRequirements = systemRequirements; + this.versionDetails = versionDetails; + this.trainedProfessionals = trainedProfessionals; + this.geoLocations = geoLocations; + this.pricingType = pricingType; + this.markets = markets; + this.tagline = tagline; + this.products = products; + this.icon = icon; + this.banner = banner; + this.demoUrl = demoUrl; + this.industries = industries; + this.listingType = listingType; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID for the listing revision in Marketplace Publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID for the listing revision in Marketplace Publisher. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The unique legacy identifier for the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private String legacyId; + + /** + * The unique legacy identifier for the listing. + * + * @param legacyId the value to set + * @return this builder + */ + public Builder legacyId(String legacyId) { + this.legacyId = legacyId; + this.__explicitlySet__.add("legacyId"); + return this; + } + /** The OCID for the Listing in Marketplace Publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("listingId") + private String listingId; + + /** + * The OCID for the Listing in Marketplace Publisher. + * + * @param listingId the value to set + * @return this builder + */ + public Builder listingId(String listingId) { + this.listingId = listingId; + this.__explicitlySet__.add("listingId"); + return this; + } + /** The unique identifier for the compartment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The unique identifier for 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 OCID for the publisher in Marketplace Publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("publisherId") + private String publisherId; + + /** + * The OCID for the publisher in Marketplace Publisher. + * + * @param publisherId the value to set + * @return this builder + */ + public Builder publisherId(String publisherId) { + this.publisherId = publisherId; + this.__explicitlySet__.add("publisherId"); + return this; + } + /** The display name for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name for the listing revision. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The current status for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private ListingRevision.Status status; + + /** + * The current status for the listing revision. + * + * @param status the value to set + * @return this builder + */ + public Builder status(ListingRevision.Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** The current state for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private ListingRevision.LifecycleState lifecycleState; + + /** + * The current state for the listing revision. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(ListingRevision.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** The listing's package type. */ + @com.fasterxml.jackson.annotation.JsonProperty("packageType") + private PackageType packageType; + + /** + * The listing's package type. + * + * @param packageType the value to set + * @return this builder + */ + public Builder packageType(PackageType packageType) { + this.packageType = packageType; + this.__explicitlySet__.add("packageType"); + return this; + } + /** A short description for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("shortDescription") + private String shortDescription; + + /** + * A short description for the listing revision. + * + * @param shortDescription the value to set + * @return this builder + */ + public Builder shortDescription(String shortDescription) { + this.shortDescription = shortDescription; + this.__explicitlySet__.add("shortDescription"); + return this; + } + /** A long description for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("longDescription") + private String longDescription; + + /** + * A long description for the listing revision. + * + * @param longDescription the value to set + * @return this builder + */ + public Builder longDescription(String longDescription) { + this.longDescription = longDescription; + this.__explicitlySet__.add("longDescription"); + return this; + } + /** List of Pricing Plans provided by publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("pricingPlans") + private java.util.List pricingPlans; + + /** + * List of Pricing Plans provided by publisher. + * + * @param pricingPlans the value to set + * @return this builder + */ + public Builder pricingPlans(java.util.List pricingPlans) { + this.pricingPlans = pricingPlans; + this.__explicitlySet__.add("pricingPlans"); + return this; + } + /** Languages supported by the publisher for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportedlanguages") + private java.util.List supportedlanguages; + + /** + * Languages supported by the publisher for the listing revision. + * + * @param supportedlanguages the value to set + * @return this builder + */ + public Builder supportedlanguages(java.util.List supportedlanguages) { + this.supportedlanguages = supportedlanguages; + this.__explicitlySet__.add("supportedlanguages"); + return this; + } + /** Links to support resources for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportLinks") + private java.util.List supportLinks; + + /** + * Links to support resources for the listing revision. + * + * @param supportLinks the value to set + * @return this builder + */ + public Builder supportLinks(java.util.List supportLinks) { + this.supportLinks = supportLinks; + this.__explicitlySet__.add("supportLinks"); + return this; + } + /** System requirements for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRequirements") + private String systemRequirements; + + /** + * System requirements for the listing revision. + * + * @param systemRequirements the value to set + * @return this builder + */ + public Builder systemRequirements(String systemRequirements) { + this.systemRequirements = systemRequirements; + this.__explicitlySet__.add("systemRequirements"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("versionDetails") + private VersionDetails versionDetails; + + public Builder versionDetails(VersionDetails versionDetails) { + this.versionDetails = versionDetails; + this.__explicitlySet__.add("versionDetails"); + return this; + } + /** Number of trained professional per product */ + @com.fasterxml.jackson.annotation.JsonProperty("trainedProfessionals") + private java.util.List trainedProfessionals; + + /** + * Number of trained professional per product + * + * @param trainedProfessionals the value to set + * @return this builder + */ + public Builder trainedProfessionals( + java.util.List trainedProfessionals) { + this.trainedProfessionals = trainedProfessionals; + this.__explicitlySet__.add("trainedProfessionals"); + return this; + } + /** Support details based on geographic location */ + @com.fasterxml.jackson.annotation.JsonProperty("geoLocations") + private java.util.List geoLocations; + + /** + * Support details based on geographic location + * + * @param geoLocations the value to set + * @return this builder + */ + public Builder geoLocations(java.util.List geoLocations) { + this.geoLocations = geoLocations; + this.__explicitlySet__.add("geoLocations"); + return this; + } + /** The pricing model for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("pricingType") + private PricingType pricingType; + + /** + * The pricing model for the listing revision. + * + * @param pricingType the value to set + * @return this builder + */ + public Builder pricingType(PricingType pricingType) { + this.pricingType = pricingType; + this.__explicitlySet__.add("pricingType"); + return this; + } + /** Markets associated with Listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("markets") + private java.util.List markets; + + /** + * Markets associated with Listing revision. + * + * @param markets the value to set + * @return this builder + */ + public Builder markets(java.util.List markets) { + this.markets = markets; + this.__explicitlySet__.add("markets"); + return this; + } + /** The tagline for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("tagline") + private String tagline; + + /** + * The tagline for the listing revision. + * + * @param tagline the value to set + * @return this builder + */ + public Builder tagline(String tagline) { + this.tagline = tagline; + this.__explicitlySet__.add("tagline"); + return this; + } + /** List of Admin Products subscribed by listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("products") + private java.util.List products; + + /** + * List of Admin Products subscribed by listing. + * + * @param products the value to set + * @return this builder + */ + public Builder products(java.util.List products) { + this.products = products; + this.__explicitlySet__.add("products"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("icon") + private ListingRevisionIconAttachment icon; + + public Builder icon(ListingRevisionIconAttachment icon) { + this.icon = icon; + this.__explicitlySet__.add("icon"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("banner") + private ListingRevisionBannerAttachment banner; + + public Builder banner(ListingRevisionBannerAttachment banner) { + this.banner = banner; + this.__explicitlySet__.add("banner"); + return this; + } + /** Url to demo of the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("demoUrl") + private String demoUrl; + + /** + * Url to demo of the listing + * + * @param demoUrl the value to set + * @return this builder + */ + public Builder demoUrl(String demoUrl) { + this.demoUrl = demoUrl; + this.__explicitlySet__.add("demoUrl"); + return this; + } + /** List of industries subscribed by listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("industries") + private java.util.List industries; + + /** + * List of industries subscribed by listing. + * + * @param industries the value to set + * @return this builder + */ + public Builder industries(java.util.List industries) { + this.industries = industries; + this.__explicitlySet__.add("industries"); + return this; + } + /** The listing's type. Populated from the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("listingType") + private ListingType listingType; + + /** + * The listing's type. Populated from the listing. + * + * @param listingType the value to set + * @return this builder + */ + public Builder listingType(ListingType listingType) { + this.listingType = listingType; + this.__explicitlySet__.add("listingType"); + return this; + } + /** + * The date and time the listing revision was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

    Example: {@code 2022-09-15T21: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 listing revision was updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

    Example: {@code 2022-09-15T21: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; + } + /** + * 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; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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 AdminListingRevisionSummary build() { + AdminListingRevisionSummary model = + new AdminListingRevisionSummary( + this.id, + this.legacyId, + this.listingId, + this.compartmentId, + this.publisherId, + this.displayName, + this.status, + this.lifecycleState, + this.packageType, + this.shortDescription, + this.longDescription, + this.pricingPlans, + this.supportedlanguages, + this.supportLinks, + this.systemRequirements, + this.versionDetails, + this.trainedProfessionals, + this.geoLocations, + this.pricingType, + this.markets, + this.tagline, + this.products, + this.icon, + this.banner, + this.demoUrl, + this.industries, + this.listingType, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminListingRevisionSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("legacyId")) { + this.legacyId(model.getLegacyId()); + } + if (model.wasPropertyExplicitlySet("listingId")) { + this.listingId(model.getListingId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("publisherId")) { + this.publisherId(model.getPublisherId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("packageType")) { + this.packageType(model.getPackageType()); + } + if (model.wasPropertyExplicitlySet("shortDescription")) { + this.shortDescription(model.getShortDescription()); + } + if (model.wasPropertyExplicitlySet("longDescription")) { + this.longDescription(model.getLongDescription()); + } + if (model.wasPropertyExplicitlySet("pricingPlans")) { + this.pricingPlans(model.getPricingPlans()); + } + if (model.wasPropertyExplicitlySet("supportedlanguages")) { + this.supportedlanguages(model.getSupportedlanguages()); + } + if (model.wasPropertyExplicitlySet("supportLinks")) { + this.supportLinks(model.getSupportLinks()); + } + if (model.wasPropertyExplicitlySet("systemRequirements")) { + this.systemRequirements(model.getSystemRequirements()); + } + if (model.wasPropertyExplicitlySet("versionDetails")) { + this.versionDetails(model.getVersionDetails()); + } + if (model.wasPropertyExplicitlySet("trainedProfessionals")) { + this.trainedProfessionals(model.getTrainedProfessionals()); + } + if (model.wasPropertyExplicitlySet("geoLocations")) { + this.geoLocations(model.getGeoLocations()); + } + if (model.wasPropertyExplicitlySet("pricingType")) { + this.pricingType(model.getPricingType()); + } + if (model.wasPropertyExplicitlySet("markets")) { + this.markets(model.getMarkets()); + } + if (model.wasPropertyExplicitlySet("tagline")) { + this.tagline(model.getTagline()); + } + if (model.wasPropertyExplicitlySet("products")) { + this.products(model.getProducts()); + } + if (model.wasPropertyExplicitlySet("icon")) { + this.icon(model.getIcon()); + } + if (model.wasPropertyExplicitlySet("banner")) { + this.banner(model.getBanner()); + } + if (model.wasPropertyExplicitlySet("demoUrl")) { + this.demoUrl(model.getDemoUrl()); + } + if (model.wasPropertyExplicitlySet("industries")) { + this.industries(model.getIndustries()); + } + if (model.wasPropertyExplicitlySet("listingType")) { + this.listingType(model.getListingType()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID for the listing revision in Marketplace Publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID for the listing revision in Marketplace Publisher. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The unique legacy identifier for the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private final String legacyId; + + /** + * The unique legacy identifier for the listing. + * + * @return the value + */ + public String getLegacyId() { + return legacyId; + } + + /** The OCID for the Listing in Marketplace Publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("listingId") + private final String listingId; + + /** + * The OCID for the Listing in Marketplace Publisher. + * + * @return the value + */ + public String getListingId() { + return listingId; + } + + /** The unique identifier for the compartment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The unique identifier for the compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The OCID for the publisher in Marketplace Publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("publisherId") + private final String publisherId; + + /** + * The OCID for the publisher in Marketplace Publisher. + * + * @return the value + */ + public String getPublisherId() { + return publisherId; + } + + /** The display name for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name for the listing revision. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The current status for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final ListingRevision.Status status; + + /** + * The current status for the listing revision. + * + * @return the value + */ + public ListingRevision.Status getStatus() { + return status; + } + + /** The current state for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final ListingRevision.LifecycleState lifecycleState; + + /** + * The current state for the listing revision. + * + * @return the value + */ + public ListingRevision.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The listing's package type. */ + @com.fasterxml.jackson.annotation.JsonProperty("packageType") + private final PackageType packageType; + + /** + * The listing's package type. + * + * @return the value + */ + public PackageType getPackageType() { + return packageType; + } + + /** A short description for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("shortDescription") + private final String shortDescription; + + /** + * A short description for the listing revision. + * + * @return the value + */ + public String getShortDescription() { + return shortDescription; + } + + /** A long description for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("longDescription") + private final String longDescription; + + /** + * A long description for the listing revision. + * + * @return the value + */ + public String getLongDescription() { + return longDescription; + } + + /** List of Pricing Plans provided by publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("pricingPlans") + private final java.util.List pricingPlans; + + /** + * List of Pricing Plans provided by publisher. + * + * @return the value + */ + public java.util.List getPricingPlans() { + return pricingPlans; + } + + /** Languages supported by the publisher for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportedlanguages") + private final java.util.List supportedlanguages; + + /** + * Languages supported by the publisher for the listing revision. + * + * @return the value + */ + public java.util.List getSupportedlanguages() { + return supportedlanguages; + } + + /** Links to support resources for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportLinks") + private final java.util.List supportLinks; + + /** + * Links to support resources for the listing revision. + * + * @return the value + */ + public java.util.List getSupportLinks() { + return supportLinks; + } + + /** System requirements for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRequirements") + private final String systemRequirements; + + /** + * System requirements for the listing revision. + * + * @return the value + */ + public String getSystemRequirements() { + return systemRequirements; + } + + @com.fasterxml.jackson.annotation.JsonProperty("versionDetails") + private final VersionDetails versionDetails; + + public VersionDetails getVersionDetails() { + return versionDetails; + } + + /** Number of trained professional per product */ + @com.fasterxml.jackson.annotation.JsonProperty("trainedProfessionals") + private final java.util.List trainedProfessionals; + + /** + * Number of trained professional per product + * + * @return the value + */ + public java.util.List getTrainedProfessionals() { + return trainedProfessionals; + } + + /** Support details based on geographic location */ + @com.fasterxml.jackson.annotation.JsonProperty("geoLocations") + private final java.util.List geoLocations; + + /** + * Support details based on geographic location + * + * @return the value + */ + public java.util.List getGeoLocations() { + return geoLocations; + } + + /** The pricing model for the listing revision. */ + public enum PricingType implements com.oracle.bmc.http.internal.BmcEnum { + Free("FREE"), + Byol("BYOL"), + Paygo("PAYGO"), + + /** + * 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(PricingType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PricingType v : PricingType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PricingType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PricingType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PricingType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The pricing model for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("pricingType") + private final PricingType pricingType; + + /** + * The pricing model for the listing revision. + * + * @return the value + */ + public PricingType getPricingType() { + return pricingType; + } + + /** Markets associated with Listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("markets") + private final java.util.List markets; + + /** + * Markets associated with Listing revision. + * + * @return the value + */ + public java.util.List getMarkets() { + return markets; + } + + /** The tagline for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("tagline") + private final String tagline; + + /** + * The tagline for the listing revision. + * + * @return the value + */ + public String getTagline() { + return tagline; + } + + /** List of Admin Products subscribed by listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("products") + private final java.util.List products; + + /** + * List of Admin Products subscribed by listing. + * + * @return the value + */ + public java.util.List getProducts() { + return products; + } + + @com.fasterxml.jackson.annotation.JsonProperty("icon") + private final ListingRevisionIconAttachment icon; + + public ListingRevisionIconAttachment getIcon() { + return icon; + } + + @com.fasterxml.jackson.annotation.JsonProperty("banner") + private final ListingRevisionBannerAttachment banner; + + public ListingRevisionBannerAttachment getBanner() { + return banner; + } + + /** Url to demo of the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("demoUrl") + private final String demoUrl; + + /** + * Url to demo of the listing + * + * @return the value + */ + public String getDemoUrl() { + return demoUrl; + } + + /** List of industries subscribed by listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("industries") + private final java.util.List industries; + + /** + * List of industries subscribed by listing. + * + * @return the value + */ + public java.util.List getIndustries() { + return industries; + } + + /** The listing's type. Populated from the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("listingType") + private final ListingType listingType; + + /** + * The listing's type. Populated from the listing. + * + * @return the value + */ + public ListingType getListingType() { + return listingType; + } + + /** + * The date and time the listing revision was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

    Example: {@code 2022-09-15T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time the listing revision was updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

    Example: {@code 2022-09-15T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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("AdminListingRevisionSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", legacyId=").append(String.valueOf(this.legacyId)); + sb.append(", listingId=").append(String.valueOf(this.listingId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", publisherId=").append(String.valueOf(this.publisherId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", packageType=").append(String.valueOf(this.packageType)); + sb.append(", shortDescription=").append(String.valueOf(this.shortDescription)); + sb.append(", longDescription=").append(String.valueOf(this.longDescription)); + sb.append(", pricingPlans=").append(String.valueOf(this.pricingPlans)); + sb.append(", supportedlanguages=").append(String.valueOf(this.supportedlanguages)); + sb.append(", supportLinks=").append(String.valueOf(this.supportLinks)); + sb.append(", systemRequirements=").append(String.valueOf(this.systemRequirements)); + sb.append(", versionDetails=").append(String.valueOf(this.versionDetails)); + sb.append(", trainedProfessionals=").append(String.valueOf(this.trainedProfessionals)); + sb.append(", geoLocations=").append(String.valueOf(this.geoLocations)); + sb.append(", pricingType=").append(String.valueOf(this.pricingType)); + sb.append(", markets=").append(String.valueOf(this.markets)); + sb.append(", tagline=").append(String.valueOf(this.tagline)); + sb.append(", products=").append(String.valueOf(this.products)); + sb.append(", icon=").append(String.valueOf(this.icon)); + sb.append(", banner=").append(String.valueOf(this.banner)); + sb.append(", demoUrl=").append(String.valueOf(this.demoUrl)); + sb.append(", industries=").append(String.valueOf(this.industries)); + sb.append(", listingType=").append(String.valueOf(this.listingType)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminListingRevisionSummary)) { + return false; + } + + AdminListingRevisionSummary other = (AdminListingRevisionSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.legacyId, other.legacyId) + && java.util.Objects.equals(this.listingId, other.listingId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.publisherId, other.publisherId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.packageType, other.packageType) + && java.util.Objects.equals(this.shortDescription, other.shortDescription) + && java.util.Objects.equals(this.longDescription, other.longDescription) + && java.util.Objects.equals(this.pricingPlans, other.pricingPlans) + && java.util.Objects.equals(this.supportedlanguages, other.supportedlanguages) + && java.util.Objects.equals(this.supportLinks, other.supportLinks) + && java.util.Objects.equals(this.systemRequirements, other.systemRequirements) + && java.util.Objects.equals(this.versionDetails, other.versionDetails) + && java.util.Objects.equals(this.trainedProfessionals, other.trainedProfessionals) + && java.util.Objects.equals(this.geoLocations, other.geoLocations) + && java.util.Objects.equals(this.pricingType, other.pricingType) + && java.util.Objects.equals(this.markets, other.markets) + && java.util.Objects.equals(this.tagline, other.tagline) + && java.util.Objects.equals(this.products, other.products) + && java.util.Objects.equals(this.icon, other.icon) + && java.util.Objects.equals(this.banner, other.banner) + && java.util.Objects.equals(this.demoUrl, other.demoUrl) + && java.util.Objects.equals(this.industries, other.industries) + && java.util.Objects.equals(this.listingType, other.listingType) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.legacyId == null ? 43 : this.legacyId.hashCode()); + result = (result * PRIME) + (this.listingId == null ? 43 : this.listingId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.publisherId == null ? 43 : this.publisherId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.packageType == null ? 43 : this.packageType.hashCode()); + result = + (result * PRIME) + + (this.shortDescription == null ? 43 : this.shortDescription.hashCode()); + result = + (result * PRIME) + + (this.longDescription == null ? 43 : this.longDescription.hashCode()); + result = (result * PRIME) + (this.pricingPlans == null ? 43 : this.pricingPlans.hashCode()); + result = + (result * PRIME) + + (this.supportedlanguages == null + ? 43 + : this.supportedlanguages.hashCode()); + result = (result * PRIME) + (this.supportLinks == null ? 43 : this.supportLinks.hashCode()); + result = + (result * PRIME) + + (this.systemRequirements == null + ? 43 + : this.systemRequirements.hashCode()); + result = + (result * PRIME) + + (this.versionDetails == null ? 43 : this.versionDetails.hashCode()); + result = + (result * PRIME) + + (this.trainedProfessionals == null + ? 43 + : this.trainedProfessionals.hashCode()); + result = (result * PRIME) + (this.geoLocations == null ? 43 : this.geoLocations.hashCode()); + result = (result * PRIME) + (this.pricingType == null ? 43 : this.pricingType.hashCode()); + result = (result * PRIME) + (this.markets == null ? 43 : this.markets.hashCode()); + result = (result * PRIME) + (this.tagline == null ? 43 : this.tagline.hashCode()); + result = (result * PRIME) + (this.products == null ? 43 : this.products.hashCode()); + result = (result * PRIME) + (this.icon == null ? 43 : this.icon.hashCode()); + result = (result * PRIME) + (this.banner == null ? 43 : this.banner.hashCode()); + result = (result * PRIME) + (this.demoUrl == null ? 43 : this.demoUrl.hashCode()); + result = (result * PRIME) + (this.industries == null ? 43 : this.industries.hashCode()); + result = (result * PRIME) + (this.listingType == null ? 43 : this.listingType.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminMachineImageArtifact.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminMachineImageArtifact.java new file mode 100644 index 00000000000..5e8fdaf05cb --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminMachineImageArtifact.java @@ -0,0 +1,321 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Machine Image artifact 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: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminMachineImageArtifact.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "artifactType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminMachineImageArtifact extends AdminArtifact { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private String legacyId; + + public Builder legacyId(String legacyId) { + this.legacyId = legacyId; + this.__explicitlySet__.add("legacyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Artifact.Status status; + + public Builder status(Artifact.Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("statusNotes") + private String statusNotes; + + public Builder statusNotes(String statusNotes) { + this.statusNotes = statusNotes; + this.__explicitlySet__.add("statusNotes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private Artifact.LifecycleState lifecycleState; + + public Builder lifecycleState(Artifact.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + 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("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("publisherId") + private String publisherId; + + public Builder publisherId(String publisherId) { + this.publisherId = publisherId; + this.__explicitlySet__.add("publisherId"); + 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("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("machineImage") + private MachineImageDetails machineImage; + + public Builder machineImage(MachineImageDetails machineImage) { + this.machineImage = machineImage; + this.__explicitlySet__.add("machineImage"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdminMachineImageArtifact build() { + AdminMachineImageArtifact model = + new AdminMachineImageArtifact( + this.id, + this.legacyId, + this.displayName, + this.status, + this.statusNotes, + this.lifecycleState, + this.timeCreated, + this.compartmentId, + this.publisherId, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags, + this.machineImage); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminMachineImageArtifact model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("legacyId")) { + this.legacyId(model.getLegacyId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("statusNotes")) { + this.statusNotes(model.getStatusNotes()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("publisherId")) { + this.publisherId(model.getPublisherId()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("machineImage")) { + this.machineImage(model.getMachineImage()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public AdminMachineImageArtifact( + String id, + String legacyId, + String displayName, + Artifact.Status status, + String statusNotes, + Artifact.LifecycleState lifecycleState, + java.util.Date timeCreated, + String compartmentId, + String publisherId, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + MachineImageDetails machineImage) { + super( + id, + legacyId, + displayName, + status, + statusNotes, + lifecycleState, + timeCreated, + compartmentId, + publisherId, + timeUpdated, + freeformTags, + definedTags, + systemTags); + this.machineImage = machineImage; + } + + @com.fasterxml.jackson.annotation.JsonProperty("machineImage") + private final MachineImageDetails machineImage; + + public MachineImageDetails getMachineImage() { + return machineImage; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AdminMachineImageArtifact("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", machineImage=").append(String.valueOf(this.machineImage)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminMachineImageArtifact)) { + return false; + } + + AdminMachineImageArtifact other = (AdminMachineImageArtifact) o; + return java.util.Objects.equals(this.machineImage, other.machineImage) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.machineImage == null ? 43 : this.machineImage.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminMachineImagePackage.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminMachineImagePackage.java new file mode 100644 index 00000000000..33830f1980f --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminMachineImagePackage.java @@ -0,0 +1,415 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * A package for machine image listings.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminMachineImagePackage.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "packageType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminMachineImagePackage extends AdminListingRevisionPackage { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private String legacyId; + + public Builder legacyId(String legacyId) { + this.legacyId = legacyId; + this.__explicitlySet__.add("legacyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("listingRevisionId") + private String listingRevisionId; + + public Builder listingRevisionId(String listingRevisionId) { + this.listingRevisionId = listingRevisionId; + this.__explicitlySet__.add("listingRevisionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("artifactId") + private String artifactId; + + public Builder artifactId(String artifactId) { + this.artifactId = artifactId; + this.__explicitlySet__.add("artifactId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termId") + private String termId; + + public Builder termId(String termId) { + this.termId = termId; + this.__explicitlySet__.add("termId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("packageVersion") + private String packageVersion; + + public Builder packageVersion(String packageVersion) { + this.packageVersion = packageVersion; + this.__explicitlySet__.add("packageVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private ListingRevisionPackage.LifecycleState lifecycleState; + + public Builder lifecycleState(ListingRevisionPackage.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("status") + private ListingRevisionPackage.Status status; + + public Builder status(ListingRevisionPackage.Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("areSecurityUpgradesProvided") + private Boolean areSecurityUpgradesProvided; + + public Builder areSecurityUpgradesProvided(Boolean areSecurityUpgradesProvided) { + this.areSecurityUpgradesProvided = areSecurityUpgradesProvided; + this.__explicitlySet__.add("areSecurityUpgradesProvided"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") + private Boolean isDefault; + + public Builder isDefault(Boolean isDefault) { + this.isDefault = isDefault; + this.__explicitlySet__.add("isDefault"); + 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("extendedMetadata") + private java.util.Map extendedMetadata; + + public Builder extendedMetadata(java.util.Map extendedMetadata) { + this.extendedMetadata = extendedMetadata; + this.__explicitlySet__.add("extendedMetadata"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("machineImageDetails") + private MachineImagePackageDetails machineImageDetails; + + public Builder machineImageDetails(MachineImagePackageDetails machineImageDetails) { + this.machineImageDetails = machineImageDetails; + this.__explicitlySet__.add("machineImageDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdminMachineImagePackage build() { + AdminMachineImagePackage model = + new AdminMachineImagePackage( + this.id, + this.legacyId, + this.displayName, + this.description, + this.listingRevisionId, + this.compartmentId, + this.artifactId, + this.termId, + this.packageVersion, + this.lifecycleState, + this.status, + this.areSecurityUpgradesProvided, + this.isDefault, + this.timeCreated, + this.timeUpdated, + this.extendedMetadata, + this.freeformTags, + this.definedTags, + this.systemTags, + this.machineImageDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminMachineImagePackage model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("legacyId")) { + this.legacyId(model.getLegacyId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("listingRevisionId")) { + this.listingRevisionId(model.getListingRevisionId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("artifactId")) { + this.artifactId(model.getArtifactId()); + } + if (model.wasPropertyExplicitlySet("termId")) { + this.termId(model.getTermId()); + } + if (model.wasPropertyExplicitlySet("packageVersion")) { + this.packageVersion(model.getPackageVersion()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("areSecurityUpgradesProvided")) { + this.areSecurityUpgradesProvided(model.getAreSecurityUpgradesProvided()); + } + if (model.wasPropertyExplicitlySet("isDefault")) { + this.isDefault(model.getIsDefault()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("extendedMetadata")) { + this.extendedMetadata(model.getExtendedMetadata()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("machineImageDetails")) { + this.machineImageDetails(model.getMachineImageDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public AdminMachineImagePackage( + String id, + String legacyId, + String displayName, + String description, + String listingRevisionId, + String compartmentId, + String artifactId, + String termId, + String packageVersion, + ListingRevisionPackage.LifecycleState lifecycleState, + ListingRevisionPackage.Status status, + Boolean areSecurityUpgradesProvided, + Boolean isDefault, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map extendedMetadata, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + MachineImagePackageDetails machineImageDetails) { + super( + id, + legacyId, + displayName, + description, + listingRevisionId, + compartmentId, + artifactId, + termId, + packageVersion, + lifecycleState, + status, + areSecurityUpgradesProvided, + isDefault, + timeCreated, + timeUpdated, + extendedMetadata, + freeformTags, + definedTags, + systemTags); + this.machineImageDetails = machineImageDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("machineImageDetails") + private final MachineImagePackageDetails machineImageDetails; + + public MachineImagePackageDetails getMachineImageDetails() { + return machineImageDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AdminMachineImagePackage("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", machineImageDetails=").append(String.valueOf(this.machineImageDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminMachineImagePackage)) { + return false; + } + + AdminMachineImagePackage other = (AdminMachineImagePackage) o; + return java.util.Objects.equals(this.machineImageDetails, other.machineImageDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.machineImageDetails == null + ? 43 + : this.machineImageDetails.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminMarket.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminMarket.java new file mode 100644 index 00000000000..88e2a9cd6a0 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminMarket.java @@ -0,0 +1,244 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * The model for the admin market 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: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AdminMarket.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminMarket extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "code", "categoryCode", "billToCountries"}) + public AdminMarket( + String name, + String code, + String categoryCode, + java.util.List billToCountries) { + super(); + this.name = name; + this.code = code; + this.categoryCode = categoryCode; + this.billToCountries = billToCountries; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the market. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the market. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** The code of the market. */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private String code; + + /** + * The code of the market. + * + * @param code the value to set + * @return this builder + */ + public Builder code(String code) { + this.code = code; + this.__explicitlySet__.add("code"); + return this; + } + /** The category code of the market. */ + @com.fasterxml.jackson.annotation.JsonProperty("categoryCode") + private String categoryCode; + + /** + * The category code of the market. + * + * @param categoryCode the value to set + * @return this builder + */ + public Builder categoryCode(String categoryCode) { + this.categoryCode = categoryCode; + this.__explicitlySet__.add("categoryCode"); + return this; + } + /** bill to countries for the market. */ + @com.fasterxml.jackson.annotation.JsonProperty("billToCountries") + private java.util.List billToCountries; + + /** + * bill to countries for the market. + * + * @param billToCountries the value to set + * @return this builder + */ + public Builder billToCountries(java.util.List billToCountries) { + this.billToCountries = billToCountries; + this.__explicitlySet__.add("billToCountries"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdminMarket build() { + AdminMarket model = + new AdminMarket(this.name, this.code, this.categoryCode, this.billToCountries); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminMarket model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("code")) { + this.code(model.getCode()); + } + if (model.wasPropertyExplicitlySet("categoryCode")) { + this.categoryCode(model.getCategoryCode()); + } + if (model.wasPropertyExplicitlySet("billToCountries")) { + this.billToCountries(model.getBillToCountries()); + } + 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 market. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the market. + * + * @return the value + */ + public String getName() { + return name; + } + + /** The code of the market. */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private final String code; + + /** + * The code of the market. + * + * @return the value + */ + public String getCode() { + return code; + } + + /** The category code of the market. */ + @com.fasterxml.jackson.annotation.JsonProperty("categoryCode") + private final String categoryCode; + + /** + * The category code of the market. + * + * @return the value + */ + public String getCategoryCode() { + return categoryCode; + } + + /** bill to countries for the market. */ + @com.fasterxml.jackson.annotation.JsonProperty("billToCountries") + private final java.util.List billToCountries; + + /** + * bill to countries for the market. + * + * @return the value + */ + public java.util.List getBillToCountries() { + return billToCountries; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AdminMarket("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", code=").append(String.valueOf(this.code)); + sb.append(", categoryCode=").append(String.valueOf(this.categoryCode)); + sb.append(", billToCountries=").append(String.valueOf(this.billToCountries)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminMarket)) { + return false; + } + + AdminMarket other = (AdminMarket) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.code, other.code) + && java.util.Objects.equals(this.categoryCode, other.categoryCode) + && java.util.Objects.equals(this.billToCountries, other.billToCountries) + && 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.code == null ? 43 : this.code.hashCode()); + result = (result * PRIME) + (this.categoryCode == null ? 43 : this.categoryCode.hashCode()); + result = + (result * PRIME) + + (this.billToCountries == null ? 43 : this.billToCountries.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminOciListingRevision.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminOciListingRevision.java new file mode 100644 index 00000000000..94b5931bfa8 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminOciListingRevision.java @@ -0,0 +1,1099 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Listing revision details for listings
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminOciListingRevision.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "listingType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminOciListingRevision extends AdminListingRevision { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private String legacyId; + + public Builder legacyId(String legacyId) { + this.legacyId = legacyId; + this.__explicitlySet__.add("legacyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("listingId") + private String listingId; + + public Builder listingId(String listingId) { + this.listingId = listingId; + this.__explicitlySet__.add("listingId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("publisherId") + private String publisherId; + + public Builder publisherId(String publisherId) { + this.publisherId = publisherId; + this.__explicitlySet__.add("publisherId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("approverId") + private String approverId; + + public Builder approverId(String approverId) { + this.approverId = approverId; + this.__explicitlySet__.add("approverId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("approverEmail") + private String approverEmail; + + public Builder approverEmail(String approverEmail) { + this.approverEmail = approverEmail; + this.__explicitlySet__.add("approverEmail"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("revisionNumber") + private String revisionNumber; + + public Builder revisionNumber(String revisionNumber) { + this.revisionNumber = revisionNumber; + this.__explicitlySet__.add("revisionNumber"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("headline") + private String headline; + + public Builder headline(String headline) { + this.headline = headline; + this.__explicitlySet__.add("headline"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tagline") + private String tagline; + + public Builder tagline(String tagline) { + this.tagline = tagline; + this.__explicitlySet__.add("tagline"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("keywords") + private String keywords; + + public Builder keywords(String keywords) { + this.keywords = keywords; + this.__explicitlySet__.add("keywords"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("shortDescription") + private String shortDescription; + + public Builder shortDescription(String shortDescription) { + this.shortDescription = shortDescription; + this.__explicitlySet__.add("shortDescription"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("usageInformation") + private String usageInformation; + + public Builder usageInformation(String usageInformation) { + this.usageInformation = usageInformation; + this.__explicitlySet__.add("usageInformation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("longDescription") + private String longDescription; + + public Builder longDescription(String longDescription) { + this.longDescription = longDescription; + this.__explicitlySet__.add("longDescription"); + 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("contentLanguage") + private LanguageItem contentLanguage; + + public Builder contentLanguage(LanguageItem contentLanguage) { + this.contentLanguage = contentLanguage; + this.__explicitlySet__.add("contentLanguage"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("supportedlanguages") + private java.util.List supportedlanguages; + + public Builder supportedlanguages(java.util.List supportedlanguages) { + this.supportedlanguages = supportedlanguages; + this.__explicitlySet__.add("supportedlanguages"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("supportContacts") + private java.util.List supportContacts; + + public Builder supportContacts(java.util.List supportContacts) { + this.supportContacts = supportContacts; + this.__explicitlySet__.add("supportContacts"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("supportLinks") + private java.util.List supportLinks; + + public Builder supportLinks(java.util.List supportLinks) { + this.supportLinks = supportLinks; + this.__explicitlySet__.add("supportLinks"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("icon") + private ListingRevisionIconAttachment icon; + + public Builder icon(ListingRevisionIconAttachment icon) { + this.icon = icon; + this.__explicitlySet__.add("icon"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("banner") + private ListingRevisionBannerAttachment banner; + + public Builder banner(ListingRevisionBannerAttachment banner) { + this.banner = banner; + this.__explicitlySet__.add("banner"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("status") + private ListingRevision.Status status; + + public Builder status(ListingRevision.Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("statusNotes") + private String statusNotes; + + public Builder statusNotes(String statusNotes) { + this.statusNotes = statusNotes; + this.__explicitlySet__.add("statusNotes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private ListingRevision.LifecycleState lifecycleState; + + public Builder lifecycleState(ListingRevision.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("packageType") + private PackageType packageType; + + public Builder packageType(PackageType packageType) { + this.packageType = packageType; + this.__explicitlySet__.add("packageType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("extendedMetadata") + private java.util.Map extendedMetadata; + + public Builder extendedMetadata(java.util.Map extendedMetadata) { + this.extendedMetadata = extendedMetadata; + this.__explicitlySet__.add("extendedMetadata"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("versionDetails") + private VersionDetails versionDetails; + + public Builder versionDetails(VersionDetails versionDetails) { + this.versionDetails = versionDetails; + this.__explicitlySet__.add("versionDetails"); + return this; + } + /** The pricing model for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("pricingType") + private OciListingRevision.PricingType pricingType; + + /** + * The pricing model for the listing revision. + * + * @param pricingType the value to set + * @return this builder + */ + public Builder pricingType(OciListingRevision.PricingType pricingType) { + this.pricingType = pricingType; + this.__explicitlySet__.add("pricingType"); + return this; + } + /** System requirements for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRequirements") + private String systemRequirements; + + /** + * System requirements for the listing revision. + * + * @param systemRequirements the value to set + * @return this builder + */ + public Builder systemRequirements(String systemRequirements) { + this.systemRequirements = systemRequirements; + this.__explicitlySet__.add("systemRequirements"); + return this; + } + /** List of Products subscribed by listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("products") + private java.util.List products; + + /** + * List of Products subscribed by listing. + * + * @param products the value to set + * @return this builder + */ + public Builder products(java.util.List products) { + this.products = products; + this.__explicitlySet__.add("products"); + return this; + } + /** The url provided by partner for the registration of subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("partnerRegistrationUrl") + private String partnerRegistrationUrl; + + /** + * The url provided by partner for the registration of subscription. + * + * @param partnerRegistrationUrl the value to set + * @return this builder + */ + public Builder partnerRegistrationUrl(String partnerRegistrationUrl) { + this.partnerRegistrationUrl = partnerRegistrationUrl; + this.__explicitlySet__.add("partnerRegistrationUrl"); + return this; + } + /** The unique id of the term attached to the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("termId") + private String termId; + + /** + * The unique id of the term attached to the listing. + * + * @param termId the value to set + * @return this builder + */ + public Builder termId(String termId) { + this.termId = termId; + this.__explicitlySet__.add("termId"); + return this; + } + /** List of Pricing Plans provided by publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("pricingPlans") + private java.util.List pricingPlans; + + /** + * List of Pricing Plans provided by publisher. + * + * @param pricingPlans the value to set + * @return this builder + */ + public Builder pricingPlans(java.util.List pricingPlans) { + this.pricingPlans = pricingPlans; + this.__explicitlySet__.add("pricingPlans"); + return this; + } + /** The markets where the listing will be published. */ + @com.fasterxml.jackson.annotation.JsonProperty("markets") + private java.util.List markets; + + /** + * The markets where the listing will be published. + * + * @param markets the value to set + * @return this builder + */ + public Builder markets(java.util.List markets) { + this.markets = markets; + this.__explicitlySet__.add("markets"); + return this; + } + /** Allowed tenancies provided when a listing revision is published as private. */ + @com.fasterxml.jackson.annotation.JsonProperty("allowedTenancies") + private java.util.List allowedTenancies; + + /** + * Allowed tenancies provided when a listing revision is published as private. + * + * @param allowedTenancies the value to set + * @return this builder + */ + public Builder allowedTenancies(java.util.List allowedTenancies) { + this.allowedTenancies = allowedTenancies; + this.__explicitlySet__.add("allowedTenancies"); + return this; + } + /** + * Identifies whether publisher allows internal tenancy launches for the listing revision. + */ + @com.fasterxml.jackson.annotation.JsonProperty("areInternalTenancyLaunchAllowed") + private Boolean areInternalTenancyLaunchAllowed; + + /** + * Identifies whether publisher allows internal tenancy launches for the listing revision. + * + * @param areInternalTenancyLaunchAllowed the value to set + * @return this builder + */ + public Builder areInternalTenancyLaunchAllowed(Boolean areInternalTenancyLaunchAllowed) { + this.areInternalTenancyLaunchAllowed = areInternalTenancyLaunchAllowed; + this.__explicitlySet__.add("areInternalTenancyLaunchAllowed"); + return this; + } + /** Is this listing rover exportable */ + @com.fasterxml.jackson.annotation.JsonProperty("isRoverExportable") + private Boolean isRoverExportable; + + /** + * Is this listing rover exportable + * + * @param isRoverExportable the value to set + * @return this builder + */ + public Builder isRoverExportable(Boolean isRoverExportable) { + this.isRoverExportable = isRoverExportable; + this.__explicitlySet__.add("isRoverExportable"); + return this; + } + /** Custom link to the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("vanityUrl") + private String vanityUrl; + + /** + * Custom link to the listing + * + * @param vanityUrl the value to set + * @return this builder + */ + public Builder vanityUrl(String vanityUrl) { + this.vanityUrl = vanityUrl; + this.__explicitlySet__.add("vanityUrl"); + return this; + } + /** Url to demo of the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("demoUrl") + private String demoUrl; + + /** + * Url to demo of the listing + * + * @param demoUrl the value to set + * @return this builder + */ + public Builder demoUrl(String demoUrl) { + this.demoUrl = demoUrl; + this.__explicitlySet__.add("demoUrl"); + return this; + } + /** Url to training resources of the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("selfPacedTrainingUrl") + private String selfPacedTrainingUrl; + + /** + * Url to training resources of the listing + * + * @param selfPacedTrainingUrl the value to set + * @return this builder + */ + public Builder selfPacedTrainingUrl(String selfPacedTrainingUrl) { + this.selfPacedTrainingUrl = selfPacedTrainingUrl; + this.__explicitlySet__.add("selfPacedTrainingUrl"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdminOciListingRevision build() { + AdminOciListingRevision model = + new AdminOciListingRevision( + this.id, + this.legacyId, + this.listingId, + this.compartmentId, + this.publisherId, + this.approverId, + this.approverEmail, + this.displayName, + this.revisionNumber, + this.headline, + this.tagline, + this.keywords, + this.shortDescription, + this.usageInformation, + this.longDescription, + this.timeCreated, + this.timeUpdated, + this.contentLanguage, + this.supportedlanguages, + this.supportContacts, + this.supportLinks, + this.icon, + this.banner, + this.status, + this.statusNotes, + this.lifecycleState, + this.packageType, + this.extendedMetadata, + this.freeformTags, + this.definedTags, + this.systemTags, + this.versionDetails, + this.pricingType, + this.systemRequirements, + this.products, + this.partnerRegistrationUrl, + this.termId, + this.pricingPlans, + this.markets, + this.allowedTenancies, + this.areInternalTenancyLaunchAllowed, + this.isRoverExportable, + this.vanityUrl, + this.demoUrl, + this.selfPacedTrainingUrl); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminOciListingRevision model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("legacyId")) { + this.legacyId(model.getLegacyId()); + } + if (model.wasPropertyExplicitlySet("listingId")) { + this.listingId(model.getListingId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("publisherId")) { + this.publisherId(model.getPublisherId()); + } + if (model.wasPropertyExplicitlySet("approverId")) { + this.approverId(model.getApproverId()); + } + if (model.wasPropertyExplicitlySet("approverEmail")) { + this.approverEmail(model.getApproverEmail()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("revisionNumber")) { + this.revisionNumber(model.getRevisionNumber()); + } + if (model.wasPropertyExplicitlySet("headline")) { + this.headline(model.getHeadline()); + } + if (model.wasPropertyExplicitlySet("tagline")) { + this.tagline(model.getTagline()); + } + if (model.wasPropertyExplicitlySet("keywords")) { + this.keywords(model.getKeywords()); + } + if (model.wasPropertyExplicitlySet("shortDescription")) { + this.shortDescription(model.getShortDescription()); + } + if (model.wasPropertyExplicitlySet("usageInformation")) { + this.usageInformation(model.getUsageInformation()); + } + if (model.wasPropertyExplicitlySet("longDescription")) { + this.longDescription(model.getLongDescription()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("contentLanguage")) { + this.contentLanguage(model.getContentLanguage()); + } + if (model.wasPropertyExplicitlySet("supportedlanguages")) { + this.supportedlanguages(model.getSupportedlanguages()); + } + if (model.wasPropertyExplicitlySet("supportContacts")) { + this.supportContacts(model.getSupportContacts()); + } + if (model.wasPropertyExplicitlySet("supportLinks")) { + this.supportLinks(model.getSupportLinks()); + } + if (model.wasPropertyExplicitlySet("icon")) { + this.icon(model.getIcon()); + } + if (model.wasPropertyExplicitlySet("banner")) { + this.banner(model.getBanner()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("statusNotes")) { + this.statusNotes(model.getStatusNotes()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("packageType")) { + this.packageType(model.getPackageType()); + } + if (model.wasPropertyExplicitlySet("extendedMetadata")) { + this.extendedMetadata(model.getExtendedMetadata()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("versionDetails")) { + this.versionDetails(model.getVersionDetails()); + } + if (model.wasPropertyExplicitlySet("pricingType")) { + this.pricingType(model.getPricingType()); + } + if (model.wasPropertyExplicitlySet("systemRequirements")) { + this.systemRequirements(model.getSystemRequirements()); + } + if (model.wasPropertyExplicitlySet("products")) { + this.products(model.getProducts()); + } + if (model.wasPropertyExplicitlySet("partnerRegistrationUrl")) { + this.partnerRegistrationUrl(model.getPartnerRegistrationUrl()); + } + if (model.wasPropertyExplicitlySet("termId")) { + this.termId(model.getTermId()); + } + if (model.wasPropertyExplicitlySet("pricingPlans")) { + this.pricingPlans(model.getPricingPlans()); + } + if (model.wasPropertyExplicitlySet("markets")) { + this.markets(model.getMarkets()); + } + if (model.wasPropertyExplicitlySet("allowedTenancies")) { + this.allowedTenancies(model.getAllowedTenancies()); + } + if (model.wasPropertyExplicitlySet("areInternalTenancyLaunchAllowed")) { + this.areInternalTenancyLaunchAllowed(model.getAreInternalTenancyLaunchAllowed()); + } + if (model.wasPropertyExplicitlySet("isRoverExportable")) { + this.isRoverExportable(model.getIsRoverExportable()); + } + if (model.wasPropertyExplicitlySet("vanityUrl")) { + this.vanityUrl(model.getVanityUrl()); + } + if (model.wasPropertyExplicitlySet("demoUrl")) { + this.demoUrl(model.getDemoUrl()); + } + if (model.wasPropertyExplicitlySet("selfPacedTrainingUrl")) { + this.selfPacedTrainingUrl(model.getSelfPacedTrainingUrl()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public AdminOciListingRevision( + String id, + String legacyId, + String listingId, + String compartmentId, + String publisherId, + String approverId, + String approverEmail, + String displayName, + String revisionNumber, + String headline, + String tagline, + String keywords, + String shortDescription, + String usageInformation, + String longDescription, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LanguageItem contentLanguage, + java.util.List supportedlanguages, + java.util.List supportContacts, + java.util.List supportLinks, + ListingRevisionIconAttachment icon, + ListingRevisionBannerAttachment banner, + ListingRevision.Status status, + String statusNotes, + ListingRevision.LifecycleState lifecycleState, + PackageType packageType, + java.util.Map extendedMetadata, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + VersionDetails versionDetails, + OciListingRevision.PricingType pricingType, + String systemRequirements, + java.util.List products, + String partnerRegistrationUrl, + String termId, + java.util.List pricingPlans, + java.util.List markets, + java.util.List allowedTenancies, + Boolean areInternalTenancyLaunchAllowed, + Boolean isRoverExportable, + String vanityUrl, + String demoUrl, + String selfPacedTrainingUrl) { + super( + id, + legacyId, + listingId, + compartmentId, + publisherId, + approverId, + approverEmail, + displayName, + revisionNumber, + headline, + tagline, + keywords, + shortDescription, + usageInformation, + longDescription, + timeCreated, + timeUpdated, + contentLanguage, + supportedlanguages, + supportContacts, + supportLinks, + icon, + banner, + status, + statusNotes, + lifecycleState, + packageType, + extendedMetadata, + freeformTags, + definedTags, + systemTags); + this.versionDetails = versionDetails; + this.pricingType = pricingType; + this.systemRequirements = systemRequirements; + this.products = products; + this.partnerRegistrationUrl = partnerRegistrationUrl; + this.termId = termId; + this.pricingPlans = pricingPlans; + this.markets = markets; + this.allowedTenancies = allowedTenancies; + this.areInternalTenancyLaunchAllowed = areInternalTenancyLaunchAllowed; + this.isRoverExportable = isRoverExportable; + this.vanityUrl = vanityUrl; + this.demoUrl = demoUrl; + this.selfPacedTrainingUrl = selfPacedTrainingUrl; + } + + @com.fasterxml.jackson.annotation.JsonProperty("versionDetails") + private final VersionDetails versionDetails; + + public VersionDetails getVersionDetails() { + return versionDetails; + } + + /** The pricing model for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("pricingType") + private final OciListingRevision.PricingType pricingType; + + /** + * The pricing model for the listing revision. + * + * @return the value + */ + public OciListingRevision.PricingType getPricingType() { + return pricingType; + } + + /** System requirements for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRequirements") + private final String systemRequirements; + + /** + * System requirements for the listing revision. + * + * @return the value + */ + public String getSystemRequirements() { + return systemRequirements; + } + + /** List of Products subscribed by listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("products") + private final java.util.List products; + + /** + * List of Products subscribed by listing. + * + * @return the value + */ + public java.util.List getProducts() { + return products; + } + + /** The url provided by partner for the registration of subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("partnerRegistrationUrl") + private final String partnerRegistrationUrl; + + /** + * The url provided by partner for the registration of subscription. + * + * @return the value + */ + public String getPartnerRegistrationUrl() { + return partnerRegistrationUrl; + } + + /** The unique id of the term attached to the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("termId") + private final String termId; + + /** + * The unique id of the term attached to the listing. + * + * @return the value + */ + public String getTermId() { + return termId; + } + + /** List of Pricing Plans provided by publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("pricingPlans") + private final java.util.List pricingPlans; + + /** + * List of Pricing Plans provided by publisher. + * + * @return the value + */ + public java.util.List getPricingPlans() { + return pricingPlans; + } + + /** The markets where the listing will be published. */ + @com.fasterxml.jackson.annotation.JsonProperty("markets") + private final java.util.List markets; + + /** + * The markets where the listing will be published. + * + * @return the value + */ + public java.util.List getMarkets() { + return markets; + } + + /** Allowed tenancies provided when a listing revision is published as private. */ + @com.fasterxml.jackson.annotation.JsonProperty("allowedTenancies") + private final java.util.List allowedTenancies; + + /** + * Allowed tenancies provided when a listing revision is published as private. + * + * @return the value + */ + public java.util.List getAllowedTenancies() { + return allowedTenancies; + } + + /** Identifies whether publisher allows internal tenancy launches for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("areInternalTenancyLaunchAllowed") + private final Boolean areInternalTenancyLaunchAllowed; + + /** + * Identifies whether publisher allows internal tenancy launches for the listing revision. + * + * @return the value + */ + public Boolean getAreInternalTenancyLaunchAllowed() { + return areInternalTenancyLaunchAllowed; + } + + /** Is this listing rover exportable */ + @com.fasterxml.jackson.annotation.JsonProperty("isRoverExportable") + private final Boolean isRoverExportable; + + /** + * Is this listing rover exportable + * + * @return the value + */ + public Boolean getIsRoverExportable() { + return isRoverExportable; + } + + /** Custom link to the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("vanityUrl") + private final String vanityUrl; + + /** + * Custom link to the listing + * + * @return the value + */ + public String getVanityUrl() { + return vanityUrl; + } + + /** Url to demo of the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("demoUrl") + private final String demoUrl; + + /** + * Url to demo of the listing + * + * @return the value + */ + public String getDemoUrl() { + return demoUrl; + } + + /** Url to training resources of the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("selfPacedTrainingUrl") + private final String selfPacedTrainingUrl; + + /** + * Url to training resources of the listing + * + * @return the value + */ + public String getSelfPacedTrainingUrl() { + return selfPacedTrainingUrl; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AdminOciListingRevision("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", versionDetails=").append(String.valueOf(this.versionDetails)); + sb.append(", pricingType=").append(String.valueOf(this.pricingType)); + sb.append(", systemRequirements=").append(String.valueOf(this.systemRequirements)); + sb.append(", products=").append(String.valueOf(this.products)); + sb.append(", partnerRegistrationUrl=").append(String.valueOf(this.partnerRegistrationUrl)); + sb.append(", termId=").append(String.valueOf(this.termId)); + sb.append(", pricingPlans=").append(String.valueOf(this.pricingPlans)); + sb.append(", markets=").append(String.valueOf(this.markets)); + sb.append(", allowedTenancies=").append(String.valueOf(this.allowedTenancies)); + sb.append(", areInternalTenancyLaunchAllowed=") + .append(String.valueOf(this.areInternalTenancyLaunchAllowed)); + sb.append(", isRoverExportable=").append(String.valueOf(this.isRoverExportable)); + sb.append(", vanityUrl=").append(String.valueOf(this.vanityUrl)); + sb.append(", demoUrl=").append(String.valueOf(this.demoUrl)); + sb.append(", selfPacedTrainingUrl=").append(String.valueOf(this.selfPacedTrainingUrl)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminOciListingRevision)) { + return false; + } + + AdminOciListingRevision other = (AdminOciListingRevision) o; + return java.util.Objects.equals(this.versionDetails, other.versionDetails) + && java.util.Objects.equals(this.pricingType, other.pricingType) + && java.util.Objects.equals(this.systemRequirements, other.systemRequirements) + && java.util.Objects.equals(this.products, other.products) + && java.util.Objects.equals( + this.partnerRegistrationUrl, other.partnerRegistrationUrl) + && java.util.Objects.equals(this.termId, other.termId) + && java.util.Objects.equals(this.pricingPlans, other.pricingPlans) + && java.util.Objects.equals(this.markets, other.markets) + && java.util.Objects.equals(this.allowedTenancies, other.allowedTenancies) + && java.util.Objects.equals( + this.areInternalTenancyLaunchAllowed, other.areInternalTenancyLaunchAllowed) + && java.util.Objects.equals(this.isRoverExportable, other.isRoverExportable) + && java.util.Objects.equals(this.vanityUrl, other.vanityUrl) + && java.util.Objects.equals(this.demoUrl, other.demoUrl) + && java.util.Objects.equals(this.selfPacedTrainingUrl, other.selfPacedTrainingUrl) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.versionDetails == null ? 43 : this.versionDetails.hashCode()); + result = (result * PRIME) + (this.pricingType == null ? 43 : this.pricingType.hashCode()); + result = + (result * PRIME) + + (this.systemRequirements == null + ? 43 + : this.systemRequirements.hashCode()); + result = (result * PRIME) + (this.products == null ? 43 : this.products.hashCode()); + result = + (result * PRIME) + + (this.partnerRegistrationUrl == null + ? 43 + : this.partnerRegistrationUrl.hashCode()); + result = (result * PRIME) + (this.termId == null ? 43 : this.termId.hashCode()); + result = (result * PRIME) + (this.pricingPlans == null ? 43 : this.pricingPlans.hashCode()); + result = (result * PRIME) + (this.markets == null ? 43 : this.markets.hashCode()); + result = + (result * PRIME) + + (this.allowedTenancies == null ? 43 : this.allowedTenancies.hashCode()); + result = + (result * PRIME) + + (this.areInternalTenancyLaunchAllowed == null + ? 43 + : this.areInternalTenancyLaunchAllowed.hashCode()); + result = + (result * PRIME) + + (this.isRoverExportable == null ? 43 : this.isRoverExportable.hashCode()); + result = (result * PRIME) + (this.vanityUrl == null ? 43 : this.vanityUrl.hashCode()); + result = (result * PRIME) + (this.demoUrl == null ? 43 : this.demoUrl.hashCode()); + result = + (result * PRIME) + + (this.selfPacedTrainingUrl == null + ? 43 + : this.selfPacedTrainingUrl.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminOpnPartnerSummary.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminOpnPartnerSummary.java new file mode 100644 index 00000000000..a9f7b303ff3 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminOpnPartnerSummary.java @@ -0,0 +1,945 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * OPN partner 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: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminOpnPartnerSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminOpnPartnerSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "companyId", + "partnerName", + "levelProgramName", + "startDate", + "endDate", + "membershipStatus", + "membershipType", + "streetAddress1", + "streetAddress2", + "city", + "state", + "zipcode", + "country", + "phoneNumber", + "partnerUrl", + "numberOfEmployees", + "lastUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public AdminOpnPartnerSummary( + String companyId, + String partnerName, + String levelProgramName, + String startDate, + String endDate, + MembershipStatus membershipStatus, + String membershipType, + String streetAddress1, + String streetAddress2, + String city, + String state, + String zipcode, + String country, + String phoneNumber, + String partnerUrl, + String numberOfEmployees, + String lastUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.companyId = companyId; + this.partnerName = partnerName; + this.levelProgramName = levelProgramName; + this.startDate = startDate; + this.endDate = endDate; + this.membershipStatus = membershipStatus; + this.membershipType = membershipType; + this.streetAddress1 = streetAddress1; + this.streetAddress2 = streetAddress2; + this.city = city; + this.state = state; + this.zipcode = zipcode; + this.country = country; + this.phoneNumber = phoneNumber; + this.partnerUrl = partnerUrl; + this.numberOfEmployees = numberOfEmployees; + this.lastUpdated = lastUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The id for company. */ + @com.fasterxml.jackson.annotation.JsonProperty("companyId") + private String companyId; + + /** + * The id for company. + * + * @param companyId the value to set + * @return this builder + */ + public Builder companyId(String companyId) { + this.companyId = companyId; + this.__explicitlySet__.add("companyId"); + return this; + } + /** Partner Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("partnerName") + private String partnerName; + + /** + * Partner Name. + * + * @param partnerName the value to set + * @return this builder + */ + public Builder partnerName(String partnerName) { + this.partnerName = partnerName; + this.__explicitlySet__.add("partnerName"); + return this; + } + /** Partner Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("levelProgramName") + private String levelProgramName; + + /** + * Partner Name. + * + * @param levelProgramName the value to set + * @return this builder + */ + public Builder levelProgramName(String levelProgramName) { + this.levelProgramName = levelProgramName; + this.__explicitlySet__.add("levelProgramName"); + return this; + } + /** The start date. */ + @com.fasterxml.jackson.annotation.JsonProperty("startDate") + private String startDate; + + /** + * The start date. + * + * @param startDate the value to set + * @return this builder + */ + public Builder startDate(String startDate) { + this.startDate = startDate; + this.__explicitlySet__.add("startDate"); + return this; + } + /** The end date. */ + @com.fasterxml.jackson.annotation.JsonProperty("endDate") + private String endDate; + + /** + * The end date. + * + * @param endDate the value to set + * @return this builder + */ + public Builder endDate(String endDate) { + this.endDate = endDate; + this.__explicitlySet__.add("endDate"); + return this; + } + /** The OPN membership status. */ + @com.fasterxml.jackson.annotation.JsonProperty("membershipStatus") + private MembershipStatus membershipStatus; + + /** + * The OPN membership status. + * + * @param membershipStatus the value to set + * @return this builder + */ + public Builder membershipStatus(MembershipStatus membershipStatus) { + this.membershipStatus = membershipStatus; + this.__explicitlySet__.add("membershipStatus"); + return this; + } + /** OPN membership type */ + @com.fasterxml.jackson.annotation.JsonProperty("membershipType") + private String membershipType; + + /** + * OPN membership type + * + * @param membershipType the value to set + * @return this builder + */ + public Builder membershipType(String membershipType) { + this.membershipType = membershipType; + this.__explicitlySet__.add("membershipType"); + return this; + } + /** The address of the partner. */ + @com.fasterxml.jackson.annotation.JsonProperty("streetAddress1") + private String streetAddress1; + + /** + * The address of the partner. + * + * @param streetAddress1 the value to set + * @return this builder + */ + public Builder streetAddress1(String streetAddress1) { + this.streetAddress1 = streetAddress1; + this.__explicitlySet__.add("streetAddress1"); + return this; + } + /** The address of the partner. */ + @com.fasterxml.jackson.annotation.JsonProperty("streetAddress2") + private String streetAddress2; + + /** + * The address of the partner. + * + * @param streetAddress2 the value to set + * @return this builder + */ + public Builder streetAddress2(String streetAddress2) { + this.streetAddress2 = streetAddress2; + this.__explicitlySet__.add("streetAddress2"); + return this; + } + /** City */ + @com.fasterxml.jackson.annotation.JsonProperty("city") + private String city; + + /** + * City + * + * @param city the value to set + * @return this builder + */ + public Builder city(String city) { + this.city = city; + this.__explicitlySet__.add("city"); + return this; + } + /** State */ + @com.fasterxml.jackson.annotation.JsonProperty("state") + private String state; + + /** + * State + * + * @param state the value to set + * @return this builder + */ + public Builder state(String state) { + this.state = state; + this.__explicitlySet__.add("state"); + return this; + } + /** Zip */ + @com.fasterxml.jackson.annotation.JsonProperty("zipcode") + private String zipcode; + + /** + * Zip + * + * @param zipcode the value to set + * @return this builder + */ + public Builder zipcode(String zipcode) { + this.zipcode = zipcode; + this.__explicitlySet__.add("zipcode"); + return this; + } + /** Country */ + @com.fasterxml.jackson.annotation.JsonProperty("country") + private String country; + + /** + * Country + * + * @param country the value to set + * @return this builder + */ + public Builder country(String country) { + this.country = country; + this.__explicitlySet__.add("country"); + return this; + } + /** The phone number of the contact. */ + @com.fasterxml.jackson.annotation.JsonProperty("phoneNumber") + private String phoneNumber; + + /** + * The phone number of the contact. + * + * @param phoneNumber the value to set + * @return this builder + */ + public Builder phoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + this.__explicitlySet__.add("phoneNumber"); + return this; + } + /** The URL for partner's service. */ + @com.fasterxml.jackson.annotation.JsonProperty("partnerUrl") + private String partnerUrl; + + /** + * The URL for partner's service. + * + * @param partnerUrl the value to set + * @return this builder + */ + public Builder partnerUrl(String partnerUrl) { + this.partnerUrl = partnerUrl; + this.__explicitlySet__.add("partnerUrl"); + return this; + } + /** The total number of employees. */ + @com.fasterxml.jackson.annotation.JsonProperty("numberOfEmployees") + private String numberOfEmployees; + + /** + * The total number of employees. + * + * @param numberOfEmployees the value to set + * @return this builder + */ + public Builder numberOfEmployees(String numberOfEmployees) { + this.numberOfEmployees = numberOfEmployees; + this.__explicitlySet__.add("numberOfEmployees"); + return this; + } + /** The last updated timestamp in format "yyyy-MM-dd HH:mm:ss.S". */ + @com.fasterxml.jackson.annotation.JsonProperty("lastUpdated") + private String lastUpdated; + + /** + * The last updated timestamp in format "yyyy-MM-dd HH:mm:ss.S". + * + * @param lastUpdated the value to set + * @return this builder + */ + public Builder lastUpdated(String lastUpdated) { + this.lastUpdated = lastUpdated; + this.__explicitlySet__.add("lastUpdated"); + 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; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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 AdminOpnPartnerSummary build() { + AdminOpnPartnerSummary model = + new AdminOpnPartnerSummary( + this.companyId, + this.partnerName, + this.levelProgramName, + this.startDate, + this.endDate, + this.membershipStatus, + this.membershipType, + this.streetAddress1, + this.streetAddress2, + this.city, + this.state, + this.zipcode, + this.country, + this.phoneNumber, + this.partnerUrl, + this.numberOfEmployees, + this.lastUpdated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminOpnPartnerSummary model) { + if (model.wasPropertyExplicitlySet("companyId")) { + this.companyId(model.getCompanyId()); + } + if (model.wasPropertyExplicitlySet("partnerName")) { + this.partnerName(model.getPartnerName()); + } + if (model.wasPropertyExplicitlySet("levelProgramName")) { + this.levelProgramName(model.getLevelProgramName()); + } + if (model.wasPropertyExplicitlySet("startDate")) { + this.startDate(model.getStartDate()); + } + if (model.wasPropertyExplicitlySet("endDate")) { + this.endDate(model.getEndDate()); + } + if (model.wasPropertyExplicitlySet("membershipStatus")) { + this.membershipStatus(model.getMembershipStatus()); + } + if (model.wasPropertyExplicitlySet("membershipType")) { + this.membershipType(model.getMembershipType()); + } + if (model.wasPropertyExplicitlySet("streetAddress1")) { + this.streetAddress1(model.getStreetAddress1()); + } + if (model.wasPropertyExplicitlySet("streetAddress2")) { + this.streetAddress2(model.getStreetAddress2()); + } + if (model.wasPropertyExplicitlySet("city")) { + this.city(model.getCity()); + } + if (model.wasPropertyExplicitlySet("state")) { + this.state(model.getState()); + } + if (model.wasPropertyExplicitlySet("zipcode")) { + this.zipcode(model.getZipcode()); + } + if (model.wasPropertyExplicitlySet("country")) { + this.country(model.getCountry()); + } + if (model.wasPropertyExplicitlySet("phoneNumber")) { + this.phoneNumber(model.getPhoneNumber()); + } + if (model.wasPropertyExplicitlySet("partnerUrl")) { + this.partnerUrl(model.getPartnerUrl()); + } + if (model.wasPropertyExplicitlySet("numberOfEmployees")) { + this.numberOfEmployees(model.getNumberOfEmployees()); + } + if (model.wasPropertyExplicitlySet("lastUpdated")) { + this.lastUpdated(model.getLastUpdated()); + } + 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 id for company. */ + @com.fasterxml.jackson.annotation.JsonProperty("companyId") + private final String companyId; + + /** + * The id for company. + * + * @return the value + */ + public String getCompanyId() { + return companyId; + } + + /** Partner Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("partnerName") + private final String partnerName; + + /** + * Partner Name. + * + * @return the value + */ + public String getPartnerName() { + return partnerName; + } + + /** Partner Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("levelProgramName") + private final String levelProgramName; + + /** + * Partner Name. + * + * @return the value + */ + public String getLevelProgramName() { + return levelProgramName; + } + + /** The start date. */ + @com.fasterxml.jackson.annotation.JsonProperty("startDate") + private final String startDate; + + /** + * The start date. + * + * @return the value + */ + public String getStartDate() { + return startDate; + } + + /** The end date. */ + @com.fasterxml.jackson.annotation.JsonProperty("endDate") + private final String endDate; + + /** + * The end date. + * + * @return the value + */ + public String getEndDate() { + return endDate; + } + + /** The OPN membership status. */ + public enum MembershipStatus implements com.oracle.bmc.http.internal.BmcEnum { + Active("ACTIVE"), + Inactive("INACTIVE"), + RenewalInProgress("RENEWAL_IN_PROGRESS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MembershipStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MembershipStatus v : MembershipStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MembershipStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MembershipStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MembershipStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The OPN membership status. */ + @com.fasterxml.jackson.annotation.JsonProperty("membershipStatus") + private final MembershipStatus membershipStatus; + + /** + * The OPN membership status. + * + * @return the value + */ + public MembershipStatus getMembershipStatus() { + return membershipStatus; + } + + /** OPN membership type */ + @com.fasterxml.jackson.annotation.JsonProperty("membershipType") + private final String membershipType; + + /** + * OPN membership type + * + * @return the value + */ + public String getMembershipType() { + return membershipType; + } + + /** The address of the partner. */ + @com.fasterxml.jackson.annotation.JsonProperty("streetAddress1") + private final String streetAddress1; + + /** + * The address of the partner. + * + * @return the value + */ + public String getStreetAddress1() { + return streetAddress1; + } + + /** The address of the partner. */ + @com.fasterxml.jackson.annotation.JsonProperty("streetAddress2") + private final String streetAddress2; + + /** + * The address of the partner. + * + * @return the value + */ + public String getStreetAddress2() { + return streetAddress2; + } + + /** City */ + @com.fasterxml.jackson.annotation.JsonProperty("city") + private final String city; + + /** + * City + * + * @return the value + */ + public String getCity() { + return city; + } + + /** State */ + @com.fasterxml.jackson.annotation.JsonProperty("state") + private final String state; + + /** + * State + * + * @return the value + */ + public String getState() { + return state; + } + + /** Zip */ + @com.fasterxml.jackson.annotation.JsonProperty("zipcode") + private final String zipcode; + + /** + * Zip + * + * @return the value + */ + public String getZipcode() { + return zipcode; + } + + /** Country */ + @com.fasterxml.jackson.annotation.JsonProperty("country") + private final String country; + + /** + * Country + * + * @return the value + */ + public String getCountry() { + return country; + } + + /** The phone number of the contact. */ + @com.fasterxml.jackson.annotation.JsonProperty("phoneNumber") + private final String phoneNumber; + + /** + * The phone number of the contact. + * + * @return the value + */ + public String getPhoneNumber() { + return phoneNumber; + } + + /** The URL for partner's service. */ + @com.fasterxml.jackson.annotation.JsonProperty("partnerUrl") + private final String partnerUrl; + + /** + * The URL for partner's service. + * + * @return the value + */ + public String getPartnerUrl() { + return partnerUrl; + } + + /** The total number of employees. */ + @com.fasterxml.jackson.annotation.JsonProperty("numberOfEmployees") + private final String numberOfEmployees; + + /** + * The total number of employees. + * + * @return the value + */ + public String getNumberOfEmployees() { + return numberOfEmployees; + } + + /** The last updated timestamp in format "yyyy-MM-dd HH:mm:ss.S". */ + @com.fasterxml.jackson.annotation.JsonProperty("lastUpdated") + private final String lastUpdated; + + /** + * The last updated timestamp in format "yyyy-MM-dd HH:mm:ss.S". + * + * @return the value + */ + public String getLastUpdated() { + return lastUpdated; + } + + /** + * 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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("AdminOpnPartnerSummary("); + sb.append("super=").append(super.toString()); + sb.append("companyId=").append(String.valueOf(this.companyId)); + sb.append(", partnerName=").append(String.valueOf(this.partnerName)); + sb.append(", levelProgramName=").append(String.valueOf(this.levelProgramName)); + sb.append(", startDate=").append(String.valueOf(this.startDate)); + sb.append(", endDate=").append(String.valueOf(this.endDate)); + sb.append(", membershipStatus=").append(String.valueOf(this.membershipStatus)); + sb.append(", membershipType=").append(String.valueOf(this.membershipType)); + sb.append(", streetAddress1=").append(String.valueOf(this.streetAddress1)); + sb.append(", streetAddress2=").append(String.valueOf(this.streetAddress2)); + sb.append(", city=").append(String.valueOf(this.city)); + sb.append(", state=").append(String.valueOf(this.state)); + sb.append(", zipcode=").append(String.valueOf(this.zipcode)); + sb.append(", country=").append(String.valueOf(this.country)); + sb.append(", phoneNumber=").append(String.valueOf(this.phoneNumber)); + sb.append(", partnerUrl=").append(String.valueOf(this.partnerUrl)); + sb.append(", numberOfEmployees=").append(String.valueOf(this.numberOfEmployees)); + sb.append(", lastUpdated=").append(String.valueOf(this.lastUpdated)); + 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 AdminOpnPartnerSummary)) { + return false; + } + + AdminOpnPartnerSummary other = (AdminOpnPartnerSummary) o; + return java.util.Objects.equals(this.companyId, other.companyId) + && java.util.Objects.equals(this.partnerName, other.partnerName) + && java.util.Objects.equals(this.levelProgramName, other.levelProgramName) + && java.util.Objects.equals(this.startDate, other.startDate) + && java.util.Objects.equals(this.endDate, other.endDate) + && java.util.Objects.equals(this.membershipStatus, other.membershipStatus) + && java.util.Objects.equals(this.membershipType, other.membershipType) + && java.util.Objects.equals(this.streetAddress1, other.streetAddress1) + && java.util.Objects.equals(this.streetAddress2, other.streetAddress2) + && java.util.Objects.equals(this.city, other.city) + && java.util.Objects.equals(this.state, other.state) + && java.util.Objects.equals(this.zipcode, other.zipcode) + && java.util.Objects.equals(this.country, other.country) + && java.util.Objects.equals(this.phoneNumber, other.phoneNumber) + && java.util.Objects.equals(this.partnerUrl, other.partnerUrl) + && java.util.Objects.equals(this.numberOfEmployees, other.numberOfEmployees) + && java.util.Objects.equals(this.lastUpdated, other.lastUpdated) + && 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.companyId == null ? 43 : this.companyId.hashCode()); + result = (result * PRIME) + (this.partnerName == null ? 43 : this.partnerName.hashCode()); + result = + (result * PRIME) + + (this.levelProgramName == null ? 43 : this.levelProgramName.hashCode()); + result = (result * PRIME) + (this.startDate == null ? 43 : this.startDate.hashCode()); + result = (result * PRIME) + (this.endDate == null ? 43 : this.endDate.hashCode()); + result = + (result * PRIME) + + (this.membershipStatus == null ? 43 : this.membershipStatus.hashCode()); + result = + (result * PRIME) + + (this.membershipType == null ? 43 : this.membershipType.hashCode()); + result = + (result * PRIME) + + (this.streetAddress1 == null ? 43 : this.streetAddress1.hashCode()); + result = + (result * PRIME) + + (this.streetAddress2 == null ? 43 : this.streetAddress2.hashCode()); + result = (result * PRIME) + (this.city == null ? 43 : this.city.hashCode()); + result = (result * PRIME) + (this.state == null ? 43 : this.state.hashCode()); + result = (result * PRIME) + (this.zipcode == null ? 43 : this.zipcode.hashCode()); + result = (result * PRIME) + (this.country == null ? 43 : this.country.hashCode()); + result = (result * PRIME) + (this.phoneNumber == null ? 43 : this.phoneNumber.hashCode()); + result = (result * PRIME) + (this.partnerUrl == null ? 43 : this.partnerUrl.hashCode()); + result = + (result * PRIME) + + (this.numberOfEmployees == null ? 43 : this.numberOfEmployees.hashCode()); + result = (result * PRIME) + (this.lastUpdated == null ? 43 : this.lastUpdated.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminPublisher.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminPublisher.java new file mode 100644 index 00000000000..0a30d989611 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminPublisher.java @@ -0,0 +1,1690 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * The model for a publisher 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: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AdminPublisher.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminPublisher + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "publisherStatus", + "notificationEmail", + "opnMembership", + "privateOfferAccountDetails", + "isFxEnabled", + "uploadOsParUrl", + "id", + "compartmentId", + "compartmentName", + "firstName", + "lastName", + "email", + "registryNamespace", + "status", + "legacyId", + "displayName", + "description", + "solutionDescription", + "yearFounded", + "employeeCount", + "modifiedBy", + "isOracleOwned", + "isOpnAgreementValidationExempt", + "partnerPortalOptions", + "websiteUrl", + "contactEmail", + "contactPhone", + "hqAddress", + "logo", + "facebookUrl", + "twitterUrl", + "linkedinUrl", + "publisherType", + "isAppPublisher", + "isServicePublisher", + "timeCreated", + "timeUpdated", + "timeExpired", + "freeformTags", + "definedTags", + "systemTags" + }) + public AdminPublisher( + PublisherStatus publisherStatus, + String notificationEmail, + OpnMembership opnMembership, + PrivateOfferAccountDetails privateOfferAccountDetails, + Boolean isFxEnabled, + String uploadOsParUrl, + String id, + String compartmentId, + String compartmentName, + String firstName, + String lastName, + String email, + String registryNamespace, + PublisherStatus status, + String legacyId, + String displayName, + String description, + String solutionDescription, + Long yearFounded, + String employeeCount, + String modifiedBy, + Boolean isOracleOwned, + Boolean isOpnAgreementValidationExempt, + PartnerPortalOptions partnerPortalOptions, + String websiteUrl, + String contactEmail, + String contactPhone, + String hqAddress, + UploadData logo, + String facebookUrl, + String twitterUrl, + String linkedinUrl, + PublisherSummary.PublisherType publisherType, + Boolean isAppPublisher, + Boolean isServicePublisher, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeExpired, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.publisherStatus = publisherStatus; + this.notificationEmail = notificationEmail; + this.opnMembership = opnMembership; + this.privateOfferAccountDetails = privateOfferAccountDetails; + this.isFxEnabled = isFxEnabled; + this.uploadOsParUrl = uploadOsParUrl; + this.id = id; + this.compartmentId = compartmentId; + this.compartmentName = compartmentName; + this.firstName = firstName; + this.lastName = lastName; + this.email = email; + this.registryNamespace = registryNamespace; + this.status = status; + this.legacyId = legacyId; + this.displayName = displayName; + this.description = description; + this.solutionDescription = solutionDescription; + this.yearFounded = yearFounded; + this.employeeCount = employeeCount; + this.modifiedBy = modifiedBy; + this.isOracleOwned = isOracleOwned; + this.isOpnAgreementValidationExempt = isOpnAgreementValidationExempt; + this.partnerPortalOptions = partnerPortalOptions; + this.websiteUrl = websiteUrl; + this.contactEmail = contactEmail; + this.contactPhone = contactPhone; + this.hqAddress = hqAddress; + this.logo = logo; + this.facebookUrl = facebookUrl; + this.twitterUrl = twitterUrl; + this.linkedinUrl = linkedinUrl; + this.publisherType = publisherType; + this.isAppPublisher = isAppPublisher; + this.isServicePublisher = isServicePublisher; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timeExpired = timeExpired; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** publisher status. */ + @com.fasterxml.jackson.annotation.JsonProperty("publisherStatus") + private PublisherStatus publisherStatus; + + /** + * publisher status. + * + * @param publisherStatus the value to set + * @return this builder + */ + public Builder publisherStatus(PublisherStatus publisherStatus) { + this.publisherStatus = publisherStatus; + this.__explicitlySet__.add("publisherStatus"); + return this; + } + /** The private email address of the publisher product team. */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationEmail") + private String notificationEmail; + + /** + * The private email address of the publisher product team. + * + * @param notificationEmail the value to set + * @return this builder + */ + public Builder notificationEmail(String notificationEmail) { + this.notificationEmail = notificationEmail; + this.__explicitlySet__.add("notificationEmail"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("opnMembership") + private OpnMembership opnMembership; + + public Builder opnMembership(OpnMembership opnMembership) { + this.opnMembership = opnMembership; + this.__explicitlySet__.add("opnMembership"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("privateOfferAccountDetails") + private PrivateOfferAccountDetails privateOfferAccountDetails; + + public Builder privateOfferAccountDetails( + PrivateOfferAccountDetails privateOfferAccountDetails) { + this.privateOfferAccountDetails = privateOfferAccountDetails; + this.__explicitlySet__.add("privateOfferAccountDetails"); + return this; + } + /** Whether automatic FX conversion is enabled for the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("isFxEnabled") + private Boolean isFxEnabled; + + /** + * Whether automatic FX conversion is enabled for the publisher. + * + * @param isFxEnabled the value to set + * @return this builder + */ + public Builder isFxEnabled(Boolean isFxEnabled) { + this.isFxEnabled = isFxEnabled; + this.__explicitlySet__.add("isFxEnabled"); + return this; + } + /** upload access object storage par url */ + @com.fasterxml.jackson.annotation.JsonProperty("uploadOsParUrl") + private String uploadOsParUrl; + + /** + * upload access object storage par url + * + * @param uploadOsParUrl the value to set + * @return this builder + */ + public Builder uploadOsParUrl(String uploadOsParUrl) { + this.uploadOsParUrl = uploadOsParUrl; + this.__explicitlySet__.add("uploadOsParUrl"); + return this; + } + /** Unique OCID identifier for the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique OCID identifier for the publisher. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The root compartment of the Publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The root compartment of the Publisher. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The root compartment name of the Publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentName") + private String compartmentName; + + /** + * The root compartment name of the Publisher. + * + * @param compartmentName the value to set + * @return this builder + */ + public Builder compartmentName(String compartmentName) { + this.compartmentName = compartmentName; + this.__explicitlySet__.add("compartmentName"); + return this; + } + /** First Name of the publisher */ + @com.fasterxml.jackson.annotation.JsonProperty("firstName") + private String firstName; + + /** + * First Name of the publisher + * + * @param firstName the value to set + * @return this builder + */ + public Builder firstName(String firstName) { + this.firstName = firstName; + this.__explicitlySet__.add("firstName"); + return this; + } + /** Last Name of the publisher */ + @com.fasterxml.jackson.annotation.JsonProperty("lastName") + private String lastName; + + /** + * Last Name of the publisher + * + * @param lastName the value to set + * @return this builder + */ + public Builder lastName(String lastName) { + this.lastName = lastName; + this.__explicitlySet__.add("lastName"); + return this; + } + /** Email address of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("email") + private String email; + + /** + * Email address of the publisher. + * + * @param email the value to set + * @return this builder + */ + public Builder email(String email) { + this.email = email; + this.__explicitlySet__.add("email"); + return this; + } + /** The namespace for the publisher registry to persist artifacts. */ + @com.fasterxml.jackson.annotation.JsonProperty("registryNamespace") + private String registryNamespace; + + /** + * The namespace for the publisher registry to persist artifacts. + * + * @param registryNamespace the value to set + * @return this builder + */ + public Builder registryNamespace(String registryNamespace) { + this.registryNamespace = registryNamespace; + this.__explicitlySet__.add("registryNamespace"); + return this; + } + /** The status for the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private PublisherStatus status; + + /** + * The status for the publisher. + * + * @param status the value to set + * @return this builder + */ + public Builder status(PublisherStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** Unique legacy service identifier for the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private String legacyId; + + /** + * Unique legacy service identifier for the publisher. + * + * @param legacyId the value to set + * @return this builder + */ + public Builder legacyId(String legacyId) { + this.legacyId = legacyId; + this.__explicitlySet__.add("legacyId"); + return this; + } + /** The name of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The name of the publisher. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** A description of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A description of the publisher. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** A description of the publisher solutions. */ + @com.fasterxml.jackson.annotation.JsonProperty("solutionDescription") + private String solutionDescription; + + /** + * A description of the publisher solutions. + * + * @param solutionDescription the value to set + * @return this builder + */ + public Builder solutionDescription(String solutionDescription) { + this.solutionDescription = solutionDescription; + this.__explicitlySet__.add("solutionDescription"); + return this; + } + /** The year the publisher's company or organization was founded. */ + @com.fasterxml.jackson.annotation.JsonProperty("yearFounded") + private Long yearFounded; + + /** + * The year the publisher's company or organization was founded. + * + * @param yearFounded the value to set + * @return this builder + */ + public Builder yearFounded(Long yearFounded) { + this.yearFounded = yearFounded; + this.__explicitlySet__.add("yearFounded"); + return this; + } + /** Count of employees in publisher's company */ + @com.fasterxml.jackson.annotation.JsonProperty("employeeCount") + private String employeeCount; + + /** + * Count of employees in publisher's company + * + * @param employeeCount the value to set + * @return this builder + */ + public Builder employeeCount(String employeeCount) { + this.employeeCount = employeeCount; + this.__explicitlySet__.add("employeeCount"); + return this; + } + /** Indicates who modified the publisher data. */ + @com.fasterxml.jackson.annotation.JsonProperty("modifiedBy") + private String modifiedBy; + + /** + * Indicates who modified the publisher data. + * + * @param modifiedBy the value to set + * @return this builder + */ + public Builder modifiedBy(String modifiedBy) { + this.modifiedBy = modifiedBy; + this.__explicitlySet__.add("modifiedBy"); + return this; + } + /** Indicates if publisher is Oracle first-party or third-party */ + @com.fasterxml.jackson.annotation.JsonProperty("isOracleOwned") + private Boolean isOracleOwned; + + /** + * Indicates if publisher is Oracle first-party or third-party + * + * @param isOracleOwned the value to set + * @return this builder + */ + public Builder isOracleOwned(Boolean isOracleOwned) { + this.isOracleOwned = isOracleOwned; + this.__explicitlySet__.add("isOracleOwned"); + return this; + } + /** + * Indicates whether this publisher is explicitly exempt from OPN and Oracle Cloud + * Marketplace Agreement validation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isOpnAgreementValidationExempt") + private Boolean isOpnAgreementValidationExempt; + + /** + * Indicates whether this publisher is explicitly exempt from OPN and Oracle Cloud + * Marketplace Agreement validation. + * + * @param isOpnAgreementValidationExempt the value to set + * @return this builder + */ + public Builder isOpnAgreementValidationExempt(Boolean isOpnAgreementValidationExempt) { + this.isOpnAgreementValidationExempt = isOpnAgreementValidationExempt; + this.__explicitlySet__.add("isOpnAgreementValidationExempt"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("partnerPortalOptions") + private PartnerPortalOptions partnerPortalOptions; + + public Builder partnerPortalOptions(PartnerPortalOptions partnerPortalOptions) { + this.partnerPortalOptions = partnerPortalOptions; + this.__explicitlySet__.add("partnerPortalOptions"); + return this; + } + /** The publisher's website. */ + @com.fasterxml.jackson.annotation.JsonProperty("websiteUrl") + private String websiteUrl; + + /** + * The publisher's website. + * + * @param websiteUrl the value to set + * @return this builder + */ + public Builder websiteUrl(String websiteUrl) { + this.websiteUrl = websiteUrl; + this.__explicitlySet__.add("websiteUrl"); + return this; + } + /** The public email address of the publisher for customers. */ + @com.fasterxml.jackson.annotation.JsonProperty("contactEmail") + private String contactEmail; + + /** + * The public email address of the publisher for customers. + * + * @param contactEmail the value to set + * @return this builder + */ + public Builder contactEmail(String contactEmail) { + this.contactEmail = contactEmail; + this.__explicitlySet__.add("contactEmail"); + return this; + } + /** The phone number of the publisher in E.164 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("contactPhone") + private String contactPhone; + + /** + * The phone number of the publisher in E.164 format. + * + * @param contactPhone the value to set + * @return this builder + */ + public Builder contactPhone(String contactPhone) { + this.contactPhone = contactPhone; + this.__explicitlySet__.add("contactPhone"); + return this; + } + /** The address of the publisher's headquarters. */ + @com.fasterxml.jackson.annotation.JsonProperty("hqAddress") + private String hqAddress; + + /** + * The address of the publisher's headquarters. + * + * @param hqAddress the value to set + * @return this builder + */ + public Builder hqAddress(String hqAddress) { + this.hqAddress = hqAddress; + this.__explicitlySet__.add("hqAddress"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("logo") + private UploadData logo; + + public Builder logo(UploadData logo) { + this.logo = logo; + this.__explicitlySet__.add("logo"); + return this; + } + /** Publisher's Facebook URL */ + @com.fasterxml.jackson.annotation.JsonProperty("facebookUrl") + private String facebookUrl; + + /** + * Publisher's Facebook URL + * + * @param facebookUrl the value to set + * @return this builder + */ + public Builder facebookUrl(String facebookUrl) { + this.facebookUrl = facebookUrl; + this.__explicitlySet__.add("facebookUrl"); + return this; + } + /** Publisher's Twitter URL */ + @com.fasterxml.jackson.annotation.JsonProperty("twitterUrl") + private String twitterUrl; + + /** + * Publisher's Twitter URL + * + * @param twitterUrl the value to set + * @return this builder + */ + public Builder twitterUrl(String twitterUrl) { + this.twitterUrl = twitterUrl; + this.__explicitlySet__.add("twitterUrl"); + return this; + } + /** Publisher's LinkedIn URL */ + @com.fasterxml.jackson.annotation.JsonProperty("linkedinUrl") + private String linkedinUrl; + + /** + * Publisher's LinkedIn URL + * + * @param linkedinUrl the value to set + * @return this builder + */ + public Builder linkedinUrl(String linkedinUrl) { + this.linkedinUrl = linkedinUrl; + this.__explicitlySet__.add("linkedinUrl"); + return this; + } + /** publisher type. */ + @com.fasterxml.jackson.annotation.JsonProperty("publisherType") + private PublisherSummary.PublisherType publisherType; + + /** + * publisher type. + * + * @param publisherType the value to set + * @return this builder + */ + public Builder publisherType(PublisherSummary.PublisherType publisherType) { + this.publisherType = publisherType; + this.__explicitlySet__.add("publisherType"); + return this; + } + /** Indicates if publisher has application listings */ + @com.fasterxml.jackson.annotation.JsonProperty("isAppPublisher") + private Boolean isAppPublisher; + + /** + * Indicates if publisher has application listings + * + * @param isAppPublisher the value to set + * @return this builder + */ + public Builder isAppPublisher(Boolean isAppPublisher) { + this.isAppPublisher = isAppPublisher; + this.__explicitlySet__.add("isAppPublisher"); + return this; + } + /** Indicates if publisher has service listings */ + @com.fasterxml.jackson.annotation.JsonProperty("isServicePublisher") + private Boolean isServicePublisher; + + /** + * Indicates if publisher has service listings + * + * @param isServicePublisher the value to set + * @return this builder + */ + public Builder isServicePublisher(Boolean isServicePublisher) { + this.isServicePublisher = isServicePublisher; + this.__explicitlySet__.add("isServicePublisher"); + return this; + } + /** The time the publisher was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the publisher 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 publisher was updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the publisher was 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 expiry time of the publisher */ + @com.fasterxml.jackson.annotation.JsonProperty("timeExpired") + private java.util.Date timeExpired; + + /** + * the expiry time of the publisher + * + * @param timeExpired the value to set + * @return this builder + */ + public Builder timeExpired(java.util.Date timeExpired) { + this.timeExpired = timeExpired; + this.__explicitlySet__.add("timeExpired"); + 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; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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 AdminPublisher build() { + AdminPublisher model = + new AdminPublisher( + this.publisherStatus, + this.notificationEmail, + this.opnMembership, + this.privateOfferAccountDetails, + this.isFxEnabled, + this.uploadOsParUrl, + this.id, + this.compartmentId, + this.compartmentName, + this.firstName, + this.lastName, + this.email, + this.registryNamespace, + this.status, + this.legacyId, + this.displayName, + this.description, + this.solutionDescription, + this.yearFounded, + this.employeeCount, + this.modifiedBy, + this.isOracleOwned, + this.isOpnAgreementValidationExempt, + this.partnerPortalOptions, + this.websiteUrl, + this.contactEmail, + this.contactPhone, + this.hqAddress, + this.logo, + this.facebookUrl, + this.twitterUrl, + this.linkedinUrl, + this.publisherType, + this.isAppPublisher, + this.isServicePublisher, + this.timeCreated, + this.timeUpdated, + this.timeExpired, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminPublisher model) { + if (model.wasPropertyExplicitlySet("publisherStatus")) { + this.publisherStatus(model.getPublisherStatus()); + } + if (model.wasPropertyExplicitlySet("notificationEmail")) { + this.notificationEmail(model.getNotificationEmail()); + } + if (model.wasPropertyExplicitlySet("opnMembership")) { + this.opnMembership(model.getOpnMembership()); + } + if (model.wasPropertyExplicitlySet("privateOfferAccountDetails")) { + this.privateOfferAccountDetails(model.getPrivateOfferAccountDetails()); + } + if (model.wasPropertyExplicitlySet("isFxEnabled")) { + this.isFxEnabled(model.getIsFxEnabled()); + } + if (model.wasPropertyExplicitlySet("uploadOsParUrl")) { + this.uploadOsParUrl(model.getUploadOsParUrl()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("compartmentName")) { + this.compartmentName(model.getCompartmentName()); + } + if (model.wasPropertyExplicitlySet("firstName")) { + this.firstName(model.getFirstName()); + } + if (model.wasPropertyExplicitlySet("lastName")) { + this.lastName(model.getLastName()); + } + if (model.wasPropertyExplicitlySet("email")) { + this.email(model.getEmail()); + } + if (model.wasPropertyExplicitlySet("registryNamespace")) { + this.registryNamespace(model.getRegistryNamespace()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("legacyId")) { + this.legacyId(model.getLegacyId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("solutionDescription")) { + this.solutionDescription(model.getSolutionDescription()); + } + if (model.wasPropertyExplicitlySet("yearFounded")) { + this.yearFounded(model.getYearFounded()); + } + if (model.wasPropertyExplicitlySet("employeeCount")) { + this.employeeCount(model.getEmployeeCount()); + } + if (model.wasPropertyExplicitlySet("modifiedBy")) { + this.modifiedBy(model.getModifiedBy()); + } + if (model.wasPropertyExplicitlySet("isOracleOwned")) { + this.isOracleOwned(model.getIsOracleOwned()); + } + if (model.wasPropertyExplicitlySet("isOpnAgreementValidationExempt")) { + this.isOpnAgreementValidationExempt(model.getIsOpnAgreementValidationExempt()); + } + if (model.wasPropertyExplicitlySet("partnerPortalOptions")) { + this.partnerPortalOptions(model.getPartnerPortalOptions()); + } + if (model.wasPropertyExplicitlySet("websiteUrl")) { + this.websiteUrl(model.getWebsiteUrl()); + } + if (model.wasPropertyExplicitlySet("contactEmail")) { + this.contactEmail(model.getContactEmail()); + } + if (model.wasPropertyExplicitlySet("contactPhone")) { + this.contactPhone(model.getContactPhone()); + } + if (model.wasPropertyExplicitlySet("hqAddress")) { + this.hqAddress(model.getHqAddress()); + } + if (model.wasPropertyExplicitlySet("logo")) { + this.logo(model.getLogo()); + } + if (model.wasPropertyExplicitlySet("facebookUrl")) { + this.facebookUrl(model.getFacebookUrl()); + } + if (model.wasPropertyExplicitlySet("twitterUrl")) { + this.twitterUrl(model.getTwitterUrl()); + } + if (model.wasPropertyExplicitlySet("linkedinUrl")) { + this.linkedinUrl(model.getLinkedinUrl()); + } + if (model.wasPropertyExplicitlySet("publisherType")) { + this.publisherType(model.getPublisherType()); + } + if (model.wasPropertyExplicitlySet("isAppPublisher")) { + this.isAppPublisher(model.getIsAppPublisher()); + } + if (model.wasPropertyExplicitlySet("isServicePublisher")) { + this.isServicePublisher(model.getIsServicePublisher()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeExpired")) { + this.timeExpired(model.getTimeExpired()); + } + 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); + } + + /** publisher status. */ + @com.fasterxml.jackson.annotation.JsonProperty("publisherStatus") + private final PublisherStatus publisherStatus; + + /** + * publisher status. + * + * @return the value + */ + public PublisherStatus getPublisherStatus() { + return publisherStatus; + } + + /** The private email address of the publisher product team. */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationEmail") + private final String notificationEmail; + + /** + * The private email address of the publisher product team. + * + * @return the value + */ + public String getNotificationEmail() { + return notificationEmail; + } + + @com.fasterxml.jackson.annotation.JsonProperty("opnMembership") + private final OpnMembership opnMembership; + + public OpnMembership getOpnMembership() { + return opnMembership; + } + + @com.fasterxml.jackson.annotation.JsonProperty("privateOfferAccountDetails") + private final PrivateOfferAccountDetails privateOfferAccountDetails; + + public PrivateOfferAccountDetails getPrivateOfferAccountDetails() { + return privateOfferAccountDetails; + } + + /** Whether automatic FX conversion is enabled for the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("isFxEnabled") + private final Boolean isFxEnabled; + + /** + * Whether automatic FX conversion is enabled for the publisher. + * + * @return the value + */ + public Boolean getIsFxEnabled() { + return isFxEnabled; + } + + /** upload access object storage par url */ + @com.fasterxml.jackson.annotation.JsonProperty("uploadOsParUrl") + private final String uploadOsParUrl; + + /** + * upload access object storage par url + * + * @return the value + */ + public String getUploadOsParUrl() { + return uploadOsParUrl; + } + + /** Unique OCID identifier for the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique OCID identifier for the publisher. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The root compartment of the Publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The root compartment of the Publisher. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The root compartment name of the Publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentName") + private final String compartmentName; + + /** + * The root compartment name of the Publisher. + * + * @return the value + */ + public String getCompartmentName() { + return compartmentName; + } + + /** First Name of the publisher */ + @com.fasterxml.jackson.annotation.JsonProperty("firstName") + private final String firstName; + + /** + * First Name of the publisher + * + * @return the value + */ + public String getFirstName() { + return firstName; + } + + /** Last Name of the publisher */ + @com.fasterxml.jackson.annotation.JsonProperty("lastName") + private final String lastName; + + /** + * Last Name of the publisher + * + * @return the value + */ + public String getLastName() { + return lastName; + } + + /** Email address of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("email") + private final String email; + + /** + * Email address of the publisher. + * + * @return the value + */ + public String getEmail() { + return email; + } + + /** The namespace for the publisher registry to persist artifacts. */ + @com.fasterxml.jackson.annotation.JsonProperty("registryNamespace") + private final String registryNamespace; + + /** + * The namespace for the publisher registry to persist artifacts. + * + * @return the value + */ + public String getRegistryNamespace() { + return registryNamespace; + } + + /** The status for the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final PublisherStatus status; + + /** + * The status for the publisher. + * + * @return the value + */ + public PublisherStatus getStatus() { + return status; + } + + /** Unique legacy service identifier for the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private final String legacyId; + + /** + * Unique legacy service identifier for the publisher. + * + * @return the value + */ + public String getLegacyId() { + return legacyId; + } + + /** The name of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The name of the publisher. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** A description of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A description of the publisher. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** A description of the publisher solutions. */ + @com.fasterxml.jackson.annotation.JsonProperty("solutionDescription") + private final String solutionDescription; + + /** + * A description of the publisher solutions. + * + * @return the value + */ + public String getSolutionDescription() { + return solutionDescription; + } + + /** The year the publisher's company or organization was founded. */ + @com.fasterxml.jackson.annotation.JsonProperty("yearFounded") + private final Long yearFounded; + + /** + * The year the publisher's company or organization was founded. + * + * @return the value + */ + public Long getYearFounded() { + return yearFounded; + } + + /** Count of employees in publisher's company */ + @com.fasterxml.jackson.annotation.JsonProperty("employeeCount") + private final String employeeCount; + + /** + * Count of employees in publisher's company + * + * @return the value + */ + public String getEmployeeCount() { + return employeeCount; + } + + /** Indicates who modified the publisher data. */ + @com.fasterxml.jackson.annotation.JsonProperty("modifiedBy") + private final String modifiedBy; + + /** + * Indicates who modified the publisher data. + * + * @return the value + */ + public String getModifiedBy() { + return modifiedBy; + } + + /** Indicates if publisher is Oracle first-party or third-party */ + @com.fasterxml.jackson.annotation.JsonProperty("isOracleOwned") + private final Boolean isOracleOwned; + + /** + * Indicates if publisher is Oracle first-party or third-party + * + * @return the value + */ + public Boolean getIsOracleOwned() { + return isOracleOwned; + } + + /** + * Indicates whether this publisher is explicitly exempt from OPN and Oracle Cloud Marketplace + * Agreement validation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isOpnAgreementValidationExempt") + private final Boolean isOpnAgreementValidationExempt; + + /** + * Indicates whether this publisher is explicitly exempt from OPN and Oracle Cloud Marketplace + * Agreement validation. + * + * @return the value + */ + public Boolean getIsOpnAgreementValidationExempt() { + return isOpnAgreementValidationExempt; + } + + @com.fasterxml.jackson.annotation.JsonProperty("partnerPortalOptions") + private final PartnerPortalOptions partnerPortalOptions; + + public PartnerPortalOptions getPartnerPortalOptions() { + return partnerPortalOptions; + } + + /** The publisher's website. */ + @com.fasterxml.jackson.annotation.JsonProperty("websiteUrl") + private final String websiteUrl; + + /** + * The publisher's website. + * + * @return the value + */ + public String getWebsiteUrl() { + return websiteUrl; + } + + /** The public email address of the publisher for customers. */ + @com.fasterxml.jackson.annotation.JsonProperty("contactEmail") + private final String contactEmail; + + /** + * The public email address of the publisher for customers. + * + * @return the value + */ + public String getContactEmail() { + return contactEmail; + } + + /** The phone number of the publisher in E.164 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("contactPhone") + private final String contactPhone; + + /** + * The phone number of the publisher in E.164 format. + * + * @return the value + */ + public String getContactPhone() { + return contactPhone; + } + + /** The address of the publisher's headquarters. */ + @com.fasterxml.jackson.annotation.JsonProperty("hqAddress") + private final String hqAddress; + + /** + * The address of the publisher's headquarters. + * + * @return the value + */ + public String getHqAddress() { + return hqAddress; + } + + @com.fasterxml.jackson.annotation.JsonProperty("logo") + private final UploadData logo; + + public UploadData getLogo() { + return logo; + } + + /** Publisher's Facebook URL */ + @com.fasterxml.jackson.annotation.JsonProperty("facebookUrl") + private final String facebookUrl; + + /** + * Publisher's Facebook URL + * + * @return the value + */ + public String getFacebookUrl() { + return facebookUrl; + } + + /** Publisher's Twitter URL */ + @com.fasterxml.jackson.annotation.JsonProperty("twitterUrl") + private final String twitterUrl; + + /** + * Publisher's Twitter URL + * + * @return the value + */ + public String getTwitterUrl() { + return twitterUrl; + } + + /** Publisher's LinkedIn URL */ + @com.fasterxml.jackson.annotation.JsonProperty("linkedinUrl") + private final String linkedinUrl; + + /** + * Publisher's LinkedIn URL + * + * @return the value + */ + public String getLinkedinUrl() { + return linkedinUrl; + } + + /** publisher type. */ + @com.fasterxml.jackson.annotation.JsonProperty("publisherType") + private final PublisherSummary.PublisherType publisherType; + + /** + * publisher type. + * + * @return the value + */ + public PublisherSummary.PublisherType getPublisherType() { + return publisherType; + } + + /** Indicates if publisher has application listings */ + @com.fasterxml.jackson.annotation.JsonProperty("isAppPublisher") + private final Boolean isAppPublisher; + + /** + * Indicates if publisher has application listings + * + * @return the value + */ + public Boolean getIsAppPublisher() { + return isAppPublisher; + } + + /** Indicates if publisher has service listings */ + @com.fasterxml.jackson.annotation.JsonProperty("isServicePublisher") + private final Boolean isServicePublisher; + + /** + * Indicates if publisher has service listings + * + * @return the value + */ + public Boolean getIsServicePublisher() { + return isServicePublisher; + } + + /** The time the publisher was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the publisher was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time the publisher was updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the publisher was updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** the expiry time of the publisher */ + @com.fasterxml.jackson.annotation.JsonProperty("timeExpired") + private final java.util.Date timeExpired; + + /** + * the expiry time of the publisher + * + * @return the value + */ + public java.util.Date getTimeExpired() { + return timeExpired; + } + + /** + * 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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("AdminPublisher("); + sb.append("super=").append(super.toString()); + sb.append("publisherStatus=").append(String.valueOf(this.publisherStatus)); + sb.append(", notificationEmail=").append(String.valueOf(this.notificationEmail)); + sb.append(", opnMembership=").append(String.valueOf(this.opnMembership)); + sb.append(", privateOfferAccountDetails=") + .append(String.valueOf(this.privateOfferAccountDetails)); + sb.append(", isFxEnabled=").append(String.valueOf(this.isFxEnabled)); + sb.append(", uploadOsParUrl=").append(String.valueOf(this.uploadOsParUrl)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", compartmentName=").append(String.valueOf(this.compartmentName)); + sb.append(", firstName=").append(String.valueOf(this.firstName)); + sb.append(", lastName=").append(String.valueOf(this.lastName)); + sb.append(", email=").append(String.valueOf(this.email)); + sb.append(", registryNamespace=").append(String.valueOf(this.registryNamespace)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", legacyId=").append(String.valueOf(this.legacyId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", solutionDescription=").append(String.valueOf(this.solutionDescription)); + sb.append(", yearFounded=").append(String.valueOf(this.yearFounded)); + sb.append(", employeeCount=").append(String.valueOf(this.employeeCount)); + sb.append(", modifiedBy=").append(String.valueOf(this.modifiedBy)); + sb.append(", isOracleOwned=").append(String.valueOf(this.isOracleOwned)); + sb.append(", isOpnAgreementValidationExempt=") + .append(String.valueOf(this.isOpnAgreementValidationExempt)); + sb.append(", partnerPortalOptions=").append(String.valueOf(this.partnerPortalOptions)); + sb.append(", websiteUrl=").append(String.valueOf(this.websiteUrl)); + sb.append(", contactEmail=").append(String.valueOf(this.contactEmail)); + sb.append(", contactPhone=").append(String.valueOf(this.contactPhone)); + sb.append(", hqAddress=").append(String.valueOf(this.hqAddress)); + sb.append(", logo=").append(String.valueOf(this.logo)); + sb.append(", facebookUrl=").append(String.valueOf(this.facebookUrl)); + sb.append(", twitterUrl=").append(String.valueOf(this.twitterUrl)); + sb.append(", linkedinUrl=").append(String.valueOf(this.linkedinUrl)); + sb.append(", publisherType=").append(String.valueOf(this.publisherType)); + sb.append(", isAppPublisher=").append(String.valueOf(this.isAppPublisher)); + sb.append(", isServicePublisher=").append(String.valueOf(this.isServicePublisher)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeExpired=").append(String.valueOf(this.timeExpired)); + 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 AdminPublisher)) { + return false; + } + + AdminPublisher other = (AdminPublisher) o; + return java.util.Objects.equals(this.publisherStatus, other.publisherStatus) + && java.util.Objects.equals(this.notificationEmail, other.notificationEmail) + && java.util.Objects.equals(this.opnMembership, other.opnMembership) + && java.util.Objects.equals( + this.privateOfferAccountDetails, other.privateOfferAccountDetails) + && java.util.Objects.equals(this.isFxEnabled, other.isFxEnabled) + && java.util.Objects.equals(this.uploadOsParUrl, other.uploadOsParUrl) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.compartmentName, other.compartmentName) + && java.util.Objects.equals(this.firstName, other.firstName) + && java.util.Objects.equals(this.lastName, other.lastName) + && java.util.Objects.equals(this.email, other.email) + && java.util.Objects.equals(this.registryNamespace, other.registryNamespace) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.legacyId, other.legacyId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.solutionDescription, other.solutionDescription) + && java.util.Objects.equals(this.yearFounded, other.yearFounded) + && java.util.Objects.equals(this.employeeCount, other.employeeCount) + && java.util.Objects.equals(this.modifiedBy, other.modifiedBy) + && java.util.Objects.equals(this.isOracleOwned, other.isOracleOwned) + && java.util.Objects.equals( + this.isOpnAgreementValidationExempt, other.isOpnAgreementValidationExempt) + && java.util.Objects.equals(this.partnerPortalOptions, other.partnerPortalOptions) + && java.util.Objects.equals(this.websiteUrl, other.websiteUrl) + && java.util.Objects.equals(this.contactEmail, other.contactEmail) + && java.util.Objects.equals(this.contactPhone, other.contactPhone) + && java.util.Objects.equals(this.hqAddress, other.hqAddress) + && java.util.Objects.equals(this.logo, other.logo) + && java.util.Objects.equals(this.facebookUrl, other.facebookUrl) + && java.util.Objects.equals(this.twitterUrl, other.twitterUrl) + && java.util.Objects.equals(this.linkedinUrl, other.linkedinUrl) + && java.util.Objects.equals(this.publisherType, other.publisherType) + && java.util.Objects.equals(this.isAppPublisher, other.isAppPublisher) + && java.util.Objects.equals(this.isServicePublisher, other.isServicePublisher) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeExpired, other.timeExpired) + && 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.publisherStatus == null ? 43 : this.publisherStatus.hashCode()); + result = + (result * PRIME) + + (this.notificationEmail == null ? 43 : this.notificationEmail.hashCode()); + result = + (result * PRIME) + + (this.opnMembership == null ? 43 : this.opnMembership.hashCode()); + result = + (result * PRIME) + + (this.privateOfferAccountDetails == null + ? 43 + : this.privateOfferAccountDetails.hashCode()); + result = (result * PRIME) + (this.isFxEnabled == null ? 43 : this.isFxEnabled.hashCode()); + result = + (result * PRIME) + + (this.uploadOsParUrl == null ? 43 : this.uploadOsParUrl.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.compartmentName == null ? 43 : this.compartmentName.hashCode()); + result = (result * PRIME) + (this.firstName == null ? 43 : this.firstName.hashCode()); + result = (result * PRIME) + (this.lastName == null ? 43 : this.lastName.hashCode()); + result = (result * PRIME) + (this.email == null ? 43 : this.email.hashCode()); + result = + (result * PRIME) + + (this.registryNamespace == null ? 43 : this.registryNamespace.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.legacyId == null ? 43 : this.legacyId.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.solutionDescription == null + ? 43 + : this.solutionDescription.hashCode()); + result = (result * PRIME) + (this.yearFounded == null ? 43 : this.yearFounded.hashCode()); + result = + (result * PRIME) + + (this.employeeCount == null ? 43 : this.employeeCount.hashCode()); + result = (result * PRIME) + (this.modifiedBy == null ? 43 : this.modifiedBy.hashCode()); + result = + (result * PRIME) + + (this.isOracleOwned == null ? 43 : this.isOracleOwned.hashCode()); + result = + (result * PRIME) + + (this.isOpnAgreementValidationExempt == null + ? 43 + : this.isOpnAgreementValidationExempt.hashCode()); + result = + (result * PRIME) + + (this.partnerPortalOptions == null + ? 43 + : this.partnerPortalOptions.hashCode()); + result = (result * PRIME) + (this.websiteUrl == null ? 43 : this.websiteUrl.hashCode()); + result = (result * PRIME) + (this.contactEmail == null ? 43 : this.contactEmail.hashCode()); + result = (result * PRIME) + (this.contactPhone == null ? 43 : this.contactPhone.hashCode()); + result = (result * PRIME) + (this.hqAddress == null ? 43 : this.hqAddress.hashCode()); + result = (result * PRIME) + (this.logo == null ? 43 : this.logo.hashCode()); + result = (result * PRIME) + (this.facebookUrl == null ? 43 : this.facebookUrl.hashCode()); + result = (result * PRIME) + (this.twitterUrl == null ? 43 : this.twitterUrl.hashCode()); + result = (result * PRIME) + (this.linkedinUrl == null ? 43 : this.linkedinUrl.hashCode()); + result = + (result * PRIME) + + (this.publisherType == null ? 43 : this.publisherType.hashCode()); + result = + (result * PRIME) + + (this.isAppPublisher == null ? 43 : this.isAppPublisher.hashCode()); + result = + (result * PRIME) + + (this.isServicePublisher == null + ? 43 + : this.isServicePublisher.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.timeExpired == null ? 43 : this.timeExpired.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminPublisherSku.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminPublisherSku.java new file mode 100644 index 00000000000..76655372490 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminPublisherSku.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.marketplacepublisher.model; + +/** + * Sku details for private offers
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminPublisherSku.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminPublisherSku + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"productCode", "description", "meter", "rates"}) + public AdminPublisherSku( + String productCode, + String description, + String meter, + java.util.List rates) { + super(); + this.productCode = productCode; + this.description = description; + this.meter = meter; + this.rates = rates; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Sku name */ + @com.fasterxml.jackson.annotation.JsonProperty("productCode") + private String productCode; + + /** + * Sku name + * + * @param productCode the value to set + * @return this builder + */ + public Builder productCode(String productCode) { + this.productCode = productCode; + this.__explicitlySet__.add("productCode"); + return this; + } + /** Sku description */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Sku 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 meter of the SKU. */ + @com.fasterxml.jackson.annotation.JsonProperty("meter") + private String meter; + + /** + * The meter of the SKU. + * + * @param meter the value to set + * @return this builder + */ + public Builder meter(String meter) { + this.meter = meter; + this.__explicitlySet__.add("meter"); + return this; + } + /** List of pricing rates for listing */ + @com.fasterxml.jackson.annotation.JsonProperty("rates") + private java.util.List rates; + + /** + * List of pricing rates for listing + * + * @param rates the value to set + * @return this builder + */ + public Builder rates(java.util.List rates) { + this.rates = rates; + this.__explicitlySet__.add("rates"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdminPublisherSku build() { + AdminPublisherSku model = + new AdminPublisherSku( + this.productCode, this.description, this.meter, this.rates); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminPublisherSku model) { + if (model.wasPropertyExplicitlySet("productCode")) { + this.productCode(model.getProductCode()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("meter")) { + this.meter(model.getMeter()); + } + if (model.wasPropertyExplicitlySet("rates")) { + this.rates(model.getRates()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Sku name */ + @com.fasterxml.jackson.annotation.JsonProperty("productCode") + private final String productCode; + + /** + * Sku name + * + * @return the value + */ + public String getProductCode() { + return productCode; + } + + /** Sku description */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Sku description + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The meter of the SKU. */ + @com.fasterxml.jackson.annotation.JsonProperty("meter") + private final String meter; + + /** + * The meter of the SKU. + * + * @return the value + */ + public String getMeter() { + return meter; + } + + /** List of pricing rates for listing */ + @com.fasterxml.jackson.annotation.JsonProperty("rates") + private final java.util.List rates; + + /** + * List of pricing rates for listing + * + * @return the value + */ + public java.util.List getRates() { + return rates; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AdminPublisherSku("); + sb.append("super=").append(super.toString()); + sb.append("productCode=").append(String.valueOf(this.productCode)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", meter=").append(String.valueOf(this.meter)); + sb.append(", rates=").append(String.valueOf(this.rates)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminPublisherSku)) { + return false; + } + + AdminPublisherSku other = (AdminPublisherSku) o; + return java.util.Objects.equals(this.productCode, other.productCode) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.meter, other.meter) + && java.util.Objects.equals(this.rates, other.rates) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.productCode == null ? 43 : this.productCode.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.meter == null ? 43 : this.meter.hashCode()); + result = (result * PRIME) + (this.rates == null ? 43 : this.rates.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminPublisherSkuCollection.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminPublisherSkuCollection.java new file mode 100644 index 00000000000..a254655d99f --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminPublisherSkuCollection.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.marketplacepublisher.model; + +/** + * Results of admin listing SKU retrieval. Contains SKU items.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminPublisherSkuCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminPublisherSkuCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public AdminPublisherSkuCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of SKUs. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of SKUs. + * + * @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 AdminPublisherSkuCollection build() { + AdminPublisherSkuCollection model = new AdminPublisherSkuCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminPublisherSkuCollection 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 SKUs. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of SKUs. + * + * @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("AdminPublisherSkuCollection("); + 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 AdminPublisherSkuCollection)) { + return false; + } + + AdminPublisherSkuCollection other = (AdminPublisherSkuCollection) 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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminPublisherSummary.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminPublisherSummary.java new file mode 100644 index 00000000000..78470bb51ea --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminPublisherSummary.java @@ -0,0 +1,1472 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * The model for a publisher.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminPublisherSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminPublisherSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "compartmentName", + "firstName", + "lastName", + "email", + "registryNamespace", + "status", + "legacyId", + "displayName", + "description", + "solutionDescription", + "yearFounded", + "employeeCount", + "modifiedBy", + "isOracleOwned", + "isOpnAgreementValidationExempt", + "partnerPortalOptions", + "websiteUrl", + "contactEmail", + "contactPhone", + "hqAddress", + "logo", + "facebookUrl", + "twitterUrl", + "linkedinUrl", + "publisherType", + "isAppPublisher", + "isServicePublisher", + "timeCreated", + "timeUpdated", + "timeExpired", + "freeformTags", + "definedTags", + "systemTags" + }) + public AdminPublisherSummary( + String id, + String compartmentId, + String compartmentName, + String firstName, + String lastName, + String email, + String registryNamespace, + PublisherStatus status, + String legacyId, + String displayName, + String description, + String solutionDescription, + Long yearFounded, + String employeeCount, + String modifiedBy, + Boolean isOracleOwned, + Boolean isOpnAgreementValidationExempt, + PartnerPortalOptions partnerPortalOptions, + String websiteUrl, + String contactEmail, + String contactPhone, + String hqAddress, + UploadData logo, + String facebookUrl, + String twitterUrl, + String linkedinUrl, + PublisherSummary.PublisherType publisherType, + Boolean isAppPublisher, + Boolean isServicePublisher, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeExpired, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.compartmentName = compartmentName; + this.firstName = firstName; + this.lastName = lastName; + this.email = email; + this.registryNamespace = registryNamespace; + this.status = status; + this.legacyId = legacyId; + this.displayName = displayName; + this.description = description; + this.solutionDescription = solutionDescription; + this.yearFounded = yearFounded; + this.employeeCount = employeeCount; + this.modifiedBy = modifiedBy; + this.isOracleOwned = isOracleOwned; + this.isOpnAgreementValidationExempt = isOpnAgreementValidationExempt; + this.partnerPortalOptions = partnerPortalOptions; + this.websiteUrl = websiteUrl; + this.contactEmail = contactEmail; + this.contactPhone = contactPhone; + this.hqAddress = hqAddress; + this.logo = logo; + this.facebookUrl = facebookUrl; + this.twitterUrl = twitterUrl; + this.linkedinUrl = linkedinUrl; + this.publisherType = publisherType; + this.isAppPublisher = isAppPublisher; + this.isServicePublisher = isServicePublisher; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timeExpired = timeExpired; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique OCID identifier for the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique OCID identifier for the publisher. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The root compartment of the Publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The root compartment of the Publisher. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The root compartment name of the Publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentName") + private String compartmentName; + + /** + * The root compartment name of the Publisher. + * + * @param compartmentName the value to set + * @return this builder + */ + public Builder compartmentName(String compartmentName) { + this.compartmentName = compartmentName; + this.__explicitlySet__.add("compartmentName"); + return this; + } + /** First Name of the publisher */ + @com.fasterxml.jackson.annotation.JsonProperty("firstName") + private String firstName; + + /** + * First Name of the publisher + * + * @param firstName the value to set + * @return this builder + */ + public Builder firstName(String firstName) { + this.firstName = firstName; + this.__explicitlySet__.add("firstName"); + return this; + } + /** Last Name of the publisher */ + @com.fasterxml.jackson.annotation.JsonProperty("lastName") + private String lastName; + + /** + * Last Name of the publisher + * + * @param lastName the value to set + * @return this builder + */ + public Builder lastName(String lastName) { + this.lastName = lastName; + this.__explicitlySet__.add("lastName"); + return this; + } + /** Email address of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("email") + private String email; + + /** + * Email address of the publisher. + * + * @param email the value to set + * @return this builder + */ + public Builder email(String email) { + this.email = email; + this.__explicitlySet__.add("email"); + return this; + } + /** The namespace for the publisher registry to persist artifacts. */ + @com.fasterxml.jackson.annotation.JsonProperty("registryNamespace") + private String registryNamespace; + + /** + * The namespace for the publisher registry to persist artifacts. + * + * @param registryNamespace the value to set + * @return this builder + */ + public Builder registryNamespace(String registryNamespace) { + this.registryNamespace = registryNamespace; + this.__explicitlySet__.add("registryNamespace"); + return this; + } + /** The status for the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private PublisherStatus status; + + /** + * The status for the publisher. + * + * @param status the value to set + * @return this builder + */ + public Builder status(PublisherStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** Unique legacy service identifier for the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private String legacyId; + + /** + * Unique legacy service identifier for the publisher. + * + * @param legacyId the value to set + * @return this builder + */ + public Builder legacyId(String legacyId) { + this.legacyId = legacyId; + this.__explicitlySet__.add("legacyId"); + return this; + } + /** The name of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The name of the publisher. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** A description of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A description of the publisher. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** A description of the publisher solutions. */ + @com.fasterxml.jackson.annotation.JsonProperty("solutionDescription") + private String solutionDescription; + + /** + * A description of the publisher solutions. + * + * @param solutionDescription the value to set + * @return this builder + */ + public Builder solutionDescription(String solutionDescription) { + this.solutionDescription = solutionDescription; + this.__explicitlySet__.add("solutionDescription"); + return this; + } + /** The year the publisher's company or organization was founded. */ + @com.fasterxml.jackson.annotation.JsonProperty("yearFounded") + private Long yearFounded; + + /** + * The year the publisher's company or organization was founded. + * + * @param yearFounded the value to set + * @return this builder + */ + public Builder yearFounded(Long yearFounded) { + this.yearFounded = yearFounded; + this.__explicitlySet__.add("yearFounded"); + return this; + } + /** Count of employees in publisher's company */ + @com.fasterxml.jackson.annotation.JsonProperty("employeeCount") + private String employeeCount; + + /** + * Count of employees in publisher's company + * + * @param employeeCount the value to set + * @return this builder + */ + public Builder employeeCount(String employeeCount) { + this.employeeCount = employeeCount; + this.__explicitlySet__.add("employeeCount"); + return this; + } + /** Indicates who modified the publisher data. */ + @com.fasterxml.jackson.annotation.JsonProperty("modifiedBy") + private String modifiedBy; + + /** + * Indicates who modified the publisher data. + * + * @param modifiedBy the value to set + * @return this builder + */ + public Builder modifiedBy(String modifiedBy) { + this.modifiedBy = modifiedBy; + this.__explicitlySet__.add("modifiedBy"); + return this; + } + /** Indicates if publisher is Oracle first-party or third-party */ + @com.fasterxml.jackson.annotation.JsonProperty("isOracleOwned") + private Boolean isOracleOwned; + + /** + * Indicates if publisher is Oracle first-party or third-party + * + * @param isOracleOwned the value to set + * @return this builder + */ + public Builder isOracleOwned(Boolean isOracleOwned) { + this.isOracleOwned = isOracleOwned; + this.__explicitlySet__.add("isOracleOwned"); + return this; + } + /** + * Indicates whether this publisher is explicitly exempt from OPN and Oracle Cloud + * Marketplace Agreement validation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isOpnAgreementValidationExempt") + private Boolean isOpnAgreementValidationExempt; + + /** + * Indicates whether this publisher is explicitly exempt from OPN and Oracle Cloud + * Marketplace Agreement validation. + * + * @param isOpnAgreementValidationExempt the value to set + * @return this builder + */ + public Builder isOpnAgreementValidationExempt(Boolean isOpnAgreementValidationExempt) { + this.isOpnAgreementValidationExempt = isOpnAgreementValidationExempt; + this.__explicitlySet__.add("isOpnAgreementValidationExempt"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("partnerPortalOptions") + private PartnerPortalOptions partnerPortalOptions; + + public Builder partnerPortalOptions(PartnerPortalOptions partnerPortalOptions) { + this.partnerPortalOptions = partnerPortalOptions; + this.__explicitlySet__.add("partnerPortalOptions"); + return this; + } + /** The publisher's website. */ + @com.fasterxml.jackson.annotation.JsonProperty("websiteUrl") + private String websiteUrl; + + /** + * The publisher's website. + * + * @param websiteUrl the value to set + * @return this builder + */ + public Builder websiteUrl(String websiteUrl) { + this.websiteUrl = websiteUrl; + this.__explicitlySet__.add("websiteUrl"); + return this; + } + /** The public email address of the publisher for customers. */ + @com.fasterxml.jackson.annotation.JsonProperty("contactEmail") + private String contactEmail; + + /** + * The public email address of the publisher for customers. + * + * @param contactEmail the value to set + * @return this builder + */ + public Builder contactEmail(String contactEmail) { + this.contactEmail = contactEmail; + this.__explicitlySet__.add("contactEmail"); + return this; + } + /** The phone number of the publisher in E.164 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("contactPhone") + private String contactPhone; + + /** + * The phone number of the publisher in E.164 format. + * + * @param contactPhone the value to set + * @return this builder + */ + public Builder contactPhone(String contactPhone) { + this.contactPhone = contactPhone; + this.__explicitlySet__.add("contactPhone"); + return this; + } + /** The address of the publisher's headquarters. */ + @com.fasterxml.jackson.annotation.JsonProperty("hqAddress") + private String hqAddress; + + /** + * The address of the publisher's headquarters. + * + * @param hqAddress the value to set + * @return this builder + */ + public Builder hqAddress(String hqAddress) { + this.hqAddress = hqAddress; + this.__explicitlySet__.add("hqAddress"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("logo") + private UploadData logo; + + public Builder logo(UploadData logo) { + this.logo = logo; + this.__explicitlySet__.add("logo"); + return this; + } + /** Publisher's Facebook URL */ + @com.fasterxml.jackson.annotation.JsonProperty("facebookUrl") + private String facebookUrl; + + /** + * Publisher's Facebook URL + * + * @param facebookUrl the value to set + * @return this builder + */ + public Builder facebookUrl(String facebookUrl) { + this.facebookUrl = facebookUrl; + this.__explicitlySet__.add("facebookUrl"); + return this; + } + /** Publisher's Twitter URL */ + @com.fasterxml.jackson.annotation.JsonProperty("twitterUrl") + private String twitterUrl; + + /** + * Publisher's Twitter URL + * + * @param twitterUrl the value to set + * @return this builder + */ + public Builder twitterUrl(String twitterUrl) { + this.twitterUrl = twitterUrl; + this.__explicitlySet__.add("twitterUrl"); + return this; + } + /** Publisher's LinkedIn URL */ + @com.fasterxml.jackson.annotation.JsonProperty("linkedinUrl") + private String linkedinUrl; + + /** + * Publisher's LinkedIn URL + * + * @param linkedinUrl the value to set + * @return this builder + */ + public Builder linkedinUrl(String linkedinUrl) { + this.linkedinUrl = linkedinUrl; + this.__explicitlySet__.add("linkedinUrl"); + return this; + } + /** publisher type. */ + @com.fasterxml.jackson.annotation.JsonProperty("publisherType") + private PublisherSummary.PublisherType publisherType; + + /** + * publisher type. + * + * @param publisherType the value to set + * @return this builder + */ + public Builder publisherType(PublisherSummary.PublisherType publisherType) { + this.publisherType = publisherType; + this.__explicitlySet__.add("publisherType"); + return this; + } + /** Indicates if publisher has application listings */ + @com.fasterxml.jackson.annotation.JsonProperty("isAppPublisher") + private Boolean isAppPublisher; + + /** + * Indicates if publisher has application listings + * + * @param isAppPublisher the value to set + * @return this builder + */ + public Builder isAppPublisher(Boolean isAppPublisher) { + this.isAppPublisher = isAppPublisher; + this.__explicitlySet__.add("isAppPublisher"); + return this; + } + /** Indicates if publisher has service listings */ + @com.fasterxml.jackson.annotation.JsonProperty("isServicePublisher") + private Boolean isServicePublisher; + + /** + * Indicates if publisher has service listings + * + * @param isServicePublisher the value to set + * @return this builder + */ + public Builder isServicePublisher(Boolean isServicePublisher) { + this.isServicePublisher = isServicePublisher; + this.__explicitlySet__.add("isServicePublisher"); + return this; + } + /** The time the publisher was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the publisher 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 publisher was updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the publisher was 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 expiry time of the publisher */ + @com.fasterxml.jackson.annotation.JsonProperty("timeExpired") + private java.util.Date timeExpired; + + /** + * the expiry time of the publisher + * + * @param timeExpired the value to set + * @return this builder + */ + public Builder timeExpired(java.util.Date timeExpired) { + this.timeExpired = timeExpired; + this.__explicitlySet__.add("timeExpired"); + 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; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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 AdminPublisherSummary build() { + AdminPublisherSummary model = + new AdminPublisherSummary( + this.id, + this.compartmentId, + this.compartmentName, + this.firstName, + this.lastName, + this.email, + this.registryNamespace, + this.status, + this.legacyId, + this.displayName, + this.description, + this.solutionDescription, + this.yearFounded, + this.employeeCount, + this.modifiedBy, + this.isOracleOwned, + this.isOpnAgreementValidationExempt, + this.partnerPortalOptions, + this.websiteUrl, + this.contactEmail, + this.contactPhone, + this.hqAddress, + this.logo, + this.facebookUrl, + this.twitterUrl, + this.linkedinUrl, + this.publisherType, + this.isAppPublisher, + this.isServicePublisher, + this.timeCreated, + this.timeUpdated, + this.timeExpired, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminPublisherSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("compartmentName")) { + this.compartmentName(model.getCompartmentName()); + } + if (model.wasPropertyExplicitlySet("firstName")) { + this.firstName(model.getFirstName()); + } + if (model.wasPropertyExplicitlySet("lastName")) { + this.lastName(model.getLastName()); + } + if (model.wasPropertyExplicitlySet("email")) { + this.email(model.getEmail()); + } + if (model.wasPropertyExplicitlySet("registryNamespace")) { + this.registryNamespace(model.getRegistryNamespace()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("legacyId")) { + this.legacyId(model.getLegacyId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("solutionDescription")) { + this.solutionDescription(model.getSolutionDescription()); + } + if (model.wasPropertyExplicitlySet("yearFounded")) { + this.yearFounded(model.getYearFounded()); + } + if (model.wasPropertyExplicitlySet("employeeCount")) { + this.employeeCount(model.getEmployeeCount()); + } + if (model.wasPropertyExplicitlySet("modifiedBy")) { + this.modifiedBy(model.getModifiedBy()); + } + if (model.wasPropertyExplicitlySet("isOracleOwned")) { + this.isOracleOwned(model.getIsOracleOwned()); + } + if (model.wasPropertyExplicitlySet("isOpnAgreementValidationExempt")) { + this.isOpnAgreementValidationExempt(model.getIsOpnAgreementValidationExempt()); + } + if (model.wasPropertyExplicitlySet("partnerPortalOptions")) { + this.partnerPortalOptions(model.getPartnerPortalOptions()); + } + if (model.wasPropertyExplicitlySet("websiteUrl")) { + this.websiteUrl(model.getWebsiteUrl()); + } + if (model.wasPropertyExplicitlySet("contactEmail")) { + this.contactEmail(model.getContactEmail()); + } + if (model.wasPropertyExplicitlySet("contactPhone")) { + this.contactPhone(model.getContactPhone()); + } + if (model.wasPropertyExplicitlySet("hqAddress")) { + this.hqAddress(model.getHqAddress()); + } + if (model.wasPropertyExplicitlySet("logo")) { + this.logo(model.getLogo()); + } + if (model.wasPropertyExplicitlySet("facebookUrl")) { + this.facebookUrl(model.getFacebookUrl()); + } + if (model.wasPropertyExplicitlySet("twitterUrl")) { + this.twitterUrl(model.getTwitterUrl()); + } + if (model.wasPropertyExplicitlySet("linkedinUrl")) { + this.linkedinUrl(model.getLinkedinUrl()); + } + if (model.wasPropertyExplicitlySet("publisherType")) { + this.publisherType(model.getPublisherType()); + } + if (model.wasPropertyExplicitlySet("isAppPublisher")) { + this.isAppPublisher(model.getIsAppPublisher()); + } + if (model.wasPropertyExplicitlySet("isServicePublisher")) { + this.isServicePublisher(model.getIsServicePublisher()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeExpired")) { + this.timeExpired(model.getTimeExpired()); + } + 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); + } + + /** Unique OCID identifier for the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique OCID identifier for the publisher. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The root compartment of the Publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The root compartment of the Publisher. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The root compartment name of the Publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentName") + private final String compartmentName; + + /** + * The root compartment name of the Publisher. + * + * @return the value + */ + public String getCompartmentName() { + return compartmentName; + } + + /** First Name of the publisher */ + @com.fasterxml.jackson.annotation.JsonProperty("firstName") + private final String firstName; + + /** + * First Name of the publisher + * + * @return the value + */ + public String getFirstName() { + return firstName; + } + + /** Last Name of the publisher */ + @com.fasterxml.jackson.annotation.JsonProperty("lastName") + private final String lastName; + + /** + * Last Name of the publisher + * + * @return the value + */ + public String getLastName() { + return lastName; + } + + /** Email address of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("email") + private final String email; + + /** + * Email address of the publisher. + * + * @return the value + */ + public String getEmail() { + return email; + } + + /** The namespace for the publisher registry to persist artifacts. */ + @com.fasterxml.jackson.annotation.JsonProperty("registryNamespace") + private final String registryNamespace; + + /** + * The namespace for the publisher registry to persist artifacts. + * + * @return the value + */ + public String getRegistryNamespace() { + return registryNamespace; + } + + /** The status for the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final PublisherStatus status; + + /** + * The status for the publisher. + * + * @return the value + */ + public PublisherStatus getStatus() { + return status; + } + + /** Unique legacy service identifier for the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private final String legacyId; + + /** + * Unique legacy service identifier for the publisher. + * + * @return the value + */ + public String getLegacyId() { + return legacyId; + } + + /** The name of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The name of the publisher. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** A description of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A description of the publisher. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** A description of the publisher solutions. */ + @com.fasterxml.jackson.annotation.JsonProperty("solutionDescription") + private final String solutionDescription; + + /** + * A description of the publisher solutions. + * + * @return the value + */ + public String getSolutionDescription() { + return solutionDescription; + } + + /** The year the publisher's company or organization was founded. */ + @com.fasterxml.jackson.annotation.JsonProperty("yearFounded") + private final Long yearFounded; + + /** + * The year the publisher's company or organization was founded. + * + * @return the value + */ + public Long getYearFounded() { + return yearFounded; + } + + /** Count of employees in publisher's company */ + @com.fasterxml.jackson.annotation.JsonProperty("employeeCount") + private final String employeeCount; + + /** + * Count of employees in publisher's company + * + * @return the value + */ + public String getEmployeeCount() { + return employeeCount; + } + + /** Indicates who modified the publisher data. */ + @com.fasterxml.jackson.annotation.JsonProperty("modifiedBy") + private final String modifiedBy; + + /** + * Indicates who modified the publisher data. + * + * @return the value + */ + public String getModifiedBy() { + return modifiedBy; + } + + /** Indicates if publisher is Oracle first-party or third-party */ + @com.fasterxml.jackson.annotation.JsonProperty("isOracleOwned") + private final Boolean isOracleOwned; + + /** + * Indicates if publisher is Oracle first-party or third-party + * + * @return the value + */ + public Boolean getIsOracleOwned() { + return isOracleOwned; + } + + /** + * Indicates whether this publisher is explicitly exempt from OPN and Oracle Cloud Marketplace + * Agreement validation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isOpnAgreementValidationExempt") + private final Boolean isOpnAgreementValidationExempt; + + /** + * Indicates whether this publisher is explicitly exempt from OPN and Oracle Cloud Marketplace + * Agreement validation. + * + * @return the value + */ + public Boolean getIsOpnAgreementValidationExempt() { + return isOpnAgreementValidationExempt; + } + + @com.fasterxml.jackson.annotation.JsonProperty("partnerPortalOptions") + private final PartnerPortalOptions partnerPortalOptions; + + public PartnerPortalOptions getPartnerPortalOptions() { + return partnerPortalOptions; + } + + /** The publisher's website. */ + @com.fasterxml.jackson.annotation.JsonProperty("websiteUrl") + private final String websiteUrl; + + /** + * The publisher's website. + * + * @return the value + */ + public String getWebsiteUrl() { + return websiteUrl; + } + + /** The public email address of the publisher for customers. */ + @com.fasterxml.jackson.annotation.JsonProperty("contactEmail") + private final String contactEmail; + + /** + * The public email address of the publisher for customers. + * + * @return the value + */ + public String getContactEmail() { + return contactEmail; + } + + /** The phone number of the publisher in E.164 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("contactPhone") + private final String contactPhone; + + /** + * The phone number of the publisher in E.164 format. + * + * @return the value + */ + public String getContactPhone() { + return contactPhone; + } + + /** The address of the publisher's headquarters. */ + @com.fasterxml.jackson.annotation.JsonProperty("hqAddress") + private final String hqAddress; + + /** + * The address of the publisher's headquarters. + * + * @return the value + */ + public String getHqAddress() { + return hqAddress; + } + + @com.fasterxml.jackson.annotation.JsonProperty("logo") + private final UploadData logo; + + public UploadData getLogo() { + return logo; + } + + /** Publisher's Facebook URL */ + @com.fasterxml.jackson.annotation.JsonProperty("facebookUrl") + private final String facebookUrl; + + /** + * Publisher's Facebook URL + * + * @return the value + */ + public String getFacebookUrl() { + return facebookUrl; + } + + /** Publisher's Twitter URL */ + @com.fasterxml.jackson.annotation.JsonProperty("twitterUrl") + private final String twitterUrl; + + /** + * Publisher's Twitter URL + * + * @return the value + */ + public String getTwitterUrl() { + return twitterUrl; + } + + /** Publisher's LinkedIn URL */ + @com.fasterxml.jackson.annotation.JsonProperty("linkedinUrl") + private final String linkedinUrl; + + /** + * Publisher's LinkedIn URL + * + * @return the value + */ + public String getLinkedinUrl() { + return linkedinUrl; + } + + /** publisher type. */ + @com.fasterxml.jackson.annotation.JsonProperty("publisherType") + private final PublisherSummary.PublisherType publisherType; + + /** + * publisher type. + * + * @return the value + */ + public PublisherSummary.PublisherType getPublisherType() { + return publisherType; + } + + /** Indicates if publisher has application listings */ + @com.fasterxml.jackson.annotation.JsonProperty("isAppPublisher") + private final Boolean isAppPublisher; + + /** + * Indicates if publisher has application listings + * + * @return the value + */ + public Boolean getIsAppPublisher() { + return isAppPublisher; + } + + /** Indicates if publisher has service listings */ + @com.fasterxml.jackson.annotation.JsonProperty("isServicePublisher") + private final Boolean isServicePublisher; + + /** + * Indicates if publisher has service listings + * + * @return the value + */ + public Boolean getIsServicePublisher() { + return isServicePublisher; + } + + /** The time the publisher was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the publisher was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time the publisher was updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the publisher was updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** the expiry time of the publisher */ + @com.fasterxml.jackson.annotation.JsonProperty("timeExpired") + private final java.util.Date timeExpired; + + /** + * the expiry time of the publisher + * + * @return the value + */ + public java.util.Date getTimeExpired() { + return timeExpired; + } + + /** + * 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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("AdminPublisherSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", compartmentName=").append(String.valueOf(this.compartmentName)); + sb.append(", firstName=").append(String.valueOf(this.firstName)); + sb.append(", lastName=").append(String.valueOf(this.lastName)); + sb.append(", email=").append(String.valueOf(this.email)); + sb.append(", registryNamespace=").append(String.valueOf(this.registryNamespace)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", legacyId=").append(String.valueOf(this.legacyId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", solutionDescription=").append(String.valueOf(this.solutionDescription)); + sb.append(", yearFounded=").append(String.valueOf(this.yearFounded)); + sb.append(", employeeCount=").append(String.valueOf(this.employeeCount)); + sb.append(", modifiedBy=").append(String.valueOf(this.modifiedBy)); + sb.append(", isOracleOwned=").append(String.valueOf(this.isOracleOwned)); + sb.append(", isOpnAgreementValidationExempt=") + .append(String.valueOf(this.isOpnAgreementValidationExempt)); + sb.append(", partnerPortalOptions=").append(String.valueOf(this.partnerPortalOptions)); + sb.append(", websiteUrl=").append(String.valueOf(this.websiteUrl)); + sb.append(", contactEmail=").append(String.valueOf(this.contactEmail)); + sb.append(", contactPhone=").append(String.valueOf(this.contactPhone)); + sb.append(", hqAddress=").append(String.valueOf(this.hqAddress)); + sb.append(", logo=").append(String.valueOf(this.logo)); + sb.append(", facebookUrl=").append(String.valueOf(this.facebookUrl)); + sb.append(", twitterUrl=").append(String.valueOf(this.twitterUrl)); + sb.append(", linkedinUrl=").append(String.valueOf(this.linkedinUrl)); + sb.append(", publisherType=").append(String.valueOf(this.publisherType)); + sb.append(", isAppPublisher=").append(String.valueOf(this.isAppPublisher)); + sb.append(", isServicePublisher=").append(String.valueOf(this.isServicePublisher)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeExpired=").append(String.valueOf(this.timeExpired)); + 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 AdminPublisherSummary)) { + return false; + } + + AdminPublisherSummary other = (AdminPublisherSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.compartmentName, other.compartmentName) + && java.util.Objects.equals(this.firstName, other.firstName) + && java.util.Objects.equals(this.lastName, other.lastName) + && java.util.Objects.equals(this.email, other.email) + && java.util.Objects.equals(this.registryNamespace, other.registryNamespace) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.legacyId, other.legacyId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.solutionDescription, other.solutionDescription) + && java.util.Objects.equals(this.yearFounded, other.yearFounded) + && java.util.Objects.equals(this.employeeCount, other.employeeCount) + && java.util.Objects.equals(this.modifiedBy, other.modifiedBy) + && java.util.Objects.equals(this.isOracleOwned, other.isOracleOwned) + && java.util.Objects.equals( + this.isOpnAgreementValidationExempt, other.isOpnAgreementValidationExempt) + && java.util.Objects.equals(this.partnerPortalOptions, other.partnerPortalOptions) + && java.util.Objects.equals(this.websiteUrl, other.websiteUrl) + && java.util.Objects.equals(this.contactEmail, other.contactEmail) + && java.util.Objects.equals(this.contactPhone, other.contactPhone) + && java.util.Objects.equals(this.hqAddress, other.hqAddress) + && java.util.Objects.equals(this.logo, other.logo) + && java.util.Objects.equals(this.facebookUrl, other.facebookUrl) + && java.util.Objects.equals(this.twitterUrl, other.twitterUrl) + && java.util.Objects.equals(this.linkedinUrl, other.linkedinUrl) + && java.util.Objects.equals(this.publisherType, other.publisherType) + && java.util.Objects.equals(this.isAppPublisher, other.isAppPublisher) + && java.util.Objects.equals(this.isServicePublisher, other.isServicePublisher) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeExpired, other.timeExpired) + && 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.compartmentName == null ? 43 : this.compartmentName.hashCode()); + result = (result * PRIME) + (this.firstName == null ? 43 : this.firstName.hashCode()); + result = (result * PRIME) + (this.lastName == null ? 43 : this.lastName.hashCode()); + result = (result * PRIME) + (this.email == null ? 43 : this.email.hashCode()); + result = + (result * PRIME) + + (this.registryNamespace == null ? 43 : this.registryNamespace.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.legacyId == null ? 43 : this.legacyId.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.solutionDescription == null + ? 43 + : this.solutionDescription.hashCode()); + result = (result * PRIME) + (this.yearFounded == null ? 43 : this.yearFounded.hashCode()); + result = + (result * PRIME) + + (this.employeeCount == null ? 43 : this.employeeCount.hashCode()); + result = (result * PRIME) + (this.modifiedBy == null ? 43 : this.modifiedBy.hashCode()); + result = + (result * PRIME) + + (this.isOracleOwned == null ? 43 : this.isOracleOwned.hashCode()); + result = + (result * PRIME) + + (this.isOpnAgreementValidationExempt == null + ? 43 + : this.isOpnAgreementValidationExempt.hashCode()); + result = + (result * PRIME) + + (this.partnerPortalOptions == null + ? 43 + : this.partnerPortalOptions.hashCode()); + result = (result * PRIME) + (this.websiteUrl == null ? 43 : this.websiteUrl.hashCode()); + result = (result * PRIME) + (this.contactEmail == null ? 43 : this.contactEmail.hashCode()); + result = (result * PRIME) + (this.contactPhone == null ? 43 : this.contactPhone.hashCode()); + result = (result * PRIME) + (this.hqAddress == null ? 43 : this.hqAddress.hashCode()); + result = (result * PRIME) + (this.logo == null ? 43 : this.logo.hashCode()); + result = (result * PRIME) + (this.facebookUrl == null ? 43 : this.facebookUrl.hashCode()); + result = (result * PRIME) + (this.twitterUrl == null ? 43 : this.twitterUrl.hashCode()); + result = (result * PRIME) + (this.linkedinUrl == null ? 43 : this.linkedinUrl.hashCode()); + result = + (result * PRIME) + + (this.publisherType == null ? 43 : this.publisherType.hashCode()); + result = + (result * PRIME) + + (this.isAppPublisher == null ? 43 : this.isAppPublisher.hashCode()); + result = + (result * PRIME) + + (this.isServicePublisher == null + ? 43 + : this.isServicePublisher.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.timeExpired == null ? 43 : this.timeExpired.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminRelatedDocumentAttachment.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminRelatedDocumentAttachment.java new file mode 100644 index 00000000000..09d340bf46c --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminRelatedDocumentAttachment.java @@ -0,0 +1,396 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Related document attachment for the listing revision.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminRelatedDocumentAttachment.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "attachmentType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminRelatedDocumentAttachment extends AdminListingRevisionAttachment { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("listingRevisionId") + private String listingRevisionId; + + public Builder listingRevisionId(String listingRevisionId) { + this.listingRevisionId = listingRevisionId; + this.__explicitlySet__.add("listingRevisionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private ListingRevisionAttachment.SourceType sourceType; + + public Builder sourceType(ListingRevisionAttachment.SourceType sourceType) { + this.sourceType = sourceType; + this.__explicitlySet__.add("sourceType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private ListingRevisionAttachment.LifecycleState lifecycleState; + + public Builder lifecycleState(ListingRevisionAttachment.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + 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("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * Identifies whether the attachment is for Internal Oracle Users or external users as well. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isOracleUsersOnly") + private Boolean isOracleUsersOnly; + + /** + * Identifies whether the attachment is for Internal Oracle Users or external users as well. + * + * @param isOracleUsersOnly the value to set + * @return this builder + */ + public Builder isOracleUsersOnly(Boolean isOracleUsersOnly) { + this.isOracleUsersOnly = isOracleUsersOnly; + this.__explicitlySet__.add("isOracleUsersOnly"); + return this; + } + /** URL of the uploaded document. */ + @com.fasterxml.jackson.annotation.JsonProperty("contentUrl") + private String contentUrl; + + /** + * URL of the uploaded document. + * + * @param contentUrl the value to set + * @return this builder + */ + public Builder contentUrl(String contentUrl) { + this.contentUrl = contentUrl; + this.__explicitlySet__.add("contentUrl"); + return this; + } + /** The MIME type of the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("mimeType") + private String mimeType; + + /** + * The MIME type of the uploaded data. + * + * @param mimeType the value to set + * @return this builder + */ + public Builder mimeType(String mimeType) { + this.mimeType = mimeType; + this.__explicitlySet__.add("mimeType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdminRelatedDocumentAttachment build() { + AdminRelatedDocumentAttachment model = + new AdminRelatedDocumentAttachment( + this.id, + this.compartmentId, + this.listingRevisionId, + this.displayName, + this.description, + this.sourceType, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags, + this.isOracleUsersOnly, + this.contentUrl, + this.mimeType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminRelatedDocumentAttachment model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("listingRevisionId")) { + this.listingRevisionId(model.getListingRevisionId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("sourceType")) { + this.sourceType(model.getSourceType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("isOracleUsersOnly")) { + this.isOracleUsersOnly(model.getIsOracleUsersOnly()); + } + if (model.wasPropertyExplicitlySet("contentUrl")) { + this.contentUrl(model.getContentUrl()); + } + if (model.wasPropertyExplicitlySet("mimeType")) { + this.mimeType(model.getMimeType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public AdminRelatedDocumentAttachment( + String id, + String compartmentId, + String listingRevisionId, + String displayName, + String description, + ListingRevisionAttachment.SourceType sourceType, + ListingRevisionAttachment.LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + Boolean isOracleUsersOnly, + String contentUrl, + String mimeType) { + super( + id, + compartmentId, + listingRevisionId, + displayName, + description, + sourceType, + lifecycleState, + timeCreated, + timeUpdated, + freeformTags, + definedTags, + systemTags); + this.isOracleUsersOnly = isOracleUsersOnly; + this.contentUrl = contentUrl; + this.mimeType = mimeType; + } + + /** Identifies whether the attachment is for Internal Oracle Users or external users as well. */ + @com.fasterxml.jackson.annotation.JsonProperty("isOracleUsersOnly") + private final Boolean isOracleUsersOnly; + + /** + * Identifies whether the attachment is for Internal Oracle Users or external users as well. + * + * @return the value + */ + public Boolean getIsOracleUsersOnly() { + return isOracleUsersOnly; + } + + /** URL of the uploaded document. */ + @com.fasterxml.jackson.annotation.JsonProperty("contentUrl") + private final String contentUrl; + + /** + * URL of the uploaded document. + * + * @return the value + */ + public String getContentUrl() { + return contentUrl; + } + + /** The MIME type of the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("mimeType") + private final String mimeType; + + /** + * The MIME type of the uploaded data. + * + * @return the value + */ + public String getMimeType() { + return mimeType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AdminRelatedDocumentAttachment("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", isOracleUsersOnly=").append(String.valueOf(this.isOracleUsersOnly)); + sb.append(", contentUrl=").append(String.valueOf(this.contentUrl)); + sb.append(", mimeType=").append(String.valueOf(this.mimeType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminRelatedDocumentAttachment)) { + return false; + } + + AdminRelatedDocumentAttachment other = (AdminRelatedDocumentAttachment) o; + return java.util.Objects.equals(this.isOracleUsersOnly, other.isOracleUsersOnly) + && java.util.Objects.equals(this.contentUrl, other.contentUrl) + && java.util.Objects.equals(this.mimeType, other.mimeType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.isOracleUsersOnly == null ? 43 : this.isOracleUsersOnly.hashCode()); + result = (result * PRIME) + (this.contentUrl == null ? 43 : this.contentUrl.hashCode()); + result = (result * PRIME) + (this.mimeType == null ? 43 : this.mimeType.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminReviewSupportDocumentAttachment.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminReviewSupportDocumentAttachment.java new file mode 100644 index 00000000000..38482575f40 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminReviewSupportDocumentAttachment.java @@ -0,0 +1,470 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Review support attachment for the listing revision.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminReviewSupportDocumentAttachment.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "attachmentType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminReviewSupportDocumentAttachment extends AdminListingRevisionAttachment { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("listingRevisionId") + private String listingRevisionId; + + public Builder listingRevisionId(String listingRevisionId) { + this.listingRevisionId = listingRevisionId; + this.__explicitlySet__.add("listingRevisionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private ListingRevisionAttachment.SourceType sourceType; + + public Builder sourceType(ListingRevisionAttachment.SourceType sourceType) { + this.sourceType = sourceType; + this.__explicitlySet__.add("sourceType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private ListingRevisionAttachment.LifecycleState lifecycleState; + + public Builder lifecycleState(ListingRevisionAttachment.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + 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("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * Identifies whether the attachment is for Internal Oracle Users or external users as well. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isOracleUsersOnly") + private Boolean isOracleUsersOnly; + + /** + * Identifies whether the attachment is for Internal Oracle Users or external users as well. + * + * @param isOracleUsersOnly the value to set + * @return this builder + */ + public Builder isOracleUsersOnly(Boolean isOracleUsersOnly) { + this.isOracleUsersOnly = isOracleUsersOnly; + this.__explicitlySet__.add("isOracleUsersOnly"); + return this; + } + /** Name of the review support document */ + @com.fasterxml.jackson.annotation.JsonProperty("documentName") + private String documentName; + + /** + * Name of the review support document + * + * @param documentName the value to set + * @return this builder + */ + public Builder documentName(String documentName) { + this.documentName = documentName; + this.__explicitlySet__.add("documentName"); + return this; + } + /** Template code for the uploaded document */ + @com.fasterxml.jackson.annotation.JsonProperty("templateCode") + private String templateCode; + + /** + * Template code for the uploaded document + * + * @param templateCode the value to set + * @return this builder + */ + public Builder templateCode(String templateCode) { + this.templateCode = templateCode; + this.__explicitlySet__.add("templateCode"); + return this; + } + /** URL of the uploaded document */ + @com.fasterxml.jackson.annotation.JsonProperty("contentUrl") + private String contentUrl; + + /** + * URL of the uploaded document + * + * @param contentUrl the value to set + * @return this builder + */ + public Builder contentUrl(String contentUrl) { + this.contentUrl = contentUrl; + this.__explicitlySet__.add("contentUrl"); + return this; + } + /** The MIME type of the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("mimeType") + private String mimeType; + + /** + * The MIME type of the uploaded data. + * + * @param mimeType the value to set + * @return this builder + */ + public Builder mimeType(String mimeType) { + this.mimeType = mimeType; + this.__explicitlySet__.add("mimeType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdminReviewSupportDocumentAttachment build() { + AdminReviewSupportDocumentAttachment model = + new AdminReviewSupportDocumentAttachment( + this.id, + this.compartmentId, + this.listingRevisionId, + this.displayName, + this.description, + this.sourceType, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags, + this.isOracleUsersOnly, + this.documentName, + this.templateCode, + this.contentUrl, + this.mimeType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminReviewSupportDocumentAttachment model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("listingRevisionId")) { + this.listingRevisionId(model.getListingRevisionId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("sourceType")) { + this.sourceType(model.getSourceType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("isOracleUsersOnly")) { + this.isOracleUsersOnly(model.getIsOracleUsersOnly()); + } + if (model.wasPropertyExplicitlySet("documentName")) { + this.documentName(model.getDocumentName()); + } + if (model.wasPropertyExplicitlySet("templateCode")) { + this.templateCode(model.getTemplateCode()); + } + if (model.wasPropertyExplicitlySet("contentUrl")) { + this.contentUrl(model.getContentUrl()); + } + if (model.wasPropertyExplicitlySet("mimeType")) { + this.mimeType(model.getMimeType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public AdminReviewSupportDocumentAttachment( + String id, + String compartmentId, + String listingRevisionId, + String displayName, + String description, + ListingRevisionAttachment.SourceType sourceType, + ListingRevisionAttachment.LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + Boolean isOracleUsersOnly, + String documentName, + String templateCode, + String contentUrl, + String mimeType) { + super( + id, + compartmentId, + listingRevisionId, + displayName, + description, + sourceType, + lifecycleState, + timeCreated, + timeUpdated, + freeformTags, + definedTags, + systemTags); + this.isOracleUsersOnly = isOracleUsersOnly; + this.documentName = documentName; + this.templateCode = templateCode; + this.contentUrl = contentUrl; + this.mimeType = mimeType; + } + + /** Identifies whether the attachment is for Internal Oracle Users or external users as well. */ + @com.fasterxml.jackson.annotation.JsonProperty("isOracleUsersOnly") + private final Boolean isOracleUsersOnly; + + /** + * Identifies whether the attachment is for Internal Oracle Users or external users as well. + * + * @return the value + */ + public Boolean getIsOracleUsersOnly() { + return isOracleUsersOnly; + } + + /** Name of the review support document */ + @com.fasterxml.jackson.annotation.JsonProperty("documentName") + private final String documentName; + + /** + * Name of the review support document + * + * @return the value + */ + public String getDocumentName() { + return documentName; + } + + /** Template code for the uploaded document */ + @com.fasterxml.jackson.annotation.JsonProperty("templateCode") + private final String templateCode; + + /** + * Template code for the uploaded document + * + * @return the value + */ + public String getTemplateCode() { + return templateCode; + } + + /** URL of the uploaded document */ + @com.fasterxml.jackson.annotation.JsonProperty("contentUrl") + private final String contentUrl; + + /** + * URL of the uploaded document + * + * @return the value + */ + public String getContentUrl() { + return contentUrl; + } + + /** The MIME type of the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("mimeType") + private final String mimeType; + + /** + * The MIME type of the uploaded data. + * + * @return the value + */ + public String getMimeType() { + return mimeType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AdminReviewSupportDocumentAttachment("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", isOracleUsersOnly=").append(String.valueOf(this.isOracleUsersOnly)); + sb.append(", documentName=").append(String.valueOf(this.documentName)); + sb.append(", templateCode=").append(String.valueOf(this.templateCode)); + sb.append(", contentUrl=").append(String.valueOf(this.contentUrl)); + sb.append(", mimeType=").append(String.valueOf(this.mimeType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminReviewSupportDocumentAttachment)) { + return false; + } + + AdminReviewSupportDocumentAttachment other = (AdminReviewSupportDocumentAttachment) o; + return java.util.Objects.equals(this.isOracleUsersOnly, other.isOracleUsersOnly) + && java.util.Objects.equals(this.documentName, other.documentName) + && java.util.Objects.equals(this.templateCode, other.templateCode) + && java.util.Objects.equals(this.contentUrl, other.contentUrl) + && java.util.Objects.equals(this.mimeType, other.mimeType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.isOracleUsersOnly == null ? 43 : this.isOracleUsersOnly.hashCode()); + result = (result * PRIME) + (this.documentName == null ? 43 : this.documentName.hashCode()); + result = (result * PRIME) + (this.templateCode == null ? 43 : this.templateCode.hashCode()); + result = (result * PRIME) + (this.contentUrl == null ? 43 : this.contentUrl.hashCode()); + result = (result * PRIME) + (this.mimeType == null ? 43 : this.mimeType.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminScreenShotAttachment.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminScreenShotAttachment.java new file mode 100644 index 00000000000..2690f892f29 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminScreenShotAttachment.java @@ -0,0 +1,396 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Screenshot attachment for the listing revision.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminScreenShotAttachment.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "attachmentType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminScreenShotAttachment extends AdminListingRevisionAttachment { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("listingRevisionId") + private String listingRevisionId; + + public Builder listingRevisionId(String listingRevisionId) { + this.listingRevisionId = listingRevisionId; + this.__explicitlySet__.add("listingRevisionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private ListingRevisionAttachment.SourceType sourceType; + + public Builder sourceType(ListingRevisionAttachment.SourceType sourceType) { + this.sourceType = sourceType; + this.__explicitlySet__.add("sourceType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private ListingRevisionAttachment.LifecycleState lifecycleState; + + public Builder lifecycleState(ListingRevisionAttachment.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + 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("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * Identifies whether the attachment is for Internal Oracle Users or external users as well. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isOracleUsersOnly") + private Boolean isOracleUsersOnly; + + /** + * Identifies whether the attachment is for Internal Oracle Users or external users as well. + * + * @param isOracleUsersOnly the value to set + * @return this builder + */ + public Builder isOracleUsersOnly(Boolean isOracleUsersOnly) { + this.isOracleUsersOnly = isOracleUsersOnly; + this.__explicitlySet__.add("isOracleUsersOnly"); + return this; + } + /** URL of the uploaded document. */ + @com.fasterxml.jackson.annotation.JsonProperty("contentUrl") + private String contentUrl; + + /** + * URL of the uploaded document. + * + * @param contentUrl the value to set + * @return this builder + */ + public Builder contentUrl(String contentUrl) { + this.contentUrl = contentUrl; + this.__explicitlySet__.add("contentUrl"); + return this; + } + /** The MIME type of the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("mimeType") + private String mimeType; + + /** + * The MIME type of the uploaded data. + * + * @param mimeType the value to set + * @return this builder + */ + public Builder mimeType(String mimeType) { + this.mimeType = mimeType; + this.__explicitlySet__.add("mimeType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdminScreenShotAttachment build() { + AdminScreenShotAttachment model = + new AdminScreenShotAttachment( + this.id, + this.compartmentId, + this.listingRevisionId, + this.displayName, + this.description, + this.sourceType, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags, + this.isOracleUsersOnly, + this.contentUrl, + this.mimeType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminScreenShotAttachment model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("listingRevisionId")) { + this.listingRevisionId(model.getListingRevisionId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("sourceType")) { + this.sourceType(model.getSourceType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("isOracleUsersOnly")) { + this.isOracleUsersOnly(model.getIsOracleUsersOnly()); + } + if (model.wasPropertyExplicitlySet("contentUrl")) { + this.contentUrl(model.getContentUrl()); + } + if (model.wasPropertyExplicitlySet("mimeType")) { + this.mimeType(model.getMimeType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public AdminScreenShotAttachment( + String id, + String compartmentId, + String listingRevisionId, + String displayName, + String description, + ListingRevisionAttachment.SourceType sourceType, + ListingRevisionAttachment.LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + Boolean isOracleUsersOnly, + String contentUrl, + String mimeType) { + super( + id, + compartmentId, + listingRevisionId, + displayName, + description, + sourceType, + lifecycleState, + timeCreated, + timeUpdated, + freeformTags, + definedTags, + systemTags); + this.isOracleUsersOnly = isOracleUsersOnly; + this.contentUrl = contentUrl; + this.mimeType = mimeType; + } + + /** Identifies whether the attachment is for Internal Oracle Users or external users as well. */ + @com.fasterxml.jackson.annotation.JsonProperty("isOracleUsersOnly") + private final Boolean isOracleUsersOnly; + + /** + * Identifies whether the attachment is for Internal Oracle Users or external users as well. + * + * @return the value + */ + public Boolean getIsOracleUsersOnly() { + return isOracleUsersOnly; + } + + /** URL of the uploaded document. */ + @com.fasterxml.jackson.annotation.JsonProperty("contentUrl") + private final String contentUrl; + + /** + * URL of the uploaded document. + * + * @return the value + */ + public String getContentUrl() { + return contentUrl; + } + + /** The MIME type of the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("mimeType") + private final String mimeType; + + /** + * The MIME type of the uploaded data. + * + * @return the value + */ + public String getMimeType() { + return mimeType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AdminScreenShotAttachment("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", isOracleUsersOnly=").append(String.valueOf(this.isOracleUsersOnly)); + sb.append(", contentUrl=").append(String.valueOf(this.contentUrl)); + sb.append(", mimeType=").append(String.valueOf(this.mimeType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminScreenShotAttachment)) { + return false; + } + + AdminScreenShotAttachment other = (AdminScreenShotAttachment) o; + return java.util.Objects.equals(this.isOracleUsersOnly, other.isOracleUsersOnly) + && java.util.Objects.equals(this.contentUrl, other.contentUrl) + && java.util.Objects.equals(this.mimeType, other.mimeType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.isOracleUsersOnly == null ? 43 : this.isOracleUsersOnly.hashCode()); + result = (result * PRIME) + (this.contentUrl == null ? 43 : this.contentUrl.hashCode()); + result = (result * PRIME) + (this.mimeType == null ? 43 : this.mimeType.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminServiceListingRevision.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminServiceListingRevision.java new file mode 100644 index 00000000000..c1c18d68e87 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminServiceListingRevision.java @@ -0,0 +1,830 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Listing revision details for service listings
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminServiceListingRevision.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "listingType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminServiceListingRevision extends AdminListingRevision { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private String legacyId; + + public Builder legacyId(String legacyId) { + this.legacyId = legacyId; + this.__explicitlySet__.add("legacyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("listingId") + private String listingId; + + public Builder listingId(String listingId) { + this.listingId = listingId; + this.__explicitlySet__.add("listingId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("publisherId") + private String publisherId; + + public Builder publisherId(String publisherId) { + this.publisherId = publisherId; + this.__explicitlySet__.add("publisherId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("approverId") + private String approverId; + + public Builder approverId(String approverId) { + this.approverId = approverId; + this.__explicitlySet__.add("approverId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("approverEmail") + private String approverEmail; + + public Builder approverEmail(String approverEmail) { + this.approverEmail = approverEmail; + this.__explicitlySet__.add("approverEmail"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("revisionNumber") + private String revisionNumber; + + public Builder revisionNumber(String revisionNumber) { + this.revisionNumber = revisionNumber; + this.__explicitlySet__.add("revisionNumber"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("headline") + private String headline; + + public Builder headline(String headline) { + this.headline = headline; + this.__explicitlySet__.add("headline"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tagline") + private String tagline; + + public Builder tagline(String tagline) { + this.tagline = tagline; + this.__explicitlySet__.add("tagline"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("keywords") + private String keywords; + + public Builder keywords(String keywords) { + this.keywords = keywords; + this.__explicitlySet__.add("keywords"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("shortDescription") + private String shortDescription; + + public Builder shortDescription(String shortDescription) { + this.shortDescription = shortDescription; + this.__explicitlySet__.add("shortDescription"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("usageInformation") + private String usageInformation; + + public Builder usageInformation(String usageInformation) { + this.usageInformation = usageInformation; + this.__explicitlySet__.add("usageInformation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("longDescription") + private String longDescription; + + public Builder longDescription(String longDescription) { + this.longDescription = longDescription; + this.__explicitlySet__.add("longDescription"); + 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("contentLanguage") + private LanguageItem contentLanguage; + + public Builder contentLanguage(LanguageItem contentLanguage) { + this.contentLanguage = contentLanguage; + this.__explicitlySet__.add("contentLanguage"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("supportedlanguages") + private java.util.List supportedlanguages; + + public Builder supportedlanguages(java.util.List supportedlanguages) { + this.supportedlanguages = supportedlanguages; + this.__explicitlySet__.add("supportedlanguages"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("supportContacts") + private java.util.List supportContacts; + + public Builder supportContacts(java.util.List supportContacts) { + this.supportContacts = supportContacts; + this.__explicitlySet__.add("supportContacts"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("supportLinks") + private java.util.List supportLinks; + + public Builder supportLinks(java.util.List supportLinks) { + this.supportLinks = supportLinks; + this.__explicitlySet__.add("supportLinks"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("icon") + private ListingRevisionIconAttachment icon; + + public Builder icon(ListingRevisionIconAttachment icon) { + this.icon = icon; + this.__explicitlySet__.add("icon"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("banner") + private ListingRevisionBannerAttachment banner; + + public Builder banner(ListingRevisionBannerAttachment banner) { + this.banner = banner; + this.__explicitlySet__.add("banner"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("status") + private ListingRevision.Status status; + + public Builder status(ListingRevision.Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("statusNotes") + private String statusNotes; + + public Builder statusNotes(String statusNotes) { + this.statusNotes = statusNotes; + this.__explicitlySet__.add("statusNotes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private ListingRevision.LifecycleState lifecycleState; + + public Builder lifecycleState(ListingRevision.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("packageType") + private PackageType packageType; + + public Builder packageType(PackageType packageType) { + this.packageType = packageType; + this.__explicitlySet__.add("packageType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("extendedMetadata") + private java.util.Map extendedMetadata; + + public Builder extendedMetadata(java.util.Map extendedMetadata) { + this.extendedMetadata = extendedMetadata; + this.__explicitlySet__.add("extendedMetadata"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** Custom text by partner regarding contact information */ + @com.fasterxml.jackson.annotation.JsonProperty("contactUs") + private String contactUs; + + /** + * Custom text by partner regarding contact information + * + * @param contactUs the value to set + * @return this builder + */ + public Builder contactUs(String contactUs) { + this.contactUs = contactUs; + this.__explicitlySet__.add("contactUs"); + return this; + } + /** List of product code subscribed by listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("productCodes") + private java.util.List productCodes; + + /** + * List of product code subscribed by listing. + * + * @param productCodes the value to set + * @return this builder + */ + public Builder productCodes(java.util.List productCodes) { + this.productCodes = productCodes; + this.__explicitlySet__.add("productCodes"); + return this; + } + /** List of industries subscribed by listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("industries") + private java.util.List industries; + + /** + * List of industries subscribed by listing. + * + * @param industries the value to set + * @return this builder + */ + public Builder industries(java.util.List industries) { + this.industries = industries; + this.__explicitlySet__.add("industries"); + return this; + } + /** Number of trained professional per product */ + @com.fasterxml.jackson.annotation.JsonProperty("trainedProfessionals") + private java.util.List trainedProfessionals; + + /** + * Number of trained professional per product + * + * @param trainedProfessionals the value to set + * @return this builder + */ + public Builder trainedProfessionals( + java.util.List trainedProfessionals) { + this.trainedProfessionals = trainedProfessionals; + this.__explicitlySet__.add("trainedProfessionals"); + return this; + } + /** Custom link to the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("vanityUrl") + private String vanityUrl; + + /** + * Custom link to the listing + * + * @param vanityUrl the value to set + * @return this builder + */ + public Builder vanityUrl(String vanityUrl) { + this.vanityUrl = vanityUrl; + this.__explicitlySet__.add("vanityUrl"); + return this; + } + /** Support details based on geographic location */ + @com.fasterxml.jackson.annotation.JsonProperty("geoLocations") + private java.util.List geoLocations; + + /** + * Support details based on geographic location + * + * @param geoLocations the value to set + * @return this builder + */ + public Builder geoLocations(java.util.List geoLocations) { + this.geoLocations = geoLocations; + this.__explicitlySet__.add("geoLocations"); + return this; + } + /** List of Products subscribed by listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("products") + private java.util.List products; + + /** + * List of Products subscribed by listing. + * + * @param products the value to set + * @return this builder + */ + public Builder products(java.util.List products) { + this.products = products; + this.__explicitlySet__.add("products"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdminServiceListingRevision build() { + AdminServiceListingRevision model = + new AdminServiceListingRevision( + this.id, + this.legacyId, + this.listingId, + this.compartmentId, + this.publisherId, + this.approverId, + this.approverEmail, + this.displayName, + this.revisionNumber, + this.headline, + this.tagline, + this.keywords, + this.shortDescription, + this.usageInformation, + this.longDescription, + this.timeCreated, + this.timeUpdated, + this.contentLanguage, + this.supportedlanguages, + this.supportContacts, + this.supportLinks, + this.icon, + this.banner, + this.status, + this.statusNotes, + this.lifecycleState, + this.packageType, + this.extendedMetadata, + this.freeformTags, + this.definedTags, + this.systemTags, + this.contactUs, + this.productCodes, + this.industries, + this.trainedProfessionals, + this.vanityUrl, + this.geoLocations, + this.products); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminServiceListingRevision model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("legacyId")) { + this.legacyId(model.getLegacyId()); + } + if (model.wasPropertyExplicitlySet("listingId")) { + this.listingId(model.getListingId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("publisherId")) { + this.publisherId(model.getPublisherId()); + } + if (model.wasPropertyExplicitlySet("approverId")) { + this.approverId(model.getApproverId()); + } + if (model.wasPropertyExplicitlySet("approverEmail")) { + this.approverEmail(model.getApproverEmail()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("revisionNumber")) { + this.revisionNumber(model.getRevisionNumber()); + } + if (model.wasPropertyExplicitlySet("headline")) { + this.headline(model.getHeadline()); + } + if (model.wasPropertyExplicitlySet("tagline")) { + this.tagline(model.getTagline()); + } + if (model.wasPropertyExplicitlySet("keywords")) { + this.keywords(model.getKeywords()); + } + if (model.wasPropertyExplicitlySet("shortDescription")) { + this.shortDescription(model.getShortDescription()); + } + if (model.wasPropertyExplicitlySet("usageInformation")) { + this.usageInformation(model.getUsageInformation()); + } + if (model.wasPropertyExplicitlySet("longDescription")) { + this.longDescription(model.getLongDescription()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("contentLanguage")) { + this.contentLanguage(model.getContentLanguage()); + } + if (model.wasPropertyExplicitlySet("supportedlanguages")) { + this.supportedlanguages(model.getSupportedlanguages()); + } + if (model.wasPropertyExplicitlySet("supportContacts")) { + this.supportContacts(model.getSupportContacts()); + } + if (model.wasPropertyExplicitlySet("supportLinks")) { + this.supportLinks(model.getSupportLinks()); + } + if (model.wasPropertyExplicitlySet("icon")) { + this.icon(model.getIcon()); + } + if (model.wasPropertyExplicitlySet("banner")) { + this.banner(model.getBanner()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("statusNotes")) { + this.statusNotes(model.getStatusNotes()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("packageType")) { + this.packageType(model.getPackageType()); + } + if (model.wasPropertyExplicitlySet("extendedMetadata")) { + this.extendedMetadata(model.getExtendedMetadata()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("contactUs")) { + this.contactUs(model.getContactUs()); + } + if (model.wasPropertyExplicitlySet("productCodes")) { + this.productCodes(model.getProductCodes()); + } + if (model.wasPropertyExplicitlySet("industries")) { + this.industries(model.getIndustries()); + } + if (model.wasPropertyExplicitlySet("trainedProfessionals")) { + this.trainedProfessionals(model.getTrainedProfessionals()); + } + if (model.wasPropertyExplicitlySet("vanityUrl")) { + this.vanityUrl(model.getVanityUrl()); + } + if (model.wasPropertyExplicitlySet("geoLocations")) { + this.geoLocations(model.getGeoLocations()); + } + if (model.wasPropertyExplicitlySet("products")) { + this.products(model.getProducts()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public AdminServiceListingRevision( + String id, + String legacyId, + String listingId, + String compartmentId, + String publisherId, + String approverId, + String approverEmail, + String displayName, + String revisionNumber, + String headline, + String tagline, + String keywords, + String shortDescription, + String usageInformation, + String longDescription, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LanguageItem contentLanguage, + java.util.List supportedlanguages, + java.util.List supportContacts, + java.util.List supportLinks, + ListingRevisionIconAttachment icon, + ListingRevisionBannerAttachment banner, + ListingRevision.Status status, + String statusNotes, + ListingRevision.LifecycleState lifecycleState, + PackageType packageType, + java.util.Map extendedMetadata, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + String contactUs, + java.util.List productCodes, + java.util.List industries, + java.util.List trainedProfessionals, + String vanityUrl, + java.util.List geoLocations, + java.util.List products) { + super( + id, + legacyId, + listingId, + compartmentId, + publisherId, + approverId, + approverEmail, + displayName, + revisionNumber, + headline, + tagline, + keywords, + shortDescription, + usageInformation, + longDescription, + timeCreated, + timeUpdated, + contentLanguage, + supportedlanguages, + supportContacts, + supportLinks, + icon, + banner, + status, + statusNotes, + lifecycleState, + packageType, + extendedMetadata, + freeformTags, + definedTags, + systemTags); + this.contactUs = contactUs; + this.productCodes = productCodes; + this.industries = industries; + this.trainedProfessionals = trainedProfessionals; + this.vanityUrl = vanityUrl; + this.geoLocations = geoLocations; + this.products = products; + } + + /** Custom text by partner regarding contact information */ + @com.fasterxml.jackson.annotation.JsonProperty("contactUs") + private final String contactUs; + + /** + * Custom text by partner regarding contact information + * + * @return the value + */ + public String getContactUs() { + return contactUs; + } + + /** List of product code subscribed by listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("productCodes") + private final java.util.List productCodes; + + /** + * List of product code subscribed by listing. + * + * @return the value + */ + public java.util.List getProductCodes() { + return productCodes; + } + + /** List of industries subscribed by listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("industries") + private final java.util.List industries; + + /** + * List of industries subscribed by listing. + * + * @return the value + */ + public java.util.List getIndustries() { + return industries; + } + + /** Number of trained professional per product */ + @com.fasterxml.jackson.annotation.JsonProperty("trainedProfessionals") + private final java.util.List trainedProfessionals; + + /** + * Number of trained professional per product + * + * @return the value + */ + public java.util.List getTrainedProfessionals() { + return trainedProfessionals; + } + + /** Custom link to the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("vanityUrl") + private final String vanityUrl; + + /** + * Custom link to the listing + * + * @return the value + */ + public String getVanityUrl() { + return vanityUrl; + } + + /** Support details based on geographic location */ + @com.fasterxml.jackson.annotation.JsonProperty("geoLocations") + private final java.util.List geoLocations; + + /** + * Support details based on geographic location + * + * @return the value + */ + public java.util.List getGeoLocations() { + return geoLocations; + } + + /** List of Products subscribed by listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("products") + private final java.util.List products; + + /** + * List of Products subscribed by listing. + * + * @return the value + */ + public java.util.List getProducts() { + return products; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AdminServiceListingRevision("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", contactUs=").append(String.valueOf(this.contactUs)); + sb.append(", productCodes=").append(String.valueOf(this.productCodes)); + sb.append(", industries=").append(String.valueOf(this.industries)); + sb.append(", trainedProfessionals=").append(String.valueOf(this.trainedProfessionals)); + sb.append(", vanityUrl=").append(String.valueOf(this.vanityUrl)); + sb.append(", geoLocations=").append(String.valueOf(this.geoLocations)); + sb.append(", products=").append(String.valueOf(this.products)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminServiceListingRevision)) { + return false; + } + + AdminServiceListingRevision other = (AdminServiceListingRevision) o; + return java.util.Objects.equals(this.contactUs, other.contactUs) + && java.util.Objects.equals(this.productCodes, other.productCodes) + && java.util.Objects.equals(this.industries, other.industries) + && java.util.Objects.equals(this.trainedProfessionals, other.trainedProfessionals) + && java.util.Objects.equals(this.vanityUrl, other.vanityUrl) + && java.util.Objects.equals(this.geoLocations, other.geoLocations) + && java.util.Objects.equals(this.products, other.products) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.contactUs == null ? 43 : this.contactUs.hashCode()); + result = (result * PRIME) + (this.productCodes == null ? 43 : this.productCodes.hashCode()); + result = (result * PRIME) + (this.industries == null ? 43 : this.industries.hashCode()); + result = + (result * PRIME) + + (this.trainedProfessionals == null + ? 43 + : this.trainedProfessionals.hashCode()); + result = (result * PRIME) + (this.vanityUrl == null ? 43 : this.vanityUrl.hashCode()); + result = (result * PRIME) + (this.geoLocations == null ? 43 : this.geoLocations.hashCode()); + result = (result * PRIME) + (this.products == null ? 43 : this.products.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbGsmImage.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminSkuPricingRate.java similarity index 52% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbGsmImage.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminSkuPricingRate.java index 66371ee8b3d..d9aae34e0a1 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbGsmImage.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminSkuPricingRate.java @@ -2,10 +2,10 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.model; /** - * The Global service manager image details
    + * A pricing plan rate for listing sku.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,63 +15,59 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDbGsmImage.Builder.class) + builder = AdminSkuPricingRate.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class DistributedDbGsmImage +public final class AdminSkuPricingRate extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"id", "version"}) - public DistributedDbGsmImage(String id, String version) { + @java.beans.ConstructorProperties({"currencyCode", "unitPrice"}) + public AdminSkuPricingRate(String currencyCode, Float unitPrice) { super(); - this.id = id; - this.version = version; + this.currencyCode = currencyCode; + this.unitPrice = unitPrice; } @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 currency supported, in the format specified by ISO-4217 */ + @com.fasterxml.jackson.annotation.JsonProperty("currencyCode") + private String currencyCode; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * Global service manager software image. + * The currency supported, in the format specified by ISO-4217 * - * @param id the value to set + * @param currencyCode the value to set * @return this builder */ - public Builder id(String id) { - this.id = id; - this.__explicitlySet__.add("id"); + public Builder currencyCode(String currencyCode) { + this.currencyCode = currencyCode; + this.__explicitlySet__.add("currencyCode"); return this; } - /** The version associated with the image identified by id. */ - @com.fasterxml.jackson.annotation.JsonProperty("version") - private String version; + /** The amount for the currency type. */ + @com.fasterxml.jackson.annotation.JsonProperty("unitPrice") + private Float unitPrice; /** - * The version associated with the image identified by id. + * The amount for the currency type. * - * @param version the value to set + * @param unitPrice the value to set * @return this builder */ - public Builder version(String version) { - this.version = version; - this.__explicitlySet__.add("version"); + public Builder unitPrice(Float unitPrice) { + this.unitPrice = unitPrice; + this.__explicitlySet__.add("unitPrice"); 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); + public AdminSkuPricingRate build() { + AdminSkuPricingRate model = new AdminSkuPricingRate(this.currencyCode, this.unitPrice); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -79,12 +75,12 @@ public DistributedDbGsmImage build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDbGsmImage model) { - if (model.wasPropertyExplicitlySet("id")) { - this.id(model.getId()); + public Builder copy(AdminSkuPricingRate model) { + if (model.wasPropertyExplicitlySet("currencyCode")) { + this.currencyCode(model.getCurrencyCode()); } - if (model.wasPropertyExplicitlySet("version")) { - this.version(model.getVersion()); + if (model.wasPropertyExplicitlySet("unitPrice")) { + this.unitPrice(model.getUnitPrice()); } return this; } @@ -99,34 +95,30 @@ 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 currency supported, in the format specified by ISO-4217 */ + @com.fasterxml.jackson.annotation.JsonProperty("currencyCode") + private final String currencyCode; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * Global service manager software image. + * The currency supported, in the format specified by ISO-4217 * * @return the value */ - public String getId() { - return id; + public String getCurrencyCode() { + return currencyCode; } - /** The version associated with the image identified by id. */ - @com.fasterxml.jackson.annotation.JsonProperty("version") - private final String version; + /** The amount for the currency type. */ + @com.fasterxml.jackson.annotation.JsonProperty("unitPrice") + private final Float unitPrice; /** - * The version associated with the image identified by id. + * The amount for the currency type. * * @return the value */ - public String getVersion() { - return version; + public Float getUnitPrice() { + return unitPrice; } @Override @@ -142,10 +134,10 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDbGsmImage("); + sb.append("AdminSkuPricingRate("); sb.append("super=").append(super.toString()); - sb.append("id=").append(String.valueOf(this.id)); - sb.append(", version=").append(String.valueOf(this.version)); + sb.append("currencyCode=").append(String.valueOf(this.currencyCode)); + sb.append(", unitPrice=").append(String.valueOf(this.unitPrice)); sb.append(")"); return sb.toString(); } @@ -155,13 +147,13 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DistributedDbGsmImage)) { + if (!(o instanceof AdminSkuPricingRate)) { return false; } - DistributedDbGsmImage other = (DistributedDbGsmImage) o; - return java.util.Objects.equals(this.id, other.id) - && java.util.Objects.equals(this.version, other.version) + AdminSkuPricingRate other = (AdminSkuPricingRate) o; + return java.util.Objects.equals(this.currencyCode, other.currencyCode) + && java.util.Objects.equals(this.unitPrice, other.unitPrice) && super.equals(other); } @@ -169,8 +161,8 @@ public boolean equals(Object o) { 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) + (this.currencyCode == null ? 43 : this.currencyCode.hashCode()); + result = (result * PRIME) + (this.unitPrice == null ? 43 : this.unitPrice.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminStackArtifact.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminStackArtifact.java new file mode 100644 index 00000000000..bec25a5b8c7 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminStackArtifact.java @@ -0,0 +1,320 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Stack artifact 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: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminStackArtifact.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "artifactType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminStackArtifact extends AdminArtifact { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private String legacyId; + + public Builder legacyId(String legacyId) { + this.legacyId = legacyId; + this.__explicitlySet__.add("legacyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Artifact.Status status; + + public Builder status(Artifact.Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("statusNotes") + private String statusNotes; + + public Builder statusNotes(String statusNotes) { + this.statusNotes = statusNotes; + this.__explicitlySet__.add("statusNotes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private Artifact.LifecycleState lifecycleState; + + public Builder lifecycleState(Artifact.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + 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("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("publisherId") + private String publisherId; + + public Builder publisherId(String publisherId) { + this.publisherId = publisherId; + this.__explicitlySet__.add("publisherId"); + 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("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("stack") + private StackArtifactDetails stack; + + public Builder stack(StackArtifactDetails stack) { + this.stack = stack; + this.__explicitlySet__.add("stack"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdminStackArtifact build() { + AdminStackArtifact model = + new AdminStackArtifact( + this.id, + this.legacyId, + this.displayName, + this.status, + this.statusNotes, + this.lifecycleState, + this.timeCreated, + this.compartmentId, + this.publisherId, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags, + this.stack); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminStackArtifact model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("legacyId")) { + this.legacyId(model.getLegacyId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("statusNotes")) { + this.statusNotes(model.getStatusNotes()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("publisherId")) { + this.publisherId(model.getPublisherId()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("stack")) { + this.stack(model.getStack()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public AdminStackArtifact( + String id, + String legacyId, + String displayName, + Artifact.Status status, + String statusNotes, + Artifact.LifecycleState lifecycleState, + java.util.Date timeCreated, + String compartmentId, + String publisherId, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + StackArtifactDetails stack) { + super( + id, + legacyId, + displayName, + status, + statusNotes, + lifecycleState, + timeCreated, + compartmentId, + publisherId, + timeUpdated, + freeformTags, + definedTags, + systemTags); + this.stack = stack; + } + + @com.fasterxml.jackson.annotation.JsonProperty("stack") + private final StackArtifactDetails stack; + + public StackArtifactDetails getStack() { + return stack; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AdminStackArtifact("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", stack=").append(String.valueOf(this.stack)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminStackArtifact)) { + return false; + } + + AdminStackArtifact other = (AdminStackArtifact) o; + return java.util.Objects.equals(this.stack, other.stack) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.stack == null ? 43 : this.stack.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminStackPackage.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminStackPackage.java new file mode 100644 index 00000000000..44addffcd6b --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminStackPackage.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.marketplacepublisher.model; + +/** + * A package for Stack listings.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminStackPackage.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "packageType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminStackPackage extends AdminListingRevisionPackage { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private String legacyId; + + public Builder legacyId(String legacyId) { + this.legacyId = legacyId; + this.__explicitlySet__.add("legacyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("listingRevisionId") + private String listingRevisionId; + + public Builder listingRevisionId(String listingRevisionId) { + this.listingRevisionId = listingRevisionId; + this.__explicitlySet__.add("listingRevisionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("artifactId") + private String artifactId; + + public Builder artifactId(String artifactId) { + this.artifactId = artifactId; + this.__explicitlySet__.add("artifactId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termId") + private String termId; + + public Builder termId(String termId) { + this.termId = termId; + this.__explicitlySet__.add("termId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("packageVersion") + private String packageVersion; + + public Builder packageVersion(String packageVersion) { + this.packageVersion = packageVersion; + this.__explicitlySet__.add("packageVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private ListingRevisionPackage.LifecycleState lifecycleState; + + public Builder lifecycleState(ListingRevisionPackage.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("status") + private ListingRevisionPackage.Status status; + + public Builder status(ListingRevisionPackage.Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("areSecurityUpgradesProvided") + private Boolean areSecurityUpgradesProvided; + + public Builder areSecurityUpgradesProvided(Boolean areSecurityUpgradesProvided) { + this.areSecurityUpgradesProvided = areSecurityUpgradesProvided; + this.__explicitlySet__.add("areSecurityUpgradesProvided"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") + private Boolean isDefault; + + public Builder isDefault(Boolean isDefault) { + this.isDefault = isDefault; + this.__explicitlySet__.add("isDefault"); + 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("extendedMetadata") + private java.util.Map extendedMetadata; + + public Builder extendedMetadata(java.util.Map extendedMetadata) { + this.extendedMetadata = extendedMetadata; + this.__explicitlySet__.add("extendedMetadata"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdminStackPackage build() { + AdminStackPackage model = + new AdminStackPackage( + this.id, + this.legacyId, + this.displayName, + this.description, + this.listingRevisionId, + this.compartmentId, + this.artifactId, + this.termId, + this.packageVersion, + this.lifecycleState, + this.status, + this.areSecurityUpgradesProvided, + this.isDefault, + this.timeCreated, + this.timeUpdated, + this.extendedMetadata, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminStackPackage model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("legacyId")) { + this.legacyId(model.getLegacyId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("listingRevisionId")) { + this.listingRevisionId(model.getListingRevisionId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("artifactId")) { + this.artifactId(model.getArtifactId()); + } + if (model.wasPropertyExplicitlySet("termId")) { + this.termId(model.getTermId()); + } + if (model.wasPropertyExplicitlySet("packageVersion")) { + this.packageVersion(model.getPackageVersion()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("areSecurityUpgradesProvided")) { + this.areSecurityUpgradesProvided(model.getAreSecurityUpgradesProvided()); + } + if (model.wasPropertyExplicitlySet("isDefault")) { + this.isDefault(model.getIsDefault()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("extendedMetadata")) { + this.extendedMetadata(model.getExtendedMetadata()); + } + 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); + } + + @Deprecated + public AdminStackPackage( + String id, + String legacyId, + String displayName, + String description, + String listingRevisionId, + String compartmentId, + String artifactId, + String termId, + String packageVersion, + ListingRevisionPackage.LifecycleState lifecycleState, + ListingRevisionPackage.Status status, + Boolean areSecurityUpgradesProvided, + Boolean isDefault, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map extendedMetadata, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super( + id, + legacyId, + displayName, + description, + listingRevisionId, + compartmentId, + artifactId, + termId, + packageVersion, + lifecycleState, + status, + areSecurityUpgradesProvided, + isDefault, + timeCreated, + timeUpdated, + extendedMetadata, + freeformTags, + definedTags, + 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("AdminStackPackage("); + 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 AdminStackPackage)) { + return false; + } + + AdminStackPackage other = (AdminStackPackage) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminSupportedServiceAttachment.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminSupportedServiceAttachment.java new file mode 100644 index 00000000000..94ce38f4ec1 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminSupportedServiceAttachment.java @@ -0,0 +1,507 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Supported service attachment for the listing revision.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminSupportedServiceAttachment.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "attachmentType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminSupportedServiceAttachment extends AdminListingRevisionAttachment { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("listingRevisionId") + private String listingRevisionId; + + public Builder listingRevisionId(String listingRevisionId) { + this.listingRevisionId = listingRevisionId; + this.__explicitlySet__.add("listingRevisionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private ListingRevisionAttachment.SourceType sourceType; + + public Builder sourceType(ListingRevisionAttachment.SourceType sourceType) { + this.sourceType = sourceType; + this.__explicitlySet__.add("sourceType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private ListingRevisionAttachment.LifecycleState lifecycleState; + + public Builder lifecycleState(ListingRevisionAttachment.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + 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("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * Identifies whether the attachment is for Internal Oracle Users or external users as well. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isOracleUsersOnly") + private Boolean isOracleUsersOnly; + + /** + * Identifies whether the attachment is for Internal Oracle Users or external users as well. + * + * @param isOracleUsersOnly the value to set + * @return this builder + */ + public Builder isOracleUsersOnly(Boolean isOracleUsersOnly) { + this.isOracleUsersOnly = isOracleUsersOnly; + this.__explicitlySet__.add("isOracleUsersOnly"); + return this; + } + /** Name of the service */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceName") + private String serviceName; + + /** + * Name of the service + * + * @param serviceName the value to set + * @return this builder + */ + public Builder serviceName(String serviceName) { + this.serviceName = serviceName; + this.__explicitlySet__.add("serviceName"); + return this; + } + /** Optional url to service */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private String url; + + /** + * Optional url to service + * + * @param url the value to set + * @return this builder + */ + public Builder url(String url) { + this.url = url; + this.__explicitlySet__.add("url"); + return this; + } + /** Type of service */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private SupportedServiceAttachment.Type type; + + /** + * Type of service + * + * @param type the value to set + * @return this builder + */ + public Builder type(SupportedServiceAttachment.Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** URL of the uploaded document. */ + @com.fasterxml.jackson.annotation.JsonProperty("contentUrl") + private String contentUrl; + + /** + * URL of the uploaded document. + * + * @param contentUrl the value to set + * @return this builder + */ + public Builder contentUrl(String contentUrl) { + this.contentUrl = contentUrl; + this.__explicitlySet__.add("contentUrl"); + return this; + } + /** The MIME type of the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("mimeType") + private String mimeType; + + /** + * The MIME type of the uploaded data. + * + * @param mimeType the value to set + * @return this builder + */ + public Builder mimeType(String mimeType) { + this.mimeType = mimeType; + this.__explicitlySet__.add("mimeType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdminSupportedServiceAttachment build() { + AdminSupportedServiceAttachment model = + new AdminSupportedServiceAttachment( + this.id, + this.compartmentId, + this.listingRevisionId, + this.displayName, + this.description, + this.sourceType, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags, + this.isOracleUsersOnly, + this.serviceName, + this.url, + this.type, + this.contentUrl, + this.mimeType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminSupportedServiceAttachment model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("listingRevisionId")) { + this.listingRevisionId(model.getListingRevisionId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("sourceType")) { + this.sourceType(model.getSourceType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("isOracleUsersOnly")) { + this.isOracleUsersOnly(model.getIsOracleUsersOnly()); + } + if (model.wasPropertyExplicitlySet("serviceName")) { + this.serviceName(model.getServiceName()); + } + if (model.wasPropertyExplicitlySet("url")) { + this.url(model.getUrl()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("contentUrl")) { + this.contentUrl(model.getContentUrl()); + } + if (model.wasPropertyExplicitlySet("mimeType")) { + this.mimeType(model.getMimeType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public AdminSupportedServiceAttachment( + String id, + String compartmentId, + String listingRevisionId, + String displayName, + String description, + ListingRevisionAttachment.SourceType sourceType, + ListingRevisionAttachment.LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + Boolean isOracleUsersOnly, + String serviceName, + String url, + SupportedServiceAttachment.Type type, + String contentUrl, + String mimeType) { + super( + id, + compartmentId, + listingRevisionId, + displayName, + description, + sourceType, + lifecycleState, + timeCreated, + timeUpdated, + freeformTags, + definedTags, + systemTags); + this.isOracleUsersOnly = isOracleUsersOnly; + this.serviceName = serviceName; + this.url = url; + this.type = type; + this.contentUrl = contentUrl; + this.mimeType = mimeType; + } + + /** Identifies whether the attachment is for Internal Oracle Users or external users as well. */ + @com.fasterxml.jackson.annotation.JsonProperty("isOracleUsersOnly") + private final Boolean isOracleUsersOnly; + + /** + * Identifies whether the attachment is for Internal Oracle Users or external users as well. + * + * @return the value + */ + public Boolean getIsOracleUsersOnly() { + return isOracleUsersOnly; + } + + /** Name of the service */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceName") + private final String serviceName; + + /** + * Name of the service + * + * @return the value + */ + public String getServiceName() { + return serviceName; + } + + /** Optional url to service */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private final String url; + + /** + * Optional url to service + * + * @return the value + */ + public String getUrl() { + return url; + } + + /** Type of service */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final SupportedServiceAttachment.Type type; + + /** + * Type of service + * + * @return the value + */ + public SupportedServiceAttachment.Type getType() { + return type; + } + + /** URL of the uploaded document. */ + @com.fasterxml.jackson.annotation.JsonProperty("contentUrl") + private final String contentUrl; + + /** + * URL of the uploaded document. + * + * @return the value + */ + public String getContentUrl() { + return contentUrl; + } + + /** The MIME type of the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("mimeType") + private final String mimeType; + + /** + * The MIME type of the uploaded data. + * + * @return the value + */ + public String getMimeType() { + return mimeType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AdminSupportedServiceAttachment("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", isOracleUsersOnly=").append(String.valueOf(this.isOracleUsersOnly)); + sb.append(", serviceName=").append(String.valueOf(this.serviceName)); + sb.append(", url=").append(String.valueOf(this.url)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", contentUrl=").append(String.valueOf(this.contentUrl)); + sb.append(", mimeType=").append(String.valueOf(this.mimeType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminSupportedServiceAttachment)) { + return false; + } + + AdminSupportedServiceAttachment other = (AdminSupportedServiceAttachment) o; + return java.util.Objects.equals(this.isOracleUsersOnly, other.isOracleUsersOnly) + && java.util.Objects.equals(this.serviceName, other.serviceName) + && java.util.Objects.equals(this.url, other.url) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.contentUrl, other.contentUrl) + && java.util.Objects.equals(this.mimeType, other.mimeType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.isOracleUsersOnly == null ? 43 : this.isOracleUsersOnly.hashCode()); + result = (result * PRIME) + (this.serviceName == null ? 43 : this.serviceName.hashCode()); + result = (result * PRIME) + (this.url == null ? 43 : this.url.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.contentUrl == null ? 43 : this.contentUrl.hashCode()); + result = (result * PRIME) + (this.mimeType == null ? 43 : this.mimeType.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTerm.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTerm.java new file mode 100644 index 00000000000..5bbcec1a4db --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTerm.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.marketplacepublisher.model; + +/** + * Base model object for the admin term.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AdminTerm.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminTerm extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "legacyId", + "name", + "author", + "compartmentId", + "publisherId", + "lifecycleState", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public AdminTerm( + String id, + String legacyId, + String name, + Term.Author author, + String compartmentId, + String publisherId, + Term.LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.legacyId = legacyId; + this.name = name; + this.author = author; + this.compartmentId = compartmentId; + this.publisherId = publisherId; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique OCID identifier for the term. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique OCID identifier for the term. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The unique legacy identifier for the term. */ + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private String legacyId; + + /** + * The unique legacy identifier for the term. + * + * @param legacyId the value to set + * @return this builder + */ + public Builder legacyId(String legacyId) { + this.legacyId = legacyId; + this.__explicitlySet__.add("legacyId"); + return this; + } + /** The name for the term. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name for the term. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Who authored the term. Publisher terms will be defaulted to 'PARTNER'. */ + @com.fasterxml.jackson.annotation.JsonProperty("author") + private Term.Author author; + + /** + * Who authored the term. Publisher terms will be defaulted to 'PARTNER'. + * + * @param author the value to set + * @return this builder + */ + public Builder author(Term.Author author) { + this.author = author; + this.__explicitlySet__.add("author"); + return this; + } + /** The unique identifier for the compartment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The unique identifier for 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 unique identifier for the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("publisherId") + private String publisherId; + + /** + * The unique identifier for the publisher. + * + * @param publisherId the value to set + * @return this builder + */ + public Builder publisherId(String publisherId) { + this.publisherId = publisherId; + this.__explicitlySet__.add("publisherId"); + return this; + } + /** The current state for the Term. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private Term.LifecycleState lifecycleState; + + /** + * The current state for the Term. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(Term.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The date and time the term was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

    Example: {@code 2022-09-15T21: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 term was updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

    Example: {@code 2022-09-15T21: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; + } + /** + * 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; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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 AdminTerm build() { + AdminTerm model = + new AdminTerm( + this.id, + this.legacyId, + this.name, + this.author, + this.compartmentId, + this.publisherId, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminTerm model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("legacyId")) { + this.legacyId(model.getLegacyId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("author")) { + this.author(model.getAuthor()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("publisherId")) { + this.publisherId(model.getPublisherId()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Unique OCID identifier for the term. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique OCID identifier for the term. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The unique legacy identifier for the term. */ + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private final String legacyId; + + /** + * The unique legacy identifier for the term. + * + * @return the value + */ + public String getLegacyId() { + return legacyId; + } + + /** The name for the term. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name for the term. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Who authored the term. Publisher terms will be defaulted to 'PARTNER'. */ + @com.fasterxml.jackson.annotation.JsonProperty("author") + private final Term.Author author; + + /** + * Who authored the term. Publisher terms will be defaulted to 'PARTNER'. + * + * @return the value + */ + public Term.Author getAuthor() { + return author; + } + + /** The unique identifier for the compartment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The unique identifier for the compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The unique identifier for the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("publisherId") + private final String publisherId; + + /** + * The unique identifier for the publisher. + * + * @return the value + */ + public String getPublisherId() { + return publisherId; + } + + /** The current state for the Term. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final Term.LifecycleState lifecycleState; + + /** + * The current state for the Term. + * + * @return the value + */ + public Term.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The date and time the term was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

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

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

    Example: {@code 2022-09-15T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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("AdminTerm("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", legacyId=").append(String.valueOf(this.legacyId)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", author=").append(String.valueOf(this.author)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", publisherId=").append(String.valueOf(this.publisherId)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminTerm)) { + return false; + } + + AdminTerm other = (AdminTerm) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.legacyId, other.legacyId) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.author, other.author) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.publisherId, other.publisherId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.legacyId == null ? 43 : this.legacyId.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.author == null ? 43 : this.author.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.publisherId == null ? 43 : this.publisherId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedDatabaseDetails.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermCollection.java similarity index 73% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedDatabaseDetails.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermCollection.java index f732442c370..65b8aef2b6e 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedDatabaseDetails.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermCollection.java @@ -2,13 +2,10 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.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.
    + * Results of the term search. Contains term items.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -18,33 +15,33 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = PatchDistributedDatabaseDetails.Builder.class) + builder = AdminTermCollection.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class PatchDistributedDatabaseDetails +public final class AdminTermCollection extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"items"}) - public PatchDistributedDatabaseDetails(java.util.List items) { + public AdminTermCollection(java.util.List items) { super(); this.items = items; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** List of patch instructions. */ + /** List of the Terms summary. */ @com.fasterxml.jackson.annotation.JsonProperty("items") - private java.util.List items; + private java.util.List items; /** - * List of patch instructions. + * List of the Terms summary. * * @param items the value to set * @return this builder */ - public Builder items(java.util.List items) { + public Builder items(java.util.List items) { this.items = items; this.__explicitlySet__.add("items"); return this; @@ -53,8 +50,8 @@ public Builder items(java.util.List items) { @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public PatchDistributedDatabaseDetails build() { - PatchDistributedDatabaseDetails model = new PatchDistributedDatabaseDetails(this.items); + public AdminTermCollection build() { + AdminTermCollection model = new AdminTermCollection(this.items); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -62,7 +59,7 @@ public PatchDistributedDatabaseDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(PatchDistributedDatabaseDetails model) { + public Builder copy(AdminTermCollection model) { if (model.wasPropertyExplicitlySet("items")) { this.items(model.getItems()); } @@ -79,16 +76,16 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** List of patch instructions. */ + /** List of the Terms summary. */ @com.fasterxml.jackson.annotation.JsonProperty("items") - private final java.util.List items; + private final java.util.List items; /** - * List of patch instructions. + * List of the Terms summary. * * @return the value */ - public java.util.List getItems() { + public java.util.List getItems() { return items; } @@ -105,7 +102,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("PatchDistributedDatabaseDetails("); + sb.append("AdminTermCollection("); sb.append("super=").append(super.toString()); sb.append("items=").append(String.valueOf(this.items)); sb.append(")"); @@ -117,11 +114,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof PatchDistributedDatabaseDetails)) { + if (!(o instanceof AdminTermCollection)) { return false; } - PatchDistributedDatabaseDetails other = (PatchDistributedDatabaseDetails) o; + AdminTermCollection other = (AdminTermCollection) o; return java.util.Objects.equals(this.items, other.items) && super.equals(other); } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermSummary.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermSummary.java new file mode 100644 index 00000000000..2cc51edecae --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermSummary.java @@ -0,0 +1,579 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * The model for the term 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: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AdminTermSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminTermSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "legacyId", + "compartmentId", + "name", + "author", + "lifecycleState", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public AdminTermSummary( + String id, + String legacyId, + String compartmentId, + String name, + Term.Author author, + Term.LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.legacyId = legacyId; + this.compartmentId = compartmentId; + this.name = name; + this.author = author; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique OCID identifier for the term. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique OCID identifier for the term. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The unique legacy identifier for the term. */ + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private String legacyId; + + /** + * The unique legacy identifier for the term. + * + * @param legacyId the value to set + * @return this builder + */ + public Builder legacyId(String legacyId) { + this.legacyId = legacyId; + this.__explicitlySet__.add("legacyId"); + return this; + } + /** The unique identifier for the compartment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The unique identifier for 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 name for the term. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name for the term. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Who authored the term. Publisher terms will be defaulted to as 'PARTNER'. */ + @com.fasterxml.jackson.annotation.JsonProperty("author") + private Term.Author author; + + /** + * Who authored the term. Publisher terms will be defaulted to as 'PARTNER'. + * + * @param author the value to set + * @return this builder + */ + public Builder author(Term.Author author) { + this.author = author; + this.__explicitlySet__.add("author"); + return this; + } + /** The current state for the term version. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private Term.LifecycleState lifecycleState; + + /** + * The current state for the term version. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(Term.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The date and time the resource was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

    Example: {@code 2022-09-15T21: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 resource was updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

    Example: {@code 2022-09-15T21: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; + } + /** + * 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; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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 AdminTermSummary build() { + AdminTermSummary model = + new AdminTermSummary( + this.id, + this.legacyId, + this.compartmentId, + this.name, + this.author, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminTermSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("legacyId")) { + this.legacyId(model.getLegacyId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("author")) { + this.author(model.getAuthor()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Unique OCID identifier for the term. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique OCID identifier for the term. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The unique legacy identifier for the term. */ + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private final String legacyId; + + /** + * The unique legacy identifier for the term. + * + * @return the value + */ + public String getLegacyId() { + return legacyId; + } + + /** The unique identifier for the compartment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The unique identifier for the compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The name for the term. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name for the term. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Who authored the term. Publisher terms will be defaulted to as 'PARTNER'. */ + @com.fasterxml.jackson.annotation.JsonProperty("author") + private final Term.Author author; + + /** + * Who authored the term. Publisher terms will be defaulted to as 'PARTNER'. + * + * @return the value + */ + public Term.Author getAuthor() { + return author; + } + + /** The current state for the term version. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final Term.LifecycleState lifecycleState; + + /** + * The current state for the term version. + * + * @return the value + */ + public Term.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The date and time the resource was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

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

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

    Example: {@code 2022-09-15T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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("AdminTermSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", legacyId=").append(String.valueOf(this.legacyId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", author=").append(String.valueOf(this.author)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminTermSummary)) { + return false; + } + + AdminTermSummary other = (AdminTermSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.legacyId, other.legacyId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.author, other.author) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.legacyId == null ? 43 : this.legacyId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.author == null ? 43 : this.author.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermVersion.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermVersion.java new file mode 100644 index 00000000000..bdb0c08c2d2 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermVersion.java @@ -0,0 +1,810 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Model object for the term version 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: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AdminTermVersion.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminTermVersion + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "legacyId", + "termId", + "termAuthor", + "displayName", + "compartmentId", + "author", + "attachment", + "status", + "lifecycleState", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public AdminTermVersion( + String id, + String legacyId, + String termId, + TermAuthor termAuthor, + String displayName, + String compartmentId, + Author author, + AdminTermVersionAttachment attachment, + TermVersion.Status status, + TermVersion.LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.legacyId = legacyId; + this.termId = termId; + this.termAuthor = termAuthor; + this.displayName = displayName; + this.compartmentId = compartmentId; + this.author = author; + this.attachment = attachment; + this.status = status; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique OCID identifier for the term version. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique OCID identifier for the term version. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The unique legacy identifier for the term version. */ + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private String legacyId; + + /** + * The unique legacy identifier for the term version. + * + * @param legacyId the value to set + * @return this builder + */ + public Builder legacyId(String legacyId) { + this.legacyId = legacyId; + this.__explicitlySet__.add("legacyId"); + return this; + } + /** The unique identifier for the term. */ + @com.fasterxml.jackson.annotation.JsonProperty("termId") + private String termId; + + /** + * The unique identifier for the term. + * + * @param termId the value to set + * @return this builder + */ + public Builder termId(String termId) { + this.termId = termId; + this.__explicitlySet__.add("termId"); + return this; + } + /** Who authored the term. Publisher terms will be defaulted to 'PARTNER'. */ + @com.fasterxml.jackson.annotation.JsonProperty("termAuthor") + private TermAuthor termAuthor; + + /** + * Who authored the term. Publisher terms will be defaulted to 'PARTNER'. + * + * @param termAuthor the value to set + * @return this builder + */ + public Builder termAuthor(TermAuthor termAuthor) { + this.termAuthor = termAuthor; + this.__explicitlySet__.add("termAuthor"); + return this; + } + /** The name for the term version. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The name for the term version. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The unique identifier for the compartment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The unique identifier for 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; + } + /** Who authored the term. Publisher terms will be defaulted to 'PARTNER'. */ + @com.fasterxml.jackson.annotation.JsonProperty("author") + private Author author; + + /** + * Who authored the term. Publisher terms will be defaulted to 'PARTNER'. + * + * @param author the value to set + * @return this builder + */ + public Builder author(Author author) { + this.author = author; + this.__explicitlySet__.add("author"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("attachment") + private AdminTermVersionAttachment attachment; + + public Builder attachment(AdminTermVersionAttachment attachment) { + this.attachment = attachment; + this.__explicitlySet__.add("attachment"); + return this; + } + /** The current status for the term version. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private TermVersion.Status status; + + /** + * The current status for the term version. + * + * @param status the value to set + * @return this builder + */ + public Builder status(TermVersion.Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** The current state for the term version. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private TermVersion.LifecycleState lifecycleState; + + /** + * The current state for the term version. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(TermVersion.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The date and time the term version was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

    Example: {@code 2022-09-15T21: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 term version was updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

    Example: {@code 2022-09-15T21: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; + } + /** + * 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; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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 AdminTermVersion build() { + AdminTermVersion model = + new AdminTermVersion( + this.id, + this.legacyId, + this.termId, + this.termAuthor, + this.displayName, + this.compartmentId, + this.author, + this.attachment, + this.status, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminTermVersion model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("legacyId")) { + this.legacyId(model.getLegacyId()); + } + if (model.wasPropertyExplicitlySet("termId")) { + this.termId(model.getTermId()); + } + if (model.wasPropertyExplicitlySet("termAuthor")) { + this.termAuthor(model.getTermAuthor()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("author")) { + this.author(model.getAuthor()); + } + if (model.wasPropertyExplicitlySet("attachment")) { + this.attachment(model.getAttachment()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Unique OCID identifier for the term version. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique OCID identifier for the term version. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The unique legacy identifier for the term version. */ + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private final String legacyId; + + /** + * The unique legacy identifier for the term version. + * + * @return the value + */ + public String getLegacyId() { + return legacyId; + } + + /** The unique identifier for the term. */ + @com.fasterxml.jackson.annotation.JsonProperty("termId") + private final String termId; + + /** + * The unique identifier for the term. + * + * @return the value + */ + public String getTermId() { + return termId; + } + + /** Who authored the term. Publisher terms will be defaulted to 'PARTNER'. */ + public enum TermAuthor implements com.oracle.bmc.http.internal.BmcEnum { + Oracle("ORACLE"), + Partner("PARTNER"), + + /** + * 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(TermAuthor.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TermAuthor v : TermAuthor.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + TermAuthor(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TermAuthor create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'TermAuthor', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Who authored the term. Publisher terms will be defaulted to 'PARTNER'. */ + @com.fasterxml.jackson.annotation.JsonProperty("termAuthor") + private final TermAuthor termAuthor; + + /** + * Who authored the term. Publisher terms will be defaulted to 'PARTNER'. + * + * @return the value + */ + public TermAuthor getTermAuthor() { + return termAuthor; + } + + /** The name for the term version. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The name for the term version. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The unique identifier for the compartment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The unique identifier for the compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Who authored the term. Publisher terms will be defaulted to 'PARTNER'. */ + public enum Author implements com.oracle.bmc.http.internal.BmcEnum { + Oracle("ORACLE"), + Partner("PARTNER"), + + /** + * 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(Author.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Author v : Author.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Author(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Author create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Author', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Who authored the term. Publisher terms will be defaulted to 'PARTNER'. */ + @com.fasterxml.jackson.annotation.JsonProperty("author") + private final Author author; + + /** + * Who authored the term. Publisher terms will be defaulted to 'PARTNER'. + * + * @return the value + */ + public Author getAuthor() { + return author; + } + + @com.fasterxml.jackson.annotation.JsonProperty("attachment") + private final AdminTermVersionAttachment attachment; + + public AdminTermVersionAttachment getAttachment() { + return attachment; + } + + /** The current status for the term version. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final TermVersion.Status status; + + /** + * The current status for the term version. + * + * @return the value + */ + public TermVersion.Status getStatus() { + return status; + } + + /** The current state for the term version. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final TermVersion.LifecycleState lifecycleState; + + /** + * The current state for the term version. + * + * @return the value + */ + public TermVersion.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The date and time the term version was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

    Example: {@code 2022-09-15T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time the term version was updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

    Example: {@code 2022-09-15T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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("AdminTermVersion("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", legacyId=").append(String.valueOf(this.legacyId)); + sb.append(", termId=").append(String.valueOf(this.termId)); + sb.append(", termAuthor=").append(String.valueOf(this.termAuthor)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", author=").append(String.valueOf(this.author)); + sb.append(", attachment=").append(String.valueOf(this.attachment)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminTermVersion)) { + return false; + } + + AdminTermVersion other = (AdminTermVersion) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.legacyId, other.legacyId) + && java.util.Objects.equals(this.termId, other.termId) + && java.util.Objects.equals(this.termAuthor, other.termAuthor) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.author, other.author) + && java.util.Objects.equals(this.attachment, other.attachment) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.legacyId == null ? 43 : this.legacyId.hashCode()); + result = (result * PRIME) + (this.termId == null ? 43 : this.termId.hashCode()); + result = (result * PRIME) + (this.termAuthor == null ? 43 : this.termAuthor.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.author == null ? 43 : this.author.hashCode()); + result = (result * PRIME) + (this.attachment == null ? 43 : this.attachment.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermVersionAttachment.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermVersionAttachment.java new file mode 100644 index 00000000000..7f544bedaca --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermVersionAttachment.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.marketplacepublisher.model; + +/** + * An attachment uploaded by the Publisher for the term.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminTermVersionAttachment.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminTermVersionAttachment + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"contentUrl", "mimeType", "termVersionContent"}) + public AdminTermVersionAttachment( + String contentUrl, String mimeType, byte[] termVersionContent) { + super(); + this.contentUrl = contentUrl; + this.mimeType = mimeType; + this.termVersionContent = termVersionContent; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The content URL of the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("contentUrl") + private String contentUrl; + + /** + * The content URL of the uploaded data. + * + * @param contentUrl the value to set + * @return this builder + */ + public Builder contentUrl(String contentUrl) { + this.contentUrl = contentUrl; + this.__explicitlySet__.add("contentUrl"); + return this; + } + /** The MIME type of the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("mimeType") + private String mimeType; + + /** + * The MIME type of the uploaded data. + * + * @param mimeType the value to set + * @return this builder + */ + public Builder mimeType(String mimeType) { + this.mimeType = mimeType; + this.__explicitlySet__.add("mimeType"); + return this; + } + /** The term version content. */ + @com.fasterxml.jackson.annotation.JsonProperty("termVersionContent") + private byte[] termVersionContent; + + /** + * The term version content. + * + * @param termVersionContent the value to set + * @return this builder + */ + public Builder termVersionContent(byte[] termVersionContent) { + this.termVersionContent = termVersionContent; + this.__explicitlySet__.add("termVersionContent"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdminTermVersionAttachment build() { + AdminTermVersionAttachment model = + new AdminTermVersionAttachment( + this.contentUrl, this.mimeType, this.termVersionContent); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminTermVersionAttachment model) { + if (model.wasPropertyExplicitlySet("contentUrl")) { + this.contentUrl(model.getContentUrl()); + } + if (model.wasPropertyExplicitlySet("mimeType")) { + this.mimeType(model.getMimeType()); + } + if (model.wasPropertyExplicitlySet("termVersionContent")) { + this.termVersionContent(model.getTermVersionContent()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The content URL of the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("contentUrl") + private final String contentUrl; + + /** + * The content URL of the uploaded data. + * + * @return the value + */ + public String getContentUrl() { + return contentUrl; + } + + /** The MIME type of the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("mimeType") + private final String mimeType; + + /** + * The MIME type of the uploaded data. + * + * @return the value + */ + public String getMimeType() { + return mimeType; + } + + /** The term version content. */ + @com.fasterxml.jackson.annotation.JsonProperty("termVersionContent") + private final byte[] termVersionContent; + + /** + * The term version content. + * + * @return the value + */ + public byte[] getTermVersionContent() { + return termVersionContent; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AdminTermVersionAttachment("); + sb.append("super=").append(super.toString()); + sb.append("contentUrl=").append(String.valueOf(this.contentUrl)); + sb.append(", mimeType=").append(String.valueOf(this.mimeType)); + sb.append(", termVersionContent=") + .append( + (includeByteArrayContents + ? java.util.Arrays.toString(this.termVersionContent) + : (String.valueOf(this.termVersionContent) + + (this.termVersionContent != null + ? " (byte[" + this.termVersionContent.length + "])" + : "")))); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminTermVersionAttachment)) { + return false; + } + + AdminTermVersionAttachment other = (AdminTermVersionAttachment) o; + return java.util.Objects.equals(this.contentUrl, other.contentUrl) + && java.util.Objects.equals(this.mimeType, other.mimeType) + && java.util.Arrays.equals(this.termVersionContent, other.termVersionContent) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.contentUrl == null ? 43 : this.contentUrl.hashCode()); + result = (result * PRIME) + (this.mimeType == null ? 43 : this.mimeType.hashCode()); + result = (result * PRIME) + java.util.Arrays.hashCode(this.termVersionContent); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermVersionCollection.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermVersionCollection.java new file mode 100644 index 00000000000..9d6c643802f --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermVersionCollection.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.marketplacepublisher.model; + +/** + * Results of the term version search. Contains term version items.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminTermVersionCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminTermVersionCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public AdminTermVersionCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of the Terms version summary. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of the Terms version summary. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdminTermVersionCollection build() { + AdminTermVersionCollection model = new AdminTermVersionCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminTermVersionCollection 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 the Terms version summary. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of the Terms version summary. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AdminTermVersionCollection("); + 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 AdminTermVersionCollection)) { + return false; + } + + AdminTermVersionCollection other = (AdminTermVersionCollection) 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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermVersionSummary.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermVersionSummary.java new file mode 100644 index 00000000000..c008eb78377 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermVersionSummary.java @@ -0,0 +1,580 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * The model for the admin term version 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: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminTermVersionSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminTermVersionSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "legacyId", + "compartmentId", + "displayName", + "status", + "lifecycleState", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public AdminTermVersionSummary( + String id, + String legacyId, + String compartmentId, + String displayName, + TermVersion.Status status, + TermVersion.LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.legacyId = legacyId; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.status = status; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique OCID identifier for the term version. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique OCID identifier for the term version. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The unique legacy identifier for the term version. */ + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private String legacyId; + + /** + * The unique legacy identifier for the term version. + * + * @param legacyId the value to set + * @return this builder + */ + public Builder legacyId(String legacyId) { + this.legacyId = legacyId; + this.__explicitlySet__.add("legacyId"); + return this; + } + /** The unique identifier for the compartment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The unique identifier for 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 name for the term version. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The name for the term version. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The current status for the term version. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private TermVersion.Status status; + + /** + * The current status for the term version. + * + * @param status the value to set + * @return this builder + */ + public Builder status(TermVersion.Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** The current state for the Term version. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private TermVersion.LifecycleState lifecycleState; + + /** + * The current state for the Term version. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(TermVersion.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The date and time the term version was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

    Example: {@code 2022-09-15T21: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 time version was updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

    Example: {@code 2022-09-15T21: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; + } + /** + * 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; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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 AdminTermVersionSummary build() { + AdminTermVersionSummary model = + new AdminTermVersionSummary( + this.id, + this.legacyId, + this.compartmentId, + this.displayName, + this.status, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminTermVersionSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("legacyId")) { + this.legacyId(model.getLegacyId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Unique OCID identifier for the term version. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique OCID identifier for the term version. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The unique legacy identifier for the term version. */ + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private final String legacyId; + + /** + * The unique legacy identifier for the term version. + * + * @return the value + */ + public String getLegacyId() { + return legacyId; + } + + /** The unique identifier for the compartment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The unique identifier for the compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The name for the term version. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The name for the term version. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The current status for the term version. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final TermVersion.Status status; + + /** + * The current status for the term version. + * + * @return the value + */ + public TermVersion.Status getStatus() { + return status; + } + + /** The current state for the Term version. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final TermVersion.LifecycleState lifecycleState; + + /** + * The current state for the Term version. + * + * @return the value + */ + public TermVersion.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The date and time the term version was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + *

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

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

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

    Example: {@code 2022-09-15T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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("AdminTermVersionSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", legacyId=").append(String.valueOf(this.legacyId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminTermVersionSummary)) { + return false; + } + + AdminTermVersionSummary other = (AdminTermVersionSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.legacyId, other.legacyId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.legacyId == null ? 43 : this.legacyId.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.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminVideoAttachment.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminVideoAttachment.java new file mode 100644 index 00000000000..6834efa87a6 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminVideoAttachment.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.marketplacepublisher.model; + +/** + * Video attachment for the listing revision.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminVideoAttachment.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "attachmentType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminVideoAttachment extends AdminListingRevisionAttachment { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("listingRevisionId") + private String listingRevisionId; + + public Builder listingRevisionId(String listingRevisionId) { + this.listingRevisionId = listingRevisionId; + this.__explicitlySet__.add("listingRevisionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private ListingRevisionAttachment.SourceType sourceType; + + public Builder sourceType(ListingRevisionAttachment.SourceType sourceType) { + this.sourceType = sourceType; + this.__explicitlySet__.add("sourceType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private ListingRevisionAttachment.LifecycleState lifecycleState; + + public Builder lifecycleState(ListingRevisionAttachment.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + 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("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * Identifies whether the attachment is for Internal Oracle Users or external users as well. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isOracleUsersOnly") + private Boolean isOracleUsersOnly; + + /** + * Identifies whether the attachment is for Internal Oracle Users or external users as well. + * + * @param isOracleUsersOnly the value to set + * @return this builder + */ + public Builder isOracleUsersOnly(Boolean isOracleUsersOnly) { + this.isOracleUsersOnly = isOracleUsersOnly; + this.__explicitlySet__.add("isOracleUsersOnly"); + return this; + } + /** The URL for the video. */ + @com.fasterxml.jackson.annotation.JsonProperty("contentUrl") + private String contentUrl; + + /** + * The URL for the video. + * + * @param contentUrl the value to set + * @return this builder + */ + public Builder contentUrl(String contentUrl) { + this.contentUrl = contentUrl; + this.__explicitlySet__.add("contentUrl"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AdminVideoAttachment build() { + AdminVideoAttachment model = + new AdminVideoAttachment( + this.id, + this.compartmentId, + this.listingRevisionId, + this.displayName, + this.description, + this.sourceType, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags, + this.isOracleUsersOnly, + this.contentUrl); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminVideoAttachment model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("listingRevisionId")) { + this.listingRevisionId(model.getListingRevisionId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("sourceType")) { + this.sourceType(model.getSourceType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("isOracleUsersOnly")) { + this.isOracleUsersOnly(model.getIsOracleUsersOnly()); + } + if (model.wasPropertyExplicitlySet("contentUrl")) { + this.contentUrl(model.getContentUrl()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public AdminVideoAttachment( + String id, + String compartmentId, + String listingRevisionId, + String displayName, + String description, + ListingRevisionAttachment.SourceType sourceType, + ListingRevisionAttachment.LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + Boolean isOracleUsersOnly, + String contentUrl) { + super( + id, + compartmentId, + listingRevisionId, + displayName, + description, + sourceType, + lifecycleState, + timeCreated, + timeUpdated, + freeformTags, + definedTags, + systemTags); + this.isOracleUsersOnly = isOracleUsersOnly; + this.contentUrl = contentUrl; + } + + /** Identifies whether the attachment is for Internal Oracle Users or external users as well. */ + @com.fasterxml.jackson.annotation.JsonProperty("isOracleUsersOnly") + private final Boolean isOracleUsersOnly; + + /** + * Identifies whether the attachment is for Internal Oracle Users or external users as well. + * + * @return the value + */ + public Boolean getIsOracleUsersOnly() { + return isOracleUsersOnly; + } + + /** The URL for the video. */ + @com.fasterxml.jackson.annotation.JsonProperty("contentUrl") + private final String contentUrl; + + /** + * The URL for the video. + * + * @return the value + */ + public String getContentUrl() { + return contentUrl; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AdminVideoAttachment("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", isOracleUsersOnly=").append(String.valueOf(this.isOracleUsersOnly)); + sb.append(", contentUrl=").append(String.valueOf(this.contentUrl)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminVideoAttachment)) { + return false; + } + + AdminVideoAttachment other = (AdminVideoAttachment) o; + return java.util.Objects.equals(this.isOracleUsersOnly, other.isOracleUsersOnly) + && java.util.Objects.equals(this.contentUrl, other.contentUrl) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.isOracleUsersOnly == null ? 43 : this.isOracleUsersOnly.hashCode()); + result = (result * PRIME) + (this.contentUrl == null ? 43 : this.contentUrl.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestSummary.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminWorkRequestSummary.java similarity index 96% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestSummary.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminWorkRequestSummary.java index c8c715ff13a..d4458d67a3a 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestSummary.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminWorkRequestSummary.java @@ -2,7 +2,7 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.model; /** * A summary of the status of a work request.
    @@ -15,12 +15,12 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = WorkRequestSummary.Builder.class) + builder = AdminWorkRequestSummary.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class WorkRequestSummary +public final class AdminWorkRequestSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ @@ -34,7 +34,7 @@ public final class WorkRequestSummary "timeStarted", "timeFinished" }) - public WorkRequestSummary( + public AdminWorkRequestSummary( OperationType operationType, OperationStatus status, String id, @@ -219,9 +219,9 @@ public Builder timeFinished(java.util.Date timeFinished) { @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public WorkRequestSummary build() { - WorkRequestSummary model = - new WorkRequestSummary( + public AdminWorkRequestSummary build() { + AdminWorkRequestSummary model = + new AdminWorkRequestSummary( this.operationType, this.status, this.id, @@ -238,7 +238,7 @@ public WorkRequestSummary build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(WorkRequestSummary model) { + public Builder copy(AdminWorkRequestSummary model) { if (model.wasPropertyExplicitlySet("operationType")) { this.operationType(model.getOperationType()); } @@ -429,7 +429,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("WorkRequestSummary("); + sb.append("AdminWorkRequestSummary("); sb.append("super=").append(super.toString()); sb.append("operationType=").append(String.valueOf(this.operationType)); sb.append(", status=").append(String.valueOf(this.status)); @@ -449,11 +449,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof WorkRequestSummary)) { + if (!(o instanceof AdminWorkRequestSummary)) { return false; } - WorkRequestSummary other = (WorkRequestSummary) o; + AdminWorkRequestSummary other = (AdminWorkRequestSummary) 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) diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminWorkRequestSummaryCollection.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminWorkRequestSummaryCollection.java new file mode 100644 index 00000000000..b4e08f1134f --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminWorkRequestSummaryCollection.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.marketplacepublisher.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: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminWorkRequestSummaryCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AdminWorkRequestSummaryCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public AdminWorkRequestSummaryCollection(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 AdminWorkRequestSummaryCollection build() { + AdminWorkRequestSummaryCollection model = + new AdminWorkRequestSummaryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminWorkRequestSummaryCollection 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("AdminWorkRequestSummaryCollection("); + 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 AdminWorkRequestSummaryCollection)) { + return false; + } + + AdminWorkRequestSummaryCollection other = (AdminWorkRequestSummaryCollection) 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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/BillToCountry.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/BillToCountry.java new file mode 100644 index 00000000000..68a92f25424 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/BillToCountry.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.marketplacepublisher.model; + +/** + * Bill to country associated with Market
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = BillToCountry.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class BillToCountry extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"code", "name"}) + public BillToCountry(String code, String name) { + super(); + this.code = code; + this.name = name; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Bill to country code */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private String code; + + /** + * Bill to country code + * + * @param code the value to set + * @return this builder + */ + public Builder code(String code) { + this.code = code; + this.__explicitlySet__.add("code"); + return this; + } + /** Bill to country code */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Bill to country code + * + * @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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BillToCountry build() { + BillToCountry model = new BillToCountry(this.code, this.name); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BillToCountry model) { + if (model.wasPropertyExplicitlySet("code")) { + this.code(model.getCode()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Bill to country code */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private final String code; + + /** + * Bill to country code + * + * @return the value + */ + public String getCode() { + return code; + } + + /** Bill to country code */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Bill to country code + * + * @return the value + */ + public String getName() { + return name; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("BillToCountry("); + sb.append("super=").append(super.toString()); + sb.append("code=").append(String.valueOf(this.code)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BillToCountry)) { + return false; + } + + BillToCountry other = (BillToCountry) o; + return java.util.Objects.equals(this.code, other.code) + && java.util.Objects.equals(this.name, other.name) + && 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.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateAdminListingRevisionNoteDetails.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateAdminListingRevisionNoteDetails.java new file mode 100644 index 00000000000..fe3ed33c48d --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateAdminListingRevisionNoteDetails.java @@ -0,0 +1,173 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * The model for an Oracle Cloud Infrastructure Marketplace Publisher listing revision note.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateAdminListingRevisionNoteDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateAdminListingRevisionNoteDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"listingRevisionId", "noteDetails"}) + public CreateAdminListingRevisionNoteDetails(String listingRevisionId, String noteDetails) { + super(); + this.listingRevisionId = listingRevisionId; + this.noteDetails = noteDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The unique identifier of the listing revision that the specified note belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("listingRevisionId") + private String listingRevisionId; + + /** + * The unique identifier of the listing revision that the specified note belongs to. + * + * @param listingRevisionId the value to set + * @return this builder + */ + public Builder listingRevisionId(String listingRevisionId) { + this.listingRevisionId = listingRevisionId; + this.__explicitlySet__.add("listingRevisionId"); + return this; + } + /** Notes provided for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("noteDetails") + private String noteDetails; + + /** + * Notes provided for the listing revision. + * + * @param noteDetails the value to set + * @return this builder + */ + public Builder noteDetails(String noteDetails) { + this.noteDetails = noteDetails; + this.__explicitlySet__.add("noteDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateAdminListingRevisionNoteDetails build() { + CreateAdminListingRevisionNoteDetails model = + new CreateAdminListingRevisionNoteDetails( + this.listingRevisionId, this.noteDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateAdminListingRevisionNoteDetails model) { + if (model.wasPropertyExplicitlySet("listingRevisionId")) { + this.listingRevisionId(model.getListingRevisionId()); + } + if (model.wasPropertyExplicitlySet("noteDetails")) { + this.noteDetails(model.getNoteDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The unique identifier of the listing revision that the specified note belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("listingRevisionId") + private final String listingRevisionId; + + /** + * The unique identifier of the listing revision that the specified note belongs to. + * + * @return the value + */ + public String getListingRevisionId() { + return listingRevisionId; + } + + /** Notes provided for the listing revision. */ + @com.fasterxml.jackson.annotation.JsonProperty("noteDetails") + private final String noteDetails; + + /** + * Notes provided for the listing revision. + * + * @return the value + */ + public String getNoteDetails() { + return noteDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateAdminListingRevisionNoteDetails("); + sb.append("super=").append(super.toString()); + sb.append("listingRevisionId=").append(String.valueOf(this.listingRevisionId)); + sb.append(", noteDetails=").append(String.valueOf(this.noteDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateAdminListingRevisionNoteDetails)) { + return false; + } + + CreateAdminListingRevisionNoteDetails other = (CreateAdminListingRevisionNoteDetails) o; + return java.util.Objects.equals(this.listingRevisionId, other.listingRevisionId) + && java.util.Objects.equals(this.noteDetails, other.noteDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.listingRevisionId == null ? 43 : this.listingRevisionId.hashCode()); + result = (result * PRIME) + (this.noteDetails == null ? 43 : this.noteDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateCustomerSuccessAttachment.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateCustomerSuccessAttachment.java index 9bf4444096a..611ead1d5dd 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateCustomerSuccessAttachment.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateCustomerSuccessAttachment.java @@ -117,6 +117,21 @@ public Builder productCodes(java.util.List productCodes) { this.__explicitlySet__.add("productCodes"); return this; } + /** The specified attachment type is Internal or External. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private ListingRevisionAttachment.SourceType sourceType; + + /** + * The specified attachment type is Internal or External. + * + * @param sourceType the value to set + * @return this builder + */ + public Builder sourceType(ListingRevisionAttachment.SourceType sourceType) { + this.sourceType = sourceType; + this.__explicitlySet__.add("sourceType"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -131,7 +146,8 @@ public CreateCustomerSuccessAttachment build() { this.definedTags, this.customerName, this.url, - this.productCodes); + this.productCodes, + this.sourceType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -164,6 +180,9 @@ public Builder copy(CreateCustomerSuccessAttachment model) { if (model.wasPropertyExplicitlySet("productCodes")) { this.productCodes(model.getProductCodes()); } + if (model.wasPropertyExplicitlySet("sourceType")) { + this.sourceType(model.getSourceType()); + } return this; } } @@ -186,11 +205,13 @@ public CreateCustomerSuccessAttachment( java.util.Map> definedTags, String customerName, String url, - java.util.List productCodes) { + java.util.List productCodes, + ListingRevisionAttachment.SourceType sourceType) { super(listingRevisionId, displayName, description, freeformTags, definedTags); this.customerName = customerName; this.url = url; this.productCodes = productCodes; + this.sourceType = sourceType; } /** Name of the customer */ @@ -232,6 +253,19 @@ public java.util.List getProductCodes() { return productCodes; } + /** The specified attachment type is Internal or External. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private final ListingRevisionAttachment.SourceType sourceType; + + /** + * The specified attachment type is Internal or External. + * + * @return the value + */ + public ListingRevisionAttachment.SourceType getSourceType() { + return sourceType; + } + @Override public String toString() { return this.toString(true); @@ -250,6 +284,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", customerName=").append(String.valueOf(this.customerName)); sb.append(", url=").append(String.valueOf(this.url)); sb.append(", productCodes=").append(String.valueOf(this.productCodes)); + sb.append(", sourceType=").append(String.valueOf(this.sourceType)); sb.append(")"); return sb.toString(); } @@ -267,6 +302,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.customerName, other.customerName) && java.util.Objects.equals(this.url, other.url) && java.util.Objects.equals(this.productCodes, other.productCodes) + && java.util.Objects.equals(this.sourceType, other.sourceType) && super.equals(other); } @@ -277,6 +313,7 @@ public int hashCode() { result = (result * PRIME) + (this.customerName == null ? 43 : this.customerName.hashCode()); result = (result * PRIME) + (this.url == null ? 43 : this.url.hashCode()); result = (result * PRIME) + (this.productCodes == null ? 43 : this.productCodes.hashCode()); + result = (result * PRIME) + (this.sourceType == null ? 43 : this.sourceType.hashCode()); return result; } } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateMarketDetails.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateMarketDetails.java new file mode 100644 index 00000000000..1e7b355fb86 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateMarketDetails.java @@ -0,0 +1,247 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Details to create a Market.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateMarketDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateMarketDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "code", "categoryCode", "billToCountries"}) + public CreateMarketDetails( + String name, + String code, + String categoryCode, + java.util.List billToCountries) { + super(); + this.name = name; + this.code = code; + this.categoryCode = categoryCode; + this.billToCountries = billToCountries; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the market. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the market. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** The code of the market. */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private String code; + + /** + * The code of the market. + * + * @param code the value to set + * @return this builder + */ + public Builder code(String code) { + this.code = code; + this.__explicitlySet__.add("code"); + return this; + } + /** The category code of the market. */ + @com.fasterxml.jackson.annotation.JsonProperty("categoryCode") + private String categoryCode; + + /** + * The category code of the market. + * + * @param categoryCode the value to set + * @return this builder + */ + public Builder categoryCode(String categoryCode) { + this.categoryCode = categoryCode; + this.__explicitlySet__.add("categoryCode"); + return this; + } + /** bill to countries for the market. */ + @com.fasterxml.jackson.annotation.JsonProperty("billToCountries") + private java.util.List billToCountries; + + /** + * bill to countries for the market. + * + * @param billToCountries the value to set + * @return this builder + */ + public Builder billToCountries(java.util.List billToCountries) { + this.billToCountries = billToCountries; + this.__explicitlySet__.add("billToCountries"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateMarketDetails build() { + CreateMarketDetails model = + new CreateMarketDetails( + this.name, this.code, this.categoryCode, this.billToCountries); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateMarketDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("code")) { + this.code(model.getCode()); + } + if (model.wasPropertyExplicitlySet("categoryCode")) { + this.categoryCode(model.getCategoryCode()); + } + if (model.wasPropertyExplicitlySet("billToCountries")) { + this.billToCountries(model.getBillToCountries()); + } + 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 market. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the market. + * + * @return the value + */ + public String getName() { + return name; + } + + /** The code of the market. */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private final String code; + + /** + * The code of the market. + * + * @return the value + */ + public String getCode() { + return code; + } + + /** The category code of the market. */ + @com.fasterxml.jackson.annotation.JsonProperty("categoryCode") + private final String categoryCode; + + /** + * The category code of the market. + * + * @return the value + */ + public String getCategoryCode() { + return categoryCode; + } + + /** bill to countries for the market. */ + @com.fasterxml.jackson.annotation.JsonProperty("billToCountries") + private final java.util.List billToCountries; + + /** + * bill to countries for the market. + * + * @return the value + */ + public java.util.List getBillToCountries() { + return billToCountries; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateMarketDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", code=").append(String.valueOf(this.code)); + sb.append(", categoryCode=").append(String.valueOf(this.categoryCode)); + sb.append(", billToCountries=").append(String.valueOf(this.billToCountries)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateMarketDetails)) { + return false; + } + + CreateMarketDetails other = (CreateMarketDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.code, other.code) + && java.util.Objects.equals(this.categoryCode, other.categoryCode) + && java.util.Objects.equals(this.billToCountries, other.billToCountries) + && 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.code == null ? 43 : this.code.hashCode()); + result = (result * PRIME) + (this.categoryCode == null ? 43 : this.categoryCode.hashCode()); + result = + (result * PRIME) + + (this.billToCountries == null ? 43 : this.billToCountries.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateOciListingRevisionDetails.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateOciListingRevisionDetails.java index ab99fe61acf..77f22fd6a88 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateOciListingRevisionDetails.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateOciListingRevisionDetails.java @@ -231,6 +231,36 @@ public Builder pricingPlans(java.util.List pricingPlans) { this.__explicitlySet__.add("pricingPlans"); return this; } + /** The url provided by partner for the registration of subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("partnerRegistrationUrl") + private String partnerRegistrationUrl; + + /** + * The url provided by partner for the registration of subscription. + * + * @param partnerRegistrationUrl the value to set + * @return this builder + */ + public Builder partnerRegistrationUrl(String partnerRegistrationUrl) { + this.partnerRegistrationUrl = partnerRegistrationUrl; + this.__explicitlySet__.add("partnerRegistrationUrl"); + return this; + } + /** The unique id of the term attached to the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("termId") + private String termId; + + /** + * The unique id of the term attached to the listing. + * + * @param termId the value to set + * @return this builder + */ + public Builder termId(String termId) { + this.termId = termId; + this.__explicitlySet__.add("termId"); + return this; + } /** Custom link to the listing */ @com.fasterxml.jackson.annotation.JsonProperty("vanityUrl") private String vanityUrl; @@ -292,6 +322,36 @@ public Builder isRoverExportable(Boolean isRoverExportable) { this.__explicitlySet__.add("isRoverExportable"); return this; } + /** Url to demo of the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("demoUrl") + private String demoUrl; + + /** + * Url to demo of the listing + * + * @param demoUrl the value to set + * @return this builder + */ + public Builder demoUrl(String demoUrl) { + this.demoUrl = demoUrl; + this.__explicitlySet__.add("demoUrl"); + return this; + } + /** Url to training resources of the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("selfPacedTrainingUrl") + private String selfPacedTrainingUrl; + + /** + * Url to training resources of the listing + * + * @param selfPacedTrainingUrl the value to set + * @return this builder + */ + public Builder selfPacedTrainingUrl(String selfPacedTrainingUrl) { + this.selfPacedTrainingUrl = selfPacedTrainingUrl; + this.__explicitlySet__.add("selfPacedTrainingUrl"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -319,10 +379,14 @@ public CreateOciListingRevisionDetails build() { this.pricingType, this.products, this.pricingPlans, + this.partnerRegistrationUrl, + this.termId, this.vanityUrl, this.recommendedServiceProviderListingIds, this.availabilityAndPricingPolicy, - this.isRoverExportable); + this.isRoverExportable, + this.demoUrl, + this.selfPacedTrainingUrl); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -391,6 +455,12 @@ public Builder copy(CreateOciListingRevisionDetails model) { if (model.wasPropertyExplicitlySet("pricingPlans")) { this.pricingPlans(model.getPricingPlans()); } + if (model.wasPropertyExplicitlySet("partnerRegistrationUrl")) { + this.partnerRegistrationUrl(model.getPartnerRegistrationUrl()); + } + if (model.wasPropertyExplicitlySet("termId")) { + this.termId(model.getTermId()); + } if (model.wasPropertyExplicitlySet("vanityUrl")) { this.vanityUrl(model.getVanityUrl()); } @@ -404,6 +474,12 @@ public Builder copy(CreateOciListingRevisionDetails model) { if (model.wasPropertyExplicitlySet("isRoverExportable")) { this.isRoverExportable(model.getIsRoverExportable()); } + if (model.wasPropertyExplicitlySet("demoUrl")) { + this.demoUrl(model.getDemoUrl()); + } + if (model.wasPropertyExplicitlySet("selfPacedTrainingUrl")) { + this.selfPacedTrainingUrl(model.getSelfPacedTrainingUrl()); + } return this; } } @@ -439,10 +515,14 @@ public CreateOciListingRevisionDetails( OciListingRevision.PricingType pricingType, java.util.List products, java.util.List pricingPlans, + String partnerRegistrationUrl, + String termId, String vanityUrl, java.util.List recommendedServiceProviderListingIds, String availabilityAndPricingPolicy, - Boolean isRoverExportable) { + Boolean isRoverExportable, + String demoUrl, + String selfPacedTrainingUrl) { super( displayName, listingId, @@ -464,10 +544,14 @@ public CreateOciListingRevisionDetails( this.pricingType = pricingType; this.products = products; this.pricingPlans = pricingPlans; + this.partnerRegistrationUrl = partnerRegistrationUrl; + this.termId = termId; this.vanityUrl = vanityUrl; this.recommendedServiceProviderListingIds = recommendedServiceProviderListingIds; this.availabilityAndPricingPolicy = availabilityAndPricingPolicy; this.isRoverExportable = isRoverExportable; + this.demoUrl = demoUrl; + this.selfPacedTrainingUrl = selfPacedTrainingUrl; } @com.fasterxml.jackson.annotation.JsonProperty("versionDetails") @@ -529,6 +613,32 @@ public java.util.List getPricingPlans() { return pricingPlans; } + /** The url provided by partner for the registration of subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("partnerRegistrationUrl") + private final String partnerRegistrationUrl; + + /** + * The url provided by partner for the registration of subscription. + * + * @return the value + */ + public String getPartnerRegistrationUrl() { + return partnerRegistrationUrl; + } + + /** The unique id of the term attached to the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("termId") + private final String termId; + + /** + * The unique id of the term attached to the listing. + * + * @return the value + */ + public String getTermId() { + return termId; + } + /** Custom link to the listing */ @com.fasterxml.jackson.annotation.JsonProperty("vanityUrl") private final String vanityUrl; @@ -581,6 +691,32 @@ public Boolean getIsRoverExportable() { return isRoverExportable; } + /** Url to demo of the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("demoUrl") + private final String demoUrl; + + /** + * Url to demo of the listing + * + * @return the value + */ + public String getDemoUrl() { + return demoUrl; + } + + /** Url to training resources of the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("selfPacedTrainingUrl") + private final String selfPacedTrainingUrl; + + /** + * Url to training resources of the listing + * + * @return the value + */ + public String getSelfPacedTrainingUrl() { + return selfPacedTrainingUrl; + } + @Override public String toString() { return this.toString(true); @@ -601,12 +737,16 @@ public String toString(boolean includeByteArrayContents) { sb.append(", pricingType=").append(String.valueOf(this.pricingType)); sb.append(", products=").append(String.valueOf(this.products)); sb.append(", pricingPlans=").append(String.valueOf(this.pricingPlans)); + sb.append(", partnerRegistrationUrl=").append(String.valueOf(this.partnerRegistrationUrl)); + sb.append(", termId=").append(String.valueOf(this.termId)); sb.append(", vanityUrl=").append(String.valueOf(this.vanityUrl)); sb.append(", recommendedServiceProviderListingIds=") .append(String.valueOf(this.recommendedServiceProviderListingIds)); sb.append(", availabilityAndPricingPolicy=") .append(String.valueOf(this.availabilityAndPricingPolicy)); sb.append(", isRoverExportable=").append(String.valueOf(this.isRoverExportable)); + sb.append(", demoUrl=").append(String.valueOf(this.demoUrl)); + sb.append(", selfPacedTrainingUrl=").append(String.valueOf(this.selfPacedTrainingUrl)); sb.append(")"); return sb.toString(); } @@ -626,6 +766,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.pricingType, other.pricingType) && java.util.Objects.equals(this.products, other.products) && java.util.Objects.equals(this.pricingPlans, other.pricingPlans) + && java.util.Objects.equals( + this.partnerRegistrationUrl, other.partnerRegistrationUrl) + && java.util.Objects.equals(this.termId, other.termId) && java.util.Objects.equals(this.vanityUrl, other.vanityUrl) && java.util.Objects.equals( this.recommendedServiceProviderListingIds, @@ -633,6 +776,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.availabilityAndPricingPolicy, other.availabilityAndPricingPolicy) && java.util.Objects.equals(this.isRoverExportable, other.isRoverExportable) + && java.util.Objects.equals(this.demoUrl, other.demoUrl) + && java.util.Objects.equals(this.selfPacedTrainingUrl, other.selfPacedTrainingUrl) && super.equals(other); } @@ -651,6 +796,12 @@ public int hashCode() { result = (result * PRIME) + (this.pricingType == null ? 43 : this.pricingType.hashCode()); result = (result * PRIME) + (this.products == null ? 43 : this.products.hashCode()); result = (result * PRIME) + (this.pricingPlans == null ? 43 : this.pricingPlans.hashCode()); + result = + (result * PRIME) + + (this.partnerRegistrationUrl == null + ? 43 + : this.partnerRegistrationUrl.hashCode()); + result = (result * PRIME) + (this.termId == null ? 43 : this.termId.hashCode()); result = (result * PRIME) + (this.vanityUrl == null ? 43 : this.vanityUrl.hashCode()); result = (result * PRIME) @@ -665,6 +816,12 @@ public int hashCode() { result = (result * PRIME) + (this.isRoverExportable == null ? 43 : this.isRoverExportable.hashCode()); + result = (result * PRIME) + (this.demoUrl == null ? 43 : this.demoUrl.hashCode()); + result = + (result * PRIME) + + (this.selfPacedTrainingUrl == null + ? 43 + : this.selfPacedTrainingUrl.hashCode()); return result; } } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreatePublisherDetails.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreatePublisherDetails.java new file mode 100644 index 00000000000..9714c268184 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreatePublisherDetails.java @@ -0,0 +1,691 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Details to create a publisher.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreatePublisherDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreatePublisherDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "email", + "businessPhoneNumber", + "companyName", + "companyDescription", + "employeeCount", + "opnNumber", + "yearFounded", + "city", + "state", + "country", + "website", + "contactPhoneNumber", + "contactEmail", + "compartmentId", + "solutionDescription" + }) + public CreatePublisherDetails( + String email, + String businessPhoneNumber, + String companyName, + String companyDescription, + Long employeeCount, + String opnNumber, + Long yearFounded, + String city, + String state, + String country, + String website, + String contactPhoneNumber, + String contactEmail, + String compartmentId, + String solutionDescription) { + super(); + this.email = email; + this.businessPhoneNumber = businessPhoneNumber; + this.companyName = companyName; + this.companyDescription = companyDescription; + this.employeeCount = employeeCount; + this.opnNumber = opnNumber; + this.yearFounded = yearFounded; + this.city = city; + this.state = state; + this.country = country; + this.website = website; + this.contactPhoneNumber = contactPhoneNumber; + this.contactEmail = contactEmail; + this.compartmentId = compartmentId; + this.solutionDescription = solutionDescription; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Email address of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("email") + private String email; + + /** + * Email address of the publisher. + * + * @param email the value to set + * @return this builder + */ + public Builder email(String email) { + this.email = email; + this.__explicitlySet__.add("email"); + return this; + } + /** The business phone number of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("businessPhoneNumber") + private String businessPhoneNumber; + + /** + * The business phone number of the publisher. + * + * @param businessPhoneNumber the value to set + * @return this builder + */ + public Builder businessPhoneNumber(String businessPhoneNumber) { + this.businessPhoneNumber = businessPhoneNumber; + this.__explicitlySet__.add("businessPhoneNumber"); + return this; + } + /** The company name of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("companyName") + private String companyName; + + /** + * The company name of the publisher. + * + * @param companyName the value to set + * @return this builder + */ + public Builder companyName(String companyName) { + this.companyName = companyName; + this.__explicitlySet__.add("companyName"); + return this; + } + /** The company name of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("companyDescription") + private String companyDescription; + + /** + * The company name of the publisher. + * + * @param companyDescription the value to set + * @return this builder + */ + public Builder companyDescription(String companyDescription) { + this.companyDescription = companyDescription; + this.__explicitlySet__.add("companyDescription"); + return this; + } + /** Count of employees in publisher's company */ + @com.fasterxml.jackson.annotation.JsonProperty("employeeCount") + private Long employeeCount; + + /** + * Count of employees in publisher's company + * + * @param employeeCount the value to set + * @return this builder + */ + public Builder employeeCount(Long employeeCount) { + this.employeeCount = employeeCount; + this.__explicitlySet__.add("employeeCount"); + return this; + } + /** OPN membership number of the publisher */ + @com.fasterxml.jackson.annotation.JsonProperty("opnNumber") + private String opnNumber; + + /** + * OPN membership number of the publisher + * + * @param opnNumber the value to set + * @return this builder + */ + public Builder opnNumber(String opnNumber) { + this.opnNumber = opnNumber; + this.__explicitlySet__.add("opnNumber"); + return this; + } + /** The year the publisher's company or organization was founded. */ + @com.fasterxml.jackson.annotation.JsonProperty("yearFounded") + private Long yearFounded; + + /** + * The year the publisher's company or organization was founded. + * + * @param yearFounded the value to set + * @return this builder + */ + public Builder yearFounded(Long yearFounded) { + this.yearFounded = yearFounded; + this.__explicitlySet__.add("yearFounded"); + return this; + } + /** City */ + @com.fasterxml.jackson.annotation.JsonProperty("city") + private String city; + + /** + * City + * + * @param city the value to set + * @return this builder + */ + public Builder city(String city) { + this.city = city; + this.__explicitlySet__.add("city"); + return this; + } + /** State */ + @com.fasterxml.jackson.annotation.JsonProperty("state") + private String state; + + /** + * State + * + * @param state the value to set + * @return this builder + */ + public Builder state(String state) { + this.state = state; + this.__explicitlySet__.add("state"); + return this; + } + /** Country */ + @com.fasterxml.jackson.annotation.JsonProperty("country") + private String country; + + /** + * Country + * + * @param country the value to set + * @return this builder + */ + public Builder country(String country) { + this.country = country; + this.__explicitlySet__.add("country"); + return this; + } + /** The publisher's website. */ + @com.fasterxml.jackson.annotation.JsonProperty("website") + private String website; + + /** + * The publisher's website. + * + * @param website the value to set + * @return this builder + */ + public Builder website(String website) { + this.website = website; + this.__explicitlySet__.add("website"); + return this; + } + /** The contact phone number of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("contactPhoneNumber") + private String contactPhoneNumber; + + /** + * The contact phone number of the publisher. + * + * @param contactPhoneNumber the value to set + * @return this builder + */ + public Builder contactPhoneNumber(String contactPhoneNumber) { + this.contactPhoneNumber = contactPhoneNumber; + this.__explicitlySet__.add("contactPhoneNumber"); + return this; + } + /** The contact email address of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("contactEmail") + private String contactEmail; + + /** + * The contact email address of the publisher. + * + * @param contactEmail the value to set + * @return this builder + */ + public Builder contactEmail(String contactEmail) { + this.contactEmail = contactEmail; + this.__explicitlySet__.add("contactEmail"); + return this; + } + /** The tenancy(compartment) OCID of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The tenancy(compartment) OCID of the publisher. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** A description of the publisher solutions. */ + @com.fasterxml.jackson.annotation.JsonProperty("solutionDescription") + private String solutionDescription; + + /** + * A description of the publisher solutions. + * + * @param solutionDescription the value to set + * @return this builder + */ + public Builder solutionDescription(String solutionDescription) { + this.solutionDescription = solutionDescription; + this.__explicitlySet__.add("solutionDescription"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreatePublisherDetails build() { + CreatePublisherDetails model = + new CreatePublisherDetails( + this.email, + this.businessPhoneNumber, + this.companyName, + this.companyDescription, + this.employeeCount, + this.opnNumber, + this.yearFounded, + this.city, + this.state, + this.country, + this.website, + this.contactPhoneNumber, + this.contactEmail, + this.compartmentId, + this.solutionDescription); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreatePublisherDetails model) { + if (model.wasPropertyExplicitlySet("email")) { + this.email(model.getEmail()); + } + if (model.wasPropertyExplicitlySet("businessPhoneNumber")) { + this.businessPhoneNumber(model.getBusinessPhoneNumber()); + } + if (model.wasPropertyExplicitlySet("companyName")) { + this.companyName(model.getCompanyName()); + } + if (model.wasPropertyExplicitlySet("companyDescription")) { + this.companyDescription(model.getCompanyDescription()); + } + if (model.wasPropertyExplicitlySet("employeeCount")) { + this.employeeCount(model.getEmployeeCount()); + } + if (model.wasPropertyExplicitlySet("opnNumber")) { + this.opnNumber(model.getOpnNumber()); + } + if (model.wasPropertyExplicitlySet("yearFounded")) { + this.yearFounded(model.getYearFounded()); + } + if (model.wasPropertyExplicitlySet("city")) { + this.city(model.getCity()); + } + if (model.wasPropertyExplicitlySet("state")) { + this.state(model.getState()); + } + if (model.wasPropertyExplicitlySet("country")) { + this.country(model.getCountry()); + } + if (model.wasPropertyExplicitlySet("website")) { + this.website(model.getWebsite()); + } + if (model.wasPropertyExplicitlySet("contactPhoneNumber")) { + this.contactPhoneNumber(model.getContactPhoneNumber()); + } + if (model.wasPropertyExplicitlySet("contactEmail")) { + this.contactEmail(model.getContactEmail()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("solutionDescription")) { + this.solutionDescription(model.getSolutionDescription()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Email address of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("email") + private final String email; + + /** + * Email address of the publisher. + * + * @return the value + */ + public String getEmail() { + return email; + } + + /** The business phone number of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("businessPhoneNumber") + private final String businessPhoneNumber; + + /** + * The business phone number of the publisher. + * + * @return the value + */ + public String getBusinessPhoneNumber() { + return businessPhoneNumber; + } + + /** The company name of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("companyName") + private final String companyName; + + /** + * The company name of the publisher. + * + * @return the value + */ + public String getCompanyName() { + return companyName; + } + + /** The company name of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("companyDescription") + private final String companyDescription; + + /** + * The company name of the publisher. + * + * @return the value + */ + public String getCompanyDescription() { + return companyDescription; + } + + /** Count of employees in publisher's company */ + @com.fasterxml.jackson.annotation.JsonProperty("employeeCount") + private final Long employeeCount; + + /** + * Count of employees in publisher's company + * + * @return the value + */ + public Long getEmployeeCount() { + return employeeCount; + } + + /** OPN membership number of the publisher */ + @com.fasterxml.jackson.annotation.JsonProperty("opnNumber") + private final String opnNumber; + + /** + * OPN membership number of the publisher + * + * @return the value + */ + public String getOpnNumber() { + return opnNumber; + } + + /** The year the publisher's company or organization was founded. */ + @com.fasterxml.jackson.annotation.JsonProperty("yearFounded") + private final Long yearFounded; + + /** + * The year the publisher's company or organization was founded. + * + * @return the value + */ + public Long getYearFounded() { + return yearFounded; + } + + /** City */ + @com.fasterxml.jackson.annotation.JsonProperty("city") + private final String city; + + /** + * City + * + * @return the value + */ + public String getCity() { + return city; + } + + /** State */ + @com.fasterxml.jackson.annotation.JsonProperty("state") + private final String state; + + /** + * State + * + * @return the value + */ + public String getState() { + return state; + } + + /** Country */ + @com.fasterxml.jackson.annotation.JsonProperty("country") + private final String country; + + /** + * Country + * + * @return the value + */ + public String getCountry() { + return country; + } + + /** The publisher's website. */ + @com.fasterxml.jackson.annotation.JsonProperty("website") + private final String website; + + /** + * The publisher's website. + * + * @return the value + */ + public String getWebsite() { + return website; + } + + /** The contact phone number of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("contactPhoneNumber") + private final String contactPhoneNumber; + + /** + * The contact phone number of the publisher. + * + * @return the value + */ + public String getContactPhoneNumber() { + return contactPhoneNumber; + } + + /** The contact email address of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("contactEmail") + private final String contactEmail; + + /** + * The contact email address of the publisher. + * + * @return the value + */ + public String getContactEmail() { + return contactEmail; + } + + /** The tenancy(compartment) OCID of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The tenancy(compartment) OCID of the publisher. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** A description of the publisher solutions. */ + @com.fasterxml.jackson.annotation.JsonProperty("solutionDescription") + private final String solutionDescription; + + /** + * A description of the publisher solutions. + * + * @return the value + */ + public String getSolutionDescription() { + return solutionDescription; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreatePublisherDetails("); + sb.append("super=").append(super.toString()); + sb.append("email=").append(String.valueOf(this.email)); + sb.append(", businessPhoneNumber=").append(String.valueOf(this.businessPhoneNumber)); + sb.append(", companyName=").append(String.valueOf(this.companyName)); + sb.append(", companyDescription=").append(String.valueOf(this.companyDescription)); + sb.append(", employeeCount=").append(String.valueOf(this.employeeCount)); + sb.append(", opnNumber=").append(String.valueOf(this.opnNumber)); + sb.append(", yearFounded=").append(String.valueOf(this.yearFounded)); + sb.append(", city=").append(String.valueOf(this.city)); + sb.append(", state=").append(String.valueOf(this.state)); + sb.append(", country=").append(String.valueOf(this.country)); + sb.append(", website=").append(String.valueOf(this.website)); + sb.append(", contactPhoneNumber=").append(String.valueOf(this.contactPhoneNumber)); + sb.append(", contactEmail=").append(String.valueOf(this.contactEmail)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", solutionDescription=").append(String.valueOf(this.solutionDescription)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreatePublisherDetails)) { + return false; + } + + CreatePublisherDetails other = (CreatePublisherDetails) o; + return java.util.Objects.equals(this.email, other.email) + && java.util.Objects.equals(this.businessPhoneNumber, other.businessPhoneNumber) + && java.util.Objects.equals(this.companyName, other.companyName) + && java.util.Objects.equals(this.companyDescription, other.companyDescription) + && java.util.Objects.equals(this.employeeCount, other.employeeCount) + && java.util.Objects.equals(this.opnNumber, other.opnNumber) + && java.util.Objects.equals(this.yearFounded, other.yearFounded) + && java.util.Objects.equals(this.city, other.city) + && java.util.Objects.equals(this.state, other.state) + && java.util.Objects.equals(this.country, other.country) + && java.util.Objects.equals(this.website, other.website) + && java.util.Objects.equals(this.contactPhoneNumber, other.contactPhoneNumber) + && java.util.Objects.equals(this.contactEmail, other.contactEmail) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.solutionDescription, other.solutionDescription) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.email == null ? 43 : this.email.hashCode()); + result = + (result * PRIME) + + (this.businessPhoneNumber == null + ? 43 + : this.businessPhoneNumber.hashCode()); + result = (result * PRIME) + (this.companyName == null ? 43 : this.companyName.hashCode()); + result = + (result * PRIME) + + (this.companyDescription == null + ? 43 + : this.companyDescription.hashCode()); + result = + (result * PRIME) + + (this.employeeCount == null ? 43 : this.employeeCount.hashCode()); + result = (result * PRIME) + (this.opnNumber == null ? 43 : this.opnNumber.hashCode()); + result = (result * PRIME) + (this.yearFounded == null ? 43 : this.yearFounded.hashCode()); + result = (result * PRIME) + (this.city == null ? 43 : this.city.hashCode()); + result = (result * PRIME) + (this.state == null ? 43 : this.state.hashCode()); + result = (result * PRIME) + (this.country == null ? 43 : this.country.hashCode()); + result = (result * PRIME) + (this.website == null ? 43 : this.website.hashCode()); + result = + (result * PRIME) + + (this.contactPhoneNumber == null + ? 43 + : this.contactPhoneNumber.hashCode()); + result = (result * PRIME) + (this.contactEmail == null ? 43 : this.contactEmail.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.solutionDescription == null + ? 43 + : this.solutionDescription.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateRelatedDocumentAttachmentDetails.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateRelatedDocumentAttachmentDetails.java index fb8f4162472..283c991c92e 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateRelatedDocumentAttachmentDetails.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateRelatedDocumentAttachmentDetails.java @@ -89,6 +89,53 @@ public Builder documentCategory( this.__explicitlySet__.add("documentCategory"); return this; } + /** The document URL of the listing revision attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceUrl") + private String sourceUrl; + + /** + * The document URL of the listing revision attachment. + * + * @param sourceUrl the value to set + * @return this builder + */ + public Builder sourceUrl(String sourceUrl) { + this.sourceUrl = sourceUrl; + this.__explicitlySet__.add("sourceUrl"); + return this; + } + /** The specified attachment type is Internal or External. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private ListingRevisionAttachment.SourceType sourceType; + + /** + * The specified attachment type is Internal or External. + * + * @param sourceType the value to set + * @return this builder + */ + public Builder sourceType(ListingRevisionAttachment.SourceType sourceType) { + this.sourceType = sourceType; + this.__explicitlySet__.add("sourceType"); + return this; + } + /** + * Identifies whether the attachment is for Internal Oracle Users or external users as well. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isOracleUsersOnly") + private Boolean isOracleUsersOnly; + + /** + * Identifies whether the attachment is for Internal Oracle Users or external users as well. + * + * @param isOracleUsersOnly the value to set + * @return this builder + */ + public Builder isOracleUsersOnly(Boolean isOracleUsersOnly) { + this.isOracleUsersOnly = isOracleUsersOnly; + this.__explicitlySet__.add("isOracleUsersOnly"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -101,7 +148,10 @@ public CreateRelatedDocumentAttachmentDetails build() { this.description, this.freeformTags, this.definedTags, - this.documentCategory); + this.documentCategory, + this.sourceUrl, + this.sourceType, + this.isOracleUsersOnly); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -128,6 +178,15 @@ public Builder copy(CreateRelatedDocumentAttachmentDetails model) { if (model.wasPropertyExplicitlySet("documentCategory")) { this.documentCategory(model.getDocumentCategory()); } + if (model.wasPropertyExplicitlySet("sourceUrl")) { + this.sourceUrl(model.getSourceUrl()); + } + if (model.wasPropertyExplicitlySet("sourceType")) { + this.sourceType(model.getSourceType()); + } + if (model.wasPropertyExplicitlySet("isOracleUsersOnly")) { + this.isOracleUsersOnly(model.getIsOracleUsersOnly()); + } return this; } } @@ -148,9 +207,15 @@ public CreateRelatedDocumentAttachmentDetails( String description, java.util.Map freeformTags, java.util.Map> definedTags, - RelatedDocumentAttachment.DocumentCategory documentCategory) { + RelatedDocumentAttachment.DocumentCategory documentCategory, + String sourceUrl, + ListingRevisionAttachment.SourceType sourceType, + Boolean isOracleUsersOnly) { super(listingRevisionId, displayName, description, freeformTags, definedTags); this.documentCategory = documentCategory; + this.sourceUrl = sourceUrl; + this.sourceType = sourceType; + this.isOracleUsersOnly = isOracleUsersOnly; } /** The document category of the listing revision attachment. */ @@ -166,6 +231,45 @@ public RelatedDocumentAttachment.DocumentCategory getDocumentCategory() { return documentCategory; } + /** The document URL of the listing revision attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceUrl") + private final String sourceUrl; + + /** + * The document URL of the listing revision attachment. + * + * @return the value + */ + public String getSourceUrl() { + return sourceUrl; + } + + /** The specified attachment type is Internal or External. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private final ListingRevisionAttachment.SourceType sourceType; + + /** + * The specified attachment type is Internal or External. + * + * @return the value + */ + public ListingRevisionAttachment.SourceType getSourceType() { + return sourceType; + } + + /** Identifies whether the attachment is for Internal Oracle Users or external users as well. */ + @com.fasterxml.jackson.annotation.JsonProperty("isOracleUsersOnly") + private final Boolean isOracleUsersOnly; + + /** + * Identifies whether the attachment is for Internal Oracle Users or external users as well. + * + * @return the value + */ + public Boolean getIsOracleUsersOnly() { + return isOracleUsersOnly; + } + @Override public String toString() { return this.toString(true); @@ -182,6 +286,9 @@ public String toString(boolean includeByteArrayContents) { sb.append("CreateRelatedDocumentAttachmentDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", documentCategory=").append(String.valueOf(this.documentCategory)); + sb.append(", sourceUrl=").append(String.valueOf(this.sourceUrl)); + sb.append(", sourceType=").append(String.valueOf(this.sourceType)); + sb.append(", isOracleUsersOnly=").append(String.valueOf(this.isOracleUsersOnly)); sb.append(")"); return sb.toString(); } @@ -197,6 +304,9 @@ public boolean equals(Object o) { CreateRelatedDocumentAttachmentDetails other = (CreateRelatedDocumentAttachmentDetails) o; return java.util.Objects.equals(this.documentCategory, other.documentCategory) + && java.util.Objects.equals(this.sourceUrl, other.sourceUrl) + && java.util.Objects.equals(this.sourceType, other.sourceType) + && java.util.Objects.equals(this.isOracleUsersOnly, other.isOracleUsersOnly) && super.equals(other); } @@ -207,6 +317,11 @@ public int hashCode() { result = (result * PRIME) + (this.documentCategory == null ? 43 : this.documentCategory.hashCode()); + result = (result * PRIME) + (this.sourceUrl == null ? 43 : this.sourceUrl.hashCode()); + result = (result * PRIME) + (this.sourceType == null ? 43 : this.sourceType.hashCode()); + result = + (result * PRIME) + + (this.isOracleUsersOnly == null ? 43 : this.isOracleUsersOnly.hashCode()); return result; } } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateReviewSupportDocumentAttachment.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateReviewSupportDocumentAttachment.java index 79c0a41db38..e6e10646f6c 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateReviewSupportDocumentAttachment.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateReviewSupportDocumentAttachment.java @@ -103,6 +103,21 @@ public Builder templateCode(String templateCode) { this.__explicitlySet__.add("templateCode"); return this; } + /** The specified attachment type is Internal or External. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private ListingRevisionAttachment.SourceType sourceType; + + /** + * The specified attachment type is Internal or External. + * + * @param sourceType the value to set + * @return this builder + */ + public Builder sourceType(ListingRevisionAttachment.SourceType sourceType) { + this.sourceType = sourceType; + this.__explicitlySet__.add("sourceType"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -116,7 +131,8 @@ public CreateReviewSupportDocumentAttachment build() { this.freeformTags, this.definedTags, this.documentName, - this.templateCode); + this.templateCode, + this.sourceType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -146,6 +162,9 @@ public Builder copy(CreateReviewSupportDocumentAttachment model) { if (model.wasPropertyExplicitlySet("templateCode")) { this.templateCode(model.getTemplateCode()); } + if (model.wasPropertyExplicitlySet("sourceType")) { + this.sourceType(model.getSourceType()); + } return this; } } @@ -167,10 +186,12 @@ public CreateReviewSupportDocumentAttachment( java.util.Map freeformTags, java.util.Map> definedTags, String documentName, - String templateCode) { + String templateCode, + ListingRevisionAttachment.SourceType sourceType) { super(listingRevisionId, displayName, description, freeformTags, definedTags); this.documentName = documentName; this.templateCode = templateCode; + this.sourceType = sourceType; } /** Name of the review support document */ @@ -199,6 +220,19 @@ public String getTemplateCode() { return templateCode; } + /** The specified attachment type is Internal or External. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private final ListingRevisionAttachment.SourceType sourceType; + + /** + * The specified attachment type is Internal or External. + * + * @return the value + */ + public ListingRevisionAttachment.SourceType getSourceType() { + return sourceType; + } + @Override public String toString() { return this.toString(true); @@ -216,6 +250,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", documentName=").append(String.valueOf(this.documentName)); sb.append(", templateCode=").append(String.valueOf(this.templateCode)); + sb.append(", sourceType=").append(String.valueOf(this.sourceType)); sb.append(")"); return sb.toString(); } @@ -232,6 +267,7 @@ public boolean equals(Object o) { CreateReviewSupportDocumentAttachment other = (CreateReviewSupportDocumentAttachment) o; return java.util.Objects.equals(this.documentName, other.documentName) && java.util.Objects.equals(this.templateCode, other.templateCode) + && java.util.Objects.equals(this.sourceType, other.sourceType) && super.equals(other); } @@ -241,6 +277,7 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) + (this.documentName == null ? 43 : this.documentName.hashCode()); result = (result * PRIME) + (this.templateCode == null ? 43 : this.templateCode.hashCode()); + result = (result * PRIME) + (this.sourceType == null ? 43 : this.sourceType.hashCode()); return result; } } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateScreenShotAttachmentDetails.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateScreenShotAttachmentDetails.java index eb2107ff95c..2638045372a 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateScreenShotAttachmentDetails.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateScreenShotAttachmentDetails.java @@ -73,6 +73,21 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** The specified attachment type is Internal or External. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private ListingRevisionAttachment.SourceType sourceType; + + /** + * The specified attachment type is Internal or External. + * + * @param sourceType the value to set + * @return this builder + */ + public Builder sourceType(ListingRevisionAttachment.SourceType sourceType) { + this.sourceType = sourceType; + this.__explicitlySet__.add("sourceType"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -84,7 +99,8 @@ public CreateScreenShotAttachmentDetails build() { this.displayName, this.description, this.freeformTags, - this.definedTags); + this.definedTags, + this.sourceType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -108,6 +124,9 @@ public Builder copy(CreateScreenShotAttachmentDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("sourceType")) { + this.sourceType(model.getSourceType()); + } return this; } } @@ -127,8 +146,23 @@ public CreateScreenShotAttachmentDetails( String displayName, String description, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + ListingRevisionAttachment.SourceType sourceType) { super(listingRevisionId, displayName, description, freeformTags, definedTags); + this.sourceType = sourceType; + } + + /** The specified attachment type is Internal or External. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private final ListingRevisionAttachment.SourceType sourceType; + + /** + * The specified attachment type is Internal or External. + * + * @return the value + */ + public ListingRevisionAttachment.SourceType getSourceType() { + return sourceType; } @Override @@ -146,6 +180,7 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("CreateScreenShotAttachmentDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", sourceType=").append(String.valueOf(this.sourceType)); sb.append(")"); return sb.toString(); } @@ -160,13 +195,14 @@ public boolean equals(Object o) { } CreateScreenShotAttachmentDetails other = (CreateScreenShotAttachmentDetails) o; - return super.equals(other); + return java.util.Objects.equals(this.sourceType, other.sourceType) && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = (result * PRIME) + (this.sourceType == null ? 43 : this.sourceType.hashCode()); return result; } } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateSupportedServiceAttachment.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateSupportedServiceAttachment.java index 13876624e42..a0e6644646b 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateSupportedServiceAttachment.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateSupportedServiceAttachment.java @@ -117,6 +117,21 @@ public Builder type(SupportedServiceAttachment.Type type) { this.__explicitlySet__.add("type"); return this; } + /** The specified attachment type is Internal or External. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private ListingRevisionAttachment.SourceType sourceType; + + /** + * The specified attachment type is Internal or External. + * + * @param sourceType the value to set + * @return this builder + */ + public Builder sourceType(ListingRevisionAttachment.SourceType sourceType) { + this.sourceType = sourceType; + this.__explicitlySet__.add("sourceType"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -131,7 +146,8 @@ public CreateSupportedServiceAttachment build() { this.definedTags, this.serviceName, this.url, - this.type); + this.type, + this.sourceType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -164,6 +180,9 @@ public Builder copy(CreateSupportedServiceAttachment model) { if (model.wasPropertyExplicitlySet("type")) { this.type(model.getType()); } + if (model.wasPropertyExplicitlySet("sourceType")) { + this.sourceType(model.getSourceType()); + } return this; } } @@ -186,11 +205,13 @@ public CreateSupportedServiceAttachment( java.util.Map> definedTags, String serviceName, String url, - SupportedServiceAttachment.Type type) { + SupportedServiceAttachment.Type type, + ListingRevisionAttachment.SourceType sourceType) { super(listingRevisionId, displayName, description, freeformTags, definedTags); this.serviceName = serviceName; this.url = url; this.type = type; + this.sourceType = sourceType; } /** Name of the service */ @@ -232,6 +253,19 @@ public SupportedServiceAttachment.Type getType() { return type; } + /** The specified attachment type is Internal or External. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private final ListingRevisionAttachment.SourceType sourceType; + + /** + * The specified attachment type is Internal or External. + * + * @return the value + */ + public ListingRevisionAttachment.SourceType getSourceType() { + return sourceType; + } + @Override public String toString() { return this.toString(true); @@ -250,6 +284,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", serviceName=").append(String.valueOf(this.serviceName)); sb.append(", url=").append(String.valueOf(this.url)); sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", sourceType=").append(String.valueOf(this.sourceType)); sb.append(")"); return sb.toString(); } @@ -267,6 +302,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.serviceName, other.serviceName) && java.util.Objects.equals(this.url, other.url) && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.sourceType, other.sourceType) && super.equals(other); } @@ -277,6 +313,7 @@ public int hashCode() { result = (result * PRIME) + (this.serviceName == null ? 43 : this.serviceName.hashCode()); result = (result * PRIME) + (this.url == null ? 43 : this.url.hashCode()); result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.sourceType == null ? 43 : this.sourceType.hashCode()); return result; } } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateVideoDetails.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateVideoDetails.java index 9e25cbd3338..049eb350afb 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateVideoDetails.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateVideoDetails.java @@ -23,10 +23,11 @@ public final class CreateVideoDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"contentUrl"}) - public CreateVideoDetails(String contentUrl) { + @java.beans.ConstructorProperties({"contentUrl", "sourceType"}) + public CreateVideoDetails(String contentUrl, ListingRevisionAttachment.SourceType sourceType) { super(); this.contentUrl = contentUrl; + this.sourceType = sourceType; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -46,12 +47,27 @@ public Builder contentUrl(String contentUrl) { this.__explicitlySet__.add("contentUrl"); return this; } + /** The specified attachment type is Internal or External. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private ListingRevisionAttachment.SourceType sourceType; + + /** + * The specified attachment type is Internal or External. + * + * @param sourceType the value to set + * @return this builder + */ + public Builder sourceType(ListingRevisionAttachment.SourceType sourceType) { + this.sourceType = sourceType; + this.__explicitlySet__.add("sourceType"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public CreateVideoDetails build() { - CreateVideoDetails model = new CreateVideoDetails(this.contentUrl); + CreateVideoDetails model = new CreateVideoDetails(this.contentUrl, this.sourceType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -63,6 +79,9 @@ public Builder copy(CreateVideoDetails model) { if (model.wasPropertyExplicitlySet("contentUrl")) { this.contentUrl(model.getContentUrl()); } + if (model.wasPropertyExplicitlySet("sourceType")) { + this.sourceType(model.getSourceType()); + } return this; } } @@ -89,6 +108,19 @@ public String getContentUrl() { return contentUrl; } + /** The specified attachment type is Internal or External. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private final ListingRevisionAttachment.SourceType sourceType; + + /** + * The specified attachment type is Internal or External. + * + * @return the value + */ + public ListingRevisionAttachment.SourceType getSourceType() { + return sourceType; + } + @Override public String toString() { return this.toString(true); @@ -105,6 +137,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("CreateVideoDetails("); sb.append("super=").append(super.toString()); sb.append("contentUrl=").append(String.valueOf(this.contentUrl)); + sb.append(", sourceType=").append(String.valueOf(this.sourceType)); sb.append(")"); return sb.toString(); } @@ -119,7 +152,9 @@ public boolean equals(Object o) { } CreateVideoDetails other = (CreateVideoDetails) o; - return java.util.Objects.equals(this.contentUrl, other.contentUrl) && super.equals(other); + return java.util.Objects.equals(this.contentUrl, other.contentUrl) + && java.util.Objects.equals(this.sourceType, other.sourceType) + && super.equals(other); } @Override @@ -127,6 +162,7 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.contentUrl == null ? 43 : this.contentUrl.hashCode()); + result = (result * PRIME) + (this.sourceType == null ? 43 : this.sourceType.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CustomerInstanceReportExport.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CustomerInstanceReportExport.java new file mode 100644 index 00000000000..2c37a291c1c --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CustomerInstanceReportExport.java @@ -0,0 +1,1331 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * The model for a Customer Instance Report export.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CustomerInstanceReportExport.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CustomerInstanceReportExport + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "workRequestId", + "lifecycleState", + "fileName", + "sortOrder", + "sortBy", + "name", + "listingId", + "status", + "shape", + "region", + "realm", + "tenantAdminDomain", + "packageVersion", + "instanceId", + "timeInstanceCreationFromDate", + "timeInstanceCreationToDate", + "timeInstanceTerminationFromDate", + "timeInstanceTerminationToDate", + "timeCreated", + "timeExpires", + "freeformTags", + "definedTags", + "systemTags" + }) + public CustomerInstanceReportExport( + String id, + String compartmentId, + String workRequestId, + LifecycleState lifecycleState, + String fileName, + SortOrder sortOrder, + SortBy sortBy, + String name, + String listingId, + Status status, + String shape, + String region, + String realm, + String tenantAdminDomain, + String packageVersion, + String instanceId, + java.util.Date timeInstanceCreationFromDate, + java.util.Date timeInstanceCreationToDate, + java.util.Date timeInstanceTerminationFromDate, + java.util.Date timeInstanceTerminationToDate, + java.util.Date timeCreated, + java.util.Date timeExpires, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.workRequestId = workRequestId; + this.lifecycleState = lifecycleState; + this.fileName = fileName; + this.sortOrder = sortOrder; + this.sortBy = sortBy; + this.name = name; + this.listingId = listingId; + this.status = status; + this.shape = shape; + this.region = region; + this.realm = realm; + this.tenantAdminDomain = tenantAdminDomain; + this.packageVersion = packageVersion; + this.instanceId = instanceId; + this.timeInstanceCreationFromDate = timeInstanceCreationFromDate; + this.timeInstanceCreationToDate = timeInstanceCreationToDate; + this.timeInstanceTerminationFromDate = timeInstanceTerminationFromDate; + this.timeInstanceTerminationToDate = timeInstanceTerminationToDate; + this.timeCreated = timeCreated; + this.timeExpires = timeExpires; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Customer Instance Report export identifier. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Customer Instance Report export identifier. + * + * @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 for the export. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment for the export. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The work request identifier associated with the export generation. */ + @com.fasterxml.jackson.annotation.JsonProperty("workRequestId") + private String workRequestId; + + /** + * The work request identifier associated with the export generation. + * + * @param workRequestId the value to set + * @return this builder + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + this.__explicitlySet__.add("workRequestId"); + return this; + } + /** Customer Instance Report export lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * Customer Instance Report export lifecycle state. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** The generated CSV file name. */ + @com.fasterxml.jackson.annotation.JsonProperty("fileName") + private String fileName; + + /** + * The generated CSV file name. + * + * @param fileName the value to set + * @return this builder + */ + public Builder fileName(String fileName) { + this.fileName = fileName; + this.__explicitlySet__.add("fileName"); + return this; + } + /** The sort order for the generated export. */ + @com.fasterxml.jackson.annotation.JsonProperty("sortOrder") + private SortOrder sortOrder; + + /** + * The sort order for the generated export. + * + * @param sortOrder the value to set + * @return this builder + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + this.__explicitlySet__.add("sortOrder"); + return this; + } + /** The field to sort by. */ + @com.fasterxml.jackson.annotation.JsonProperty("sortBy") + private SortBy sortBy; + + /** + * The field to sort by. + * + * @param sortBy the value to set + * @return this builder + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + this.__explicitlySet__.add("sortBy"); + return this; + } + /** A filter to return only report records that match the listing name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * A filter to return only report records that match the listing name. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** A filter to return only report records that match the listing OCID. */ + @com.fasterxml.jackson.annotation.JsonProperty("listingId") + private String listingId; + + /** + * A filter to return only report records that match the listing OCID. + * + * @param listingId the value to set + * @return this builder + */ + public Builder listingId(String listingId) { + this.listingId = listingId; + this.__explicitlySet__.add("listingId"); + return this; + } + /** A filter to return only report records that match the instance status. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * A filter to return only report records that match the instance status. + * + * @param status the value to set + * @return this builder + */ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** A filter to return only report records that match the instance shape. */ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private String shape; + + /** + * A filter to return only report records that match the instance shape. + * + * @param shape the value to set + * @return this builder + */ + public Builder shape(String shape) { + this.shape = shape; + this.__explicitlySet__.add("shape"); + return this; + } + /** A filter to return only report records that match the instance region. */ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private String region; + + /** + * A filter to return only report records that match the instance region. + * + * @param region the value to set + * @return this builder + */ + public Builder region(String region) { + this.region = region; + this.__explicitlySet__.add("region"); + return this; + } + /** A filter to return only report records that match the instance realm. */ + @com.fasterxml.jackson.annotation.JsonProperty("realm") + private String realm; + + /** + * A filter to return only report records that match the instance realm. + * + * @param realm the value to set + * @return this builder + */ + public Builder realm(String realm) { + this.realm = realm; + this.__explicitlySet__.add("realm"); + return this; + } + /** + * A filter to return only report records that match the tenant administrator email domain. + */ + @com.fasterxml.jackson.annotation.JsonProperty("tenantAdminDomain") + private String tenantAdminDomain; + + /** + * A filter to return only report records that match the tenant administrator email domain. + * + * @param tenantAdminDomain the value to set + * @return this builder + */ + public Builder tenantAdminDomain(String tenantAdminDomain) { + this.tenantAdminDomain = tenantAdminDomain; + this.__explicitlySet__.add("tenantAdminDomain"); + return this; + } + /** A filter to return only report records that match the package version. */ + @com.fasterxml.jackson.annotation.JsonProperty("packageVersion") + private String packageVersion; + + /** + * A filter to return only report records that match the package version. + * + * @param packageVersion the value to set + * @return this builder + */ + public Builder packageVersion(String packageVersion) { + this.packageVersion = packageVersion; + this.__explicitlySet__.add("packageVersion"); + return this; + } + /** A filter to return only report records that match the instance OCID. */ + @com.fasterxml.jackson.annotation.JsonProperty("instanceId") + private String instanceId; + + /** + * A filter to return only report records that match the instance OCID. + * + * @param instanceId the value to set + * @return this builder + */ + public Builder instanceId(String instanceId) { + this.instanceId = instanceId; + this.__explicitlySet__.add("instanceId"); + return this; + } + /** The inclusive earliest instance creation time, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeInstanceCreationFromDate") + private java.util.Date timeInstanceCreationFromDate; + + /** + * The inclusive earliest instance creation time, in RFC 3339 format. + * + * @param timeInstanceCreationFromDate the value to set + * @return this builder + */ + public Builder timeInstanceCreationFromDate(java.util.Date timeInstanceCreationFromDate) { + this.timeInstanceCreationFromDate = timeInstanceCreationFromDate; + this.__explicitlySet__.add("timeInstanceCreationFromDate"); + return this; + } + /** The inclusive latest instance creation time, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeInstanceCreationToDate") + private java.util.Date timeInstanceCreationToDate; + + /** + * The inclusive latest instance creation time, in RFC 3339 format. + * + * @param timeInstanceCreationToDate the value to set + * @return this builder + */ + public Builder timeInstanceCreationToDate(java.util.Date timeInstanceCreationToDate) { + this.timeInstanceCreationToDate = timeInstanceCreationToDate; + this.__explicitlySet__.add("timeInstanceCreationToDate"); + return this; + } + /** The inclusive earliest instance termination time, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeInstanceTerminationFromDate") + private java.util.Date timeInstanceTerminationFromDate; + + /** + * The inclusive earliest instance termination time, in RFC 3339 format. + * + * @param timeInstanceTerminationFromDate the value to set + * @return this builder + */ + public Builder timeInstanceTerminationFromDate( + java.util.Date timeInstanceTerminationFromDate) { + this.timeInstanceTerminationFromDate = timeInstanceTerminationFromDate; + this.__explicitlySet__.add("timeInstanceTerminationFromDate"); + return this; + } + /** The inclusive latest instance termination time, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeInstanceTerminationToDate") + private java.util.Date timeInstanceTerminationToDate; + + /** + * The inclusive latest instance termination time, in RFC 3339 format. + * + * @param timeInstanceTerminationToDate the value to set + * @return this builder + */ + public Builder timeInstanceTerminationToDate(java.util.Date timeInstanceTerminationToDate) { + this.timeInstanceTerminationToDate = timeInstanceTerminationToDate; + this.__explicitlySet__.add("timeInstanceTerminationToDate"); + return this; + } + /** + * The date and time that the export was created, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time that the export was created, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. 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 that the export expires, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeExpires") + private java.util.Date timeExpires; + + /** + * The date and time that the export expires, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2016-08-25T21:10:29.600Z} + * + * @param timeExpires the value to set + * @return this builder + */ + public Builder timeExpires(java.util.Date timeExpires) { + this.timeExpires = timeExpires; + this.__explicitlySet__.add("timeExpires"); + return this; + } + /** + * 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; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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 CustomerInstanceReportExport build() { + CustomerInstanceReportExport model = + new CustomerInstanceReportExport( + this.id, + this.compartmentId, + this.workRequestId, + this.lifecycleState, + this.fileName, + this.sortOrder, + this.sortBy, + this.name, + this.listingId, + this.status, + this.shape, + this.region, + this.realm, + this.tenantAdminDomain, + this.packageVersion, + this.instanceId, + this.timeInstanceCreationFromDate, + this.timeInstanceCreationToDate, + this.timeInstanceTerminationFromDate, + this.timeInstanceTerminationToDate, + this.timeCreated, + this.timeExpires, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CustomerInstanceReportExport model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("workRequestId")) { + this.workRequestId(model.getWorkRequestId()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("fileName")) { + this.fileName(model.getFileName()); + } + if (model.wasPropertyExplicitlySet("sortOrder")) { + this.sortOrder(model.getSortOrder()); + } + if (model.wasPropertyExplicitlySet("sortBy")) { + this.sortBy(model.getSortBy()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("listingId")) { + this.listingId(model.getListingId()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("shape")) { + this.shape(model.getShape()); + } + if (model.wasPropertyExplicitlySet("region")) { + this.region(model.getRegion()); + } + if (model.wasPropertyExplicitlySet("realm")) { + this.realm(model.getRealm()); + } + if (model.wasPropertyExplicitlySet("tenantAdminDomain")) { + this.tenantAdminDomain(model.getTenantAdminDomain()); + } + if (model.wasPropertyExplicitlySet("packageVersion")) { + this.packageVersion(model.getPackageVersion()); + } + if (model.wasPropertyExplicitlySet("instanceId")) { + this.instanceId(model.getInstanceId()); + } + if (model.wasPropertyExplicitlySet("timeInstanceCreationFromDate")) { + this.timeInstanceCreationFromDate(model.getTimeInstanceCreationFromDate()); + } + if (model.wasPropertyExplicitlySet("timeInstanceCreationToDate")) { + this.timeInstanceCreationToDate(model.getTimeInstanceCreationToDate()); + } + if (model.wasPropertyExplicitlySet("timeInstanceTerminationFromDate")) { + this.timeInstanceTerminationFromDate(model.getTimeInstanceTerminationFromDate()); + } + if (model.wasPropertyExplicitlySet("timeInstanceTerminationToDate")) { + this.timeInstanceTerminationToDate(model.getTimeInstanceTerminationToDate()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeExpires")) { + this.timeExpires(model.getTimeExpires()); + } + 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); + } + + /** Customer Instance Report export identifier. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Customer Instance Report export identifier. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the compartment for the export. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment for the export. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The work request identifier associated with the export generation. */ + @com.fasterxml.jackson.annotation.JsonProperty("workRequestId") + private final String workRequestId; + + /** + * The work request identifier associated with the export generation. + * + * @return the value + */ + public String getWorkRequestId() { + return workRequestId; + } + + /** Customer Instance Report export lifecycle state. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + InProgress("IN_PROGRESS"), + Accepted("ACCEPTED"), + Failed("FAILED"), + NeedsAttention("NEEDS_ATTENTION"), + Succeeded("SUCCEEDED"), + Canceled("CANCELED"), + Waiting("WAITING"), + Canceling("CANCELING"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Customer Instance Report export lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * Customer Instance Report export lifecycle state. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The generated CSV file name. */ + @com.fasterxml.jackson.annotation.JsonProperty("fileName") + private final String fileName; + + /** + * The generated CSV file name. + * + * @return the value + */ + public String getFileName() { + return fileName; + } + + /** The sort order for the generated export. */ + public enum SortOrder implements com.oracle.bmc.http.internal.BmcEnum { + Asc("ASC"), + Desc("DESC"), + + /** + * 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(SortOrder.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + if (v != UnknownEnumValue) { + 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); + } + LOG.warn( + "Received unknown value '{}' for enum 'SortOrder', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The sort order for the generated export. */ + @com.fasterxml.jackson.annotation.JsonProperty("sortOrder") + private final SortOrder sortOrder; + + /** + * The sort order for the generated export. + * + * @return the value + */ + public SortOrder getSortOrder() { + return sortOrder; + } + + /** The field to sort by. */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + InstanceId("INSTANCE_ID"), + + /** + * 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(SortBy.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + if (v != UnknownEnumValue) { + 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); + } + LOG.warn( + "Received unknown value '{}' for enum 'SortBy', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The field to sort by. */ + @com.fasterxml.jackson.annotation.JsonProperty("sortBy") + private final SortBy sortBy; + + /** + * The field to sort by. + * + * @return the value + */ + public SortBy getSortBy() { + return sortBy; + } + + /** A filter to return only report records that match the listing name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * A filter to return only report records that match the listing name. + * + * @return the value + */ + public String getName() { + return name; + } + + /** A filter to return only report records that match the listing OCID. */ + @com.fasterxml.jackson.annotation.JsonProperty("listingId") + private final String listingId; + + /** + * A filter to return only report records that match the listing OCID. + * + * @return the value + */ + public String getListingId() { + return listingId; + } + + /** A filter to return only report records that match the instance status. */ + public enum Status implements com.oracle.bmc.http.internal.BmcEnum { + Provisioning("PROVISIONING"), + Running("RUNNING"), + Stopped("STOPPED"), + Terminating("TERMINATING"), + Terminated("TERMINATED"), + Disabled("DISABLED"), + Starting("STARTING"), + Stopping("STOPPING"), + Snapshotting("SNAPSHOTTING"), + + /** + * 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; + } + }; + /** A filter to return only report records that match the instance status. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * A filter to return only report records that match the instance status. + * + * @return the value + */ + public Status getStatus() { + return status; + } + + /** A filter to return only report records that match the instance shape. */ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private final String shape; + + /** + * A filter to return only report records that match the instance shape. + * + * @return the value + */ + public String getShape() { + return shape; + } + + /** A filter to return only report records that match the instance region. */ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private final String region; + + /** + * A filter to return only report records that match the instance region. + * + * @return the value + */ + public String getRegion() { + return region; + } + + /** A filter to return only report records that match the instance realm. */ + @com.fasterxml.jackson.annotation.JsonProperty("realm") + private final String realm; + + /** + * A filter to return only report records that match the instance realm. + * + * @return the value + */ + public String getRealm() { + return realm; + } + + /** A filter to return only report records that match the tenant administrator email domain. */ + @com.fasterxml.jackson.annotation.JsonProperty("tenantAdminDomain") + private final String tenantAdminDomain; + + /** + * A filter to return only report records that match the tenant administrator email domain. + * + * @return the value + */ + public String getTenantAdminDomain() { + return tenantAdminDomain; + } + + /** A filter to return only report records that match the package version. */ + @com.fasterxml.jackson.annotation.JsonProperty("packageVersion") + private final String packageVersion; + + /** + * A filter to return only report records that match the package version. + * + * @return the value + */ + public String getPackageVersion() { + return packageVersion; + } + + /** A filter to return only report records that match the instance OCID. */ + @com.fasterxml.jackson.annotation.JsonProperty("instanceId") + private final String instanceId; + + /** + * A filter to return only report records that match the instance OCID. + * + * @return the value + */ + public String getInstanceId() { + return instanceId; + } + + /** The inclusive earliest instance creation time, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeInstanceCreationFromDate") + private final java.util.Date timeInstanceCreationFromDate; + + /** + * The inclusive earliest instance creation time, in RFC 3339 format. + * + * @return the value + */ + public java.util.Date getTimeInstanceCreationFromDate() { + return timeInstanceCreationFromDate; + } + + /** The inclusive latest instance creation time, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeInstanceCreationToDate") + private final java.util.Date timeInstanceCreationToDate; + + /** + * The inclusive latest instance creation time, in RFC 3339 format. + * + * @return the value + */ + public java.util.Date getTimeInstanceCreationToDate() { + return timeInstanceCreationToDate; + } + + /** The inclusive earliest instance termination time, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeInstanceTerminationFromDate") + private final java.util.Date timeInstanceTerminationFromDate; + + /** + * The inclusive earliest instance termination time, in RFC 3339 format. + * + * @return the value + */ + public java.util.Date getTimeInstanceTerminationFromDate() { + return timeInstanceTerminationFromDate; + } + + /** The inclusive latest instance termination time, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeInstanceTerminationToDate") + private final java.util.Date timeInstanceTerminationToDate; + + /** + * The inclusive latest instance termination time, in RFC 3339 format. + * + * @return the value + */ + public java.util.Date getTimeInstanceTerminationToDate() { + return timeInstanceTerminationToDate; + } + + /** + * The date and time that the export was created, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time that the export was created, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time that the export expires, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeExpires") + private final java.util.Date timeExpires; + + /** + * The date and time that the export expires, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeExpires() { + return timeExpires; + } + + /** + * 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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("CustomerInstanceReportExport("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", fileName=").append(String.valueOf(this.fileName)); + sb.append(", sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(", sortBy=").append(String.valueOf(this.sortBy)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", listingId=").append(String.valueOf(this.listingId)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", shape=").append(String.valueOf(this.shape)); + sb.append(", region=").append(String.valueOf(this.region)); + sb.append(", realm=").append(String.valueOf(this.realm)); + sb.append(", tenantAdminDomain=").append(String.valueOf(this.tenantAdminDomain)); + sb.append(", packageVersion=").append(String.valueOf(this.packageVersion)); + sb.append(", instanceId=").append(String.valueOf(this.instanceId)); + sb.append(", timeInstanceCreationFromDate=") + .append(String.valueOf(this.timeInstanceCreationFromDate)); + sb.append(", timeInstanceCreationToDate=") + .append(String.valueOf(this.timeInstanceCreationToDate)); + sb.append(", timeInstanceTerminationFromDate=") + .append(String.valueOf(this.timeInstanceTerminationFromDate)); + sb.append(", timeInstanceTerminationToDate=") + .append(String.valueOf(this.timeInstanceTerminationToDate)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeExpires=").append(String.valueOf(this.timeExpires)); + 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 CustomerInstanceReportExport)) { + return false; + } + + CustomerInstanceReportExport other = (CustomerInstanceReportExport) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.fileName, other.fileName) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.listingId, other.listingId) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.shape, other.shape) + && java.util.Objects.equals(this.region, other.region) + && java.util.Objects.equals(this.realm, other.realm) + && java.util.Objects.equals(this.tenantAdminDomain, other.tenantAdminDomain) + && java.util.Objects.equals(this.packageVersion, other.packageVersion) + && java.util.Objects.equals(this.instanceId, other.instanceId) + && java.util.Objects.equals( + this.timeInstanceCreationFromDate, other.timeInstanceCreationFromDate) + && java.util.Objects.equals( + this.timeInstanceCreationToDate, other.timeInstanceCreationToDate) + && java.util.Objects.equals( + this.timeInstanceTerminationFromDate, other.timeInstanceTerminationFromDate) + && java.util.Objects.equals( + this.timeInstanceTerminationToDate, other.timeInstanceTerminationToDate) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeExpires, other.timeExpires) + && 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.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.fileName == null ? 43 : this.fileName.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.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.listingId == null ? 43 : this.listingId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); + result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); + result = (result * PRIME) + (this.realm == null ? 43 : this.realm.hashCode()); + result = + (result * PRIME) + + (this.tenantAdminDomain == null ? 43 : this.tenantAdminDomain.hashCode()); + result = + (result * PRIME) + + (this.packageVersion == null ? 43 : this.packageVersion.hashCode()); + result = (result * PRIME) + (this.instanceId == null ? 43 : this.instanceId.hashCode()); + result = + (result * PRIME) + + (this.timeInstanceCreationFromDate == null + ? 43 + : this.timeInstanceCreationFromDate.hashCode()); + result = + (result * PRIME) + + (this.timeInstanceCreationToDate == null + ? 43 + : this.timeInstanceCreationToDate.hashCode()); + result = + (result * PRIME) + + (this.timeInstanceTerminationFromDate == null + ? 43 + : this.timeInstanceTerminationFromDate.hashCode()); + result = + (result * PRIME) + + (this.timeInstanceTerminationToDate == null + ? 43 + : this.timeInstanceTerminationToDate.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeExpires == null ? 43 : this.timeExpires.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CustomerInstanceReportExportCollection.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CustomerInstanceReportExportCollection.java new file mode 100644 index 00000000000..33b38f972a1 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CustomerInstanceReportExportCollection.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.marketplacepublisher.model; + +/** + * Customer Instance Report export collection.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CustomerInstanceReportExportCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CustomerInstanceReportExportCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public CustomerInstanceReportExportCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of Customer Instance Report exports. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of Customer Instance Report exports. + * + * @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 CustomerInstanceReportExportCollection build() { + CustomerInstanceReportExportCollection model = + new CustomerInstanceReportExportCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CustomerInstanceReportExportCollection 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 Customer Instance Report exports. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of Customer Instance Report exports. + * + * @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("CustomerInstanceReportExportCollection("); + 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 CustomerInstanceReportExportCollection)) { + return false; + } + + CustomerInstanceReportExportCollection other = (CustomerInstanceReportExportCollection) 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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CustomerInstanceReportExportSummary.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CustomerInstanceReportExportSummary.java new file mode 100644 index 00000000000..abf1fce0daf --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CustomerInstanceReportExportSummary.java @@ -0,0 +1,1279 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Summary model for a Customer Instance Report export.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CustomerInstanceReportExportSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CustomerInstanceReportExportSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "workRequestId", + "lifecycleState", + "fileName", + "sortOrder", + "sortBy", + "name", + "listingId", + "status", + "shape", + "region", + "realm", + "tenantAdminDomain", + "packageVersion", + "instanceId", + "timeInstanceCreationFromDate", + "timeInstanceCreationToDate", + "timeInstanceTerminationFromDate", + "timeInstanceTerminationToDate", + "timeCreated", + "timeExpires", + "freeformTags", + "definedTags", + "systemTags" + }) + public CustomerInstanceReportExportSummary( + String id, + String compartmentId, + String workRequestId, + CustomerInstanceReportExport.LifecycleState lifecycleState, + String fileName, + SortOrder sortOrder, + SortBy sortBy, + String name, + String listingId, + Status status, + String shape, + String region, + String realm, + String tenantAdminDomain, + String packageVersion, + String instanceId, + java.util.Date timeInstanceCreationFromDate, + java.util.Date timeInstanceCreationToDate, + java.util.Date timeInstanceTerminationFromDate, + java.util.Date timeInstanceTerminationToDate, + java.util.Date timeCreated, + java.util.Date timeExpires, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.workRequestId = workRequestId; + this.lifecycleState = lifecycleState; + this.fileName = fileName; + this.sortOrder = sortOrder; + this.sortBy = sortBy; + this.name = name; + this.listingId = listingId; + this.status = status; + this.shape = shape; + this.region = region; + this.realm = realm; + this.tenantAdminDomain = tenantAdminDomain; + this.packageVersion = packageVersion; + this.instanceId = instanceId; + this.timeInstanceCreationFromDate = timeInstanceCreationFromDate; + this.timeInstanceCreationToDate = timeInstanceCreationToDate; + this.timeInstanceTerminationFromDate = timeInstanceTerminationFromDate; + this.timeInstanceTerminationToDate = timeInstanceTerminationToDate; + this.timeCreated = timeCreated; + this.timeExpires = timeExpires; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Customer Instance Report export identifier. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Customer Instance Report export identifier. + * + * @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 for the export. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment for the export. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The work request identifier associated with the export generation. */ + @com.fasterxml.jackson.annotation.JsonProperty("workRequestId") + private String workRequestId; + + /** + * The work request identifier associated with the export generation. + * + * @param workRequestId the value to set + * @return this builder + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + this.__explicitlySet__.add("workRequestId"); + return this; + } + /** Customer Instance Report export lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private CustomerInstanceReportExport.LifecycleState lifecycleState; + + /** + * Customer Instance Report export lifecycle state. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(CustomerInstanceReportExport.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** The generated CSV file name. */ + @com.fasterxml.jackson.annotation.JsonProperty("fileName") + private String fileName; + + /** + * The generated CSV file name. + * + * @param fileName the value to set + * @return this builder + */ + public Builder fileName(String fileName) { + this.fileName = fileName; + this.__explicitlySet__.add("fileName"); + return this; + } + /** The sort order for the generated export. */ + @com.fasterxml.jackson.annotation.JsonProperty("sortOrder") + private SortOrder sortOrder; + + /** + * The sort order for the generated export. + * + * @param sortOrder the value to set + * @return this builder + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + this.__explicitlySet__.add("sortOrder"); + return this; + } + /** The field to sort by. */ + @com.fasterxml.jackson.annotation.JsonProperty("sortBy") + private SortBy sortBy; + + /** + * The field to sort by. + * + * @param sortBy the value to set + * @return this builder + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + this.__explicitlySet__.add("sortBy"); + return this; + } + /** A filter to return only report records that match the listing name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * A filter to return only report records that match the listing name. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** A filter to return only report records that match the listing OCID. */ + @com.fasterxml.jackson.annotation.JsonProperty("listingId") + private String listingId; + + /** + * A filter to return only report records that match the listing OCID. + * + * @param listingId the value to set + * @return this builder + */ + public Builder listingId(String listingId) { + this.listingId = listingId; + this.__explicitlySet__.add("listingId"); + return this; + } + /** A filter to return only report records that match the instance status. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * A filter to return only report records that match the instance status. + * + * @param status the value to set + * @return this builder + */ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** A filter to return only report records that match the instance shape. */ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private String shape; + + /** + * A filter to return only report records that match the instance shape. + * + * @param shape the value to set + * @return this builder + */ + public Builder shape(String shape) { + this.shape = shape; + this.__explicitlySet__.add("shape"); + return this; + } + /** A filter to return only report records that match the instance region. */ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private String region; + + /** + * A filter to return only report records that match the instance region. + * + * @param region the value to set + * @return this builder + */ + public Builder region(String region) { + this.region = region; + this.__explicitlySet__.add("region"); + return this; + } + /** A filter to return only report records that match the instance realm. */ + @com.fasterxml.jackson.annotation.JsonProperty("realm") + private String realm; + + /** + * A filter to return only report records that match the instance realm. + * + * @param realm the value to set + * @return this builder + */ + public Builder realm(String realm) { + this.realm = realm; + this.__explicitlySet__.add("realm"); + return this; + } + /** + * A filter to return only report records that match the tenant administrator email domain. + */ + @com.fasterxml.jackson.annotation.JsonProperty("tenantAdminDomain") + private String tenantAdminDomain; + + /** + * A filter to return only report records that match the tenant administrator email domain. + * + * @param tenantAdminDomain the value to set + * @return this builder + */ + public Builder tenantAdminDomain(String tenantAdminDomain) { + this.tenantAdminDomain = tenantAdminDomain; + this.__explicitlySet__.add("tenantAdminDomain"); + return this; + } + /** A filter to return only report records that match the package version. */ + @com.fasterxml.jackson.annotation.JsonProperty("packageVersion") + private String packageVersion; + + /** + * A filter to return only report records that match the package version. + * + * @param packageVersion the value to set + * @return this builder + */ + public Builder packageVersion(String packageVersion) { + this.packageVersion = packageVersion; + this.__explicitlySet__.add("packageVersion"); + return this; + } + /** A filter to return only report records that match the instance OCID. */ + @com.fasterxml.jackson.annotation.JsonProperty("instanceId") + private String instanceId; + + /** + * A filter to return only report records that match the instance OCID. + * + * @param instanceId the value to set + * @return this builder + */ + public Builder instanceId(String instanceId) { + this.instanceId = instanceId; + this.__explicitlySet__.add("instanceId"); + return this; + } + /** The inclusive earliest instance creation time, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeInstanceCreationFromDate") + private java.util.Date timeInstanceCreationFromDate; + + /** + * The inclusive earliest instance creation time, in RFC 3339 format. + * + * @param timeInstanceCreationFromDate the value to set + * @return this builder + */ + public Builder timeInstanceCreationFromDate(java.util.Date timeInstanceCreationFromDate) { + this.timeInstanceCreationFromDate = timeInstanceCreationFromDate; + this.__explicitlySet__.add("timeInstanceCreationFromDate"); + return this; + } + /** The inclusive latest instance creation time, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeInstanceCreationToDate") + private java.util.Date timeInstanceCreationToDate; + + /** + * The inclusive latest instance creation time, in RFC 3339 format. + * + * @param timeInstanceCreationToDate the value to set + * @return this builder + */ + public Builder timeInstanceCreationToDate(java.util.Date timeInstanceCreationToDate) { + this.timeInstanceCreationToDate = timeInstanceCreationToDate; + this.__explicitlySet__.add("timeInstanceCreationToDate"); + return this; + } + /** The inclusive earliest instance termination time, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeInstanceTerminationFromDate") + private java.util.Date timeInstanceTerminationFromDate; + + /** + * The inclusive earliest instance termination time, in RFC 3339 format. + * + * @param timeInstanceTerminationFromDate the value to set + * @return this builder + */ + public Builder timeInstanceTerminationFromDate( + java.util.Date timeInstanceTerminationFromDate) { + this.timeInstanceTerminationFromDate = timeInstanceTerminationFromDate; + this.__explicitlySet__.add("timeInstanceTerminationFromDate"); + return this; + } + /** The inclusive latest instance termination time, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeInstanceTerminationToDate") + private java.util.Date timeInstanceTerminationToDate; + + /** + * The inclusive latest instance termination time, in RFC 3339 format. + * + * @param timeInstanceTerminationToDate the value to set + * @return this builder + */ + public Builder timeInstanceTerminationToDate(java.util.Date timeInstanceTerminationToDate) { + this.timeInstanceTerminationToDate = timeInstanceTerminationToDate; + this.__explicitlySet__.add("timeInstanceTerminationToDate"); + return this; + } + /** + * The date and time that the export was created, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time that the export was created, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. 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 that the export expires, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeExpires") + private java.util.Date timeExpires; + + /** + * The date and time that the export expires, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2016-08-25T21:10:29.600Z} + * + * @param timeExpires the value to set + * @return this builder + */ + public Builder timeExpires(java.util.Date timeExpires) { + this.timeExpires = timeExpires; + this.__explicitlySet__.add("timeExpires"); + return this; + } + /** + * 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; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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 CustomerInstanceReportExportSummary build() { + CustomerInstanceReportExportSummary model = + new CustomerInstanceReportExportSummary( + this.id, + this.compartmentId, + this.workRequestId, + this.lifecycleState, + this.fileName, + this.sortOrder, + this.sortBy, + this.name, + this.listingId, + this.status, + this.shape, + this.region, + this.realm, + this.tenantAdminDomain, + this.packageVersion, + this.instanceId, + this.timeInstanceCreationFromDate, + this.timeInstanceCreationToDate, + this.timeInstanceTerminationFromDate, + this.timeInstanceTerminationToDate, + this.timeCreated, + this.timeExpires, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CustomerInstanceReportExportSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("workRequestId")) { + this.workRequestId(model.getWorkRequestId()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("fileName")) { + this.fileName(model.getFileName()); + } + if (model.wasPropertyExplicitlySet("sortOrder")) { + this.sortOrder(model.getSortOrder()); + } + if (model.wasPropertyExplicitlySet("sortBy")) { + this.sortBy(model.getSortBy()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("listingId")) { + this.listingId(model.getListingId()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("shape")) { + this.shape(model.getShape()); + } + if (model.wasPropertyExplicitlySet("region")) { + this.region(model.getRegion()); + } + if (model.wasPropertyExplicitlySet("realm")) { + this.realm(model.getRealm()); + } + if (model.wasPropertyExplicitlySet("tenantAdminDomain")) { + this.tenantAdminDomain(model.getTenantAdminDomain()); + } + if (model.wasPropertyExplicitlySet("packageVersion")) { + this.packageVersion(model.getPackageVersion()); + } + if (model.wasPropertyExplicitlySet("instanceId")) { + this.instanceId(model.getInstanceId()); + } + if (model.wasPropertyExplicitlySet("timeInstanceCreationFromDate")) { + this.timeInstanceCreationFromDate(model.getTimeInstanceCreationFromDate()); + } + if (model.wasPropertyExplicitlySet("timeInstanceCreationToDate")) { + this.timeInstanceCreationToDate(model.getTimeInstanceCreationToDate()); + } + if (model.wasPropertyExplicitlySet("timeInstanceTerminationFromDate")) { + this.timeInstanceTerminationFromDate(model.getTimeInstanceTerminationFromDate()); + } + if (model.wasPropertyExplicitlySet("timeInstanceTerminationToDate")) { + this.timeInstanceTerminationToDate(model.getTimeInstanceTerminationToDate()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeExpires")) { + this.timeExpires(model.getTimeExpires()); + } + 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); + } + + /** Customer Instance Report export identifier. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Customer Instance Report export identifier. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the compartment for the export. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment for the export. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The work request identifier associated with the export generation. */ + @com.fasterxml.jackson.annotation.JsonProperty("workRequestId") + private final String workRequestId; + + /** + * The work request identifier associated with the export generation. + * + * @return the value + */ + public String getWorkRequestId() { + return workRequestId; + } + + /** Customer Instance Report export lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final CustomerInstanceReportExport.LifecycleState lifecycleState; + + /** + * Customer Instance Report export lifecycle state. + * + * @return the value + */ + public CustomerInstanceReportExport.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The generated CSV file name. */ + @com.fasterxml.jackson.annotation.JsonProperty("fileName") + private final String fileName; + + /** + * The generated CSV file name. + * + * @return the value + */ + public String getFileName() { + return fileName; + } + + /** The sort order for the generated export. */ + public enum SortOrder implements com.oracle.bmc.http.internal.BmcEnum { + Asc("ASC"), + Desc("DESC"), + + /** + * 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(SortOrder.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + if (v != UnknownEnumValue) { + 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); + } + LOG.warn( + "Received unknown value '{}' for enum 'SortOrder', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The sort order for the generated export. */ + @com.fasterxml.jackson.annotation.JsonProperty("sortOrder") + private final SortOrder sortOrder; + + /** + * The sort order for the generated export. + * + * @return the value + */ + public SortOrder getSortOrder() { + return sortOrder; + } + + /** The field to sort by. */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + InstanceId("INSTANCE_ID"), + + /** + * 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(SortBy.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + if (v != UnknownEnumValue) { + 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); + } + LOG.warn( + "Received unknown value '{}' for enum 'SortBy', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The field to sort by. */ + @com.fasterxml.jackson.annotation.JsonProperty("sortBy") + private final SortBy sortBy; + + /** + * The field to sort by. + * + * @return the value + */ + public SortBy getSortBy() { + return sortBy; + } + + /** A filter to return only report records that match the listing name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * A filter to return only report records that match the listing name. + * + * @return the value + */ + public String getName() { + return name; + } + + /** A filter to return only report records that match the listing OCID. */ + @com.fasterxml.jackson.annotation.JsonProperty("listingId") + private final String listingId; + + /** + * A filter to return only report records that match the listing OCID. + * + * @return the value + */ + public String getListingId() { + return listingId; + } + + /** A filter to return only report records that match the instance status. */ + public enum Status implements com.oracle.bmc.http.internal.BmcEnum { + Provisioning("PROVISIONING"), + Running("RUNNING"), + Stopped("STOPPED"), + Terminating("TERMINATING"), + Terminated("TERMINATED"), + Disabled("DISABLED"), + Starting("STARTING"), + Stopping("STOPPING"), + Snapshotting("SNAPSHOTTING"), + + /** + * 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; + } + }; + /** A filter to return only report records that match the instance status. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * A filter to return only report records that match the instance status. + * + * @return the value + */ + public Status getStatus() { + return status; + } + + /** A filter to return only report records that match the instance shape. */ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private final String shape; + + /** + * A filter to return only report records that match the instance shape. + * + * @return the value + */ + public String getShape() { + return shape; + } + + /** A filter to return only report records that match the instance region. */ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private final String region; + + /** + * A filter to return only report records that match the instance region. + * + * @return the value + */ + public String getRegion() { + return region; + } + + /** A filter to return only report records that match the instance realm. */ + @com.fasterxml.jackson.annotation.JsonProperty("realm") + private final String realm; + + /** + * A filter to return only report records that match the instance realm. + * + * @return the value + */ + public String getRealm() { + return realm; + } + + /** A filter to return only report records that match the tenant administrator email domain. */ + @com.fasterxml.jackson.annotation.JsonProperty("tenantAdminDomain") + private final String tenantAdminDomain; + + /** + * A filter to return only report records that match the tenant administrator email domain. + * + * @return the value + */ + public String getTenantAdminDomain() { + return tenantAdminDomain; + } + + /** A filter to return only report records that match the package version. */ + @com.fasterxml.jackson.annotation.JsonProperty("packageVersion") + private final String packageVersion; + + /** + * A filter to return only report records that match the package version. + * + * @return the value + */ + public String getPackageVersion() { + return packageVersion; + } + + /** A filter to return only report records that match the instance OCID. */ + @com.fasterxml.jackson.annotation.JsonProperty("instanceId") + private final String instanceId; + + /** + * A filter to return only report records that match the instance OCID. + * + * @return the value + */ + public String getInstanceId() { + return instanceId; + } + + /** The inclusive earliest instance creation time, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeInstanceCreationFromDate") + private final java.util.Date timeInstanceCreationFromDate; + + /** + * The inclusive earliest instance creation time, in RFC 3339 format. + * + * @return the value + */ + public java.util.Date getTimeInstanceCreationFromDate() { + return timeInstanceCreationFromDate; + } + + /** The inclusive latest instance creation time, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeInstanceCreationToDate") + private final java.util.Date timeInstanceCreationToDate; + + /** + * The inclusive latest instance creation time, in RFC 3339 format. + * + * @return the value + */ + public java.util.Date getTimeInstanceCreationToDate() { + return timeInstanceCreationToDate; + } + + /** The inclusive earliest instance termination time, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeInstanceTerminationFromDate") + private final java.util.Date timeInstanceTerminationFromDate; + + /** + * The inclusive earliest instance termination time, in RFC 3339 format. + * + * @return the value + */ + public java.util.Date getTimeInstanceTerminationFromDate() { + return timeInstanceTerminationFromDate; + } + + /** The inclusive latest instance termination time, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeInstanceTerminationToDate") + private final java.util.Date timeInstanceTerminationToDate; + + /** + * The inclusive latest instance termination time, in RFC 3339 format. + * + * @return the value + */ + public java.util.Date getTimeInstanceTerminationToDate() { + return timeInstanceTerminationToDate; + } + + /** + * The date and time that the export was created, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time that the export was created, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time that the export expires, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeExpires") + private final java.util.Date timeExpires; + + /** + * The date and time that the export expires, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeExpires() { + return timeExpires; + } + + /** + * 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @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": {"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("CustomerInstanceReportExportSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", fileName=").append(String.valueOf(this.fileName)); + sb.append(", sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(", sortBy=").append(String.valueOf(this.sortBy)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", listingId=").append(String.valueOf(this.listingId)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", shape=").append(String.valueOf(this.shape)); + sb.append(", region=").append(String.valueOf(this.region)); + sb.append(", realm=").append(String.valueOf(this.realm)); + sb.append(", tenantAdminDomain=").append(String.valueOf(this.tenantAdminDomain)); + sb.append(", packageVersion=").append(String.valueOf(this.packageVersion)); + sb.append(", instanceId=").append(String.valueOf(this.instanceId)); + sb.append(", timeInstanceCreationFromDate=") + .append(String.valueOf(this.timeInstanceCreationFromDate)); + sb.append(", timeInstanceCreationToDate=") + .append(String.valueOf(this.timeInstanceCreationToDate)); + sb.append(", timeInstanceTerminationFromDate=") + .append(String.valueOf(this.timeInstanceTerminationFromDate)); + sb.append(", timeInstanceTerminationToDate=") + .append(String.valueOf(this.timeInstanceTerminationToDate)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeExpires=").append(String.valueOf(this.timeExpires)); + 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 CustomerInstanceReportExportSummary)) { + return false; + } + + CustomerInstanceReportExportSummary other = (CustomerInstanceReportExportSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.fileName, other.fileName) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.listingId, other.listingId) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.shape, other.shape) + && java.util.Objects.equals(this.region, other.region) + && java.util.Objects.equals(this.realm, other.realm) + && java.util.Objects.equals(this.tenantAdminDomain, other.tenantAdminDomain) + && java.util.Objects.equals(this.packageVersion, other.packageVersion) + && java.util.Objects.equals(this.instanceId, other.instanceId) + && java.util.Objects.equals( + this.timeInstanceCreationFromDate, other.timeInstanceCreationFromDate) + && java.util.Objects.equals( + this.timeInstanceCreationToDate, other.timeInstanceCreationToDate) + && java.util.Objects.equals( + this.timeInstanceTerminationFromDate, other.timeInstanceTerminationFromDate) + && java.util.Objects.equals( + this.timeInstanceTerminationToDate, other.timeInstanceTerminationToDate) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeExpires, other.timeExpires) + && 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.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.fileName == null ? 43 : this.fileName.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.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.listingId == null ? 43 : this.listingId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); + result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); + result = (result * PRIME) + (this.realm == null ? 43 : this.realm.hashCode()); + result = + (result * PRIME) + + (this.tenantAdminDomain == null ? 43 : this.tenantAdminDomain.hashCode()); + result = + (result * PRIME) + + (this.packageVersion == null ? 43 : this.packageVersion.hashCode()); + result = (result * PRIME) + (this.instanceId == null ? 43 : this.instanceId.hashCode()); + result = + (result * PRIME) + + (this.timeInstanceCreationFromDate == null + ? 43 + : this.timeInstanceCreationFromDate.hashCode()); + result = + (result * PRIME) + + (this.timeInstanceCreationToDate == null + ? 43 + : this.timeInstanceCreationToDate.hashCode()); + result = + (result * PRIME) + + (this.timeInstanceTerminationFromDate == null + ? 43 + : this.timeInstanceTerminationFromDate.hashCode()); + result = + (result * PRIME) + + (this.timeInstanceTerminationToDate == null + ? 43 + : this.timeInstanceTerminationToDate.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeExpires == null ? 43 : this.timeExpires.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CustomerInstanceReportRecord.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CustomerInstanceReportRecord.java index 0a6fc2d50e4..15854b4ccee 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CustomerInstanceReportRecord.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CustomerInstanceReportRecord.java @@ -38,8 +38,8 @@ public final class CustomerInstanceReportRecord "realm", "shape", "ociTenancy", - "tenantAdminName", - "tenantAdminEmail", + "tenantAdminDomain", + "legacyListingId", "freeformTags", "definedTags", "systemTags" @@ -59,8 +59,8 @@ public CustomerInstanceReportRecord( String realm, String shape, String ociTenancy, - String tenantAdminName, - String tenantAdminEmail, + String tenantAdminDomain, + String legacyListingId, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -79,8 +79,8 @@ public CustomerInstanceReportRecord( this.realm = realm; this.shape = shape; this.ociTenancy = ociTenancy; - this.tenantAdminName = tenantAdminName; - this.tenantAdminEmail = tenantAdminEmail; + this.tenantAdminDomain = tenantAdminDomain; + this.legacyListingId = legacyListingId; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -310,34 +310,34 @@ public Builder ociTenancy(String ociTenancy) { this.__explicitlySet__.add("ociTenancy"); return this; } - /** The name of the tenant adminstrator */ - @com.fasterxml.jackson.annotation.JsonProperty("tenantAdminName") - private String tenantAdminName; + /** The domain of the tenant administrator email address */ + @com.fasterxml.jackson.annotation.JsonProperty("tenantAdminDomain") + private String tenantAdminDomain; /** - * The name of the tenant adminstrator + * The domain of the tenant administrator email address * - * @param tenantAdminName the value to set + * @param tenantAdminDomain the value to set * @return this builder */ - public Builder tenantAdminName(String tenantAdminName) { - this.tenantAdminName = tenantAdminName; - this.__explicitlySet__.add("tenantAdminName"); + public Builder tenantAdminDomain(String tenantAdminDomain) { + this.tenantAdminDomain = tenantAdminDomain; + this.__explicitlySet__.add("tenantAdminDomain"); return this; } - /** The email of the tenant adminstrator */ - @com.fasterxml.jackson.annotation.JsonProperty("tenantAdminEmail") - private String tenantAdminEmail; + /** The legacy listing id of the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("legacyListingId") + private String legacyListingId; /** - * The email of the tenant adminstrator + * The legacy listing id of the listing * - * @param tenantAdminEmail the value to set + * @param legacyListingId the value to set * @return this builder */ - public Builder tenantAdminEmail(String tenantAdminEmail) { - this.tenantAdminEmail = tenantAdminEmail; - this.__explicitlySet__.add("tenantAdminEmail"); + public Builder legacyListingId(String legacyListingId) { + this.legacyListingId = legacyListingId; + this.__explicitlySet__.add("legacyListingId"); return this; } /** @@ -419,8 +419,8 @@ public CustomerInstanceReportRecord build() { this.realm, this.shape, this.ociTenancy, - this.tenantAdminName, - this.tenantAdminEmail, + this.tenantAdminDomain, + this.legacyListingId, this.freeformTags, this.definedTags, this.systemTags); @@ -474,11 +474,11 @@ public Builder copy(CustomerInstanceReportRecord model) { if (model.wasPropertyExplicitlySet("ociTenancy")) { this.ociTenancy(model.getOciTenancy()); } - if (model.wasPropertyExplicitlySet("tenantAdminName")) { - this.tenantAdminName(model.getTenantAdminName()); + if (model.wasPropertyExplicitlySet("tenantAdminDomain")) { + this.tenantAdminDomain(model.getTenantAdminDomain()); } - if (model.wasPropertyExplicitlySet("tenantAdminEmail")) { - this.tenantAdminEmail(model.getTenantAdminEmail()); + if (model.wasPropertyExplicitlySet("legacyListingId")) { + this.legacyListingId(model.getLegacyListingId()); } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); @@ -696,30 +696,30 @@ public String getOciTenancy() { return ociTenancy; } - /** The name of the tenant adminstrator */ - @com.fasterxml.jackson.annotation.JsonProperty("tenantAdminName") - private final String tenantAdminName; + /** The domain of the tenant administrator email address */ + @com.fasterxml.jackson.annotation.JsonProperty("tenantAdminDomain") + private final String tenantAdminDomain; /** - * The name of the tenant adminstrator + * The domain of the tenant administrator email address * * @return the value */ - public String getTenantAdminName() { - return tenantAdminName; + public String getTenantAdminDomain() { + return tenantAdminDomain; } - /** The email of the tenant adminstrator */ - @com.fasterxml.jackson.annotation.JsonProperty("tenantAdminEmail") - private final String tenantAdminEmail; + /** The legacy listing id of the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("legacyListingId") + private final String legacyListingId; /** - * The email of the tenant adminstrator + * The legacy listing id of the listing * * @return the value */ - public String getTenantAdminEmail() { - return tenantAdminEmail; + public String getLegacyListingId() { + return legacyListingId; } /** @@ -803,8 +803,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", realm=").append(String.valueOf(this.realm)); sb.append(", shape=").append(String.valueOf(this.shape)); sb.append(", ociTenancy=").append(String.valueOf(this.ociTenancy)); - sb.append(", tenantAdminName=").append(String.valueOf(this.tenantAdminName)); - sb.append(", tenantAdminEmail=").append(String.valueOf(this.tenantAdminEmail)); + sb.append(", tenantAdminDomain=").append(String.valueOf(this.tenantAdminDomain)); + sb.append(", legacyListingId=").append(String.valueOf(this.legacyListingId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -837,8 +837,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.realm, other.realm) && java.util.Objects.equals(this.shape, other.shape) && java.util.Objects.equals(this.ociTenancy, other.ociTenancy) - && java.util.Objects.equals(this.tenantAdminName, other.tenantAdminName) - && java.util.Objects.equals(this.tenantAdminEmail, other.tenantAdminEmail) + && java.util.Objects.equals(this.tenantAdminDomain, other.tenantAdminDomain) + && java.util.Objects.equals(this.legacyListingId, other.legacyListingId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -879,10 +879,10 @@ public int hashCode() { result = (result * PRIME) + (this.ociTenancy == null ? 43 : this.ociTenancy.hashCode()); result = (result * PRIME) - + (this.tenantAdminName == null ? 43 : this.tenantAdminName.hashCode()); + + (this.tenantAdminDomain == null ? 43 : this.tenantAdminDomain.hashCode()); result = (result * PRIME) - + (this.tenantAdminEmail == null ? 43 : this.tenantAdminEmail.hashCode()); + + (this.legacyListingId == null ? 43 : this.legacyListingId.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CustomerSuccessAttachment.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CustomerSuccessAttachment.java index 6f3e1f1a11b..5de3e473851 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CustomerSuccessAttachment.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CustomerSuccessAttachment.java @@ -72,6 +72,15 @@ public Builder description(String description) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private SourceType sourceType; + + public Builder sourceType(SourceType sourceType) { + this.sourceType = sourceType; + this.__explicitlySet__.add("sourceType"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; @@ -213,6 +222,7 @@ public CustomerSuccessAttachment build() { this.listingRevisionId, this.displayName, this.description, + this.sourceType, this.lifecycleState, this.timeCreated, this.timeUpdated, @@ -247,6 +257,9 @@ public Builder copy(CustomerSuccessAttachment model) { if (model.wasPropertyExplicitlySet("description")) { this.description(model.getDescription()); } + if (model.wasPropertyExplicitlySet("sourceType")) { + this.sourceType(model.getSourceType()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -300,6 +313,7 @@ public CustomerSuccessAttachment( String listingRevisionId, String displayName, String description, + SourceType sourceType, LifecycleState lifecycleState, java.util.Date timeCreated, java.util.Date timeUpdated, @@ -317,6 +331,7 @@ public CustomerSuccessAttachment( listingRevisionId, displayName, description, + sourceType, lifecycleState, timeCreated, timeUpdated, diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/DisbursementReportRecord.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/DisbursementReportRecord.java index 64eec8a0f69..02b59958b2e 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/DisbursementReportRecord.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/DisbursementReportRecord.java @@ -57,6 +57,7 @@ public final class DisbursementReportRecord "disbursementAmountUsd", "partnerName", "partnerId", + "publisherServiceListingId", "freeformTags", "definedTags", "systemTags" @@ -95,6 +96,7 @@ public DisbursementReportRecord( String disbursementAmountUsd, String partnerName, String partnerId, + String publisherServiceListingId, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -132,6 +134,7 @@ public DisbursementReportRecord( this.disbursementAmountUsd = disbursementAmountUsd; this.partnerName = partnerName; this.partnerId = partnerId; + this.publisherServiceListingId = publisherServiceListingId; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -635,6 +638,21 @@ public Builder partnerId(String partnerId) { this.__explicitlySet__.add("partnerId"); return this; } + /** The listing ocid of the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("publisherServiceListingId") + private String publisherServiceListingId; + + /** + * The listing ocid of the listing + * + * @param publisherServiceListingId the value to set + * @return this builder + */ + public Builder publisherServiceListingId(String publisherServiceListingId) { + this.publisherServiceListingId = publisherServiceListingId; + this.__explicitlySet__.add("publisherServiceListingId"); + 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"}} @@ -733,6 +751,7 @@ public DisbursementReportRecord build() { this.disbursementAmountUsd, this.partnerName, this.partnerId, + this.publisherServiceListingId, this.freeformTags, this.definedTags, this.systemTags); @@ -844,6 +863,9 @@ public Builder copy(DisbursementReportRecord model) { if (model.wasPropertyExplicitlySet("partnerId")) { this.partnerId(model.getPartnerId()); } + if (model.wasPropertyExplicitlySet("publisherServiceListingId")) { + this.publisherServiceListingId(model.getPublisherServiceListingId()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -1295,6 +1317,19 @@ public String getPartnerId() { return partnerId; } + /** The listing ocid of the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("publisherServiceListingId") + private final String publisherServiceListingId; + + /** + * The listing ocid of the listing + * + * @return the value + */ + public String getPublisherServiceListingId() { + return publisherServiceListingId; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for * cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -1397,6 +1432,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", disbursementAmountUsd=").append(String.valueOf(this.disbursementAmountUsd)); sb.append(", partnerName=").append(String.valueOf(this.partnerName)); sb.append(", partnerId=").append(String.valueOf(this.partnerId)); + sb.append(", publisherServiceListingId=") + .append(String.valueOf(this.publisherServiceListingId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -1452,6 +1489,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.disbursementAmountUsd, other.disbursementAmountUsd) && java.util.Objects.equals(this.partnerName, other.partnerName) && java.util.Objects.equals(this.partnerId, other.partnerId) + && java.util.Objects.equals( + this.publisherServiceListingId, other.publisherServiceListingId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -1553,6 +1592,11 @@ public int hashCode() { : this.disbursementAmountUsd.hashCode()); result = (result * PRIME) + (this.partnerName == null ? 43 : this.partnerName.hashCode()); result = (result * PRIME) + (this.partnerId == null ? 43 : this.partnerId.hashCode()); + result = + (result * PRIME) + + (this.publisherServiceListingId == null + ? 43 + : this.publisherServiceListingId.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/GenerateCustomerInstanceReportExportDetails.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/GenerateCustomerInstanceReportExportDetails.java new file mode 100644 index 00000000000..f7dce947cb1 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/GenerateCustomerInstanceReportExportDetails.java @@ -0,0 +1,848 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Details to generate a Customer Instance Report export.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = GenerateCustomerInstanceReportExportDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class GenerateCustomerInstanceReportExportDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "sortOrder", + "sortBy", + "name", + "listingId", + "status", + "shape", + "region", + "realm", + "tenantAdminDomain", + "packageVersion", + "instanceId", + "timeInstanceCreationFromDate", + "timeInstanceCreationToDate", + "timeInstanceTerminationFromDate", + "timeInstanceTerminationToDate" + }) + public GenerateCustomerInstanceReportExportDetails( + String compartmentId, + SortOrder sortOrder, + SortBy sortBy, + String name, + String listingId, + Status status, + String shape, + String region, + String realm, + String tenantAdminDomain, + String packageVersion, + String instanceId, + java.util.Date timeInstanceCreationFromDate, + java.util.Date timeInstanceCreationToDate, + java.util.Date timeInstanceTerminationFromDate, + java.util.Date timeInstanceTerminationToDate) { + super(); + this.compartmentId = compartmentId; + this.sortOrder = sortOrder; + this.sortBy = sortBy; + this.name = name; + this.listingId = listingId; + this.status = status; + this.shape = shape; + this.region = region; + this.realm = realm; + this.tenantAdminDomain = tenantAdminDomain; + this.packageVersion = packageVersion; + this.instanceId = instanceId; + this.timeInstanceCreationFromDate = timeInstanceCreationFromDate; + this.timeInstanceCreationToDate = timeInstanceCreationToDate; + this.timeInstanceTerminationFromDate = timeInstanceTerminationFromDate; + this.timeInstanceTerminationToDate = timeInstanceTerminationToDate; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the compartment for the export. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment for the export. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The sort order for the generated export. */ + @com.fasterxml.jackson.annotation.JsonProperty("sortOrder") + private SortOrder sortOrder; + + /** + * The sort order for the generated export. + * + * @param sortOrder the value to set + * @return this builder + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + this.__explicitlySet__.add("sortOrder"); + return this; + } + /** The field to sort by. */ + @com.fasterxml.jackson.annotation.JsonProperty("sortBy") + private SortBy sortBy; + + /** + * The field to sort by. + * + * @param sortBy the value to set + * @return this builder + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + this.__explicitlySet__.add("sortBy"); + return this; + } + /** A filter to return only report records that match the listing name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * A filter to return only report records that match the listing name. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** A filter to return only report records that match the listing OCID. */ + @com.fasterxml.jackson.annotation.JsonProperty("listingId") + private String listingId; + + /** + * A filter to return only report records that match the listing OCID. + * + * @param listingId the value to set + * @return this builder + */ + public Builder listingId(String listingId) { + this.listingId = listingId; + this.__explicitlySet__.add("listingId"); + return this; + } + /** A filter to return only report records that match the instance status. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * A filter to return only report records that match the instance status. + * + * @param status the value to set + * @return this builder + */ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** A filter to return only report records that match the instance shape. */ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private String shape; + + /** + * A filter to return only report records that match the instance shape. + * + * @param shape the value to set + * @return this builder + */ + public Builder shape(String shape) { + this.shape = shape; + this.__explicitlySet__.add("shape"); + return this; + } + /** A filter to return only report records that match the instance region. */ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private String region; + + /** + * A filter to return only report records that match the instance region. + * + * @param region the value to set + * @return this builder + */ + public Builder region(String region) { + this.region = region; + this.__explicitlySet__.add("region"); + return this; + } + /** A filter to return only report records that match the instance realm. */ + @com.fasterxml.jackson.annotation.JsonProperty("realm") + private String realm; + + /** + * A filter to return only report records that match the instance realm. + * + * @param realm the value to set + * @return this builder + */ + public Builder realm(String realm) { + this.realm = realm; + this.__explicitlySet__.add("realm"); + return this; + } + /** + * A filter to return only report records that match the tenant administrator email domain. + */ + @com.fasterxml.jackson.annotation.JsonProperty("tenantAdminDomain") + private String tenantAdminDomain; + + /** + * A filter to return only report records that match the tenant administrator email domain. + * + * @param tenantAdminDomain the value to set + * @return this builder + */ + public Builder tenantAdminDomain(String tenantAdminDomain) { + this.tenantAdminDomain = tenantAdminDomain; + this.__explicitlySet__.add("tenantAdminDomain"); + return this; + } + /** A filter to return only report records that match the package version. */ + @com.fasterxml.jackson.annotation.JsonProperty("packageVersion") + private String packageVersion; + + /** + * A filter to return only report records that match the package version. + * + * @param packageVersion the value to set + * @return this builder + */ + public Builder packageVersion(String packageVersion) { + this.packageVersion = packageVersion; + this.__explicitlySet__.add("packageVersion"); + return this; + } + /** A filter to return only report records that match the instance OCID. */ + @com.fasterxml.jackson.annotation.JsonProperty("instanceId") + private String instanceId; + + /** + * A filter to return only report records that match the instance OCID. + * + * @param instanceId the value to set + * @return this builder + */ + public Builder instanceId(String instanceId) { + this.instanceId = instanceId; + this.__explicitlySet__.add("instanceId"); + return this; + } + /** The inclusive earliest instance creation time, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeInstanceCreationFromDate") + private java.util.Date timeInstanceCreationFromDate; + + /** + * The inclusive earliest instance creation time, in RFC 3339 format. + * + * @param timeInstanceCreationFromDate the value to set + * @return this builder + */ + public Builder timeInstanceCreationFromDate(java.util.Date timeInstanceCreationFromDate) { + this.timeInstanceCreationFromDate = timeInstanceCreationFromDate; + this.__explicitlySet__.add("timeInstanceCreationFromDate"); + return this; + } + /** The inclusive latest instance creation time, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeInstanceCreationToDate") + private java.util.Date timeInstanceCreationToDate; + + /** + * The inclusive latest instance creation time, in RFC 3339 format. + * + * @param timeInstanceCreationToDate the value to set + * @return this builder + */ + public Builder timeInstanceCreationToDate(java.util.Date timeInstanceCreationToDate) { + this.timeInstanceCreationToDate = timeInstanceCreationToDate; + this.__explicitlySet__.add("timeInstanceCreationToDate"); + return this; + } + /** The inclusive earliest instance termination time, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeInstanceTerminationFromDate") + private java.util.Date timeInstanceTerminationFromDate; + + /** + * The inclusive earliest instance termination time, in RFC 3339 format. + * + * @param timeInstanceTerminationFromDate the value to set + * @return this builder + */ + public Builder timeInstanceTerminationFromDate( + java.util.Date timeInstanceTerminationFromDate) { + this.timeInstanceTerminationFromDate = timeInstanceTerminationFromDate; + this.__explicitlySet__.add("timeInstanceTerminationFromDate"); + return this; + } + /** The inclusive latest instance termination time, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeInstanceTerminationToDate") + private java.util.Date timeInstanceTerminationToDate; + + /** + * The inclusive latest instance termination time, in RFC 3339 format. + * + * @param timeInstanceTerminationToDate the value to set + * @return this builder + */ + public Builder timeInstanceTerminationToDate(java.util.Date timeInstanceTerminationToDate) { + this.timeInstanceTerminationToDate = timeInstanceTerminationToDate; + this.__explicitlySet__.add("timeInstanceTerminationToDate"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GenerateCustomerInstanceReportExportDetails build() { + GenerateCustomerInstanceReportExportDetails model = + new GenerateCustomerInstanceReportExportDetails( + this.compartmentId, + this.sortOrder, + this.sortBy, + this.name, + this.listingId, + this.status, + this.shape, + this.region, + this.realm, + this.tenantAdminDomain, + this.packageVersion, + this.instanceId, + this.timeInstanceCreationFromDate, + this.timeInstanceCreationToDate, + this.timeInstanceTerminationFromDate, + this.timeInstanceTerminationToDate); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GenerateCustomerInstanceReportExportDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("sortOrder")) { + this.sortOrder(model.getSortOrder()); + } + if (model.wasPropertyExplicitlySet("sortBy")) { + this.sortBy(model.getSortBy()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("listingId")) { + this.listingId(model.getListingId()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("shape")) { + this.shape(model.getShape()); + } + if (model.wasPropertyExplicitlySet("region")) { + this.region(model.getRegion()); + } + if (model.wasPropertyExplicitlySet("realm")) { + this.realm(model.getRealm()); + } + if (model.wasPropertyExplicitlySet("tenantAdminDomain")) { + this.tenantAdminDomain(model.getTenantAdminDomain()); + } + if (model.wasPropertyExplicitlySet("packageVersion")) { + this.packageVersion(model.getPackageVersion()); + } + if (model.wasPropertyExplicitlySet("instanceId")) { + this.instanceId(model.getInstanceId()); + } + if (model.wasPropertyExplicitlySet("timeInstanceCreationFromDate")) { + this.timeInstanceCreationFromDate(model.getTimeInstanceCreationFromDate()); + } + if (model.wasPropertyExplicitlySet("timeInstanceCreationToDate")) { + this.timeInstanceCreationToDate(model.getTimeInstanceCreationToDate()); + } + if (model.wasPropertyExplicitlySet("timeInstanceTerminationFromDate")) { + this.timeInstanceTerminationFromDate(model.getTimeInstanceTerminationFromDate()); + } + if (model.wasPropertyExplicitlySet("timeInstanceTerminationToDate")) { + this.timeInstanceTerminationToDate(model.getTimeInstanceTerminationToDate()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the compartment for the export. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment for the export. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The sort order for the generated export. */ + 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 for the generated export. */ + @com.fasterxml.jackson.annotation.JsonProperty("sortOrder") + private final SortOrder sortOrder; + + /** + * The sort order for the generated export. + * + * @return the value + */ + public SortOrder getSortOrder() { + return sortOrder; + } + + /** The field to sort by. */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + InstanceId("INSTANCE_ID"), + ; + + 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. */ + @com.fasterxml.jackson.annotation.JsonProperty("sortBy") + private final SortBy sortBy; + + /** + * The field to sort by. + * + * @return the value + */ + public SortBy getSortBy() { + return sortBy; + } + + /** A filter to return only report records that match the listing name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * A filter to return only report records that match the listing name. + * + * @return the value + */ + public String getName() { + return name; + } + + /** A filter to return only report records that match the listing OCID. */ + @com.fasterxml.jackson.annotation.JsonProperty("listingId") + private final String listingId; + + /** + * A filter to return only report records that match the listing OCID. + * + * @return the value + */ + public String getListingId() { + return listingId; + } + + /** A filter to return only report records that match the instance status. */ + public enum Status implements com.oracle.bmc.http.internal.BmcEnum { + Provisioning("PROVISIONING"), + Running("RUNNING"), + Stopped("STOPPED"), + Terminating("TERMINATING"), + Terminated("TERMINATED"), + Disabled("DISABLED"), + Starting("STARTING"), + Stopping("STOPPING"), + Snapshotting("SNAPSHOTTING"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + 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); + } + throw new IllegalArgumentException("Invalid Status: " + key); + } + }; + /** A filter to return only report records that match the instance status. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * A filter to return only report records that match the instance status. + * + * @return the value + */ + public Status getStatus() { + return status; + } + + /** A filter to return only report records that match the instance shape. */ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private final String shape; + + /** + * A filter to return only report records that match the instance shape. + * + * @return the value + */ + public String getShape() { + return shape; + } + + /** A filter to return only report records that match the instance region. */ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private final String region; + + /** + * A filter to return only report records that match the instance region. + * + * @return the value + */ + public String getRegion() { + return region; + } + + /** A filter to return only report records that match the instance realm. */ + @com.fasterxml.jackson.annotation.JsonProperty("realm") + private final String realm; + + /** + * A filter to return only report records that match the instance realm. + * + * @return the value + */ + public String getRealm() { + return realm; + } + + /** A filter to return only report records that match the tenant administrator email domain. */ + @com.fasterxml.jackson.annotation.JsonProperty("tenantAdminDomain") + private final String tenantAdminDomain; + + /** + * A filter to return only report records that match the tenant administrator email domain. + * + * @return the value + */ + public String getTenantAdminDomain() { + return tenantAdminDomain; + } + + /** A filter to return only report records that match the package version. */ + @com.fasterxml.jackson.annotation.JsonProperty("packageVersion") + private final String packageVersion; + + /** + * A filter to return only report records that match the package version. + * + * @return the value + */ + public String getPackageVersion() { + return packageVersion; + } + + /** A filter to return only report records that match the instance OCID. */ + @com.fasterxml.jackson.annotation.JsonProperty("instanceId") + private final String instanceId; + + /** + * A filter to return only report records that match the instance OCID. + * + * @return the value + */ + public String getInstanceId() { + return instanceId; + } + + /** The inclusive earliest instance creation time, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeInstanceCreationFromDate") + private final java.util.Date timeInstanceCreationFromDate; + + /** + * The inclusive earliest instance creation time, in RFC 3339 format. + * + * @return the value + */ + public java.util.Date getTimeInstanceCreationFromDate() { + return timeInstanceCreationFromDate; + } + + /** The inclusive latest instance creation time, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeInstanceCreationToDate") + private final java.util.Date timeInstanceCreationToDate; + + /** + * The inclusive latest instance creation time, in RFC 3339 format. + * + * @return the value + */ + public java.util.Date getTimeInstanceCreationToDate() { + return timeInstanceCreationToDate; + } + + /** The inclusive earliest instance termination time, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeInstanceTerminationFromDate") + private final java.util.Date timeInstanceTerminationFromDate; + + /** + * The inclusive earliest instance termination time, in RFC 3339 format. + * + * @return the value + */ + public java.util.Date getTimeInstanceTerminationFromDate() { + return timeInstanceTerminationFromDate; + } + + /** The inclusive latest instance termination time, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeInstanceTerminationToDate") + private final java.util.Date timeInstanceTerminationToDate; + + /** + * The inclusive latest instance termination time, in RFC 3339 format. + * + * @return the value + */ + public java.util.Date getTimeInstanceTerminationToDate() { + return timeInstanceTerminationToDate; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("GenerateCustomerInstanceReportExportDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(", sortBy=").append(String.valueOf(this.sortBy)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", listingId=").append(String.valueOf(this.listingId)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", shape=").append(String.valueOf(this.shape)); + sb.append(", region=").append(String.valueOf(this.region)); + sb.append(", realm=").append(String.valueOf(this.realm)); + sb.append(", tenantAdminDomain=").append(String.valueOf(this.tenantAdminDomain)); + sb.append(", packageVersion=").append(String.valueOf(this.packageVersion)); + sb.append(", instanceId=").append(String.valueOf(this.instanceId)); + sb.append(", timeInstanceCreationFromDate=") + .append(String.valueOf(this.timeInstanceCreationFromDate)); + sb.append(", timeInstanceCreationToDate=") + .append(String.valueOf(this.timeInstanceCreationToDate)); + sb.append(", timeInstanceTerminationFromDate=") + .append(String.valueOf(this.timeInstanceTerminationFromDate)); + sb.append(", timeInstanceTerminationToDate=") + .append(String.valueOf(this.timeInstanceTerminationToDate)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateCustomerInstanceReportExportDetails)) { + return false; + } + + GenerateCustomerInstanceReportExportDetails other = + (GenerateCustomerInstanceReportExportDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.listingId, other.listingId) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.shape, other.shape) + && java.util.Objects.equals(this.region, other.region) + && java.util.Objects.equals(this.realm, other.realm) + && java.util.Objects.equals(this.tenantAdminDomain, other.tenantAdminDomain) + && java.util.Objects.equals(this.packageVersion, other.packageVersion) + && java.util.Objects.equals(this.instanceId, other.instanceId) + && java.util.Objects.equals( + this.timeInstanceCreationFromDate, other.timeInstanceCreationFromDate) + && java.util.Objects.equals( + this.timeInstanceCreationToDate, other.timeInstanceCreationToDate) + && java.util.Objects.equals( + this.timeInstanceTerminationFromDate, other.timeInstanceTerminationFromDate) + && java.util.Objects.equals( + this.timeInstanceTerminationToDate, other.timeInstanceTerminationToDate) + && 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.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.listingId == null ? 43 : this.listingId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); + result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); + result = (result * PRIME) + (this.realm == null ? 43 : this.realm.hashCode()); + result = + (result * PRIME) + + (this.tenantAdminDomain == null ? 43 : this.tenantAdminDomain.hashCode()); + result = + (result * PRIME) + + (this.packageVersion == null ? 43 : this.packageVersion.hashCode()); + result = (result * PRIME) + (this.instanceId == null ? 43 : this.instanceId.hashCode()); + result = + (result * PRIME) + + (this.timeInstanceCreationFromDate == null + ? 43 + : this.timeInstanceCreationFromDate.hashCode()); + result = + (result * PRIME) + + (this.timeInstanceCreationToDate == null + ? 43 + : this.timeInstanceCreationToDate.hashCode()); + result = + (result * PRIME) + + (this.timeInstanceTerminationFromDate == null + ? 43 + : this.timeInstanceTerminationFromDate.hashCode()); + result = + (result * PRIME) + + (this.timeInstanceTerminationToDate == null + ? 43 + : this.timeInstanceTerminationToDate.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/HybridPricingPlan.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/HybridPricingPlan.java new file mode 100644 index 00000000000..aafba7a2d02 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/HybridPricingPlan.java @@ -0,0 +1,481 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Hybrid SaaS pricing plan with a base fee and dimension-based overage billing.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = HybridPricingPlan.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "planType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class HybridPricingPlan extends PricingPlan { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("rates") + private java.util.List rates; + + public Builder rates(java.util.List rates) { + this.rates = rates; + this.__explicitlySet__.add("rates"); + return this; + } + /** Unique identifier of the pricing plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("pricingPlanKey") + private String pricingPlanKey; + + /** + * Unique identifier of the pricing plan. + * + * @param pricingPlanKey the value to set + * @return this builder + */ + public Builder pricingPlanKey(String pricingPlanKey) { + this.pricingPlanKey = pricingPlanKey; + this.__explicitlySet__.add("pricingPlanKey"); + return this; + } + /** The plan name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The plan 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 plan description. */ + @com.fasterxml.jackson.annotation.JsonProperty("planDescription") + private String planDescription; + + /** + * The plan description. + * + * @param planDescription the value to set + * @return this builder + */ + public Builder planDescription(String planDescription) { + this.planDescription = planDescription; + this.__explicitlySet__.add("planDescription"); + return this; + } + /** The plan billing frequency. */ + @com.fasterxml.jackson.annotation.JsonProperty("billingFrequency") + private BillingFrequency billingFrequency; + + /** + * The plan billing frequency. + * + * @param billingFrequency the value to set + * @return this builder + */ + public Builder billingFrequency(BillingFrequency billingFrequency) { + this.billingFrequency = billingFrequency; + this.__explicitlySet__.add("billingFrequency"); + return this; + } + /** The plan duration. */ + @com.fasterxml.jackson.annotation.JsonProperty("planDuration") + private PlanDuration planDuration; + + /** + * The plan duration. + * + * @param planDuration the value to set + * @return this builder + */ + public Builder planDuration(PlanDuration planDuration) { + this.planDuration = planDuration; + this.__explicitlySet__.add("planDuration"); + return this; + } + /** The usage dimensions that define included usage and overage billing for this plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("dimensions") + private java.util.List dimensions; + + /** + * The usage dimensions that define included usage and overage billing for this plan. + * + * @param dimensions the value to set + * @return this builder + */ + public Builder dimensions(java.util.List dimensions) { + this.dimensions = dimensions; + this.__explicitlySet__.add("dimensions"); + return this; + } + /** Additional metadata key/value pairs for the hybrid pricing. */ + @com.fasterxml.jackson.annotation.JsonProperty("extendedMetadata") + private java.util.Map extendedMetadata; + + /** + * Additional metadata key/value pairs for the hybrid pricing. + * + * @param extendedMetadata the value to set + * @return this builder + */ + public Builder extendedMetadata(java.util.Map extendedMetadata) { + this.extendedMetadata = extendedMetadata; + this.__explicitlySet__.add("extendedMetadata"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public HybridPricingPlan build() { + HybridPricingPlan model = + new HybridPricingPlan( + this.rates, + this.pricingPlanKey, + this.name, + this.planDescription, + this.billingFrequency, + this.planDuration, + this.dimensions, + this.extendedMetadata); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(HybridPricingPlan model) { + if (model.wasPropertyExplicitlySet("rates")) { + this.rates(model.getRates()); + } + if (model.wasPropertyExplicitlySet("pricingPlanKey")) { + this.pricingPlanKey(model.getPricingPlanKey()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("planDescription")) { + this.planDescription(model.getPlanDescription()); + } + if (model.wasPropertyExplicitlySet("billingFrequency")) { + this.billingFrequency(model.getBillingFrequency()); + } + if (model.wasPropertyExplicitlySet("planDuration")) { + this.planDuration(model.getPlanDuration()); + } + if (model.wasPropertyExplicitlySet("dimensions")) { + this.dimensions(model.getDimensions()); + } + if (model.wasPropertyExplicitlySet("extendedMetadata")) { + this.extendedMetadata(model.getExtendedMetadata()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public HybridPricingPlan( + java.util.List rates, + String pricingPlanKey, + String name, + String planDescription, + BillingFrequency billingFrequency, + PlanDuration planDuration, + java.util.List dimensions, + java.util.Map extendedMetadata) { + super(rates); + this.pricingPlanKey = pricingPlanKey; + this.name = name; + this.planDescription = planDescription; + this.billingFrequency = billingFrequency; + this.planDuration = planDuration; + this.dimensions = dimensions; + this.extendedMetadata = extendedMetadata; + } + + /** Unique identifier of the pricing plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("pricingPlanKey") + private final String pricingPlanKey; + + /** + * Unique identifier of the pricing plan. + * + * @return the value + */ + public String getPricingPlanKey() { + return pricingPlanKey; + } + + /** The plan name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The plan name. + * + * @return the value + */ + public String getName() { + return name; + } + + /** The plan description. */ + @com.fasterxml.jackson.annotation.JsonProperty("planDescription") + private final String planDescription; + + /** + * The plan description. + * + * @return the value + */ + public String getPlanDescription() { + return planDescription; + } + + /** The plan billing frequency. */ + public enum BillingFrequency implements com.oracle.bmc.http.internal.BmcEnum { + Monthly("MONTHLY"), + Quarterly("QUARTERLY"), + SemiAnnual("SEMI_ANNUAL"), + Annual("ANNUAL"), + Biennial("BIENNIAL"), + Triennial("TRIENNIAL"), + + /** + * 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(BillingFrequency.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (BillingFrequency v : BillingFrequency.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + BillingFrequency(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static BillingFrequency create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'BillingFrequency', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The plan billing frequency. */ + @com.fasterxml.jackson.annotation.JsonProperty("billingFrequency") + private final BillingFrequency billingFrequency; + + /** + * The plan billing frequency. + * + * @return the value + */ + public BillingFrequency getBillingFrequency() { + return billingFrequency; + } + + /** The plan duration. */ + public enum PlanDuration implements com.oracle.bmc.http.internal.BmcEnum { + Monthly("MONTHLY"), + Quarterly("QUARTERLY"), + SemiAnnual("SEMI_ANNUAL"), + Annual("ANNUAL"), + Biennial("BIENNIAL"), + Triennial("TRIENNIAL"), + + /** + * 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(PlanDuration.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PlanDuration v : PlanDuration.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PlanDuration(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PlanDuration create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PlanDuration', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The plan duration. */ + @com.fasterxml.jackson.annotation.JsonProperty("planDuration") + private final PlanDuration planDuration; + + /** + * The plan duration. + * + * @return the value + */ + public PlanDuration getPlanDuration() { + return planDuration; + } + + /** The usage dimensions that define included usage and overage billing for this plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("dimensions") + private final java.util.List dimensions; + + /** + * The usage dimensions that define included usage and overage billing for this plan. + * + * @return the value + */ + public java.util.List getDimensions() { + return dimensions; + } + + /** Additional metadata key/value pairs for the hybrid pricing. */ + @com.fasterxml.jackson.annotation.JsonProperty("extendedMetadata") + private final java.util.Map extendedMetadata; + + /** + * Additional metadata key/value pairs for the hybrid pricing. + * + * @return the value + */ + public java.util.Map getExtendedMetadata() { + return extendedMetadata; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("HybridPricingPlan("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", pricingPlanKey=").append(String.valueOf(this.pricingPlanKey)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", planDescription=").append(String.valueOf(this.planDescription)); + sb.append(", billingFrequency=").append(String.valueOf(this.billingFrequency)); + sb.append(", planDuration=").append(String.valueOf(this.planDuration)); + sb.append(", dimensions=").append(String.valueOf(this.dimensions)); + sb.append(", extendedMetadata=").append(String.valueOf(this.extendedMetadata)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof HybridPricingPlan)) { + return false; + } + + HybridPricingPlan other = (HybridPricingPlan) o; + return java.util.Objects.equals(this.pricingPlanKey, other.pricingPlanKey) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.planDescription, other.planDescription) + && java.util.Objects.equals(this.billingFrequency, other.billingFrequency) + && java.util.Objects.equals(this.planDuration, other.planDuration) + && java.util.Objects.equals(this.dimensions, other.dimensions) + && java.util.Objects.equals(this.extendedMetadata, other.extendedMetadata) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.pricingPlanKey == null ? 43 : this.pricingPlanKey.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.planDescription == null ? 43 : this.planDescription.hashCode()); + result = + (result * PRIME) + + (this.billingFrequency == null ? 43 : this.billingFrequency.hashCode()); + result = (result * PRIME) + (this.planDuration == null ? 43 : this.planDuration.hashCode()); + result = (result * PRIME) + (this.dimensions == null ? 43 : this.dimensions.hashCode()); + result = + (result * PRIME) + + (this.extendedMetadata == null ? 43 : this.extendedMetadata.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/LeadGenListingRevision.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/LeadGenListingRevision.java index 1e3b34db3d5..139825813f6 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/LeadGenListingRevision.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/LeadGenListingRevision.java @@ -189,6 +189,15 @@ public Builder icon(ListingRevisionIconAttachment icon) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("banner") + private ListingRevisionBannerAttachment banner; + + public Builder banner(ListingRevisionBannerAttachment banner) { + this.banner = banner; + this.__explicitlySet__.add("banner"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("status") private Status status; @@ -425,6 +434,7 @@ public LeadGenListingRevision build() { this.supportContacts, this.supportLinks, this.icon, + this.banner, this.status, this.statusNotes, this.lifecycleState, @@ -505,6 +515,9 @@ public Builder copy(LeadGenListingRevision model) { if (model.wasPropertyExplicitlySet("icon")) { this.icon(model.getIcon()); } + if (model.wasPropertyExplicitlySet("banner")) { + this.banner(model.getBanner()); + } if (model.wasPropertyExplicitlySet("status")) { this.status(model.getStatus()); } @@ -593,6 +606,7 @@ public LeadGenListingRevision( java.util.List supportContacts, java.util.List supportLinks, ListingRevisionIconAttachment icon, + ListingRevisionBannerAttachment banner, Status status, String statusNotes, LifecycleState lifecycleState, @@ -630,6 +644,7 @@ public LeadGenListingRevision( supportContacts, supportLinks, icon, + banner, status, statusNotes, lifecycleState, diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingPart.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingPart.java index 6f6240710c0..c3929175e8b 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingPart.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingPart.java @@ -23,6 +23,8 @@ public final class ListingPart extends com.oracle.bmc.http.client.internal.Expli @Deprecated @java.beans.ConstructorProperties({ "sku", + "pricingPlanKey", + "billingModel", "metricType", "rateAllocation", "hasGovSku", @@ -30,12 +32,16 @@ public final class ListingPart extends com.oracle.bmc.http.client.internal.Expli }) public ListingPart( String sku, + String pricingPlanKey, + BillingModel billingModel, MetricType metricType, Float rateAllocation, Boolean hasGovSku, java.util.List meters) { super(); this.sku = sku; + this.pricingPlanKey = pricingPlanKey; + this.billingModel = billingModel; this.metricType = metricType; this.rateAllocation = rateAllocation; this.hasGovSku = hasGovSku; @@ -59,6 +65,36 @@ public Builder sku(String sku) { this.__explicitlySet__.add("sku"); return this; } + /** Unique identifier of the pricing plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("pricingPlanKey") + private String pricingPlanKey; + + /** + * Unique identifier of the pricing plan. + * + * @param pricingPlanKey the value to set + * @return this builder + */ + public Builder pricingPlanKey(String pricingPlanKey) { + this.pricingPlanKey = pricingPlanKey; + this.__explicitlySet__.add("pricingPlanKey"); + return this; + } + /** The billing model for SaaS paid listing parts. */ + @com.fasterxml.jackson.annotation.JsonProperty("billingModel") + private BillingModel billingModel; + + /** + * The billing model for SaaS paid listing parts. + * + * @param billingModel the value to set + * @return this builder + */ + public Builder billingModel(BillingModel billingModel) { + this.billingModel = billingModel; + this.__explicitlySet__.add("billingModel"); + return this; + } /** The part's metric. */ @com.fasterxml.jackson.annotation.JsonProperty("metricType") private MetricType metricType; @@ -127,6 +163,8 @@ public ListingPart build() { ListingPart model = new ListingPart( this.sku, + this.pricingPlanKey, + this.billingModel, this.metricType, this.rateAllocation, this.hasGovSku, @@ -142,6 +180,12 @@ public Builder copy(ListingPart model) { if (model.wasPropertyExplicitlySet("sku")) { this.sku(model.getSku()); } + if (model.wasPropertyExplicitlySet("pricingPlanKey")) { + this.pricingPlanKey(model.getPricingPlanKey()); + } + if (model.wasPropertyExplicitlySet("billingModel")) { + this.billingModel(model.getBillingModel()); + } if (model.wasPropertyExplicitlySet("metricType")) { this.metricType(model.getMetricType()); } @@ -180,24 +224,46 @@ public String getSku() { return sku; } - /** The part's metric. */ - public enum MetricType implements com.oracle.bmc.http.internal.BmcEnum { - OcpuHours("OCPU_HOURS"), - InstanceHours("INSTANCE_HOURS"), - CoreHours("CORE_HOURS"), - ; + /** Unique identifier of the pricing plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("pricingPlanKey") + private final String pricingPlanKey; + + /** + * Unique identifier of the pricing plan. + * + * @return the value + */ + public String getPricingPlanKey() { + return pricingPlanKey; + } + + /** The billing model for SaaS paid listing parts. */ + public enum BillingModel implements com.oracle.bmc.http.internal.BmcEnum { + FlatRate("FLAT_RATE"), + UsageBased("USAGE_BASED"), + + /** + * 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(BillingModel.class); private final String value; - private static java.util.Map map; + private static java.util.Map map; static { map = new java.util.HashMap<>(); - for (MetricType v : MetricType.values()) { - map.put(v.getValue(), v); + for (BillingModel v : BillingModel.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } } } - MetricType(String value) { + BillingModel(String value) { this.value = value; } @@ -207,13 +273,29 @@ public String getValue() { } @com.fasterxml.jackson.annotation.JsonCreator - public static MetricType create(String key) { + public static BillingModel create(String key) { if (map.containsKey(key)) { return map.get(key); } - throw new IllegalArgumentException("Invalid MetricType: " + key); + LOG.warn( + "Received unknown value '{}' for enum 'BillingModel', returning UnknownEnumValue", + key); + return UnknownEnumValue; } }; + /** The billing model for SaaS paid listing parts. */ + @com.fasterxml.jackson.annotation.JsonProperty("billingModel") + private final BillingModel billingModel; + + /** + * The billing model for SaaS paid listing parts. + * + * @return the value + */ + public BillingModel getBillingModel() { + return billingModel; + } + /** The part's metric. */ @com.fasterxml.jackson.annotation.JsonProperty("metricType") private final MetricType metricType; @@ -282,6 +364,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("ListingPart("); sb.append("super=").append(super.toString()); sb.append("sku=").append(String.valueOf(this.sku)); + sb.append(", pricingPlanKey=").append(String.valueOf(this.pricingPlanKey)); + sb.append(", billingModel=").append(String.valueOf(this.billingModel)); sb.append(", metricType=").append(String.valueOf(this.metricType)); sb.append(", rateAllocation=").append(String.valueOf(this.rateAllocation)); sb.append(", hasGovSku=").append(String.valueOf(this.hasGovSku)); @@ -301,6 +385,8 @@ public boolean equals(Object o) { ListingPart other = (ListingPart) o; return java.util.Objects.equals(this.sku, other.sku) + && java.util.Objects.equals(this.pricingPlanKey, other.pricingPlanKey) + && java.util.Objects.equals(this.billingModel, other.billingModel) && java.util.Objects.equals(this.metricType, other.metricType) && java.util.Objects.equals(this.rateAllocation, other.rateAllocation) && java.util.Objects.equals(this.hasGovSku, other.hasGovSku) @@ -313,6 +399,10 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.sku == null ? 43 : this.sku.hashCode()); + result = + (result * PRIME) + + (this.pricingPlanKey == null ? 43 : this.pricingPlanKey.hashCode()); + result = (result * PRIME) + (this.billingModel == null ? 43 : this.billingModel.hashCode()); result = (result * PRIME) + (this.metricType == null ? 43 : this.metricType.hashCode()); result = (result * PRIME) diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingRevision.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingRevision.java index 146e66296ec..c6df515b183 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingRevision.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingRevision.java @@ -55,6 +55,7 @@ public class ListingRevision extends com.oracle.bmc.http.client.internal.Explici "supportContacts", "supportLinks", "icon", + "banner", "status", "statusNotes", "lifecycleState", @@ -83,6 +84,7 @@ protected ListingRevision( java.util.List supportContacts, java.util.List supportLinks, ListingRevisionIconAttachment icon, + ListingRevisionBannerAttachment banner, Status status, String statusNotes, LifecycleState lifecycleState, @@ -110,6 +112,7 @@ protected ListingRevision( this.supportContacts = supportContacts; this.supportLinks = supportLinks; this.icon = icon; + this.banner = banner; this.status = status; this.statusNotes = statusNotes; this.lifecycleState = lifecycleState; @@ -342,6 +345,13 @@ public ListingRevisionIconAttachment getIcon() { return icon; } + @com.fasterxml.jackson.annotation.JsonProperty("banner") + private final ListingRevisionBannerAttachment banner; + + public ListingRevisionBannerAttachment getBanner() { + return banner; + } + /** The current status for the Listing revision. */ public enum Status implements com.oracle.bmc.http.internal.BmcEnum { New("NEW"), @@ -597,6 +607,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", supportContacts=").append(String.valueOf(this.supportContacts)); sb.append(", supportLinks=").append(String.valueOf(this.supportLinks)); sb.append(", icon=").append(String.valueOf(this.icon)); + sb.append(", banner=").append(String.valueOf(this.banner)); sb.append(", status=").append(String.valueOf(this.status)); sb.append(", statusNotes=").append(String.valueOf(this.statusNotes)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); @@ -637,6 +648,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.supportContacts, other.supportContacts) && java.util.Objects.equals(this.supportLinks, other.supportLinks) && java.util.Objects.equals(this.icon, other.icon) + && java.util.Objects.equals(this.banner, other.banner) && java.util.Objects.equals(this.status, other.status) && java.util.Objects.equals(this.statusNotes, other.statusNotes) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) @@ -688,6 +700,7 @@ public int hashCode() { + (this.supportContacts == null ? 43 : this.supportContacts.hashCode()); result = (result * PRIME) + (this.supportLinks == null ? 43 : this.supportLinks.hashCode()); result = (result * PRIME) + (this.icon == null ? 43 : this.icon.hashCode()); + result = (result * PRIME) + (this.banner == null ? 43 : this.banner.hashCode()); result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); result = (result * PRIME) + (this.statusNotes == null ? 43 : this.statusNotes.hashCode()); result = diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingRevisionAttachment.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingRevisionAttachment.java index f5d3a76e89c..14275a34659 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingRevisionAttachment.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingRevisionAttachment.java @@ -52,6 +52,7 @@ public class ListingRevisionAttachment "listingRevisionId", "displayName", "description", + "sourceType", "lifecycleState", "timeCreated", "timeUpdated", @@ -65,6 +66,7 @@ protected ListingRevisionAttachment( String listingRevisionId, String displayName, String description, + SourceType sourceType, LifecycleState lifecycleState, java.util.Date timeCreated, java.util.Date timeUpdated, @@ -77,6 +79,7 @@ protected ListingRevisionAttachment( this.listingRevisionId = listingRevisionId; this.displayName = displayName; this.description = description; + this.sourceType = sourceType; this.lifecycleState = lifecycleState; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; @@ -150,6 +153,72 @@ public String getDescription() { return description; } + /** + * Possible values for the publisher listing revision attachments. The source type informs + * whether the type of attachment for the listing revision is external or internal. + */ + public enum SourceType implements com.oracle.bmc.http.internal.BmcEnum { + External("EXTERNAL"), + Internal("INTERNAL"), + + /** + * 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(SourceType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SourceType v : SourceType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + SourceType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SourceType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'SourceType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Possible values for the publisher listing revision attachments. The source type informs + * whether the type of attachment for the listing revision is external or internal. + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private final SourceType sourceType; + + /** + * Possible values for the publisher listing revision attachments. The source type informs + * whether the type of attachment for the listing revision is external or internal. + * + * @return the value + */ + public SourceType getSourceType() { + return sourceType; + } + /** The current state of the attachment. */ public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { Active("ACTIVE"), @@ -307,6 +376,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", listingRevisionId=").append(String.valueOf(this.listingRevisionId)); sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", sourceType=").append(String.valueOf(this.sourceType)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); @@ -332,6 +402,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.listingRevisionId, other.listingRevisionId) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.sourceType, other.sourceType) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) @@ -354,6 +425,7 @@ public int hashCode() { + (this.listingRevisionId == null ? 43 : this.listingRevisionId.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.sourceType == null ? 43 : this.sourceType.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingRevisionAttachmentSummary.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingRevisionAttachmentSummary.java index 75e5284cd64..7f5d58283b9 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingRevisionAttachmentSummary.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingRevisionAttachmentSummary.java @@ -29,6 +29,7 @@ public final class ListingRevisionAttachmentSummary "compartmentId", "displayName", "attachmentType", + "sourceType", "documentCategory", "contentUrl", "mimeType", @@ -45,6 +46,7 @@ public ListingRevisionAttachmentSummary( String compartmentId, String displayName, ListingRevisionAttachment.AttachmentType attachmentType, + ListingRevisionAttachment.SourceType sourceType, DocumentCategory documentCategory, String contentUrl, String mimeType, @@ -60,6 +62,7 @@ public ListingRevisionAttachmentSummary( this.compartmentId = compartmentId; this.displayName = displayName; this.attachmentType = attachmentType; + this.sourceType = sourceType; this.documentCategory = documentCategory; this.contentUrl = contentUrl; this.mimeType = mimeType; @@ -148,6 +151,21 @@ public Builder attachmentType(ListingRevisionAttachment.AttachmentType attachmen this.__explicitlySet__.add("attachmentType"); return this; } + /** The specified attachment type is Internal or External. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private ListingRevisionAttachment.SourceType sourceType; + + /** + * The specified attachment type is Internal or External. + * + * @param sourceType the value to set + * @return this builder + */ + public Builder sourceType(ListingRevisionAttachment.SourceType sourceType) { + this.sourceType = sourceType; + this.__explicitlySet__.add("sourceType"); + return this; + } /** Possible lifecycle states. */ @com.fasterxml.jackson.annotation.JsonProperty("documentCategory") private DocumentCategory documentCategory; @@ -324,6 +342,7 @@ public ListingRevisionAttachmentSummary build() { this.compartmentId, this.displayName, this.attachmentType, + this.sourceType, this.documentCategory, this.contentUrl, this.mimeType, @@ -356,6 +375,9 @@ public Builder copy(ListingRevisionAttachmentSummary model) { if (model.wasPropertyExplicitlySet("attachmentType")) { this.attachmentType(model.getAttachmentType()); } + if (model.wasPropertyExplicitlySet("sourceType")) { + this.sourceType(model.getSourceType()); + } if (model.wasPropertyExplicitlySet("documentCategory")) { this.documentCategory(model.getDocumentCategory()); } @@ -461,6 +483,19 @@ public ListingRevisionAttachment.AttachmentType getAttachmentType() { return attachmentType; } + /** The specified attachment type is Internal or External. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private final ListingRevisionAttachment.SourceType sourceType; + + /** + * The specified attachment type is Internal or External. + * + * @return the value + */ + public ListingRevisionAttachment.SourceType getSourceType() { + return sourceType; + } + /** Possible lifecycle states. */ public enum DocumentCategory implements com.oracle.bmc.http.internal.BmcEnum { CaseStudies("CASE_STUDIES"), @@ -678,6 +713,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", attachmentType=").append(String.valueOf(this.attachmentType)); + sb.append(", sourceType=").append(String.valueOf(this.sourceType)); sb.append(", documentCategory=").append(String.valueOf(this.documentCategory)); sb.append(", contentUrl=").append(String.valueOf(this.contentUrl)); sb.append(", mimeType=").append(String.valueOf(this.mimeType)); @@ -706,6 +742,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.attachmentType, other.attachmentType) + && java.util.Objects.equals(this.sourceType, other.sourceType) && java.util.Objects.equals(this.documentCategory, other.documentCategory) && java.util.Objects.equals(this.contentUrl, other.contentUrl) && java.util.Objects.equals(this.mimeType, other.mimeType) @@ -733,6 +770,7 @@ public int hashCode() { result = (result * PRIME) + (this.attachmentType == null ? 43 : this.attachmentType.hashCode()); + result = (result * PRIME) + (this.sourceType == null ? 43 : this.sourceType.hashCode()); result = (result * PRIME) + (this.documentCategory == null ? 43 : this.documentCategory.hashCode()); diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingRevisionBannerAttachment.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingRevisionBannerAttachment.java new file mode 100644 index 00000000000..d3a9ea84b9c --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingRevisionBannerAttachment.java @@ -0,0 +1,205 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Banner uploaded by the Publisher to be attached to the listing revision.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ListingRevisionBannerAttachment.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ListingRevisionBannerAttachment + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"contentUrl", "mimeType", "name"}) + public ListingRevisionBannerAttachment(String contentUrl, String mimeType, String name) { + super(); + this.contentUrl = contentUrl; + this.mimeType = mimeType; + this.name = name; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The content URL of the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("contentUrl") + private String contentUrl; + + /** + * The content URL of the uploaded data. + * + * @param contentUrl the value to set + * @return this builder + */ + public Builder contentUrl(String contentUrl) { + this.contentUrl = contentUrl; + this.__explicitlySet__.add("contentUrl"); + return this; + } + /** The MIME type of the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("mimeType") + private String mimeType; + + /** + * The MIME type of the uploaded data. + * + * @param mimeType the value to set + * @return this builder + */ + public Builder mimeType(String mimeType) { + this.mimeType = mimeType; + this.__explicitlySet__.add("mimeType"); + return this; + } + /** The name of uploaded banner. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of uploaded banner. + * + * @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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ListingRevisionBannerAttachment build() { + ListingRevisionBannerAttachment model = + new ListingRevisionBannerAttachment(this.contentUrl, this.mimeType, this.name); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ListingRevisionBannerAttachment model) { + if (model.wasPropertyExplicitlySet("contentUrl")) { + this.contentUrl(model.getContentUrl()); + } + if (model.wasPropertyExplicitlySet("mimeType")) { + this.mimeType(model.getMimeType()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The content URL of the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("contentUrl") + private final String contentUrl; + + /** + * The content URL of the uploaded data. + * + * @return the value + */ + public String getContentUrl() { + return contentUrl; + } + + /** The MIME type of the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("mimeType") + private final String mimeType; + + /** + * The MIME type of the uploaded data. + * + * @return the value + */ + public String getMimeType() { + return mimeType; + } + + /** The name of uploaded banner. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of uploaded banner. + * + * @return the value + */ + public String getName() { + return name; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ListingRevisionBannerAttachment("); + sb.append("super=").append(super.toString()); + sb.append("contentUrl=").append(String.valueOf(this.contentUrl)); + sb.append(", mimeType=").append(String.valueOf(this.mimeType)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListingRevisionBannerAttachment)) { + return false; + } + + ListingRevisionBannerAttachment other = (ListingRevisionBannerAttachment) o; + return java.util.Objects.equals(this.contentUrl, other.contentUrl) + && java.util.Objects.equals(this.mimeType, other.mimeType) + && java.util.Objects.equals(this.name, other.name) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.contentUrl == null ? 43 : this.contentUrl.hashCode()); + result = (result * PRIME) + (this.mimeType == null ? 43 : this.mimeType.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingRevisionNote.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingRevisionNote.java index ae6f8503da9..560b6a3e1f3 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingRevisionNote.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingRevisionNote.java @@ -29,6 +29,7 @@ public final class ListingRevisionNote "compartmentId", "noteSource", "noteDetails", + "adminEmail", "lifecycleState", "timeCreated", "timeUpdated", @@ -42,6 +43,7 @@ public ListingRevisionNote( String compartmentId, NoteSource noteSource, String noteDetails, + String adminEmail, LifecycleState lifecycleState, java.util.Date timeCreated, java.util.Date timeUpdated, @@ -54,6 +56,7 @@ public ListingRevisionNote( this.compartmentId = compartmentId; this.noteSource = noteSource; this.noteDetails = noteDetails; + this.adminEmail = adminEmail; this.lifecycleState = lifecycleState; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; @@ -139,6 +142,21 @@ public Builder noteDetails(String noteDetails) { this.__explicitlySet__.add("noteDetails"); return this; } + /** Email address of the administrator who created the note, if available. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminEmail") + private String adminEmail; + + /** + * Email address of the administrator who created the note, if available. + * + * @param adminEmail the value to set + * @return this builder + */ + public Builder adminEmail(String adminEmail) { + this.adminEmail = adminEmail; + this.__explicitlySet__.add("adminEmail"); + return this; + } /** The current state of the listing revision note. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; @@ -270,6 +288,7 @@ public ListingRevisionNote build() { this.compartmentId, this.noteSource, this.noteDetails, + this.adminEmail, this.lifecycleState, this.timeCreated, this.timeUpdated, @@ -299,6 +318,9 @@ public Builder copy(ListingRevisionNote model) { if (model.wasPropertyExplicitlySet("noteDetails")) { this.noteDetails(model.getNoteDetails()); } + if (model.wasPropertyExplicitlySet("adminEmail")) { + this.adminEmail(model.getAdminEmail()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -441,6 +463,19 @@ public String getNoteDetails() { return noteDetails; } + /** Email address of the administrator who created the note, if available. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminEmail") + private final String adminEmail; + + /** + * Email address of the administrator who created the note, if available. + * + * @return the value + */ + public String getAdminEmail() { + return adminEmail; + } + /** The current state of the listing revision note. */ public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { Active("ACTIVE"), @@ -613,6 +648,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", noteSource=").append(String.valueOf(this.noteSource)); sb.append(", noteDetails=").append(String.valueOf(this.noteDetails)); + sb.append(", adminEmail=").append(String.valueOf(this.adminEmail)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); @@ -638,6 +674,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.noteSource, other.noteSource) && java.util.Objects.equals(this.noteDetails, other.noteDetails) + && java.util.Objects.equals(this.adminEmail, other.adminEmail) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) @@ -660,6 +697,7 @@ public int hashCode() { + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.noteSource == null ? 43 : this.noteSource.hashCode()); result = (result * PRIME) + (this.noteDetails == null ? 43 : this.noteDetails.hashCode()); + result = (result * PRIME) + (this.adminEmail == null ? 43 : this.adminEmail.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingRevisionNoteSummary.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingRevisionNoteSummary.java index 2508b70fe11..31b48d54058 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingRevisionNoteSummary.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingRevisionNoteSummary.java @@ -29,6 +29,7 @@ public final class ListingRevisionNoteSummary "compartmentId", "noteSource", "noteDetails", + "adminEmail", "lifecycleState", "timeCreated", "timeUpdated", @@ -42,6 +43,7 @@ public ListingRevisionNoteSummary( String compartmentId, ListingRevisionNote.NoteSource noteSource, String noteDetails, + String adminEmail, ListingRevisionNote.LifecycleState lifecycleState, java.util.Date timeCreated, java.util.Date timeUpdated, @@ -54,6 +56,7 @@ public ListingRevisionNoteSummary( this.compartmentId = compartmentId; this.noteSource = noteSource; this.noteDetails = noteDetails; + this.adminEmail = adminEmail; this.lifecycleState = lifecycleState; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; @@ -139,6 +142,21 @@ public Builder noteDetails(String noteDetails) { this.__explicitlySet__.add("noteDetails"); return this; } + /** Email address of the administrator who created the note, if available. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminEmail") + private String adminEmail; + + /** + * Email address of the administrator who created the note, if available. + * + * @param adminEmail the value to set + * @return this builder + */ + public Builder adminEmail(String adminEmail) { + this.adminEmail = adminEmail; + this.__explicitlySet__.add("adminEmail"); + return this; + } /** The current state of the note. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private ListingRevisionNote.LifecycleState lifecycleState; @@ -270,6 +288,7 @@ public ListingRevisionNoteSummary build() { this.compartmentId, this.noteSource, this.noteDetails, + this.adminEmail, this.lifecycleState, this.timeCreated, this.timeUpdated, @@ -299,6 +318,9 @@ public Builder copy(ListingRevisionNoteSummary model) { if (model.wasPropertyExplicitlySet("noteDetails")) { this.noteDetails(model.getNoteDetails()); } + if (model.wasPropertyExplicitlySet("adminEmail")) { + this.adminEmail(model.getAdminEmail()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -395,6 +417,19 @@ public String getNoteDetails() { return noteDetails; } + /** Email address of the administrator who created the note, if available. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminEmail") + private final String adminEmail; + + /** + * Email address of the administrator who created the note, if available. + * + * @return the value + */ + public String getAdminEmail() { + return adminEmail; + } + /** The current state of the note. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final ListingRevisionNote.LifecycleState lifecycleState; @@ -521,6 +556,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", noteSource=").append(String.valueOf(this.noteSource)); sb.append(", noteDetails=").append(String.valueOf(this.noteDetails)); + sb.append(", adminEmail=").append(String.valueOf(this.adminEmail)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); @@ -546,6 +582,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.noteSource, other.noteSource) && java.util.Objects.equals(this.noteDetails, other.noteDetails) + && java.util.Objects.equals(this.adminEmail, other.adminEmail) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) @@ -568,6 +605,7 @@ public int hashCode() { + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.noteSource == null ? 43 : this.noteSource.hashCode()); result = (result * PRIME) + (this.noteDetails == null ? 43 : this.noteDetails.hashCode()); + result = (result * PRIME) + (this.adminEmail == null ? 43 : this.adminEmail.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/MetricType.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/MetricType.java new file mode 100644 index 00000000000..04eb804982d --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/MetricType.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.marketplacepublisher.model; + +/** Shared metric type values used across listing and listing revision models. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public enum MetricType implements com.oracle.bmc.http.internal.BmcEnum { + OcpuHours("OCPU_HOURS"), + InstanceHours("INSTANCE_HOURS"), + CoreHours("CORE_HOURS"), + Amount("AMOUNT"), + Each("EACH"), + + /** + * 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(MetricType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MetricType v : MetricType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MetricType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MetricType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MetricType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/OciListingRevision.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/OciListingRevision.java index 94da051259e..08f557407a3 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/OciListingRevision.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/OciListingRevision.java @@ -189,6 +189,15 @@ public Builder icon(ListingRevisionIconAttachment icon) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("banner") + private ListingRevisionBannerAttachment banner; + + public Builder banner(ListingRevisionBannerAttachment banner) { + this.banner = banner; + this.__explicitlySet__.add("banner"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("status") private Status status; @@ -315,6 +324,36 @@ public Builder products(java.util.List products) { this.__explicitlySet__.add("products"); return this; } + /** The url provided by partner for the registration of subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("partnerRegistrationUrl") + private String partnerRegistrationUrl; + + /** + * The url provided by partner for the registration of subscription. + * + * @param partnerRegistrationUrl the value to set + * @return this builder + */ + public Builder partnerRegistrationUrl(String partnerRegistrationUrl) { + this.partnerRegistrationUrl = partnerRegistrationUrl; + this.__explicitlySet__.add("partnerRegistrationUrl"); + return this; + } + /** The unique id of the term attached to the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("termId") + private String termId; + + /** + * The unique id of the term attached to the listing. + * + * @param termId the value to set + * @return this builder + */ + public Builder termId(String termId) { + this.termId = termId; + this.__explicitlySet__.add("termId"); + return this; + } /** List of Pricing Plans provided by publisher. */ @com.fasterxml.jackson.annotation.JsonProperty("pricingPlans") private java.util.List pricingPlans; @@ -423,6 +462,36 @@ public Builder isRoverExportable(Boolean isRoverExportable) { this.__explicitlySet__.add("isRoverExportable"); return this; } + /** Url to demo of the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("demoUrl") + private String demoUrl; + + /** + * Url to demo of the listing + * + * @param demoUrl the value to set + * @return this builder + */ + public Builder demoUrl(String demoUrl) { + this.demoUrl = demoUrl; + this.__explicitlySet__.add("demoUrl"); + return this; + } + /** Url to training resources of the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("selfPacedTrainingUrl") + private String selfPacedTrainingUrl; + + /** + * Url to training resources of the listing + * + * @param selfPacedTrainingUrl the value to set + * @return this builder + */ + public Builder selfPacedTrainingUrl(String selfPacedTrainingUrl) { + this.selfPacedTrainingUrl = selfPacedTrainingUrl; + this.__explicitlySet__.add("selfPacedTrainingUrl"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -448,6 +517,7 @@ public OciListingRevision build() { this.supportContacts, this.supportLinks, this.icon, + this.banner, this.status, this.statusNotes, this.lifecycleState, @@ -460,13 +530,17 @@ public OciListingRevision build() { this.systemRequirements, this.pricingType, this.products, + this.partnerRegistrationUrl, + this.termId, this.pricingPlans, this.availabilityAndPricingPolicy, this.allowedTenancies, this.vanityUrl, this.recommendedServiceProviderListingIds, this.areInternalTenancyLaunchAllowed, - this.isRoverExportable); + this.isRoverExportable, + this.demoUrl, + this.selfPacedTrainingUrl); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -529,6 +603,9 @@ public Builder copy(OciListingRevision model) { if (model.wasPropertyExplicitlySet("icon")) { this.icon(model.getIcon()); } + if (model.wasPropertyExplicitlySet("banner")) { + this.banner(model.getBanner()); + } if (model.wasPropertyExplicitlySet("status")) { this.status(model.getStatus()); } @@ -565,6 +642,12 @@ public Builder copy(OciListingRevision model) { if (model.wasPropertyExplicitlySet("products")) { this.products(model.getProducts()); } + if (model.wasPropertyExplicitlySet("partnerRegistrationUrl")) { + this.partnerRegistrationUrl(model.getPartnerRegistrationUrl()); + } + if (model.wasPropertyExplicitlySet("termId")) { + this.termId(model.getTermId()); + } if (model.wasPropertyExplicitlySet("pricingPlans")) { this.pricingPlans(model.getPricingPlans()); } @@ -587,6 +670,12 @@ public Builder copy(OciListingRevision model) { if (model.wasPropertyExplicitlySet("isRoverExportable")) { this.isRoverExportable(model.getIsRoverExportable()); } + if (model.wasPropertyExplicitlySet("demoUrl")) { + this.demoUrl(model.getDemoUrl()); + } + if (model.wasPropertyExplicitlySet("selfPacedTrainingUrl")) { + this.selfPacedTrainingUrl(model.getSelfPacedTrainingUrl()); + } return this; } } @@ -620,6 +709,7 @@ public OciListingRevision( java.util.List supportContacts, java.util.List supportLinks, ListingRevisionIconAttachment icon, + ListingRevisionBannerAttachment banner, Status status, String statusNotes, LifecycleState lifecycleState, @@ -632,13 +722,17 @@ public OciListingRevision( String systemRequirements, PricingType pricingType, java.util.List products, + String partnerRegistrationUrl, + String termId, java.util.List pricingPlans, String availabilityAndPricingPolicy, java.util.List allowedTenancies, String vanityUrl, java.util.List recommendedServiceProviderListingIds, Boolean areInternalTenancyLaunchAllowed, - Boolean isRoverExportable) { + Boolean isRoverExportable, + String demoUrl, + String selfPacedTrainingUrl) { super( id, listingId, @@ -658,6 +752,7 @@ public OciListingRevision( supportContacts, supportLinks, icon, + banner, status, statusNotes, lifecycleState, @@ -670,6 +765,8 @@ public OciListingRevision( this.systemRequirements = systemRequirements; this.pricingType = pricingType; this.products = products; + this.partnerRegistrationUrl = partnerRegistrationUrl; + this.termId = termId; this.pricingPlans = pricingPlans; this.availabilityAndPricingPolicy = availabilityAndPricingPolicy; this.allowedTenancies = allowedTenancies; @@ -677,6 +774,8 @@ public OciListingRevision( this.recommendedServiceProviderListingIds = recommendedServiceProviderListingIds; this.areInternalTenancyLaunchAllowed = areInternalTenancyLaunchAllowed; this.isRoverExportable = isRoverExportable; + this.demoUrl = demoUrl; + this.selfPacedTrainingUrl = selfPacedTrainingUrl; } @com.fasterxml.jackson.annotation.JsonProperty("versionDetails") @@ -772,6 +871,32 @@ public java.util.List getProducts() { return products; } + /** The url provided by partner for the registration of subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("partnerRegistrationUrl") + private final String partnerRegistrationUrl; + + /** + * The url provided by partner for the registration of subscription. + * + * @return the value + */ + public String getPartnerRegistrationUrl() { + return partnerRegistrationUrl; + } + + /** The unique id of the term attached to the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("termId") + private final String termId; + + /** + * The unique id of the term attached to the listing. + * + * @return the value + */ + public String getTermId() { + return termId; + } + /** List of Pricing Plans provided by publisher. */ @com.fasterxml.jackson.annotation.JsonProperty("pricingPlans") private final java.util.List pricingPlans; @@ -863,6 +988,32 @@ public Boolean getIsRoverExportable() { return isRoverExportable; } + /** Url to demo of the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("demoUrl") + private final String demoUrl; + + /** + * Url to demo of the listing + * + * @return the value + */ + public String getDemoUrl() { + return demoUrl; + } + + /** Url to training resources of the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("selfPacedTrainingUrl") + private final String selfPacedTrainingUrl; + + /** + * Url to training resources of the listing + * + * @return the value + */ + public String getSelfPacedTrainingUrl() { + return selfPacedTrainingUrl; + } + @Override public String toString() { return this.toString(true); @@ -882,6 +1033,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", systemRequirements=").append(String.valueOf(this.systemRequirements)); sb.append(", pricingType=").append(String.valueOf(this.pricingType)); sb.append(", products=").append(String.valueOf(this.products)); + sb.append(", partnerRegistrationUrl=").append(String.valueOf(this.partnerRegistrationUrl)); + sb.append(", termId=").append(String.valueOf(this.termId)); sb.append(", pricingPlans=").append(String.valueOf(this.pricingPlans)); sb.append(", availabilityAndPricingPolicy=") .append(String.valueOf(this.availabilityAndPricingPolicy)); @@ -892,6 +1045,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", areInternalTenancyLaunchAllowed=") .append(String.valueOf(this.areInternalTenancyLaunchAllowed)); sb.append(", isRoverExportable=").append(String.valueOf(this.isRoverExportable)); + sb.append(", demoUrl=").append(String.valueOf(this.demoUrl)); + sb.append(", selfPacedTrainingUrl=").append(String.valueOf(this.selfPacedTrainingUrl)); sb.append(")"); return sb.toString(); } @@ -910,6 +1065,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.systemRequirements, other.systemRequirements) && java.util.Objects.equals(this.pricingType, other.pricingType) && java.util.Objects.equals(this.products, other.products) + && java.util.Objects.equals( + this.partnerRegistrationUrl, other.partnerRegistrationUrl) + && java.util.Objects.equals(this.termId, other.termId) && java.util.Objects.equals(this.pricingPlans, other.pricingPlans) && java.util.Objects.equals( this.availabilityAndPricingPolicy, other.availabilityAndPricingPolicy) @@ -921,6 +1079,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.areInternalTenancyLaunchAllowed, other.areInternalTenancyLaunchAllowed) && java.util.Objects.equals(this.isRoverExportable, other.isRoverExportable) + && java.util.Objects.equals(this.demoUrl, other.demoUrl) + && java.util.Objects.equals(this.selfPacedTrainingUrl, other.selfPacedTrainingUrl) && super.equals(other); } @@ -938,6 +1098,12 @@ public int hashCode() { : this.systemRequirements.hashCode()); result = (result * PRIME) + (this.pricingType == null ? 43 : this.pricingType.hashCode()); result = (result * PRIME) + (this.products == null ? 43 : this.products.hashCode()); + result = + (result * PRIME) + + (this.partnerRegistrationUrl == null + ? 43 + : this.partnerRegistrationUrl.hashCode()); + result = (result * PRIME) + (this.termId == null ? 43 : this.termId.hashCode()); result = (result * PRIME) + (this.pricingPlans == null ? 43 : this.pricingPlans.hashCode()); result = (result * PRIME) @@ -961,6 +1127,12 @@ public int hashCode() { result = (result * PRIME) + (this.isRoverExportable == null ? 43 : this.isRoverExportable.hashCode()); + result = (result * PRIME) + (this.demoUrl == null ? 43 : this.demoUrl.hashCode()); + result = + (result * PRIME) + + (this.selfPacedTrainingUrl == null + ? 43 + : this.selfPacedTrainingUrl.hashCode()); return result; } } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/OperationType.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/OperationType.java index 8f04122c13b..6c313272856 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/OperationType.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/OperationType.java @@ -12,6 +12,10 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { DeleteOffer("DELETE_OFFER"), MoveOffer("MOVE_OFFER"), DeleteOfferAttachment("DELETE_OFFER_ATTACHMENT"), + UpdateOfferQuote("UPDATE_OFFER_QUOTE"), + CreateOfferQuote("CREATE_OFFER_QUOTE"), + CreateOfferQuoteAttachment("CREATE_OFFER_QUOTE_ATTACHMENT"), + CreateCustomerInstanceReportExport("CREATE_CUSTOMER_INSTANCE_REPORT_EXPORT"), PublishListingRevisionPackage("PUBLISH_LISTING_REVISION_PACKAGE"), UnpublishListingRevisionPackage("UNPUBLISH_LISTING_REVISION_PACKAGE"), PublishListingRevision("PUBLISH_LISTING_REVISION"), @@ -28,6 +32,8 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { ChangeTermCompartment("CHANGE_TERM_COMPARTMENT"), DeleteArtifact("DELETE_ARTIFACT"), UpdateArtifact("UPDATE_ARTIFACT"), + RealmBuild("REALM_BUILD"), + UpdateListingRevisionMetadata("UPDATE_LISTING_REVISION_METADATA"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/OpnMembership.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/OpnMembership.java index f9deb82f367..048dafe052c 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/OpnMembership.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/OpnMembership.java @@ -31,7 +31,7 @@ public final class OpnMembership extends com.oracle.bmc.http.client.internal.Exp public OpnMembership( java.util.Date timeStart, java.util.Date timeEnd, - OpnStatus opnStatus, + AdminOpnPartnerSummary.MembershipStatus opnStatus, String opnNumber, String opnMembershipType) { super(); @@ -76,7 +76,7 @@ public Builder timeEnd(java.util.Date timeEnd) { } /** OPN status */ @com.fasterxml.jackson.annotation.JsonProperty("opnStatus") - private OpnStatus opnStatus; + private AdminOpnPartnerSummary.MembershipStatus opnStatus; /** * OPN status @@ -84,7 +84,7 @@ public Builder timeEnd(java.util.Date timeEnd) { * @param opnStatus the value to set * @return this builder */ - public Builder opnStatus(OpnStatus opnStatus) { + public Builder opnStatus(AdminOpnPartnerSummary.MembershipStatus opnStatus) { this.opnStatus = opnStatus; this.__explicitlySet__.add("opnStatus"); return this; @@ -193,63 +193,16 @@ public java.util.Date getTimeEnd() { return timeEnd; } - /** OPN status */ - public enum OpnStatus implements com.oracle.bmc.http.internal.BmcEnum { - Active("ACTIVE"), - Inactive("INACTIVE"), - RenewalInProgress("RENEWAL_IN_PROGRESS"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by - * this version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(OpnStatus.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (OpnStatus v : OpnStatus.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - OpnStatus(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static OpnStatus create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'OpnStatus', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; /** OPN status */ @com.fasterxml.jackson.annotation.JsonProperty("opnStatus") - private final OpnStatus opnStatus; + private final AdminOpnPartnerSummary.MembershipStatus opnStatus; /** * OPN status * * @return the value */ - public OpnStatus getOpnStatus() { + public AdminOpnPartnerSummary.MembershipStatus getOpnStatus() { return opnStatus; } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/PartnerPortalOptions.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/PartnerPortalOptions.java new file mode 100644 index 00000000000..4f5b0f33433 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/PartnerPortalOptions.java @@ -0,0 +1,1137 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Partner Portal Options.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PartnerPortalOptions.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PartnerPortalOptions + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "isEnablePublisherAgreementCheckBeforeListingPublish", + "isEnableOpnMembershipStatusCheckBeforeListingPublish", + "isEnableReports", + "isEnablePrivateListing", + "isEnableAutoPublishOnSubmitForLeadGenListings", + "isDisableAutoPublishOnSubmit", + "isEnableAutoApprovalForImageArtifactNewAppListings", + "isEnableAutoApprovalForTerraformArtifactNewAppListings", + "isEnableAutoApprovalForNewPaidAppListings", + "isEnableAutoApprovalForNewLeadGenListings", + "isDisableAutoApprovalForImageArtifactVersionedAppListings", + "isDisableAutoApprovalForTerraformArtifactVersionedAppListings", + "isDisableAutoApprovalForContainerArtifactVersionedAppListings", + "isDisableAutoApprovalForHelmChartVersionedAppListings", + "isEnableAutoApprovalForServiceVersionedListings", + "isEnableAutoApprovalForFusionAiAgentVersionedListings", + "isEnableAutoApprovalForLeadGenVersionedListings", + "isDisableAutoApprovalForSaaSVersionedListings", + "isDisableAutoApprovalForPaidAppVersionedListings" + }) + public PartnerPortalOptions( + Boolean isEnablePublisherAgreementCheckBeforeListingPublish, + Boolean isEnableOpnMembershipStatusCheckBeforeListingPublish, + Boolean isEnableReports, + Boolean isEnablePrivateListing, + Boolean isEnableAutoPublishOnSubmitForLeadGenListings, + Boolean isDisableAutoPublishOnSubmit, + Boolean isEnableAutoApprovalForImageArtifactNewAppListings, + Boolean isEnableAutoApprovalForTerraformArtifactNewAppListings, + Boolean isEnableAutoApprovalForNewPaidAppListings, + Boolean isEnableAutoApprovalForNewLeadGenListings, + Boolean isDisableAutoApprovalForImageArtifactVersionedAppListings, + Boolean isDisableAutoApprovalForTerraformArtifactVersionedAppListings, + Boolean isDisableAutoApprovalForContainerArtifactVersionedAppListings, + Boolean isDisableAutoApprovalForHelmChartVersionedAppListings, + Boolean isEnableAutoApprovalForServiceVersionedListings, + Boolean isEnableAutoApprovalForFusionAiAgentVersionedListings, + Boolean isEnableAutoApprovalForLeadGenVersionedListings, + Boolean isDisableAutoApprovalForSaaSVersionedListings, + Boolean isDisableAutoApprovalForPaidAppVersionedListings) { + super(); + this.isEnablePublisherAgreementCheckBeforeListingPublish = + isEnablePublisherAgreementCheckBeforeListingPublish; + this.isEnableOpnMembershipStatusCheckBeforeListingPublish = + isEnableOpnMembershipStatusCheckBeforeListingPublish; + this.isEnableReports = isEnableReports; + this.isEnablePrivateListing = isEnablePrivateListing; + this.isEnableAutoPublishOnSubmitForLeadGenListings = + isEnableAutoPublishOnSubmitForLeadGenListings; + this.isDisableAutoPublishOnSubmit = isDisableAutoPublishOnSubmit; + this.isEnableAutoApprovalForImageArtifactNewAppListings = + isEnableAutoApprovalForImageArtifactNewAppListings; + this.isEnableAutoApprovalForTerraformArtifactNewAppListings = + isEnableAutoApprovalForTerraformArtifactNewAppListings; + this.isEnableAutoApprovalForNewPaidAppListings = isEnableAutoApprovalForNewPaidAppListings; + this.isEnableAutoApprovalForNewLeadGenListings = isEnableAutoApprovalForNewLeadGenListings; + this.isDisableAutoApprovalForImageArtifactVersionedAppListings = + isDisableAutoApprovalForImageArtifactVersionedAppListings; + this.isDisableAutoApprovalForTerraformArtifactVersionedAppListings = + isDisableAutoApprovalForTerraformArtifactVersionedAppListings; + this.isDisableAutoApprovalForContainerArtifactVersionedAppListings = + isDisableAutoApprovalForContainerArtifactVersionedAppListings; + this.isDisableAutoApprovalForHelmChartVersionedAppListings = + isDisableAutoApprovalForHelmChartVersionedAppListings; + this.isEnableAutoApprovalForServiceVersionedListings = + isEnableAutoApprovalForServiceVersionedListings; + this.isEnableAutoApprovalForFusionAiAgentVersionedListings = + isEnableAutoApprovalForFusionAiAgentVersionedListings; + this.isEnableAutoApprovalForLeadGenVersionedListings = + isEnableAutoApprovalForLeadGenVersionedListings; + this.isDisableAutoApprovalForSaaSVersionedListings = + isDisableAutoApprovalForSaaSVersionedListings; + this.isDisableAutoApprovalForPaidAppVersionedListings = + isDisableAutoApprovalForPaidAppVersionedListings; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Enable Oracle Cloud Marketplace Publisher Agreement validity check for partner before + * listing is published. + */ + @com.fasterxml.jackson.annotation.JsonProperty( + "isEnablePublisherAgreementCheckBeforeListingPublish") + private Boolean isEnablePublisherAgreementCheckBeforeListingPublish; + + /** + * Enable Oracle Cloud Marketplace Publisher Agreement validity check for partner before + * listing is published. + * + * @param isEnablePublisherAgreementCheckBeforeListingPublish the value to set + * @return this builder + */ + public Builder isEnablePublisherAgreementCheckBeforeListingPublish( + Boolean isEnablePublisherAgreementCheckBeforeListingPublish) { + this.isEnablePublisherAgreementCheckBeforeListingPublish = + isEnablePublisherAgreementCheckBeforeListingPublish; + this.__explicitlySet__.add("isEnablePublisherAgreementCheckBeforeListingPublish"); + return this; + } + /** Enable OPN membership status check for partner before listing is published. */ + @com.fasterxml.jackson.annotation.JsonProperty( + "isEnableOpnMembershipStatusCheckBeforeListingPublish") + private Boolean isEnableOpnMembershipStatusCheckBeforeListingPublish; + + /** + * Enable OPN membership status check for partner before listing is published. + * + * @param isEnableOpnMembershipStatusCheckBeforeListingPublish the value to set + * @return this builder + */ + public Builder isEnableOpnMembershipStatusCheckBeforeListingPublish( + Boolean isEnableOpnMembershipStatusCheckBeforeListingPublish) { + this.isEnableOpnMembershipStatusCheckBeforeListingPublish = + isEnableOpnMembershipStatusCheckBeforeListingPublish; + this.__explicitlySet__.add("isEnableOpnMembershipStatusCheckBeforeListingPublish"); + return this; + } + /** Enable the Reports feature for this Partner. */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnableReports") + private Boolean isEnableReports; + + /** + * Enable the Reports feature for this Partner. + * + * @param isEnableReports the value to set + * @return this builder + */ + public Builder isEnableReports(Boolean isEnableReports) { + this.isEnableReports = isEnableReports; + this.__explicitlySet__.add("isEnableReports"); + return this; + } + /** Enable the private listing feature for this Partner. */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnablePrivateListing") + private Boolean isEnablePrivateListing; + + /** + * Enable the private listing feature for this Partner. + * + * @param isEnablePrivateListing the value to set + * @return this builder + */ + public Builder isEnablePrivateListing(Boolean isEnablePrivateListing) { + this.isEnablePrivateListing = isEnablePrivateListing; + this.__explicitlySet__.add("isEnablePrivateListing"); + return this; + } + /** Enable Auto-publish on listing submit for this partner for Lead generation listings. */ + @com.fasterxml.jackson.annotation.JsonProperty( + "isEnableAutoPublishOnSubmitForLeadGenListings") + private Boolean isEnableAutoPublishOnSubmitForLeadGenListings; + + /** + * Enable Auto-publish on listing submit for this partner for Lead generation listings. + * + * @param isEnableAutoPublishOnSubmitForLeadGenListings the value to set + * @return this builder + */ + public Builder isEnableAutoPublishOnSubmitForLeadGenListings( + Boolean isEnableAutoPublishOnSubmitForLeadGenListings) { + this.isEnableAutoPublishOnSubmitForLeadGenListings = + isEnableAutoPublishOnSubmitForLeadGenListings; + this.__explicitlySet__.add("isEnableAutoPublishOnSubmitForLeadGenListings"); + return this; + } + /** + * Disable Auto-publish option visibility for listing submit flow. Defaults to false when + * unset. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isDisableAutoPublishOnSubmit") + private Boolean isDisableAutoPublishOnSubmit; + + /** + * Disable Auto-publish option visibility for listing submit flow. Defaults to false when + * unset. + * + * @param isDisableAutoPublishOnSubmit the value to set + * @return this builder + */ + public Builder isDisableAutoPublishOnSubmit(Boolean isDisableAutoPublishOnSubmit) { + this.isDisableAutoPublishOnSubmit = isDisableAutoPublishOnSubmit; + this.__explicitlySet__.add("isDisableAutoPublishOnSubmit"); + return this; + } + /** + * Enable Auto approval options for new listings - Include OCI Application listings with + * Image artifact. + */ + @com.fasterxml.jackson.annotation.JsonProperty( + "isEnableAutoApprovalForImageArtifactNewAppListings") + private Boolean isEnableAutoApprovalForImageArtifactNewAppListings; + + /** + * Enable Auto approval options for new listings - Include OCI Application listings with + * Image artifact. + * + * @param isEnableAutoApprovalForImageArtifactNewAppListings the value to set + * @return this builder + */ + public Builder isEnableAutoApprovalForImageArtifactNewAppListings( + Boolean isEnableAutoApprovalForImageArtifactNewAppListings) { + this.isEnableAutoApprovalForImageArtifactNewAppListings = + isEnableAutoApprovalForImageArtifactNewAppListings; + this.__explicitlySet__.add("isEnableAutoApprovalForImageArtifactNewAppListings"); + return this; + } + /** + * Enable Auto approval options for new listings - Include OCI Application listings with + * Terraform artifact. + */ + @com.fasterxml.jackson.annotation.JsonProperty( + "isEnableAutoApprovalForTerraformArtifactNewAppListings") + private Boolean isEnableAutoApprovalForTerraformArtifactNewAppListings; + + /** + * Enable Auto approval options for new listings - Include OCI Application listings with + * Terraform artifact. + * + * @param isEnableAutoApprovalForTerraformArtifactNewAppListings the value to set + * @return this builder + */ + public Builder isEnableAutoApprovalForTerraformArtifactNewAppListings( + Boolean isEnableAutoApprovalForTerraformArtifactNewAppListings) { + this.isEnableAutoApprovalForTerraformArtifactNewAppListings = + isEnableAutoApprovalForTerraformArtifactNewAppListings; + this.__explicitlySet__.add("isEnableAutoApprovalForTerraformArtifactNewAppListings"); + return this; + } + /** + * Enable Auto approval options for new listings - Include OCI Paid Application listings. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnableAutoApprovalForNewPaidAppListings") + private Boolean isEnableAutoApprovalForNewPaidAppListings; + + /** + * Enable Auto approval options for new listings - Include OCI Paid Application listings. + * + * @param isEnableAutoApprovalForNewPaidAppListings the value to set + * @return this builder + */ + public Builder isEnableAutoApprovalForNewPaidAppListings( + Boolean isEnableAutoApprovalForNewPaidAppListings) { + this.isEnableAutoApprovalForNewPaidAppListings = + isEnableAutoApprovalForNewPaidAppListings; + this.__explicitlySet__.add("isEnableAutoApprovalForNewPaidAppListings"); + return this; + } + /** Enable Auto approval options for new listings - Include Lead generation listings. */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnableAutoApprovalForNewLeadGenListings") + private Boolean isEnableAutoApprovalForNewLeadGenListings; + + /** + * Enable Auto approval options for new listings - Include Lead generation listings. + * + * @param isEnableAutoApprovalForNewLeadGenListings the value to set + * @return this builder + */ + public Builder isEnableAutoApprovalForNewLeadGenListings( + Boolean isEnableAutoApprovalForNewLeadGenListings) { + this.isEnableAutoApprovalForNewLeadGenListings = + isEnableAutoApprovalForNewLeadGenListings; + this.__explicitlySet__.add("isEnableAutoApprovalForNewLeadGenListings"); + return this; + } + /** + * Disable Auto approval options for versioned listings - Include OCI Application listings + * with Image artifact. + */ + @com.fasterxml.jackson.annotation.JsonProperty( + "isDisableAutoApprovalForImageArtifactVersionedAppListings") + private Boolean isDisableAutoApprovalForImageArtifactVersionedAppListings; + + /** + * Disable Auto approval options for versioned listings - Include OCI Application listings + * with Image artifact. + * + * @param isDisableAutoApprovalForImageArtifactVersionedAppListings the value to set + * @return this builder + */ + public Builder isDisableAutoApprovalForImageArtifactVersionedAppListings( + Boolean isDisableAutoApprovalForImageArtifactVersionedAppListings) { + this.isDisableAutoApprovalForImageArtifactVersionedAppListings = + isDisableAutoApprovalForImageArtifactVersionedAppListings; + this.__explicitlySet__.add("isDisableAutoApprovalForImageArtifactVersionedAppListings"); + return this; + } + /** + * Disable Auto approval options for versioned listings - Include OCI Application listings + * with Terraform artifact. + */ + @com.fasterxml.jackson.annotation.JsonProperty( + "isDisableAutoApprovalForTerraformArtifactVersionedAppListings") + private Boolean isDisableAutoApprovalForTerraformArtifactVersionedAppListings; + + /** + * Disable Auto approval options for versioned listings - Include OCI Application listings + * with Terraform artifact. + * + * @param isDisableAutoApprovalForTerraformArtifactVersionedAppListings the value to set + * @return this builder + */ + public Builder isDisableAutoApprovalForTerraformArtifactVersionedAppListings( + Boolean isDisableAutoApprovalForTerraformArtifactVersionedAppListings) { + this.isDisableAutoApprovalForTerraformArtifactVersionedAppListings = + isDisableAutoApprovalForTerraformArtifactVersionedAppListings; + this.__explicitlySet__.add( + "isDisableAutoApprovalForTerraformArtifactVersionedAppListings"); + return this; + } + /** + * Disable Auto approval options for versioned listings - Include OCI Application listings + * with Container artifact. + */ + @com.fasterxml.jackson.annotation.JsonProperty( + "isDisableAutoApprovalForContainerArtifactVersionedAppListings") + private Boolean isDisableAutoApprovalForContainerArtifactVersionedAppListings; + + /** + * Disable Auto approval options for versioned listings - Include OCI Application listings + * with Container artifact. + * + * @param isDisableAutoApprovalForContainerArtifactVersionedAppListings the value to set + * @return this builder + */ + public Builder isDisableAutoApprovalForContainerArtifactVersionedAppListings( + Boolean isDisableAutoApprovalForContainerArtifactVersionedAppListings) { + this.isDisableAutoApprovalForContainerArtifactVersionedAppListings = + isDisableAutoApprovalForContainerArtifactVersionedAppListings; + this.__explicitlySet__.add( + "isDisableAutoApprovalForContainerArtifactVersionedAppListings"); + return this; + } + /** + * Disable Auto approval options for versioned listings - Include OCI Application listings + * with Helm chart artifact. + */ + @com.fasterxml.jackson.annotation.JsonProperty( + "isDisableAutoApprovalForHelmChartVersionedAppListings") + private Boolean isDisableAutoApprovalForHelmChartVersionedAppListings; + + /** + * Disable Auto approval options for versioned listings - Include OCI Application listings + * with Helm chart artifact. + * + * @param isDisableAutoApprovalForHelmChartVersionedAppListings the value to set + * @return this builder + */ + public Builder isDisableAutoApprovalForHelmChartVersionedAppListings( + Boolean isDisableAutoApprovalForHelmChartVersionedAppListings) { + this.isDisableAutoApprovalForHelmChartVersionedAppListings = + isDisableAutoApprovalForHelmChartVersionedAppListings; + this.__explicitlySet__.add("isDisableAutoApprovalForHelmChartVersionedAppListings"); + return this; + } + /** Enable Auto approval options for versioned listings - Include Service listings. */ + @com.fasterxml.jackson.annotation.JsonProperty( + "isEnableAutoApprovalForServiceVersionedListings") + private Boolean isEnableAutoApprovalForServiceVersionedListings; + + /** + * Enable Auto approval options for versioned listings - Include Service listings. + * + * @param isEnableAutoApprovalForServiceVersionedListings the value to set + * @return this builder + */ + public Builder isEnableAutoApprovalForServiceVersionedListings( + Boolean isEnableAutoApprovalForServiceVersionedListings) { + this.isEnableAutoApprovalForServiceVersionedListings = + isEnableAutoApprovalForServiceVersionedListings; + this.__explicitlySet__.add("isEnableAutoApprovalForServiceVersionedListings"); + return this; + } + /** + * Enable Auto approval options for versioned listings - Include Fusion AiAgent listings. + */ + @com.fasterxml.jackson.annotation.JsonProperty( + "isEnableAutoApprovalForFusionAiAgentVersionedListings") + private Boolean isEnableAutoApprovalForFusionAiAgentVersionedListings; + + /** + * Enable Auto approval options for versioned listings - Include Fusion AiAgent listings. + * + * @param isEnableAutoApprovalForFusionAiAgentVersionedListings the value to set + * @return this builder + */ + public Builder isEnableAutoApprovalForFusionAiAgentVersionedListings( + Boolean isEnableAutoApprovalForFusionAiAgentVersionedListings) { + this.isEnableAutoApprovalForFusionAiAgentVersionedListings = + isEnableAutoApprovalForFusionAiAgentVersionedListings; + this.__explicitlySet__.add("isEnableAutoApprovalForFusionAiAgentVersionedListings"); + return this; + } + /** + * Enable Auto approval options for versioned listings - Include Lead generation listings. + */ + @com.fasterxml.jackson.annotation.JsonProperty( + "isEnableAutoApprovalForLeadGenVersionedListings") + private Boolean isEnableAutoApprovalForLeadGenVersionedListings; + + /** + * Enable Auto approval options for versioned listings - Include Lead generation listings. + * + * @param isEnableAutoApprovalForLeadGenVersionedListings the value to set + * @return this builder + */ + public Builder isEnableAutoApprovalForLeadGenVersionedListings( + Boolean isEnableAutoApprovalForLeadGenVersionedListings) { + this.isEnableAutoApprovalForLeadGenVersionedListings = + isEnableAutoApprovalForLeadGenVersionedListings; + this.__explicitlySet__.add("isEnableAutoApprovalForLeadGenVersionedListings"); + return this; + } + /** Disable Auto approval options for versioned listings - Include SaaS listings. */ + @com.fasterxml.jackson.annotation.JsonProperty( + "isDisableAutoApprovalForSaaSVersionedListings") + private Boolean isDisableAutoApprovalForSaaSVersionedListings; + + /** + * Disable Auto approval options for versioned listings - Include SaaS listings. + * + * @param isDisableAutoApprovalForSaaSVersionedListings the value to set + * @return this builder + */ + public Builder isDisableAutoApprovalForSaaSVersionedListings( + Boolean isDisableAutoApprovalForSaaSVersionedListings) { + this.isDisableAutoApprovalForSaaSVersionedListings = + isDisableAutoApprovalForSaaSVersionedListings; + this.__explicitlySet__.add("isDisableAutoApprovalForSaaSVersionedListings"); + return this; + } + /** Disable Auto approval options for versioned listings - Include Paid App listings. */ + @com.fasterxml.jackson.annotation.JsonProperty( + "isDisableAutoApprovalForPaidAppVersionedListings") + private Boolean isDisableAutoApprovalForPaidAppVersionedListings; + + /** + * Disable Auto approval options for versioned listings - Include Paid App listings. + * + * @param isDisableAutoApprovalForPaidAppVersionedListings the value to set + * @return this builder + */ + public Builder isDisableAutoApprovalForPaidAppVersionedListings( + Boolean isDisableAutoApprovalForPaidAppVersionedListings) { + this.isDisableAutoApprovalForPaidAppVersionedListings = + isDisableAutoApprovalForPaidAppVersionedListings; + this.__explicitlySet__.add("isDisableAutoApprovalForPaidAppVersionedListings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PartnerPortalOptions build() { + PartnerPortalOptions model = + new PartnerPortalOptions( + this.isEnablePublisherAgreementCheckBeforeListingPublish, + this.isEnableOpnMembershipStatusCheckBeforeListingPublish, + this.isEnableReports, + this.isEnablePrivateListing, + this.isEnableAutoPublishOnSubmitForLeadGenListings, + this.isDisableAutoPublishOnSubmit, + this.isEnableAutoApprovalForImageArtifactNewAppListings, + this.isEnableAutoApprovalForTerraformArtifactNewAppListings, + this.isEnableAutoApprovalForNewPaidAppListings, + this.isEnableAutoApprovalForNewLeadGenListings, + this.isDisableAutoApprovalForImageArtifactVersionedAppListings, + this.isDisableAutoApprovalForTerraformArtifactVersionedAppListings, + this.isDisableAutoApprovalForContainerArtifactVersionedAppListings, + this.isDisableAutoApprovalForHelmChartVersionedAppListings, + this.isEnableAutoApprovalForServiceVersionedListings, + this.isEnableAutoApprovalForFusionAiAgentVersionedListings, + this.isEnableAutoApprovalForLeadGenVersionedListings, + this.isDisableAutoApprovalForSaaSVersionedListings, + this.isDisableAutoApprovalForPaidAppVersionedListings); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PartnerPortalOptions model) { + if (model.wasPropertyExplicitlySet( + "isEnablePublisherAgreementCheckBeforeListingPublish")) { + this.isEnablePublisherAgreementCheckBeforeListingPublish( + model.getIsEnablePublisherAgreementCheckBeforeListingPublish()); + } + if (model.wasPropertyExplicitlySet( + "isEnableOpnMembershipStatusCheckBeforeListingPublish")) { + this.isEnableOpnMembershipStatusCheckBeforeListingPublish( + model.getIsEnableOpnMembershipStatusCheckBeforeListingPublish()); + } + if (model.wasPropertyExplicitlySet("isEnableReports")) { + this.isEnableReports(model.getIsEnableReports()); + } + if (model.wasPropertyExplicitlySet("isEnablePrivateListing")) { + this.isEnablePrivateListing(model.getIsEnablePrivateListing()); + } + if (model.wasPropertyExplicitlySet("isEnableAutoPublishOnSubmitForLeadGenListings")) { + this.isEnableAutoPublishOnSubmitForLeadGenListings( + model.getIsEnableAutoPublishOnSubmitForLeadGenListings()); + } + if (model.wasPropertyExplicitlySet("isDisableAutoPublishOnSubmit")) { + this.isDisableAutoPublishOnSubmit(model.getIsDisableAutoPublishOnSubmit()); + } + if (model.wasPropertyExplicitlySet( + "isEnableAutoApprovalForImageArtifactNewAppListings")) { + this.isEnableAutoApprovalForImageArtifactNewAppListings( + model.getIsEnableAutoApprovalForImageArtifactNewAppListings()); + } + if (model.wasPropertyExplicitlySet( + "isEnableAutoApprovalForTerraformArtifactNewAppListings")) { + this.isEnableAutoApprovalForTerraformArtifactNewAppListings( + model.getIsEnableAutoApprovalForTerraformArtifactNewAppListings()); + } + if (model.wasPropertyExplicitlySet("isEnableAutoApprovalForNewPaidAppListings")) { + this.isEnableAutoApprovalForNewPaidAppListings( + model.getIsEnableAutoApprovalForNewPaidAppListings()); + } + if (model.wasPropertyExplicitlySet("isEnableAutoApprovalForNewLeadGenListings")) { + this.isEnableAutoApprovalForNewLeadGenListings( + model.getIsEnableAutoApprovalForNewLeadGenListings()); + } + if (model.wasPropertyExplicitlySet( + "isDisableAutoApprovalForImageArtifactVersionedAppListings")) { + this.isDisableAutoApprovalForImageArtifactVersionedAppListings( + model.getIsDisableAutoApprovalForImageArtifactVersionedAppListings()); + } + if (model.wasPropertyExplicitlySet( + "isDisableAutoApprovalForTerraformArtifactVersionedAppListings")) { + this.isDisableAutoApprovalForTerraformArtifactVersionedAppListings( + model.getIsDisableAutoApprovalForTerraformArtifactVersionedAppListings()); + } + if (model.wasPropertyExplicitlySet( + "isDisableAutoApprovalForContainerArtifactVersionedAppListings")) { + this.isDisableAutoApprovalForContainerArtifactVersionedAppListings( + model.getIsDisableAutoApprovalForContainerArtifactVersionedAppListings()); + } + if (model.wasPropertyExplicitlySet( + "isDisableAutoApprovalForHelmChartVersionedAppListings")) { + this.isDisableAutoApprovalForHelmChartVersionedAppListings( + model.getIsDisableAutoApprovalForHelmChartVersionedAppListings()); + } + if (model.wasPropertyExplicitlySet("isEnableAutoApprovalForServiceVersionedListings")) { + this.isEnableAutoApprovalForServiceVersionedListings( + model.getIsEnableAutoApprovalForServiceVersionedListings()); + } + if (model.wasPropertyExplicitlySet( + "isEnableAutoApprovalForFusionAiAgentVersionedListings")) { + this.isEnableAutoApprovalForFusionAiAgentVersionedListings( + model.getIsEnableAutoApprovalForFusionAiAgentVersionedListings()); + } + if (model.wasPropertyExplicitlySet("isEnableAutoApprovalForLeadGenVersionedListings")) { + this.isEnableAutoApprovalForLeadGenVersionedListings( + model.getIsEnableAutoApprovalForLeadGenVersionedListings()); + } + if (model.wasPropertyExplicitlySet("isDisableAutoApprovalForSaaSVersionedListings")) { + this.isDisableAutoApprovalForSaaSVersionedListings( + model.getIsDisableAutoApprovalForSaaSVersionedListings()); + } + if (model.wasPropertyExplicitlySet( + "isDisableAutoApprovalForPaidAppVersionedListings")) { + this.isDisableAutoApprovalForPaidAppVersionedListings( + model.getIsDisableAutoApprovalForPaidAppVersionedListings()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Enable Oracle Cloud Marketplace Publisher Agreement validity check for partner before listing + * is published. + */ + @com.fasterxml.jackson.annotation.JsonProperty( + "isEnablePublisherAgreementCheckBeforeListingPublish") + private final Boolean isEnablePublisherAgreementCheckBeforeListingPublish; + + /** + * Enable Oracle Cloud Marketplace Publisher Agreement validity check for partner before listing + * is published. + * + * @return the value + */ + public Boolean getIsEnablePublisherAgreementCheckBeforeListingPublish() { + return isEnablePublisherAgreementCheckBeforeListingPublish; + } + + /** Enable OPN membership status check for partner before listing is published. */ + @com.fasterxml.jackson.annotation.JsonProperty( + "isEnableOpnMembershipStatusCheckBeforeListingPublish") + private final Boolean isEnableOpnMembershipStatusCheckBeforeListingPublish; + + /** + * Enable OPN membership status check for partner before listing is published. + * + * @return the value + */ + public Boolean getIsEnableOpnMembershipStatusCheckBeforeListingPublish() { + return isEnableOpnMembershipStatusCheckBeforeListingPublish; + } + + /** Enable the Reports feature for this Partner. */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnableReports") + private final Boolean isEnableReports; + + /** + * Enable the Reports feature for this Partner. + * + * @return the value + */ + public Boolean getIsEnableReports() { + return isEnableReports; + } + + /** Enable the private listing feature for this Partner. */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnablePrivateListing") + private final Boolean isEnablePrivateListing; + + /** + * Enable the private listing feature for this Partner. + * + * @return the value + */ + public Boolean getIsEnablePrivateListing() { + return isEnablePrivateListing; + } + + /** Enable Auto-publish on listing submit for this partner for Lead generation listings. */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnableAutoPublishOnSubmitForLeadGenListings") + private final Boolean isEnableAutoPublishOnSubmitForLeadGenListings; + + /** + * Enable Auto-publish on listing submit for this partner for Lead generation listings. + * + * @return the value + */ + public Boolean getIsEnableAutoPublishOnSubmitForLeadGenListings() { + return isEnableAutoPublishOnSubmitForLeadGenListings; + } + + /** + * Disable Auto-publish option visibility for listing submit flow. Defaults to false when unset. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isDisableAutoPublishOnSubmit") + private final Boolean isDisableAutoPublishOnSubmit; + + /** + * Disable Auto-publish option visibility for listing submit flow. Defaults to false when unset. + * + * @return the value + */ + public Boolean getIsDisableAutoPublishOnSubmit() { + return isDisableAutoPublishOnSubmit; + } + + /** + * Enable Auto approval options for new listings - Include OCI Application listings with Image + * artifact. + */ + @com.fasterxml.jackson.annotation.JsonProperty( + "isEnableAutoApprovalForImageArtifactNewAppListings") + private final Boolean isEnableAutoApprovalForImageArtifactNewAppListings; + + /** + * Enable Auto approval options for new listings - Include OCI Application listings with Image + * artifact. + * + * @return the value + */ + public Boolean getIsEnableAutoApprovalForImageArtifactNewAppListings() { + return isEnableAutoApprovalForImageArtifactNewAppListings; + } + + /** + * Enable Auto approval options for new listings - Include OCI Application listings with + * Terraform artifact. + */ + @com.fasterxml.jackson.annotation.JsonProperty( + "isEnableAutoApprovalForTerraformArtifactNewAppListings") + private final Boolean isEnableAutoApprovalForTerraformArtifactNewAppListings; + + /** + * Enable Auto approval options for new listings - Include OCI Application listings with + * Terraform artifact. + * + * @return the value + */ + public Boolean getIsEnableAutoApprovalForTerraformArtifactNewAppListings() { + return isEnableAutoApprovalForTerraformArtifactNewAppListings; + } + + /** Enable Auto approval options for new listings - Include OCI Paid Application listings. */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnableAutoApprovalForNewPaidAppListings") + private final Boolean isEnableAutoApprovalForNewPaidAppListings; + + /** + * Enable Auto approval options for new listings - Include OCI Paid Application listings. + * + * @return the value + */ + public Boolean getIsEnableAutoApprovalForNewPaidAppListings() { + return isEnableAutoApprovalForNewPaidAppListings; + } + + /** Enable Auto approval options for new listings - Include Lead generation listings. */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnableAutoApprovalForNewLeadGenListings") + private final Boolean isEnableAutoApprovalForNewLeadGenListings; + + /** + * Enable Auto approval options for new listings - Include Lead generation listings. + * + * @return the value + */ + public Boolean getIsEnableAutoApprovalForNewLeadGenListings() { + return isEnableAutoApprovalForNewLeadGenListings; + } + + /** + * Disable Auto approval options for versioned listings - Include OCI Application listings with + * Image artifact. + */ + @com.fasterxml.jackson.annotation.JsonProperty( + "isDisableAutoApprovalForImageArtifactVersionedAppListings") + private final Boolean isDisableAutoApprovalForImageArtifactVersionedAppListings; + + /** + * Disable Auto approval options for versioned listings - Include OCI Application listings with + * Image artifact. + * + * @return the value + */ + public Boolean getIsDisableAutoApprovalForImageArtifactVersionedAppListings() { + return isDisableAutoApprovalForImageArtifactVersionedAppListings; + } + + /** + * Disable Auto approval options for versioned listings - Include OCI Application listings with + * Terraform artifact. + */ + @com.fasterxml.jackson.annotation.JsonProperty( + "isDisableAutoApprovalForTerraformArtifactVersionedAppListings") + private final Boolean isDisableAutoApprovalForTerraformArtifactVersionedAppListings; + + /** + * Disable Auto approval options for versioned listings - Include OCI Application listings with + * Terraform artifact. + * + * @return the value + */ + public Boolean getIsDisableAutoApprovalForTerraformArtifactVersionedAppListings() { + return isDisableAutoApprovalForTerraformArtifactVersionedAppListings; + } + + /** + * Disable Auto approval options for versioned listings - Include OCI Application listings with + * Container artifact. + */ + @com.fasterxml.jackson.annotation.JsonProperty( + "isDisableAutoApprovalForContainerArtifactVersionedAppListings") + private final Boolean isDisableAutoApprovalForContainerArtifactVersionedAppListings; + + /** + * Disable Auto approval options for versioned listings - Include OCI Application listings with + * Container artifact. + * + * @return the value + */ + public Boolean getIsDisableAutoApprovalForContainerArtifactVersionedAppListings() { + return isDisableAutoApprovalForContainerArtifactVersionedAppListings; + } + + /** + * Disable Auto approval options for versioned listings - Include OCI Application listings with + * Helm chart artifact. + */ + @com.fasterxml.jackson.annotation.JsonProperty( + "isDisableAutoApprovalForHelmChartVersionedAppListings") + private final Boolean isDisableAutoApprovalForHelmChartVersionedAppListings; + + /** + * Disable Auto approval options for versioned listings - Include OCI Application listings with + * Helm chart artifact. + * + * @return the value + */ + public Boolean getIsDisableAutoApprovalForHelmChartVersionedAppListings() { + return isDisableAutoApprovalForHelmChartVersionedAppListings; + } + + /** Enable Auto approval options for versioned listings - Include Service listings. */ + @com.fasterxml.jackson.annotation.JsonProperty( + "isEnableAutoApprovalForServiceVersionedListings") + private final Boolean isEnableAutoApprovalForServiceVersionedListings; + + /** + * Enable Auto approval options for versioned listings - Include Service listings. + * + * @return the value + */ + public Boolean getIsEnableAutoApprovalForServiceVersionedListings() { + return isEnableAutoApprovalForServiceVersionedListings; + } + + /** Enable Auto approval options for versioned listings - Include Fusion AiAgent listings. */ + @com.fasterxml.jackson.annotation.JsonProperty( + "isEnableAutoApprovalForFusionAiAgentVersionedListings") + private final Boolean isEnableAutoApprovalForFusionAiAgentVersionedListings; + + /** + * Enable Auto approval options for versioned listings - Include Fusion AiAgent listings. + * + * @return the value + */ + public Boolean getIsEnableAutoApprovalForFusionAiAgentVersionedListings() { + return isEnableAutoApprovalForFusionAiAgentVersionedListings; + } + + /** Enable Auto approval options for versioned listings - Include Lead generation listings. */ + @com.fasterxml.jackson.annotation.JsonProperty( + "isEnableAutoApprovalForLeadGenVersionedListings") + private final Boolean isEnableAutoApprovalForLeadGenVersionedListings; + + /** + * Enable Auto approval options for versioned listings - Include Lead generation listings. + * + * @return the value + */ + public Boolean getIsEnableAutoApprovalForLeadGenVersionedListings() { + return isEnableAutoApprovalForLeadGenVersionedListings; + } + + /** Disable Auto approval options for versioned listings - Include SaaS listings. */ + @com.fasterxml.jackson.annotation.JsonProperty("isDisableAutoApprovalForSaaSVersionedListings") + private final Boolean isDisableAutoApprovalForSaaSVersionedListings; + + /** + * Disable Auto approval options for versioned listings - Include SaaS listings. + * + * @return the value + */ + public Boolean getIsDisableAutoApprovalForSaaSVersionedListings() { + return isDisableAutoApprovalForSaaSVersionedListings; + } + + /** Disable Auto approval options for versioned listings - Include Paid App listings. */ + @com.fasterxml.jackson.annotation.JsonProperty( + "isDisableAutoApprovalForPaidAppVersionedListings") + private final Boolean isDisableAutoApprovalForPaidAppVersionedListings; + + /** + * Disable Auto approval options for versioned listings - Include Paid App listings. + * + * @return the value + */ + public Boolean getIsDisableAutoApprovalForPaidAppVersionedListings() { + return isDisableAutoApprovalForPaidAppVersionedListings; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PartnerPortalOptions("); + sb.append("super=").append(super.toString()); + sb.append("isEnablePublisherAgreementCheckBeforeListingPublish=") + .append(String.valueOf(this.isEnablePublisherAgreementCheckBeforeListingPublish)); + sb.append(", isEnableOpnMembershipStatusCheckBeforeListingPublish=") + .append(String.valueOf(this.isEnableOpnMembershipStatusCheckBeforeListingPublish)); + sb.append(", isEnableReports=").append(String.valueOf(this.isEnableReports)); + sb.append(", isEnablePrivateListing=").append(String.valueOf(this.isEnablePrivateListing)); + sb.append(", isEnableAutoPublishOnSubmitForLeadGenListings=") + .append(String.valueOf(this.isEnableAutoPublishOnSubmitForLeadGenListings)); + sb.append(", isDisableAutoPublishOnSubmit=") + .append(String.valueOf(this.isDisableAutoPublishOnSubmit)); + sb.append(", isEnableAutoApprovalForImageArtifactNewAppListings=") + .append(String.valueOf(this.isEnableAutoApprovalForImageArtifactNewAppListings)); + sb.append(", isEnableAutoApprovalForTerraformArtifactNewAppListings=") + .append( + String.valueOf( + this.isEnableAutoApprovalForTerraformArtifactNewAppListings)); + sb.append(", isEnableAutoApprovalForNewPaidAppListings=") + .append(String.valueOf(this.isEnableAutoApprovalForNewPaidAppListings)); + sb.append(", isEnableAutoApprovalForNewLeadGenListings=") + .append(String.valueOf(this.isEnableAutoApprovalForNewLeadGenListings)); + sb.append(", isDisableAutoApprovalForImageArtifactVersionedAppListings=") + .append( + String.valueOf( + this.isDisableAutoApprovalForImageArtifactVersionedAppListings)); + sb.append(", isDisableAutoApprovalForTerraformArtifactVersionedAppListings=") + .append( + String.valueOf( + this + .isDisableAutoApprovalForTerraformArtifactVersionedAppListings)); + sb.append(", isDisableAutoApprovalForContainerArtifactVersionedAppListings=") + .append( + String.valueOf( + this + .isDisableAutoApprovalForContainerArtifactVersionedAppListings)); + sb.append(", isDisableAutoApprovalForHelmChartVersionedAppListings=") + .append(String.valueOf(this.isDisableAutoApprovalForHelmChartVersionedAppListings)); + sb.append(", isEnableAutoApprovalForServiceVersionedListings=") + .append(String.valueOf(this.isEnableAutoApprovalForServiceVersionedListings)); + sb.append(", isEnableAutoApprovalForFusionAiAgentVersionedListings=") + .append(String.valueOf(this.isEnableAutoApprovalForFusionAiAgentVersionedListings)); + sb.append(", isEnableAutoApprovalForLeadGenVersionedListings=") + .append(String.valueOf(this.isEnableAutoApprovalForLeadGenVersionedListings)); + sb.append(", isDisableAutoApprovalForSaaSVersionedListings=") + .append(String.valueOf(this.isDisableAutoApprovalForSaaSVersionedListings)); + sb.append(", isDisableAutoApprovalForPaidAppVersionedListings=") + .append(String.valueOf(this.isDisableAutoApprovalForPaidAppVersionedListings)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PartnerPortalOptions)) { + return false; + } + + PartnerPortalOptions other = (PartnerPortalOptions) o; + return java.util.Objects.equals( + this.isEnablePublisherAgreementCheckBeforeListingPublish, + other.isEnablePublisherAgreementCheckBeforeListingPublish) + && java.util.Objects.equals( + this.isEnableOpnMembershipStatusCheckBeforeListingPublish, + other.isEnableOpnMembershipStatusCheckBeforeListingPublish) + && java.util.Objects.equals(this.isEnableReports, other.isEnableReports) + && java.util.Objects.equals( + this.isEnablePrivateListing, other.isEnablePrivateListing) + && java.util.Objects.equals( + this.isEnableAutoPublishOnSubmitForLeadGenListings, + other.isEnableAutoPublishOnSubmitForLeadGenListings) + && java.util.Objects.equals( + this.isDisableAutoPublishOnSubmit, other.isDisableAutoPublishOnSubmit) + && java.util.Objects.equals( + this.isEnableAutoApprovalForImageArtifactNewAppListings, + other.isEnableAutoApprovalForImageArtifactNewAppListings) + && java.util.Objects.equals( + this.isEnableAutoApprovalForTerraformArtifactNewAppListings, + other.isEnableAutoApprovalForTerraformArtifactNewAppListings) + && java.util.Objects.equals( + this.isEnableAutoApprovalForNewPaidAppListings, + other.isEnableAutoApprovalForNewPaidAppListings) + && java.util.Objects.equals( + this.isEnableAutoApprovalForNewLeadGenListings, + other.isEnableAutoApprovalForNewLeadGenListings) + && java.util.Objects.equals( + this.isDisableAutoApprovalForImageArtifactVersionedAppListings, + other.isDisableAutoApprovalForImageArtifactVersionedAppListings) + && java.util.Objects.equals( + this.isDisableAutoApprovalForTerraformArtifactVersionedAppListings, + other.isDisableAutoApprovalForTerraformArtifactVersionedAppListings) + && java.util.Objects.equals( + this.isDisableAutoApprovalForContainerArtifactVersionedAppListings, + other.isDisableAutoApprovalForContainerArtifactVersionedAppListings) + && java.util.Objects.equals( + this.isDisableAutoApprovalForHelmChartVersionedAppListings, + other.isDisableAutoApprovalForHelmChartVersionedAppListings) + && java.util.Objects.equals( + this.isEnableAutoApprovalForServiceVersionedListings, + other.isEnableAutoApprovalForServiceVersionedListings) + && java.util.Objects.equals( + this.isEnableAutoApprovalForFusionAiAgentVersionedListings, + other.isEnableAutoApprovalForFusionAiAgentVersionedListings) + && java.util.Objects.equals( + this.isEnableAutoApprovalForLeadGenVersionedListings, + other.isEnableAutoApprovalForLeadGenVersionedListings) + && java.util.Objects.equals( + this.isDisableAutoApprovalForSaaSVersionedListings, + other.isDisableAutoApprovalForSaaSVersionedListings) + && java.util.Objects.equals( + this.isDisableAutoApprovalForPaidAppVersionedListings, + other.isDisableAutoApprovalForPaidAppVersionedListings) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isEnablePublisherAgreementCheckBeforeListingPublish == null + ? 43 + : this.isEnablePublisherAgreementCheckBeforeListingPublish + .hashCode()); + result = + (result * PRIME) + + (this.isEnableOpnMembershipStatusCheckBeforeListingPublish == null + ? 43 + : this.isEnableOpnMembershipStatusCheckBeforeListingPublish + .hashCode()); + result = + (result * PRIME) + + (this.isEnableReports == null ? 43 : this.isEnableReports.hashCode()); + result = + (result * PRIME) + + (this.isEnablePrivateListing == null + ? 43 + : this.isEnablePrivateListing.hashCode()); + result = + (result * PRIME) + + (this.isEnableAutoPublishOnSubmitForLeadGenListings == null + ? 43 + : this.isEnableAutoPublishOnSubmitForLeadGenListings.hashCode()); + result = + (result * PRIME) + + (this.isDisableAutoPublishOnSubmit == null + ? 43 + : this.isDisableAutoPublishOnSubmit.hashCode()); + result = + (result * PRIME) + + (this.isEnableAutoApprovalForImageArtifactNewAppListings == null + ? 43 + : this.isEnableAutoApprovalForImageArtifactNewAppListings + .hashCode()); + result = + (result * PRIME) + + (this.isEnableAutoApprovalForTerraformArtifactNewAppListings == null + ? 43 + : this.isEnableAutoApprovalForTerraformArtifactNewAppListings + .hashCode()); + result = + (result * PRIME) + + (this.isEnableAutoApprovalForNewPaidAppListings == null + ? 43 + : this.isEnableAutoApprovalForNewPaidAppListings.hashCode()); + result = + (result * PRIME) + + (this.isEnableAutoApprovalForNewLeadGenListings == null + ? 43 + : this.isEnableAutoApprovalForNewLeadGenListings.hashCode()); + result = + (result * PRIME) + + (this.isDisableAutoApprovalForImageArtifactVersionedAppListings == null + ? 43 + : this.isDisableAutoApprovalForImageArtifactVersionedAppListings + .hashCode()); + result = + (result * PRIME) + + (this.isDisableAutoApprovalForTerraformArtifactVersionedAppListings + == null + ? 43 + : this.isDisableAutoApprovalForTerraformArtifactVersionedAppListings + .hashCode()); + result = + (result * PRIME) + + (this.isDisableAutoApprovalForContainerArtifactVersionedAppListings + == null + ? 43 + : this.isDisableAutoApprovalForContainerArtifactVersionedAppListings + .hashCode()); + result = + (result * PRIME) + + (this.isDisableAutoApprovalForHelmChartVersionedAppListings == null + ? 43 + : this.isDisableAutoApprovalForHelmChartVersionedAppListings + .hashCode()); + result = + (result * PRIME) + + (this.isEnableAutoApprovalForServiceVersionedListings == null + ? 43 + : this.isEnableAutoApprovalForServiceVersionedListings.hashCode()); + result = + (result * PRIME) + + (this.isEnableAutoApprovalForFusionAiAgentVersionedListings == null + ? 43 + : this.isEnableAutoApprovalForFusionAiAgentVersionedListings + .hashCode()); + result = + (result * PRIME) + + (this.isEnableAutoApprovalForLeadGenVersionedListings == null + ? 43 + : this.isEnableAutoApprovalForLeadGenVersionedListings.hashCode()); + result = + (result * PRIME) + + (this.isDisableAutoApprovalForSaaSVersionedListings == null + ? 43 + : this.isDisableAutoApprovalForSaaSVersionedListings.hashCode()); + result = + (result * PRIME) + + (this.isDisableAutoApprovalForPaidAppVersionedListings == null + ? 43 + : this.isDisableAutoApprovalForPaidAppVersionedListings.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/PricingPlan.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/PricingPlan.java index cf67757c06d..8304a0e133f 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/PricingPlan.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/PricingPlan.java @@ -22,6 +22,12 @@ property = "planType", defaultImpl = PricingPlan.class) @com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = HybridPricingPlan.class, + name = "HYBRID"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UsageBasedPricingPlan.class, + name = "USAGE_BASED"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = MeteredPricingPlan.class, name = "METERED"), @@ -98,6 +104,8 @@ public int hashCode() { public enum PlanType implements com.oracle.bmc.http.internal.BmcEnum { Metered("METERED"), Fixed("FIXED"), + UsageBased("USAGE_BASED"), + Hybrid("HYBRID"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/Publisher.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/Publisher.java index 7acba1edb19..31351544a5e 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/Publisher.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/Publisher.java @@ -24,8 +24,10 @@ public final class Publisher extends com.oracle.bmc.http.client.internal.Explici @java.beans.ConstructorProperties({ "publisherStatus", "notificationEmail", + "enrollmentStatus", "opnMembership", "privateOfferAccountDetails", + "isFxEnabled", "id", "compartmentId", "registryNamespace", @@ -44,6 +46,14 @@ public final class Publisher extends com.oracle.bmc.http.client.internal.Explici "publisherType", "timeCreated", "timeUpdated", + "email", + "businessPhoneNumber", + "employeeCount", + "solutionDescription", + "opnNumber", + "country", + "city", + "state", "freeformTags", "definedTags", "systemTags" @@ -51,8 +61,10 @@ public final class Publisher extends com.oracle.bmc.http.client.internal.Explici public Publisher( PublisherStatus publisherStatus, String notificationEmail, + String enrollmentStatus, OpnMembership opnMembership, PrivateOfferAccountDetails privateOfferAccountDetails, + Boolean isFxEnabled, String id, String compartmentId, String registryNamespace, @@ -71,14 +83,24 @@ public Publisher( PublisherType publisherType, java.util.Date timeCreated, java.util.Date timeUpdated, + String email, + String businessPhoneNumber, + Long employeeCount, + String solutionDescription, + String opnNumber, + String country, + String city, + String state, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { super(); this.publisherStatus = publisherStatus; this.notificationEmail = notificationEmail; + this.enrollmentStatus = enrollmentStatus; this.opnMembership = opnMembership; this.privateOfferAccountDetails = privateOfferAccountDetails; + this.isFxEnabled = isFxEnabled; this.id = id; this.compartmentId = compartmentId; this.registryNamespace = registryNamespace; @@ -97,6 +119,14 @@ public Publisher( this.publisherType = publisherType; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; + this.email = email; + this.businessPhoneNumber = businessPhoneNumber; + this.employeeCount = employeeCount; + this.solutionDescription = solutionDescription; + this.opnNumber = opnNumber; + this.country = country; + this.city = city; + this.state = state; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -134,6 +164,21 @@ public Builder notificationEmail(String notificationEmail) { this.__explicitlySet__.add("notificationEmail"); return this; } + /** Oracle Cloud Marketplace agreement status */ + @com.fasterxml.jackson.annotation.JsonProperty("enrollmentStatus") + private String enrollmentStatus; + + /** + * Oracle Cloud Marketplace agreement status + * + * @param enrollmentStatus the value to set + * @return this builder + */ + public Builder enrollmentStatus(String enrollmentStatus) { + this.enrollmentStatus = enrollmentStatus; + this.__explicitlySet__.add("enrollmentStatus"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("opnMembership") private OpnMembership opnMembership; @@ -153,6 +198,21 @@ public Builder privateOfferAccountDetails( this.__explicitlySet__.add("privateOfferAccountDetails"); return this; } + /** Whether automatic FX conversion is enabled for the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("isFxEnabled") + private Boolean isFxEnabled; + + /** + * Whether automatic FX conversion is enabled for the publisher. + * + * @param isFxEnabled the value to set + * @return this builder + */ + public Builder isFxEnabled(Boolean isFxEnabled) { + this.isFxEnabled = isFxEnabled; + this.__explicitlySet__.add("isFxEnabled"); + return this; + } /** Unique OCID identifier for the publisher. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; @@ -417,6 +477,126 @@ public Builder timeUpdated(java.util.Date timeUpdated) { this.__explicitlySet__.add("timeUpdated"); return this; } + /** Email address of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("email") + private String email; + + /** + * Email address of the publisher. + * + * @param email the value to set + * @return this builder + */ + public Builder email(String email) { + this.email = email; + this.__explicitlySet__.add("email"); + return this; + } + /** The business phone number of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("businessPhoneNumber") + private String businessPhoneNumber; + + /** + * The business phone number of the publisher. + * + * @param businessPhoneNumber the value to set + * @return this builder + */ + public Builder businessPhoneNumber(String businessPhoneNumber) { + this.businessPhoneNumber = businessPhoneNumber; + this.__explicitlySet__.add("businessPhoneNumber"); + return this; + } + /** Count of employees in publisher's company */ + @com.fasterxml.jackson.annotation.JsonProperty("employeeCount") + private Long employeeCount; + + /** + * Count of employees in publisher's company + * + * @param employeeCount the value to set + * @return this builder + */ + public Builder employeeCount(Long employeeCount) { + this.employeeCount = employeeCount; + this.__explicitlySet__.add("employeeCount"); + return this; + } + /** A description of the publisher solutions. */ + @com.fasterxml.jackson.annotation.JsonProperty("solutionDescription") + private String solutionDescription; + + /** + * A description of the publisher solutions. + * + * @param solutionDescription the value to set + * @return this builder + */ + public Builder solutionDescription(String solutionDescription) { + this.solutionDescription = solutionDescription; + this.__explicitlySet__.add("solutionDescription"); + return this; + } + /** OPN membership number of the publisher */ + @com.fasterxml.jackson.annotation.JsonProperty("opnNumber") + private String opnNumber; + + /** + * OPN membership number of the publisher + * + * @param opnNumber the value to set + * @return this builder + */ + public Builder opnNumber(String opnNumber) { + this.opnNumber = opnNumber; + this.__explicitlySet__.add("opnNumber"); + return this; + } + /** Country in which partner company resides */ + @com.fasterxml.jackson.annotation.JsonProperty("country") + private String country; + + /** + * Country in which partner company resides + * + * @param country the value to set + * @return this builder + */ + public Builder country(String country) { + this.country = country; + this.__explicitlySet__.add("country"); + return this; + } + /** City in which partner company resides */ + @com.fasterxml.jackson.annotation.JsonProperty("city") + private String city; + + /** + * City in which partner company resides + * + * @param city the value to set + * @return this builder + */ + public Builder city(String city) { + this.city = city; + this.__explicitlySet__.add("city"); + return this; + } + /** State in which partner company resides */ + @com.fasterxml.jackson.annotation.JsonProperty("state") + private String state; + + /** + * State in which partner company resides + * + * @param state the value to set + * @return this builder + */ + public Builder state(String state) { + this.state = state; + this.__explicitlySet__.add("state"); + 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"}} @@ -484,8 +664,10 @@ public Publisher build() { new Publisher( this.publisherStatus, this.notificationEmail, + this.enrollmentStatus, this.opnMembership, this.privateOfferAccountDetails, + this.isFxEnabled, this.id, this.compartmentId, this.registryNamespace, @@ -504,6 +686,14 @@ public Publisher build() { this.publisherType, this.timeCreated, this.timeUpdated, + this.email, + this.businessPhoneNumber, + this.employeeCount, + this.solutionDescription, + this.opnNumber, + this.country, + this.city, + this.state, this.freeformTags, this.definedTags, this.systemTags); @@ -521,12 +711,18 @@ public Builder copy(Publisher model) { if (model.wasPropertyExplicitlySet("notificationEmail")) { this.notificationEmail(model.getNotificationEmail()); } + if (model.wasPropertyExplicitlySet("enrollmentStatus")) { + this.enrollmentStatus(model.getEnrollmentStatus()); + } if (model.wasPropertyExplicitlySet("opnMembership")) { this.opnMembership(model.getOpnMembership()); } if (model.wasPropertyExplicitlySet("privateOfferAccountDetails")) { this.privateOfferAccountDetails(model.getPrivateOfferAccountDetails()); } + if (model.wasPropertyExplicitlySet("isFxEnabled")) { + this.isFxEnabled(model.getIsFxEnabled()); + } if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } @@ -581,6 +777,30 @@ public Builder copy(Publisher model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("email")) { + this.email(model.getEmail()); + } + if (model.wasPropertyExplicitlySet("businessPhoneNumber")) { + this.businessPhoneNumber(model.getBusinessPhoneNumber()); + } + if (model.wasPropertyExplicitlySet("employeeCount")) { + this.employeeCount(model.getEmployeeCount()); + } + if (model.wasPropertyExplicitlySet("solutionDescription")) { + this.solutionDescription(model.getSolutionDescription()); + } + if (model.wasPropertyExplicitlySet("opnNumber")) { + this.opnNumber(model.getOpnNumber()); + } + if (model.wasPropertyExplicitlySet("country")) { + this.country(model.getCountry()); + } + if (model.wasPropertyExplicitlySet("city")) { + this.city(model.getCity()); + } + if (model.wasPropertyExplicitlySet("state")) { + this.state(model.getState()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -603,56 +823,6 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** publisher status. */ - public enum PublisherStatus implements com.oracle.bmc.http.internal.BmcEnum { - New("NEW"), - Approved("APPROVED"), - Suspended("SUSPENDED"), - Removed("REMOVED"), - Rejected("REJECTED"), - Contacted("CONTACTED"), - - /** - * 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(PublisherStatus.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (PublisherStatus v : PublisherStatus.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - PublisherStatus(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static PublisherStatus create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'PublisherStatus', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; /** publisher status. */ @com.fasterxml.jackson.annotation.JsonProperty("publisherStatus") private final PublisherStatus publisherStatus; @@ -679,6 +849,19 @@ public String getNotificationEmail() { return notificationEmail; } + /** Oracle Cloud Marketplace agreement status */ + @com.fasterxml.jackson.annotation.JsonProperty("enrollmentStatus") + private final String enrollmentStatus; + + /** + * Oracle Cloud Marketplace agreement status + * + * @return the value + */ + public String getEnrollmentStatus() { + return enrollmentStatus; + } + @com.fasterxml.jackson.annotation.JsonProperty("opnMembership") private final OpnMembership opnMembership; @@ -693,6 +876,19 @@ public PrivateOfferAccountDetails getPrivateOfferAccountDetails() { return privateOfferAccountDetails; } + /** Whether automatic FX conversion is enabled for the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("isFxEnabled") + private final Boolean isFxEnabled; + + /** + * Whether automatic FX conversion is enabled for the publisher. + * + * @return the value + */ + public Boolean getIsFxEnabled() { + return isFxEnabled; + } + /** Unique OCID identifier for the publisher. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; @@ -967,6 +1163,110 @@ public java.util.Date getTimeUpdated() { return timeUpdated; } + /** Email address of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("email") + private final String email; + + /** + * Email address of the publisher. + * + * @return the value + */ + public String getEmail() { + return email; + } + + /** The business phone number of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("businessPhoneNumber") + private final String businessPhoneNumber; + + /** + * The business phone number of the publisher. + * + * @return the value + */ + public String getBusinessPhoneNumber() { + return businessPhoneNumber; + } + + /** Count of employees in publisher's company */ + @com.fasterxml.jackson.annotation.JsonProperty("employeeCount") + private final Long employeeCount; + + /** + * Count of employees in publisher's company + * + * @return the value + */ + public Long getEmployeeCount() { + return employeeCount; + } + + /** A description of the publisher solutions. */ + @com.fasterxml.jackson.annotation.JsonProperty("solutionDescription") + private final String solutionDescription; + + /** + * A description of the publisher solutions. + * + * @return the value + */ + public String getSolutionDescription() { + return solutionDescription; + } + + /** OPN membership number of the publisher */ + @com.fasterxml.jackson.annotation.JsonProperty("opnNumber") + private final String opnNumber; + + /** + * OPN membership number of the publisher + * + * @return the value + */ + public String getOpnNumber() { + return opnNumber; + } + + /** Country in which partner company resides */ + @com.fasterxml.jackson.annotation.JsonProperty("country") + private final String country; + + /** + * Country in which partner company resides + * + * @return the value + */ + public String getCountry() { + return country; + } + + /** City in which partner company resides */ + @com.fasterxml.jackson.annotation.JsonProperty("city") + private final String city; + + /** + * City in which partner company resides + * + * @return the value + */ + public String getCity() { + return city; + } + + /** State in which partner company resides */ + @com.fasterxml.jackson.annotation.JsonProperty("state") + private final String state; + + /** + * State in which partner company resides + * + * @return the value + */ + public String getState() { + return state; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for * cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -1035,9 +1335,11 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("publisherStatus=").append(String.valueOf(this.publisherStatus)); sb.append(", notificationEmail=").append(String.valueOf(this.notificationEmail)); + sb.append(", enrollmentStatus=").append(String.valueOf(this.enrollmentStatus)); sb.append(", opnMembership=").append(String.valueOf(this.opnMembership)); sb.append(", privateOfferAccountDetails=") .append(String.valueOf(this.privateOfferAccountDetails)); + sb.append(", isFxEnabled=").append(String.valueOf(this.isFxEnabled)); sb.append(", id=").append(String.valueOf(this.id)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", registryNamespace=").append(String.valueOf(this.registryNamespace)); @@ -1056,6 +1358,14 @@ public String toString(boolean includeByteArrayContents) { sb.append(", publisherType=").append(String.valueOf(this.publisherType)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", email=").append(String.valueOf(this.email)); + sb.append(", businessPhoneNumber=").append(String.valueOf(this.businessPhoneNumber)); + sb.append(", employeeCount=").append(String.valueOf(this.employeeCount)); + sb.append(", solutionDescription=").append(String.valueOf(this.solutionDescription)); + sb.append(", opnNumber=").append(String.valueOf(this.opnNumber)); + sb.append(", country=").append(String.valueOf(this.country)); + sb.append(", city=").append(String.valueOf(this.city)); + sb.append(", state=").append(String.valueOf(this.state)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -1075,9 +1385,11 @@ public boolean equals(Object o) { Publisher other = (Publisher) o; return java.util.Objects.equals(this.publisherStatus, other.publisherStatus) && java.util.Objects.equals(this.notificationEmail, other.notificationEmail) + && java.util.Objects.equals(this.enrollmentStatus, other.enrollmentStatus) && java.util.Objects.equals(this.opnMembership, other.opnMembership) && java.util.Objects.equals( this.privateOfferAccountDetails, other.privateOfferAccountDetails) + && java.util.Objects.equals(this.isFxEnabled, other.isFxEnabled) && java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.registryNamespace, other.registryNamespace) @@ -1096,6 +1408,14 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.publisherType, other.publisherType) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.email, other.email) + && java.util.Objects.equals(this.businessPhoneNumber, other.businessPhoneNumber) + && java.util.Objects.equals(this.employeeCount, other.employeeCount) + && java.util.Objects.equals(this.solutionDescription, other.solutionDescription) + && java.util.Objects.equals(this.opnNumber, other.opnNumber) + && java.util.Objects.equals(this.country, other.country) + && java.util.Objects.equals(this.city, other.city) + && java.util.Objects.equals(this.state, other.state) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -1112,6 +1432,9 @@ public int hashCode() { result = (result * PRIME) + (this.notificationEmail == null ? 43 : this.notificationEmail.hashCode()); + result = + (result * PRIME) + + (this.enrollmentStatus == null ? 43 : this.enrollmentStatus.hashCode()); result = (result * PRIME) + (this.opnMembership == null ? 43 : this.opnMembership.hashCode()); @@ -1120,6 +1443,7 @@ public int hashCode() { + (this.privateOfferAccountDetails == null ? 43 : this.privateOfferAccountDetails.hashCode()); + result = (result * PRIME) + (this.isFxEnabled == null ? 43 : this.isFxEnabled.hashCode()); result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) @@ -1144,6 +1468,24 @@ public int hashCode() { + (this.publisherType == null ? 43 : this.publisherType.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.email == null ? 43 : this.email.hashCode()); + result = + (result * PRIME) + + (this.businessPhoneNumber == null + ? 43 + : this.businessPhoneNumber.hashCode()); + result = + (result * PRIME) + + (this.employeeCount == null ? 43 : this.employeeCount.hashCode()); + result = + (result * PRIME) + + (this.solutionDescription == null + ? 43 + : this.solutionDescription.hashCode()); + result = (result * PRIME) + (this.opnNumber == null ? 43 : this.opnNumber.hashCode()); + result = (result * PRIME) + (this.country == null ? 43 : this.country.hashCode()); + result = (result * PRIME) + (this.city == null ? 43 : this.city.hashCode()); + result = (result * PRIME) + (this.state == null ? 43 : this.state.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/PublisherStatus.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/PublisherStatus.java new file mode 100644 index 00000000000..d21ae5b56d9 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/PublisherStatus.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** Publisher Status */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public enum PublisherStatus implements com.oracle.bmc.http.internal.BmcEnum { + New("NEW"), + Approved("APPROVED"), + Suspended("SUSPENDED"), + Removed("REMOVED"), + Rejected("REJECTED"), + Contacted("CONTACTED"), + + /** + * 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(PublisherStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PublisherStatus v : PublisherStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PublisherStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PublisherStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PublisherStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/PublisherSummary.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/PublisherSummary.java index 24c0fac0413..fb2df641a3f 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/PublisherSummary.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/PublisherSummary.java @@ -41,6 +41,14 @@ public final class PublisherSummary "publisherType", "timeCreated", "timeUpdated", + "email", + "businessPhoneNumber", + "employeeCount", + "solutionDescription", + "opnNumber", + "country", + "city", + "state", "freeformTags", "definedTags", "systemTags" @@ -64,6 +72,14 @@ public PublisherSummary( PublisherType publisherType, java.util.Date timeCreated, java.util.Date timeUpdated, + String email, + String businessPhoneNumber, + Long employeeCount, + String solutionDescription, + String opnNumber, + String country, + String city, + String state, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -86,6 +102,14 @@ public PublisherSummary( this.publisherType = publisherType; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; + this.email = email; + this.businessPhoneNumber = businessPhoneNumber; + this.employeeCount = employeeCount; + this.solutionDescription = solutionDescription; + this.opnNumber = opnNumber; + this.country = country; + this.city = city; + this.state = state; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -357,6 +381,126 @@ public Builder timeUpdated(java.util.Date timeUpdated) { this.__explicitlySet__.add("timeUpdated"); return this; } + /** Email address of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("email") + private String email; + + /** + * Email address of the publisher. + * + * @param email the value to set + * @return this builder + */ + public Builder email(String email) { + this.email = email; + this.__explicitlySet__.add("email"); + return this; + } + /** The business phone number of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("businessPhoneNumber") + private String businessPhoneNumber; + + /** + * The business phone number of the publisher. + * + * @param businessPhoneNumber the value to set + * @return this builder + */ + public Builder businessPhoneNumber(String businessPhoneNumber) { + this.businessPhoneNumber = businessPhoneNumber; + this.__explicitlySet__.add("businessPhoneNumber"); + return this; + } + /** Count of employees in publisher's company */ + @com.fasterxml.jackson.annotation.JsonProperty("employeeCount") + private Long employeeCount; + + /** + * Count of employees in publisher's company + * + * @param employeeCount the value to set + * @return this builder + */ + public Builder employeeCount(Long employeeCount) { + this.employeeCount = employeeCount; + this.__explicitlySet__.add("employeeCount"); + return this; + } + /** A description of the publisher solutions. */ + @com.fasterxml.jackson.annotation.JsonProperty("solutionDescription") + private String solutionDescription; + + /** + * A description of the publisher solutions. + * + * @param solutionDescription the value to set + * @return this builder + */ + public Builder solutionDescription(String solutionDescription) { + this.solutionDescription = solutionDescription; + this.__explicitlySet__.add("solutionDescription"); + return this; + } + /** OPN membership number of the publisher */ + @com.fasterxml.jackson.annotation.JsonProperty("opnNumber") + private String opnNumber; + + /** + * OPN membership number of the publisher + * + * @param opnNumber the value to set + * @return this builder + */ + public Builder opnNumber(String opnNumber) { + this.opnNumber = opnNumber; + this.__explicitlySet__.add("opnNumber"); + return this; + } + /** Country in which partner company resides */ + @com.fasterxml.jackson.annotation.JsonProperty("country") + private String country; + + /** + * Country in which partner company resides + * + * @param country the value to set + * @return this builder + */ + public Builder country(String country) { + this.country = country; + this.__explicitlySet__.add("country"); + return this; + } + /** City in which partner company resides */ + @com.fasterxml.jackson.annotation.JsonProperty("city") + private String city; + + /** + * City in which partner company resides + * + * @param city the value to set + * @return this builder + */ + public Builder city(String city) { + this.city = city; + this.__explicitlySet__.add("city"); + return this; + } + /** State in which partner company resides */ + @com.fasterxml.jackson.annotation.JsonProperty("state") + private String state; + + /** + * State in which partner company resides + * + * @param state the value to set + * @return this builder + */ + public Builder state(String state) { + this.state = state; + this.__explicitlySet__.add("state"); + 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"}} @@ -440,6 +584,14 @@ public PublisherSummary build() { this.publisherType, this.timeCreated, this.timeUpdated, + this.email, + this.businessPhoneNumber, + this.employeeCount, + this.solutionDescription, + this.opnNumber, + this.country, + this.city, + this.state, this.freeformTags, this.definedTags, this.systemTags); @@ -505,6 +657,30 @@ public Builder copy(PublisherSummary model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("email")) { + this.email(model.getEmail()); + } + if (model.wasPropertyExplicitlySet("businessPhoneNumber")) { + this.businessPhoneNumber(model.getBusinessPhoneNumber()); + } + if (model.wasPropertyExplicitlySet("employeeCount")) { + this.employeeCount(model.getEmployeeCount()); + } + if (model.wasPropertyExplicitlySet("solutionDescription")) { + this.solutionDescription(model.getSolutionDescription()); + } + if (model.wasPropertyExplicitlySet("opnNumber")) { + this.opnNumber(model.getOpnNumber()); + } + if (model.wasPropertyExplicitlySet("country")) { + this.country(model.getCountry()); + } + if (model.wasPropertyExplicitlySet("city")) { + this.city(model.getCity()); + } + if (model.wasPropertyExplicitlySet("state")) { + this.state(model.getState()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -801,6 +977,110 @@ public java.util.Date getTimeUpdated() { return timeUpdated; } + /** Email address of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("email") + private final String email; + + /** + * Email address of the publisher. + * + * @return the value + */ + public String getEmail() { + return email; + } + + /** The business phone number of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("businessPhoneNumber") + private final String businessPhoneNumber; + + /** + * The business phone number of the publisher. + * + * @return the value + */ + public String getBusinessPhoneNumber() { + return businessPhoneNumber; + } + + /** Count of employees in publisher's company */ + @com.fasterxml.jackson.annotation.JsonProperty("employeeCount") + private final Long employeeCount; + + /** + * Count of employees in publisher's company + * + * @return the value + */ + public Long getEmployeeCount() { + return employeeCount; + } + + /** A description of the publisher solutions. */ + @com.fasterxml.jackson.annotation.JsonProperty("solutionDescription") + private final String solutionDescription; + + /** + * A description of the publisher solutions. + * + * @return the value + */ + public String getSolutionDescription() { + return solutionDescription; + } + + /** OPN membership number of the publisher */ + @com.fasterxml.jackson.annotation.JsonProperty("opnNumber") + private final String opnNumber; + + /** + * OPN membership number of the publisher + * + * @return the value + */ + public String getOpnNumber() { + return opnNumber; + } + + /** Country in which partner company resides */ + @com.fasterxml.jackson.annotation.JsonProperty("country") + private final String country; + + /** + * Country in which partner company resides + * + * @return the value + */ + public String getCountry() { + return country; + } + + /** City in which partner company resides */ + @com.fasterxml.jackson.annotation.JsonProperty("city") + private final String city; + + /** + * City in which partner company resides + * + * @return the value + */ + public String getCity() { + return city; + } + + /** State in which partner company resides */ + @com.fasterxml.jackson.annotation.JsonProperty("state") + private final String state; + + /** + * State in which partner company resides + * + * @return the value + */ + public String getState() { + return state; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for * cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -885,6 +1165,14 @@ public String toString(boolean includeByteArrayContents) { sb.append(", publisherType=").append(String.valueOf(this.publisherType)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", email=").append(String.valueOf(this.email)); + sb.append(", businessPhoneNumber=").append(String.valueOf(this.businessPhoneNumber)); + sb.append(", employeeCount=").append(String.valueOf(this.employeeCount)); + sb.append(", solutionDescription=").append(String.valueOf(this.solutionDescription)); + sb.append(", opnNumber=").append(String.valueOf(this.opnNumber)); + sb.append(", country=").append(String.valueOf(this.country)); + sb.append(", city=").append(String.valueOf(this.city)); + sb.append(", state=").append(String.valueOf(this.state)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -920,6 +1208,14 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.publisherType, other.publisherType) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.email, other.email) + && java.util.Objects.equals(this.businessPhoneNumber, other.businessPhoneNumber) + && java.util.Objects.equals(this.employeeCount, other.employeeCount) + && java.util.Objects.equals(this.solutionDescription, other.solutionDescription) + && java.util.Objects.equals(this.opnNumber, other.opnNumber) + && java.util.Objects.equals(this.country, other.country) + && java.util.Objects.equals(this.city, other.city) + && java.util.Objects.equals(this.state, other.state) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -954,6 +1250,24 @@ public int hashCode() { + (this.publisherType == null ? 43 : this.publisherType.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.email == null ? 43 : this.email.hashCode()); + result = + (result * PRIME) + + (this.businessPhoneNumber == null + ? 43 + : this.businessPhoneNumber.hashCode()); + result = + (result * PRIME) + + (this.employeeCount == null ? 43 : this.employeeCount.hashCode()); + result = + (result * PRIME) + + (this.solutionDescription == null + ? 43 + : this.solutionDescription.hashCode()); + result = (result * PRIME) + (this.opnNumber == null ? 43 : this.opnNumber.hashCode()); + result = (result * PRIME) + (this.country == null ? 43 : this.country.hashCode()); + result = (result * PRIME) + (this.city == null ? 43 : this.city.hashCode()); + result = (result * PRIME) + (this.state == null ? 43 : this.state.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/RelatedDocumentAttachment.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/RelatedDocumentAttachment.java index 77d3f5e6ffd..6e4401f095e 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/RelatedDocumentAttachment.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/RelatedDocumentAttachment.java @@ -72,6 +72,15 @@ public Builder description(String description) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private SourceType sourceType; + + public Builder sourceType(SourceType sourceType) { + this.sourceType = sourceType; + this.__explicitlySet__.add("sourceType"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; @@ -183,6 +192,7 @@ public RelatedDocumentAttachment build() { this.listingRevisionId, this.displayName, this.description, + this.sourceType, this.lifecycleState, this.timeCreated, this.timeUpdated, @@ -215,6 +225,9 @@ public Builder copy(RelatedDocumentAttachment model) { if (model.wasPropertyExplicitlySet("description")) { this.description(model.getDescription()); } + if (model.wasPropertyExplicitlySet("sourceType")) { + this.sourceType(model.getSourceType()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -262,6 +275,7 @@ public RelatedDocumentAttachment( String listingRevisionId, String displayName, String description, + SourceType sourceType, LifecycleState lifecycleState, java.util.Date timeCreated, java.util.Date timeUpdated, @@ -277,6 +291,7 @@ public RelatedDocumentAttachment( listingRevisionId, displayName, description, + sourceType, lifecycleState, timeCreated, timeUpdated, diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ReviewSupportDocumentAttachment.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ReviewSupportDocumentAttachment.java index 7e0ff508223..2101f1297f9 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ReviewSupportDocumentAttachment.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ReviewSupportDocumentAttachment.java @@ -72,6 +72,15 @@ public Builder description(String description) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private SourceType sourceType; + + public Builder sourceType(SourceType sourceType) { + this.sourceType = sourceType; + this.__explicitlySet__.add("sourceType"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; @@ -198,6 +207,7 @@ public ReviewSupportDocumentAttachment build() { this.listingRevisionId, this.displayName, this.description, + this.sourceType, this.lifecycleState, this.timeCreated, this.timeUpdated, @@ -231,6 +241,9 @@ public Builder copy(ReviewSupportDocumentAttachment model) { if (model.wasPropertyExplicitlySet("description")) { this.description(model.getDescription()); } + if (model.wasPropertyExplicitlySet("sourceType")) { + this.sourceType(model.getSourceType()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -281,6 +294,7 @@ public ReviewSupportDocumentAttachment( String listingRevisionId, String displayName, String description, + SourceType sourceType, LifecycleState lifecycleState, java.util.Date timeCreated, java.util.Date timeUpdated, @@ -297,6 +311,7 @@ public ReviewSupportDocumentAttachment( listingRevisionId, displayName, description, + sourceType, lifecycleState, timeCreated, timeUpdated, diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/SaaSPricingPlan.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/SaaSPricingPlan.java index 81bb4bccf03..6fb1166e4c7 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/SaaSPricingPlan.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/SaaSPricingPlan.java @@ -34,6 +34,21 @@ public Builder rates(java.util.List rates) { this.__explicitlySet__.add("rates"); return this; } + /** Unique identifier of the pricing plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("pricingPlanKey") + private String pricingPlanKey; + + /** + * Unique identifier of the pricing plan. + * + * @param pricingPlanKey the value to set + * @return this builder + */ + public Builder pricingPlanKey(String pricingPlanKey) { + this.pricingPlanKey = pricingPlanKey; + this.__explicitlySet__.add("pricingPlanKey"); + return this; + } /** The plan name. */ @com.fasterxml.jackson.annotation.JsonProperty("name") private String name; @@ -79,6 +94,21 @@ public Builder billingFrequency(BillingFrequency billingFrequency) { this.__explicitlySet__.add("billingFrequency"); return this; } + /** The plan duration. */ + @com.fasterxml.jackson.annotation.JsonProperty("planDuration") + private PlanDuration planDuration; + + /** + * The plan duration. + * + * @param planDuration the value to set + * @return this builder + */ + public Builder planDuration(PlanDuration planDuration) { + this.planDuration = planDuration; + this.__explicitlySet__.add("planDuration"); + return this; + } /** Additional metadata key/value pairs for the saas pricing. */ @com.fasterxml.jackson.annotation.JsonProperty("extendedMetadata") private java.util.Map extendedMetadata; @@ -102,9 +132,11 @@ public SaaSPricingPlan build() { SaaSPricingPlan model = new SaaSPricingPlan( this.rates, + this.pricingPlanKey, this.name, this.planDescription, this.billingFrequency, + this.planDuration, this.extendedMetadata); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -117,6 +149,9 @@ public Builder copy(SaaSPricingPlan model) { if (model.wasPropertyExplicitlySet("rates")) { this.rates(model.getRates()); } + if (model.wasPropertyExplicitlySet("pricingPlanKey")) { + this.pricingPlanKey(model.getPricingPlanKey()); + } if (model.wasPropertyExplicitlySet("name")) { this.name(model.getName()); } @@ -126,6 +161,9 @@ public Builder copy(SaaSPricingPlan model) { if (model.wasPropertyExplicitlySet("billingFrequency")) { this.billingFrequency(model.getBillingFrequency()); } + if (model.wasPropertyExplicitlySet("planDuration")) { + this.planDuration(model.getPlanDuration()); + } if (model.wasPropertyExplicitlySet("extendedMetadata")) { this.extendedMetadata(model.getExtendedMetadata()); } @@ -145,17 +183,34 @@ public Builder toBuilder() { @Deprecated public SaaSPricingPlan( java.util.List rates, + String pricingPlanKey, String name, String planDescription, BillingFrequency billingFrequency, + PlanDuration planDuration, java.util.Map extendedMetadata) { super(rates); + this.pricingPlanKey = pricingPlanKey; this.name = name; this.planDescription = planDescription; this.billingFrequency = billingFrequency; + this.planDuration = planDuration; this.extendedMetadata = extendedMetadata; } + /** Unique identifier of the pricing plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("pricingPlanKey") + private final String pricingPlanKey; + + /** + * Unique identifier of the pricing plan. + * + * @return the value + */ + public String getPricingPlanKey() { + return pricingPlanKey; + } + /** The plan name. */ @com.fasterxml.jackson.annotation.JsonProperty("name") private final String name; @@ -186,7 +241,10 @@ public String getPlanDescription() { public enum BillingFrequency implements com.oracle.bmc.http.internal.BmcEnum { Monthly("MONTHLY"), Quarterly("QUARTERLY"), - Yearly("YEARLY"), + SemiAnnual("SEMI_ANNUAL"), + Annual("ANNUAL"), + Biennial("BIENNIAL"), + Triennial("TRIENNIAL"), /** * This value is used if a service returns a value for this enum that is not recognized by @@ -242,6 +300,69 @@ public BillingFrequency getBillingFrequency() { return billingFrequency; } + /** The plan duration. */ + public enum PlanDuration implements com.oracle.bmc.http.internal.BmcEnum { + Monthly("MONTHLY"), + Quarterly("QUARTERLY"), + SemiAnnual("SEMI_ANNUAL"), + Annual("ANNUAL"), + Biennial("BIENNIAL"), + Triennial("TRIENNIAL"), + + /** + * 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(PlanDuration.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PlanDuration v : PlanDuration.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PlanDuration(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PlanDuration create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PlanDuration', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The plan duration. */ + @com.fasterxml.jackson.annotation.JsonProperty("planDuration") + private final PlanDuration planDuration; + + /** + * The plan duration. + * + * @return the value + */ + public PlanDuration getPlanDuration() { + return planDuration; + } + /** Additional metadata key/value pairs for the saas pricing. */ @com.fasterxml.jackson.annotation.JsonProperty("extendedMetadata") private final java.util.Map extendedMetadata; @@ -270,9 +391,11 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("SaaSPricingPlan("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", pricingPlanKey=").append(String.valueOf(this.pricingPlanKey)); sb.append(", name=").append(String.valueOf(this.name)); sb.append(", planDescription=").append(String.valueOf(this.planDescription)); sb.append(", billingFrequency=").append(String.valueOf(this.billingFrequency)); + sb.append(", planDuration=").append(String.valueOf(this.planDuration)); sb.append(", extendedMetadata=").append(String.valueOf(this.extendedMetadata)); sb.append(")"); return sb.toString(); @@ -288,9 +411,11 @@ public boolean equals(Object o) { } SaaSPricingPlan other = (SaaSPricingPlan) o; - return java.util.Objects.equals(this.name, other.name) + return java.util.Objects.equals(this.pricingPlanKey, other.pricingPlanKey) + && java.util.Objects.equals(this.name, other.name) && java.util.Objects.equals(this.planDescription, other.planDescription) && java.util.Objects.equals(this.billingFrequency, other.billingFrequency) + && java.util.Objects.equals(this.planDuration, other.planDuration) && java.util.Objects.equals(this.extendedMetadata, other.extendedMetadata) && super.equals(other); } @@ -299,6 +424,9 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.pricingPlanKey == null ? 43 : this.pricingPlanKey.hashCode()); result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); result = (result * PRIME) @@ -306,6 +434,7 @@ public int hashCode() { result = (result * PRIME) + (this.billingFrequency == null ? 43 : this.billingFrequency.hashCode()); + result = (result * PRIME) + (this.planDuration == null ? 43 : this.planDuration.hashCode()); result = (result * PRIME) + (this.extendedMetadata == null ? 43 : this.extendedMetadata.hashCode()); diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ScreenShotAttachment.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ScreenShotAttachment.java index a37942f7f04..80e3f8112a2 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ScreenShotAttachment.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ScreenShotAttachment.java @@ -72,6 +72,15 @@ public Builder description(String description) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private SourceType sourceType; + + public Builder sourceType(SourceType sourceType) { + this.sourceType = sourceType; + this.__explicitlySet__.add("sourceType"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; @@ -168,6 +177,7 @@ public ScreenShotAttachment build() { this.listingRevisionId, this.displayName, this.description, + this.sourceType, this.lifecycleState, this.timeCreated, this.timeUpdated, @@ -199,6 +209,9 @@ public Builder copy(ScreenShotAttachment model) { if (model.wasPropertyExplicitlySet("description")) { this.description(model.getDescription()); } + if (model.wasPropertyExplicitlySet("sourceType")) { + this.sourceType(model.getSourceType()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -243,6 +256,7 @@ public ScreenShotAttachment( String listingRevisionId, String displayName, String description, + SourceType sourceType, LifecycleState lifecycleState, java.util.Date timeCreated, java.util.Date timeUpdated, @@ -257,6 +271,7 @@ public ScreenShotAttachment( listingRevisionId, displayName, description, + sourceType, lifecycleState, timeCreated, timeUpdated, diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ServiceListingRevision.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ServiceListingRevision.java index 3dbea91fa03..36a9734d540 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ServiceListingRevision.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ServiceListingRevision.java @@ -189,6 +189,15 @@ public Builder icon(ListingRevisionIconAttachment icon) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("banner") + private ListingRevisionBannerAttachment banner; + + public Builder banner(ListingRevisionBannerAttachment banner) { + this.banner = banner; + this.__explicitlySet__.add("banner"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("status") private Status status; @@ -377,6 +386,7 @@ public ServiceListingRevision build() { this.supportContacts, this.supportLinks, this.icon, + this.banner, this.status, this.statusNotes, this.lifecycleState, @@ -453,6 +463,9 @@ public Builder copy(ServiceListingRevision model) { if (model.wasPropertyExplicitlySet("icon")) { this.icon(model.getIcon()); } + if (model.wasPropertyExplicitlySet("banner")) { + this.banner(model.getBanner()); + } if (model.wasPropertyExplicitlySet("status")) { this.status(model.getStatus()); } @@ -528,6 +541,7 @@ public ServiceListingRevision( java.util.List supportContacts, java.util.List supportLinks, ListingRevisionIconAttachment icon, + ListingRevisionBannerAttachment banner, Status status, String statusNotes, LifecycleState lifecycleState, @@ -561,6 +575,7 @@ public ServiceListingRevision( supportContacts, supportLinks, icon, + banner, status, statusNotes, lifecycleState, diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/SupportedServiceAttachment.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/SupportedServiceAttachment.java index 646ee16cc3d..2f24fffb634 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/SupportedServiceAttachment.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/SupportedServiceAttachment.java @@ -72,6 +72,15 @@ public Builder description(String description) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private SourceType sourceType; + + public Builder sourceType(SourceType sourceType) { + this.sourceType = sourceType; + this.__explicitlySet__.add("sourceType"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; @@ -213,6 +222,7 @@ public SupportedServiceAttachment build() { this.listingRevisionId, this.displayName, this.description, + this.sourceType, this.lifecycleState, this.timeCreated, this.timeUpdated, @@ -247,6 +257,9 @@ public Builder copy(SupportedServiceAttachment model) { if (model.wasPropertyExplicitlySet("description")) { this.description(model.getDescription()); } + if (model.wasPropertyExplicitlySet("sourceType")) { + this.sourceType(model.getSourceType()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -300,6 +313,7 @@ public SupportedServiceAttachment( String listingRevisionId, String displayName, String description, + SourceType sourceType, LifecycleState lifecycleState, java.util.Date timeCreated, java.util.Date timeUpdated, @@ -317,6 +331,7 @@ public SupportedServiceAttachment( listingRevisionId, displayName, description, + sourceType, lifecycleState, timeCreated, timeUpdated, diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbMetadata.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UpdateAdminArtifactStatusDetails.java similarity index 63% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbMetadata.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UpdateAdminArtifactStatusDetails.java index 4b0d3dd04fd..8467f67428d 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbMetadata.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UpdateAdminArtifactStatusDetails.java @@ -2,10 +2,10 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.model; /** - * Additional metadata related to Globally distributed database resources.
    + * Artifact status change request 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 @@ -15,43 +15,44 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDbMetadata.Builder.class) + builder = UpdateAdminArtifactStatusDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class DistributedDbMetadata +public final class UpdateAdminArtifactStatusDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"map"}) - public DistributedDbMetadata(java.util.Map map) { + @java.beans.ConstructorProperties({"newStatus"}) + public UpdateAdminArtifactStatusDetails(String newStatus) { super(); - this.map = map; + this.newStatus = newStatus; } @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 new status for the artifact. */ + @com.fasterxml.jackson.annotation.JsonProperty("newStatus") + private String newStatus; /** - * The map containing key-value pair of additional metadata. + * The new status for the artifact. * - * @param map the value to set + * @param newStatus the value to set * @return this builder */ - public Builder map(java.util.Map map) { - this.map = map; - this.__explicitlySet__.add("map"); + public Builder newStatus(String newStatus) { + this.newStatus = newStatus; + this.__explicitlySet__.add("newStatus"); 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); + public UpdateAdminArtifactStatusDetails build() { + UpdateAdminArtifactStatusDetails model = + new UpdateAdminArtifactStatusDetails(this.newStatus); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -59,9 +60,9 @@ public DistributedDbMetadata build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDbMetadata model) { - if (model.wasPropertyExplicitlySet("map")) { - this.map(model.getMap()); + public Builder copy(UpdateAdminArtifactStatusDetails model) { + if (model.wasPropertyExplicitlySet("newStatus")) { + this.newStatus(model.getNewStatus()); } return this; } @@ -76,17 +77,17 @@ 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 new status for the artifact. */ + @com.fasterxml.jackson.annotation.JsonProperty("newStatus") + private final String newStatus; /** - * The map containing key-value pair of additional metadata. + * The new status for the artifact. * * @return the value */ - public java.util.Map getMap() { - return map; + public String getNewStatus() { + return newStatus; } @Override @@ -102,9 +103,9 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDbMetadata("); + sb.append("UpdateAdminArtifactStatusDetails("); sb.append("super=").append(super.toString()); - sb.append("map=").append(String.valueOf(this.map)); + sb.append("newStatus=").append(String.valueOf(this.newStatus)); sb.append(")"); return sb.toString(); } @@ -114,19 +115,19 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DistributedDbMetadata)) { + if (!(o instanceof UpdateAdminArtifactStatusDetails)) { return false; } - DistributedDbMetadata other = (DistributedDbMetadata) o; - return java.util.Objects.equals(this.map, other.map) && super.equals(other); + UpdateAdminArtifactStatusDetails other = (UpdateAdminArtifactStatusDetails) o; + return java.util.Objects.equals(this.newStatus, other.newStatus) && 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) + (this.newStatus == null ? 43 : this.newStatus.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UpdateOciListingRevisionDetails.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UpdateOciListingRevisionDetails.java index dac3a711e85..b15cca531d8 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UpdateOciListingRevisionDetails.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UpdateOciListingRevisionDetails.java @@ -198,6 +198,36 @@ public Builder products(java.util.List products) { this.__explicitlySet__.add("products"); return this; } + /** The url provided by partner for the registration of subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("partnerRegistrationUrl") + private String partnerRegistrationUrl; + + /** + * The url provided by partner for the registration of subscription. + * + * @param partnerRegistrationUrl the value to set + * @return this builder + */ + public Builder partnerRegistrationUrl(String partnerRegistrationUrl) { + this.partnerRegistrationUrl = partnerRegistrationUrl; + this.__explicitlySet__.add("partnerRegistrationUrl"); + return this; + } + /** The unique id of the term attached to the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("termId") + private String termId; + + /** + * The unique id of the term attached to the listing. + * + * @param termId the value to set + * @return this builder + */ + public Builder termId(String termId) { + this.termId = termId; + this.__explicitlySet__.add("termId"); + return this; + } /** Custom link to the listing */ @com.fasterxml.jackson.annotation.JsonProperty("vanityUrl") private String vanityUrl; @@ -274,6 +304,36 @@ public Builder isRoverExportable(Boolean isRoverExportable) { this.__explicitlySet__.add("isRoverExportable"); return this; } + /** Url to demo of the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("demoUrl") + private String demoUrl; + + /** + * Url to demo of the listing + * + * @param demoUrl the value to set + * @return this builder + */ + public Builder demoUrl(String demoUrl) { + this.demoUrl = demoUrl; + this.__explicitlySet__.add("demoUrl"); + return this; + } + /** Url to training resources of the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("selfPacedTrainingUrl") + private String selfPacedTrainingUrl; + + /** + * Url to training resources of the listing + * + * @param selfPacedTrainingUrl the value to set + * @return this builder + */ + public Builder selfPacedTrainingUrl(String selfPacedTrainingUrl) { + this.selfPacedTrainingUrl = selfPacedTrainingUrl; + this.__explicitlySet__.add("selfPacedTrainingUrl"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -298,11 +358,15 @@ public UpdateOciListingRevisionDetails build() { this.systemRequirements, this.pricingType, this.products, + this.partnerRegistrationUrl, + this.termId, this.vanityUrl, this.recommendedServiceProviderListingIds, this.availabilityAndPricingPolicy, this.pricingPlans, - this.isRoverExportable); + this.isRoverExportable, + this.demoUrl, + this.selfPacedTrainingUrl); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -362,6 +426,12 @@ public Builder copy(UpdateOciListingRevisionDetails model) { if (model.wasPropertyExplicitlySet("products")) { this.products(model.getProducts()); } + if (model.wasPropertyExplicitlySet("partnerRegistrationUrl")) { + this.partnerRegistrationUrl(model.getPartnerRegistrationUrl()); + } + if (model.wasPropertyExplicitlySet("termId")) { + this.termId(model.getTermId()); + } if (model.wasPropertyExplicitlySet("vanityUrl")) { this.vanityUrl(model.getVanityUrl()); } @@ -378,6 +448,12 @@ public Builder copy(UpdateOciListingRevisionDetails model) { if (model.wasPropertyExplicitlySet("isRoverExportable")) { this.isRoverExportable(model.getIsRoverExportable()); } + if (model.wasPropertyExplicitlySet("demoUrl")) { + this.demoUrl(model.getDemoUrl()); + } + if (model.wasPropertyExplicitlySet("selfPacedTrainingUrl")) { + this.selfPacedTrainingUrl(model.getSelfPacedTrainingUrl()); + } return this; } } @@ -410,11 +486,15 @@ public UpdateOciListingRevisionDetails( String systemRequirements, OciListingRevision.PricingType pricingType, java.util.List products, + String partnerRegistrationUrl, + String termId, String vanityUrl, java.util.List recommendedServiceProviderListingIds, String availabilityAndPricingPolicy, java.util.List pricingPlans, - Boolean isRoverExportable) { + Boolean isRoverExportable, + String demoUrl, + String selfPacedTrainingUrl) { super( displayName, headline, @@ -433,11 +513,15 @@ public UpdateOciListingRevisionDetails( this.systemRequirements = systemRequirements; this.pricingType = pricingType; this.products = products; + this.partnerRegistrationUrl = partnerRegistrationUrl; + this.termId = termId; this.vanityUrl = vanityUrl; this.recommendedServiceProviderListingIds = recommendedServiceProviderListingIds; this.availabilityAndPricingPolicy = availabilityAndPricingPolicy; this.pricingPlans = pricingPlans; this.isRoverExportable = isRoverExportable; + this.demoUrl = demoUrl; + this.selfPacedTrainingUrl = selfPacedTrainingUrl; } @com.fasterxml.jackson.annotation.JsonProperty("versionDetails") @@ -486,6 +570,32 @@ public java.util.List getProducts() { return products; } + /** The url provided by partner for the registration of subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("partnerRegistrationUrl") + private final String partnerRegistrationUrl; + + /** + * The url provided by partner for the registration of subscription. + * + * @return the value + */ + public String getPartnerRegistrationUrl() { + return partnerRegistrationUrl; + } + + /** The unique id of the term attached to the listing. */ + @com.fasterxml.jackson.annotation.JsonProperty("termId") + private final String termId; + + /** + * The unique id of the term attached to the listing. + * + * @return the value + */ + public String getTermId() { + return termId; + } + /** Custom link to the listing */ @com.fasterxml.jackson.annotation.JsonProperty("vanityUrl") private final String vanityUrl; @@ -551,6 +661,32 @@ public Boolean getIsRoverExportable() { return isRoverExportable; } + /** Url to demo of the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("demoUrl") + private final String demoUrl; + + /** + * Url to demo of the listing + * + * @return the value + */ + public String getDemoUrl() { + return demoUrl; + } + + /** Url to training resources of the listing */ + @com.fasterxml.jackson.annotation.JsonProperty("selfPacedTrainingUrl") + private final String selfPacedTrainingUrl; + + /** + * Url to training resources of the listing + * + * @return the value + */ + public String getSelfPacedTrainingUrl() { + return selfPacedTrainingUrl; + } + @Override public String toString() { return this.toString(true); @@ -570,6 +706,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", systemRequirements=").append(String.valueOf(this.systemRequirements)); sb.append(", pricingType=").append(String.valueOf(this.pricingType)); sb.append(", products=").append(String.valueOf(this.products)); + sb.append(", partnerRegistrationUrl=").append(String.valueOf(this.partnerRegistrationUrl)); + sb.append(", termId=").append(String.valueOf(this.termId)); sb.append(", vanityUrl=").append(String.valueOf(this.vanityUrl)); sb.append(", recommendedServiceProviderListingIds=") .append(String.valueOf(this.recommendedServiceProviderListingIds)); @@ -577,6 +715,8 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.availabilityAndPricingPolicy)); sb.append(", pricingPlans=").append(String.valueOf(this.pricingPlans)); sb.append(", isRoverExportable=").append(String.valueOf(this.isRoverExportable)); + sb.append(", demoUrl=").append(String.valueOf(this.demoUrl)); + sb.append(", selfPacedTrainingUrl=").append(String.valueOf(this.selfPacedTrainingUrl)); sb.append(")"); return sb.toString(); } @@ -595,6 +735,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.systemRequirements, other.systemRequirements) && java.util.Objects.equals(this.pricingType, other.pricingType) && java.util.Objects.equals(this.products, other.products) + && java.util.Objects.equals( + this.partnerRegistrationUrl, other.partnerRegistrationUrl) + && java.util.Objects.equals(this.termId, other.termId) && java.util.Objects.equals(this.vanityUrl, other.vanityUrl) && java.util.Objects.equals( this.recommendedServiceProviderListingIds, @@ -603,6 +746,8 @@ public boolean equals(Object o) { this.availabilityAndPricingPolicy, other.availabilityAndPricingPolicy) && java.util.Objects.equals(this.pricingPlans, other.pricingPlans) && java.util.Objects.equals(this.isRoverExportable, other.isRoverExportable) + && java.util.Objects.equals(this.demoUrl, other.demoUrl) + && java.util.Objects.equals(this.selfPacedTrainingUrl, other.selfPacedTrainingUrl) && super.equals(other); } @@ -620,6 +765,12 @@ public int hashCode() { : this.systemRequirements.hashCode()); result = (result * PRIME) + (this.pricingType == null ? 43 : this.pricingType.hashCode()); result = (result * PRIME) + (this.products == null ? 43 : this.products.hashCode()); + result = + (result * PRIME) + + (this.partnerRegistrationUrl == null + ? 43 + : this.partnerRegistrationUrl.hashCode()); + result = (result * PRIME) + (this.termId == null ? 43 : this.termId.hashCode()); result = (result * PRIME) + (this.vanityUrl == null ? 43 : this.vanityUrl.hashCode()); result = (result * PRIME) @@ -635,6 +786,12 @@ public int hashCode() { result = (result * PRIME) + (this.isRoverExportable == null ? 43 : this.isRoverExportable.hashCode()); + result = (result * PRIME) + (this.demoUrl == null ? 43 : this.demoUrl.hashCode()); + result = + (result * PRIME) + + (this.selfPacedTrainingUrl == null + ? 43 + : this.selfPacedTrainingUrl.hashCode()); return result; } } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UpdateRelatedDocumentAttachmentDetails.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UpdateRelatedDocumentAttachmentDetails.java index c114b4cf577..6b42209aab9 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UpdateRelatedDocumentAttachmentDetails.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UpdateRelatedDocumentAttachmentDetails.java @@ -80,6 +80,21 @@ public Builder documentCategory( this.__explicitlySet__.add("documentCategory"); return this; } + /** The document URL of the listing revision attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceUrl") + private String sourceUrl; + + /** + * The document URL of the listing revision attachment. + * + * @param sourceUrl the value to set + * @return this builder + */ + public Builder sourceUrl(String sourceUrl) { + this.sourceUrl = sourceUrl; + this.__explicitlySet__.add("sourceUrl"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -91,7 +106,8 @@ public UpdateRelatedDocumentAttachmentDetails build() { this.description, this.freeformTags, this.definedTags, - this.documentCategory); + this.documentCategory, + this.sourceUrl); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -115,6 +131,9 @@ public Builder copy(UpdateRelatedDocumentAttachmentDetails model) { if (model.wasPropertyExplicitlySet("documentCategory")) { this.documentCategory(model.getDocumentCategory()); } + if (model.wasPropertyExplicitlySet("sourceUrl")) { + this.sourceUrl(model.getSourceUrl()); + } return this; } } @@ -134,9 +153,11 @@ public UpdateRelatedDocumentAttachmentDetails( String description, java.util.Map freeformTags, java.util.Map> definedTags, - RelatedDocumentAttachment.DocumentCategory documentCategory) { + RelatedDocumentAttachment.DocumentCategory documentCategory, + String sourceUrl) { super(displayName, description, freeformTags, definedTags); this.documentCategory = documentCategory; + this.sourceUrl = sourceUrl; } /** The document category of the listing revision attachment. */ @@ -152,6 +173,19 @@ public RelatedDocumentAttachment.DocumentCategory getDocumentCategory() { return documentCategory; } + /** The document URL of the listing revision attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceUrl") + private final String sourceUrl; + + /** + * The document URL of the listing revision attachment. + * + * @return the value + */ + public String getSourceUrl() { + return sourceUrl; + } + @Override public String toString() { return this.toString(true); @@ -168,6 +202,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("UpdateRelatedDocumentAttachmentDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", documentCategory=").append(String.valueOf(this.documentCategory)); + sb.append(", sourceUrl=").append(String.valueOf(this.sourceUrl)); sb.append(")"); return sb.toString(); } @@ -183,6 +218,7 @@ public boolean equals(Object o) { UpdateRelatedDocumentAttachmentDetails other = (UpdateRelatedDocumentAttachmentDetails) o; return java.util.Objects.equals(this.documentCategory, other.documentCategory) + && java.util.Objects.equals(this.sourceUrl, other.sourceUrl) && super.equals(other); } @@ -193,6 +229,7 @@ public int hashCode() { result = (result * PRIME) + (this.documentCategory == null ? 43 : this.documentCategory.hashCode()); + result = (result * PRIME) + (this.sourceUrl == null ? 43 : this.sourceUrl.hashCode()); return result; } } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UpdateSupportedServiceAttachment.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UpdateSupportedServiceAttachment.java index 40dc0ccb299..880687a633c 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UpdateSupportedServiceAttachment.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UpdateSupportedServiceAttachment.java @@ -108,6 +108,21 @@ public Builder type(SupportedServiceAttachment.Type type) { this.__explicitlySet__.add("type"); return this; } + /** The specified attachment type is Internal or External. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private ListingRevisionAttachment.SourceType sourceType; + + /** + * The specified attachment type is Internal or External. + * + * @param sourceType the value to set + * @return this builder + */ + public Builder sourceType(ListingRevisionAttachment.SourceType sourceType) { + this.sourceType = sourceType; + this.__explicitlySet__.add("sourceType"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -121,7 +136,8 @@ public UpdateSupportedServiceAttachment build() { this.definedTags, this.serviceName, this.url, - this.type); + this.type, + this.sourceType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -151,6 +167,9 @@ public Builder copy(UpdateSupportedServiceAttachment model) { if (model.wasPropertyExplicitlySet("type")) { this.type(model.getType()); } + if (model.wasPropertyExplicitlySet("sourceType")) { + this.sourceType(model.getSourceType()); + } return this; } } @@ -172,11 +191,13 @@ public UpdateSupportedServiceAttachment( java.util.Map> definedTags, String serviceName, String url, - SupportedServiceAttachment.Type type) { + SupportedServiceAttachment.Type type, + ListingRevisionAttachment.SourceType sourceType) { super(displayName, description, freeformTags, definedTags); this.serviceName = serviceName; this.url = url; this.type = type; + this.sourceType = sourceType; } /** Name of the service */ @@ -218,6 +239,19 @@ public SupportedServiceAttachment.Type getType() { return type; } + /** The specified attachment type is Internal or External. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private final ListingRevisionAttachment.SourceType sourceType; + + /** + * The specified attachment type is Internal or External. + * + * @return the value + */ + public ListingRevisionAttachment.SourceType getSourceType() { + return sourceType; + } + @Override public String toString() { return this.toString(true); @@ -236,6 +270,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", serviceName=").append(String.valueOf(this.serviceName)); sb.append(", url=").append(String.valueOf(this.url)); sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", sourceType=").append(String.valueOf(this.sourceType)); sb.append(")"); return sb.toString(); } @@ -253,6 +288,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.serviceName, other.serviceName) && java.util.Objects.equals(this.url, other.url) && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.sourceType, other.sourceType) && super.equals(other); } @@ -263,6 +299,7 @@ public int hashCode() { result = (result * PRIME) + (this.serviceName == null ? 43 : this.serviceName.hashCode()); result = (result * PRIME) + (this.url == null ? 43 : this.url.hashCode()); result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.sourceType == null ? 43 : this.sourceType.hashCode()); return result; } } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UsageBasedPricingPlan.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UsageBasedPricingPlan.java new file mode 100644 index 00000000000..1ae08b61fe4 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UsageBasedPricingPlan.java @@ -0,0 +1,481 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Usage-based SaaS pricing plan where all billing is driven by dimensions.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UsageBasedPricingPlan.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "planType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UsageBasedPricingPlan extends PricingPlan { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("rates") + private java.util.List rates; + + public Builder rates(java.util.List rates) { + this.rates = rates; + this.__explicitlySet__.add("rates"); + return this; + } + /** Unique identifier of the pricing plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("pricingPlanKey") + private String pricingPlanKey; + + /** + * Unique identifier of the pricing plan. + * + * @param pricingPlanKey the value to set + * @return this builder + */ + public Builder pricingPlanKey(String pricingPlanKey) { + this.pricingPlanKey = pricingPlanKey; + this.__explicitlySet__.add("pricingPlanKey"); + return this; + } + /** The plan name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The plan 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 plan description. */ + @com.fasterxml.jackson.annotation.JsonProperty("planDescription") + private String planDescription; + + /** + * The plan description. + * + * @param planDescription the value to set + * @return this builder + */ + public Builder planDescription(String planDescription) { + this.planDescription = planDescription; + this.__explicitlySet__.add("planDescription"); + return this; + } + /** The plan billing frequency. */ + @com.fasterxml.jackson.annotation.JsonProperty("billingFrequency") + private BillingFrequency billingFrequency; + + /** + * The plan billing frequency. + * + * @param billingFrequency the value to set + * @return this builder + */ + public Builder billingFrequency(BillingFrequency billingFrequency) { + this.billingFrequency = billingFrequency; + this.__explicitlySet__.add("billingFrequency"); + return this; + } + /** The plan duration. */ + @com.fasterxml.jackson.annotation.JsonProperty("planDuration") + private PlanDuration planDuration; + + /** + * The plan duration. + * + * @param planDuration the value to set + * @return this builder + */ + public Builder planDuration(PlanDuration planDuration) { + this.planDuration = planDuration; + this.__explicitlySet__.add("planDuration"); + return this; + } + /** The usage dimensions that define billable usage for this plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("dimensions") + private java.util.List dimensions; + + /** + * The usage dimensions that define billable usage for this plan. + * + * @param dimensions the value to set + * @return this builder + */ + public Builder dimensions(java.util.List dimensions) { + this.dimensions = dimensions; + this.__explicitlySet__.add("dimensions"); + return this; + } + /** Additional metadata key/value pairs for the usage-based pricing. */ + @com.fasterxml.jackson.annotation.JsonProperty("extendedMetadata") + private java.util.Map extendedMetadata; + + /** + * Additional metadata key/value pairs for the usage-based pricing. + * + * @param extendedMetadata the value to set + * @return this builder + */ + public Builder extendedMetadata(java.util.Map extendedMetadata) { + this.extendedMetadata = extendedMetadata; + this.__explicitlySet__.add("extendedMetadata"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UsageBasedPricingPlan build() { + UsageBasedPricingPlan model = + new UsageBasedPricingPlan( + this.rates, + this.pricingPlanKey, + this.name, + this.planDescription, + this.billingFrequency, + this.planDuration, + this.dimensions, + this.extendedMetadata); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UsageBasedPricingPlan model) { + if (model.wasPropertyExplicitlySet("rates")) { + this.rates(model.getRates()); + } + if (model.wasPropertyExplicitlySet("pricingPlanKey")) { + this.pricingPlanKey(model.getPricingPlanKey()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("planDescription")) { + this.planDescription(model.getPlanDescription()); + } + if (model.wasPropertyExplicitlySet("billingFrequency")) { + this.billingFrequency(model.getBillingFrequency()); + } + if (model.wasPropertyExplicitlySet("planDuration")) { + this.planDuration(model.getPlanDuration()); + } + if (model.wasPropertyExplicitlySet("dimensions")) { + this.dimensions(model.getDimensions()); + } + if (model.wasPropertyExplicitlySet("extendedMetadata")) { + this.extendedMetadata(model.getExtendedMetadata()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UsageBasedPricingPlan( + java.util.List rates, + String pricingPlanKey, + String name, + String planDescription, + BillingFrequency billingFrequency, + PlanDuration planDuration, + java.util.List dimensions, + java.util.Map extendedMetadata) { + super(rates); + this.pricingPlanKey = pricingPlanKey; + this.name = name; + this.planDescription = planDescription; + this.billingFrequency = billingFrequency; + this.planDuration = planDuration; + this.dimensions = dimensions; + this.extendedMetadata = extendedMetadata; + } + + /** Unique identifier of the pricing plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("pricingPlanKey") + private final String pricingPlanKey; + + /** + * Unique identifier of the pricing plan. + * + * @return the value + */ + public String getPricingPlanKey() { + return pricingPlanKey; + } + + /** The plan name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The plan name. + * + * @return the value + */ + public String getName() { + return name; + } + + /** The plan description. */ + @com.fasterxml.jackson.annotation.JsonProperty("planDescription") + private final String planDescription; + + /** + * The plan description. + * + * @return the value + */ + public String getPlanDescription() { + return planDescription; + } + + /** The plan billing frequency. */ + public enum BillingFrequency implements com.oracle.bmc.http.internal.BmcEnum { + Monthly("MONTHLY"), + Quarterly("QUARTERLY"), + SemiAnnual("SEMI_ANNUAL"), + Annual("ANNUAL"), + Biennial("BIENNIAL"), + Triennial("TRIENNIAL"), + + /** + * 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(BillingFrequency.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (BillingFrequency v : BillingFrequency.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + BillingFrequency(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static BillingFrequency create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'BillingFrequency', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The plan billing frequency. */ + @com.fasterxml.jackson.annotation.JsonProperty("billingFrequency") + private final BillingFrequency billingFrequency; + + /** + * The plan billing frequency. + * + * @return the value + */ + public BillingFrequency getBillingFrequency() { + return billingFrequency; + } + + /** The plan duration. */ + public enum PlanDuration implements com.oracle.bmc.http.internal.BmcEnum { + Monthly("MONTHLY"), + Quarterly("QUARTERLY"), + SemiAnnual("SEMI_ANNUAL"), + Annual("ANNUAL"), + Biennial("BIENNIAL"), + Triennial("TRIENNIAL"), + + /** + * 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(PlanDuration.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PlanDuration v : PlanDuration.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PlanDuration(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PlanDuration create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PlanDuration', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The plan duration. */ + @com.fasterxml.jackson.annotation.JsonProperty("planDuration") + private final PlanDuration planDuration; + + /** + * The plan duration. + * + * @return the value + */ + public PlanDuration getPlanDuration() { + return planDuration; + } + + /** The usage dimensions that define billable usage for this plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("dimensions") + private final java.util.List dimensions; + + /** + * The usage dimensions that define billable usage for this plan. + * + * @return the value + */ + public java.util.List getDimensions() { + return dimensions; + } + + /** Additional metadata key/value pairs for the usage-based pricing. */ + @com.fasterxml.jackson.annotation.JsonProperty("extendedMetadata") + private final java.util.Map extendedMetadata; + + /** + * Additional metadata key/value pairs for the usage-based pricing. + * + * @return the value + */ + public java.util.Map getExtendedMetadata() { + return extendedMetadata; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UsageBasedPricingPlan("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", pricingPlanKey=").append(String.valueOf(this.pricingPlanKey)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", planDescription=").append(String.valueOf(this.planDescription)); + sb.append(", billingFrequency=").append(String.valueOf(this.billingFrequency)); + sb.append(", planDuration=").append(String.valueOf(this.planDuration)); + sb.append(", dimensions=").append(String.valueOf(this.dimensions)); + sb.append(", extendedMetadata=").append(String.valueOf(this.extendedMetadata)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UsageBasedPricingPlan)) { + return false; + } + + UsageBasedPricingPlan other = (UsageBasedPricingPlan) o; + return java.util.Objects.equals(this.pricingPlanKey, other.pricingPlanKey) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.planDescription, other.planDescription) + && java.util.Objects.equals(this.billingFrequency, other.billingFrequency) + && java.util.Objects.equals(this.planDuration, other.planDuration) + && java.util.Objects.equals(this.dimensions, other.dimensions) + && java.util.Objects.equals(this.extendedMetadata, other.extendedMetadata) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.pricingPlanKey == null ? 43 : this.pricingPlanKey.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.planDescription == null ? 43 : this.planDescription.hashCode()); + result = + (result * PRIME) + + (this.billingFrequency == null ? 43 : this.billingFrequency.hashCode()); + result = (result * PRIME) + (this.planDuration == null ? 43 : this.planDuration.hashCode()); + result = (result * PRIME) + (this.dimensions == null ? 43 : this.dimensions.hashCode()); + result = + (result * PRIME) + + (this.extendedMetadata == null ? 43 : this.extendedMetadata.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UsageDimension.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UsageDimension.java new file mode 100644 index 00000000000..98d0eba25ab --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UsageDimension.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.marketplacepublisher.model; + +/** + * Usage dimension for usage-based or hybrid SaaS pricing.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = UsageDimension.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UsageDimension + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "dimensionKey", + "dimensionName", + "dimensionDescription", + "metricType", + "dimensionBillingFrequency", + "includedQuantity", + "additionalDetails", + "rates" + }) + public UsageDimension( + String dimensionKey, + String dimensionName, + String dimensionDescription, + MetricType metricType, + DimensionBillingFrequency dimensionBillingFrequency, + Float includedQuantity, + java.util.Map additionalDetails, + java.util.List rates) { + super(); + this.dimensionKey = dimensionKey; + this.dimensionName = dimensionName; + this.dimensionDescription = dimensionDescription; + this.metricType = metricType; + this.dimensionBillingFrequency = dimensionBillingFrequency; + this.includedQuantity = includedQuantity; + this.additionalDetails = additionalDetails; + this.rates = rates; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Server-generated unique identifier for the usage dimension. If omitted in the request, it + * is generated automatically. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dimensionKey") + private String dimensionKey; + + /** + * Server-generated unique identifier for the usage dimension. If omitted in the request, it + * is generated automatically. + * + * @param dimensionKey the value to set + * @return this builder + */ + public Builder dimensionKey(String dimensionKey) { + this.dimensionKey = dimensionKey; + this.__explicitlySet__.add("dimensionKey"); + return this; + } + /** The dimension name. */ + @com.fasterxml.jackson.annotation.JsonProperty("dimensionName") + private String dimensionName; + + /** + * The dimension name. + * + * @param dimensionName the value to set + * @return this builder + */ + public Builder dimensionName(String dimensionName) { + this.dimensionName = dimensionName; + this.__explicitlySet__.add("dimensionName"); + return this; + } + /** The dimension description. */ + @com.fasterxml.jackson.annotation.JsonProperty("dimensionDescription") + private String dimensionDescription; + + /** + * The dimension description. + * + * @param dimensionDescription the value to set + * @return this builder + */ + public Builder dimensionDescription(String dimensionDescription) { + this.dimensionDescription = dimensionDescription; + this.__explicitlySet__.add("dimensionDescription"); + return this; + } + /** The metric type used to measure usage for the dimension. */ + @com.fasterxml.jackson.annotation.JsonProperty("metricType") + private MetricType metricType; + + /** + * The metric type used to measure usage for the dimension. + * + * @param metricType the value to set + * @return this builder + */ + public Builder metricType(MetricType metricType) { + this.metricType = metricType; + this.__explicitlySet__.add("metricType"); + return this; + } + /** Billing frequency used for the dimension. */ + @com.fasterxml.jackson.annotation.JsonProperty("dimensionBillingFrequency") + private DimensionBillingFrequency dimensionBillingFrequency; + + /** + * Billing frequency used for the dimension. + * + * @param dimensionBillingFrequency the value to set + * @return this builder + */ + public Builder dimensionBillingFrequency( + DimensionBillingFrequency dimensionBillingFrequency) { + this.dimensionBillingFrequency = dimensionBillingFrequency; + this.__explicitlySet__.add("dimensionBillingFrequency"); + return this; + } + /** Included quantity before overage rates apply. */ + @com.fasterxml.jackson.annotation.JsonProperty("includedQuantity") + private Float includedQuantity; + + /** + * Included quantity before overage rates apply. + * + * @param includedQuantity the value to set + * @return this builder + */ + public Builder includedQuantity(Float includedQuantity) { + this.includedQuantity = includedQuantity; + this.__explicitlySet__.add("includedQuantity"); + return this; + } + /** Additional metadata key/value pairs for the dimension. */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalDetails") + private java.util.Map additionalDetails; + + /** + * Additional metadata key/value pairs for the dimension. + * + * @param additionalDetails the value to set + * @return this builder + */ + public Builder additionalDetails(java.util.Map additionalDetails) { + this.additionalDetails = additionalDetails; + this.__explicitlySet__.add("additionalDetails"); + return this; + } + /** List of pricing rates provider by publisher for the dimension. */ + @com.fasterxml.jackson.annotation.JsonProperty("rates") + private java.util.List rates; + + /** + * List of pricing rates provider by publisher for the dimension. + * + * @param rates the value to set + * @return this builder + */ + public Builder rates(java.util.List rates) { + this.rates = rates; + this.__explicitlySet__.add("rates"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UsageDimension build() { + UsageDimension model = + new UsageDimension( + this.dimensionKey, + this.dimensionName, + this.dimensionDescription, + this.metricType, + this.dimensionBillingFrequency, + this.includedQuantity, + this.additionalDetails, + this.rates); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UsageDimension model) { + if (model.wasPropertyExplicitlySet("dimensionKey")) { + this.dimensionKey(model.getDimensionKey()); + } + if (model.wasPropertyExplicitlySet("dimensionName")) { + this.dimensionName(model.getDimensionName()); + } + if (model.wasPropertyExplicitlySet("dimensionDescription")) { + this.dimensionDescription(model.getDimensionDescription()); + } + if (model.wasPropertyExplicitlySet("metricType")) { + this.metricType(model.getMetricType()); + } + if (model.wasPropertyExplicitlySet("dimensionBillingFrequency")) { + this.dimensionBillingFrequency(model.getDimensionBillingFrequency()); + } + if (model.wasPropertyExplicitlySet("includedQuantity")) { + this.includedQuantity(model.getIncludedQuantity()); + } + if (model.wasPropertyExplicitlySet("additionalDetails")) { + this.additionalDetails(model.getAdditionalDetails()); + } + if (model.wasPropertyExplicitlySet("rates")) { + this.rates(model.getRates()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Server-generated unique identifier for the usage dimension. If omitted in the request, it is + * generated automatically. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dimensionKey") + private final String dimensionKey; + + /** + * Server-generated unique identifier for the usage dimension. If omitted in the request, it is + * generated automatically. + * + * @return the value + */ + public String getDimensionKey() { + return dimensionKey; + } + + /** The dimension name. */ + @com.fasterxml.jackson.annotation.JsonProperty("dimensionName") + private final String dimensionName; + + /** + * The dimension name. + * + * @return the value + */ + public String getDimensionName() { + return dimensionName; + } + + /** The dimension description. */ + @com.fasterxml.jackson.annotation.JsonProperty("dimensionDescription") + private final String dimensionDescription; + + /** + * The dimension description. + * + * @return the value + */ + public String getDimensionDescription() { + return dimensionDescription; + } + + /** The metric type used to measure usage for the dimension. */ + @com.fasterxml.jackson.annotation.JsonProperty("metricType") + private final MetricType metricType; + + /** + * The metric type used to measure usage for the dimension. + * + * @return the value + */ + public MetricType getMetricType() { + return metricType; + } + + /** Billing frequency used for the dimension. */ + public enum DimensionBillingFrequency implements com.oracle.bmc.http.internal.BmcEnum { + Monthly("MONTHLY"), + Quarterly("QUARTERLY"), + SemiAnnual("SEMI_ANNUAL"), + Annual("ANNUAL"), + Biennial("BIENNIAL"), + Triennial("TRIENNIAL"), + + /** + * 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(DimensionBillingFrequency.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DimensionBillingFrequency v : DimensionBillingFrequency.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DimensionBillingFrequency(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DimensionBillingFrequency create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DimensionBillingFrequency', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Billing frequency used for the dimension. */ + @com.fasterxml.jackson.annotation.JsonProperty("dimensionBillingFrequency") + private final DimensionBillingFrequency dimensionBillingFrequency; + + /** + * Billing frequency used for the dimension. + * + * @return the value + */ + public DimensionBillingFrequency getDimensionBillingFrequency() { + return dimensionBillingFrequency; + } + + /** Included quantity before overage rates apply. */ + @com.fasterxml.jackson.annotation.JsonProperty("includedQuantity") + private final Float includedQuantity; + + /** + * Included quantity before overage rates apply. + * + * @return the value + */ + public Float getIncludedQuantity() { + return includedQuantity; + } + + /** Additional metadata key/value pairs for the dimension. */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalDetails") + private final java.util.Map additionalDetails; + + /** + * Additional metadata key/value pairs for the dimension. + * + * @return the value + */ + public java.util.Map getAdditionalDetails() { + return additionalDetails; + } + + /** List of pricing rates provider by publisher for the dimension. */ + @com.fasterxml.jackson.annotation.JsonProperty("rates") + private final java.util.List rates; + + /** + * List of pricing rates provider by publisher for the dimension. + * + * @return the value + */ + public java.util.List getRates() { + return rates; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UsageDimension("); + sb.append("super=").append(super.toString()); + sb.append("dimensionKey=").append(String.valueOf(this.dimensionKey)); + sb.append(", dimensionName=").append(String.valueOf(this.dimensionName)); + sb.append(", dimensionDescription=").append(String.valueOf(this.dimensionDescription)); + sb.append(", metricType=").append(String.valueOf(this.metricType)); + sb.append(", dimensionBillingFrequency=") + .append(String.valueOf(this.dimensionBillingFrequency)); + sb.append(", includedQuantity=").append(String.valueOf(this.includedQuantity)); + sb.append(", additionalDetails=").append(String.valueOf(this.additionalDetails)); + sb.append(", rates=").append(String.valueOf(this.rates)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UsageDimension)) { + return false; + } + + UsageDimension other = (UsageDimension) o; + return java.util.Objects.equals(this.dimensionKey, other.dimensionKey) + && java.util.Objects.equals(this.dimensionName, other.dimensionName) + && java.util.Objects.equals(this.dimensionDescription, other.dimensionDescription) + && java.util.Objects.equals(this.metricType, other.metricType) + && java.util.Objects.equals( + this.dimensionBillingFrequency, other.dimensionBillingFrequency) + && java.util.Objects.equals(this.includedQuantity, other.includedQuantity) + && java.util.Objects.equals(this.additionalDetails, other.additionalDetails) + && java.util.Objects.equals(this.rates, other.rates) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.dimensionKey == null ? 43 : this.dimensionKey.hashCode()); + result = + (result * PRIME) + + (this.dimensionName == null ? 43 : this.dimensionName.hashCode()); + result = + (result * PRIME) + + (this.dimensionDescription == null + ? 43 + : this.dimensionDescription.hashCode()); + result = (result * PRIME) + (this.metricType == null ? 43 : this.metricType.hashCode()); + result = + (result * PRIME) + + (this.dimensionBillingFrequency == null + ? 43 + : this.dimensionBillingFrequency.hashCode()); + result = + (result * PRIME) + + (this.includedQuantity == null ? 43 : this.includedQuantity.hashCode()); + result = + (result * PRIME) + + (this.additionalDetails == null ? 43 : this.additionalDetails.hashCode()); + result = (result * PRIME) + (this.rates == null ? 43 : this.rates.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/VideoAttachment.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/VideoAttachment.java index 3a30a28d2c4..4bde698743a 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/VideoAttachment.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/VideoAttachment.java @@ -71,6 +71,15 @@ public Builder description(String description) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("sourceType") + private SourceType sourceType; + + public Builder sourceType(SourceType sourceType) { + this.sourceType = sourceType; + this.__explicitlySet__.add("sourceType"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; @@ -152,6 +161,7 @@ public VideoAttachment build() { this.listingRevisionId, this.displayName, this.description, + this.sourceType, this.lifecycleState, this.timeCreated, this.timeUpdated, @@ -182,6 +192,9 @@ public Builder copy(VideoAttachment model) { if (model.wasPropertyExplicitlySet("description")) { this.description(model.getDescription()); } + if (model.wasPropertyExplicitlySet("sourceType")) { + this.sourceType(model.getSourceType()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -223,6 +236,7 @@ public VideoAttachment( String listingRevisionId, String displayName, String description, + SourceType sourceType, LifecycleState lifecycleState, java.util.Date timeCreated, java.util.Date timeUpdated, @@ -236,6 +250,7 @@ public VideoAttachment( listingRevisionId, displayName, description, + sourceType, lifecycleState, timeCreated, timeUpdated, diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedDatabaseRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ChangeListingRevisionStatusToNewRequest.java similarity index 57% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedDatabaseRequest.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ChangeListingRevisionStatusToNewRequest.java index ca9a3d734da..a9e276b48f8 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedDatabaseRequest.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ChangeListingRevisionStatusToNewRequest.java @@ -2,51 +2,25 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; /** * Example: Click here to see how to use - * DeleteDistributedDatabaseRequest. + * ChangeListingRevisionStatusToNewRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DeleteDistributedDatabaseRequest +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ChangeListingRevisionStatusToNewRequest extends com.oracle.bmc.requests.BmcRequest { - /** Globally distributed database identifier. */ - private String distributedDatabaseId; + /** listing revision */ + private String listingRevisionId; - /** 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; + /** listing revision */ + public String getListingRevisionId() { + return listingRevisionId; } /** * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code @@ -65,62 +39,31 @@ public String getOpcRetryToken() { public String getIfMatch() { return ifMatch; } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - DeleteDistributedDatabaseRequest, java.lang.Void> { + ChangeListingRevisionStatusToNewRequest, 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; + /** listing revision */ + private String listingRevisionId = 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. + * listing revision * - * @param opcRetryToken the value to set + * @param listingRevisionId the value to set * @return this builder instance */ - public Builder opcRetryToken(String opcRetryToken) { - this.opcRetryToken = opcRetryToken; + public Builder listingRevisionId(String listingRevisionId) { + this.listingRevisionId = listingRevisionId; return this; } @@ -146,6 +89,20 @@ public Builder ifMatch(String ifMatch) { return this; } + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -175,18 +132,18 @@ public Builder retryConfiguration( * * @return this builder instance */ - public Builder copy(DeleteDistributedDatabaseRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - opcRequestId(o.getOpcRequestId()); - opcRetryToken(o.getOpcRetryToken()); + public Builder copy(ChangeListingRevisionStatusToNewRequest o) { + listingRevisionId(o.getListingRevisionId()); ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; } /** - * Build the instance of DeleteDistributedDatabaseRequest as configured by this builder + * Build the instance of ChangeListingRevisionStatusToNewRequest as configured by this + * builder * *

    Note that this method takes calls to {@link * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, @@ -194,33 +151,34 @@ public Builder copy(DeleteDistributedDatabaseRequest o) { * *

    This is the preferred method to build an instance. * - * @return instance of DeleteDistributedDatabaseRequest + * @return instance of ChangeListingRevisionStatusToNewRequest */ - public DeleteDistributedDatabaseRequest build() { - DeleteDistributedDatabaseRequest request = buildWithoutInvocationCallback(); + public ChangeListingRevisionStatusToNewRequest build() { + ChangeListingRevisionStatusToNewRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of DeleteDistributedDatabaseRequest as configured by this builder + * Build the instance of ChangeListingRevisionStatusToNewRequest 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 + * @return instance of ChangeListingRevisionStatusToNewRequest */ - public DeleteDistributedDatabaseRequest buildWithoutInvocationCallback() { - DeleteDistributedDatabaseRequest request = new DeleteDistributedDatabaseRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.opcRequestId = opcRequestId; - request.opcRetryToken = opcRetryToken; + public ChangeListingRevisionStatusToNewRequest buildWithoutInvocationCallback() { + ChangeListingRevisionStatusToNewRequest request = + new ChangeListingRevisionStatusToNewRequest(); + request.listingRevisionId = listingRevisionId; request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; return request; - // new DeleteDistributedDatabaseRequest(distributedDatabaseId, opcRequestId, - // opcRetryToken, ifMatch); + // new ChangeListingRevisionStatusToNewRequest(listingRevisionId, ifMatch, + // opcRequestId); } } @@ -231,10 +189,9 @@ public DeleteDistributedDatabaseRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken) - .ifMatch(ifMatch); + .listingRevisionId(listingRevisionId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); } /** @@ -251,10 +208,9 @@ 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(",listingRevisionId=").append(String.valueOf(this.listingRevisionId)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); return sb.toString(); } @@ -264,16 +220,15 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DeleteDistributedDatabaseRequest)) { + if (!(o instanceof ChangeListingRevisionStatusToNewRequest)) { return false; } - DeleteDistributedDatabaseRequest other = (DeleteDistributedDatabaseRequest) o; + ChangeListingRevisionStatusToNewRequest other = (ChangeListingRevisionStatusToNewRequest) 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); + && java.util.Objects.equals(this.listingRevisionId, other.listingRevisionId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @Override @@ -282,14 +237,9 @@ public int hashCode() { 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()); + + (this.listingRevisionId == null ? 43 : this.listingRevisionId.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StopDistributedDatabaseRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/CreateMarketRequest.java similarity index 63% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StopDistributedDatabaseRequest.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/CreateMarketRequest.java index 4264defbcf3..7d6f4273f2d 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StopDistributedDatabaseRequest.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/CreateMarketRequest.java @@ -2,25 +2,25 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; /** * Example: Click here to see how to use - * StopDistributedDatabaseRequest. + * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/marketplacepublisher/CreateMarketExample.java.html" + * target="_blank" rel="noopener noreferrer">here to see how to use CreateMarketRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class StopDistributedDatabaseRequest - extends com.oracle.bmc.requests.BmcRequest { +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class CreateMarketRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.marketplacepublisher.model.CreateMarketDetails> { - /** Globally distributed database identifier. */ - private String distributedDatabaseId; + /** Details for the new Market. */ + private com.oracle.bmc.marketplacepublisher.model.CreateMarketDetails createMarketDetails; - /** Globally distributed database identifier. */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; + /** Details for the new Market. */ + public com.oracle.bmc.marketplacepublisher.model.CreateMarketDetails getCreateMarketDetails() { + return createMarketDetails; } /** * A token that uniquely identifies a request so it can be retried in case of a timeout or @@ -48,41 +48,38 @@ public String getOpcRetryToken() { 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. + * Alternative accessor for the body parameter. + * + * @return body parameter */ - public String getIfMatch() { - return ifMatch; + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.marketplacepublisher.model.CreateMarketDetails getBody$() { + return createMarketDetails; } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - StopDistributedDatabaseRequest, java.lang.Void> { + CreateMarketRequest, + com.oracle.bmc.marketplacepublisher.model.CreateMarketDetails> { 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; + /** Details for the new Market. */ + private com.oracle.bmc.marketplacepublisher.model.CreateMarketDetails createMarketDetails = + null; /** - * Globally distributed database identifier. + * Details for the new Market. * - * @param distributedDatabaseId the value to set + * @param createMarketDetails the value to set * @return this builder instance */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; + public Builder createMarketDetails( + com.oracle.bmc.marketplacepublisher.model.CreateMarketDetails createMarketDetails) { + this.createMarketDetails = createMarketDetails; return this; } @@ -124,28 +121,6 @@ public Builder opcRequestId(String 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. * @@ -175,18 +150,17 @@ public Builder retryConfiguration( * * @return this builder instance */ - public Builder copy(StopDistributedDatabaseRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); + public Builder copy(CreateMarketRequest o) { + createMarketDetails(o.getCreateMarketDetails()); 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 + * Build the instance of CreateMarketRequest as configured by this builder * *

    Note that this method takes calls to {@link * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, @@ -194,33 +168,43 @@ public Builder copy(StopDistributedDatabaseRequest o) { * *

    This is the preferred method to build an instance. * - * @return instance of StopDistributedDatabaseRequest + * @return instance of CreateMarketRequest */ - public StopDistributedDatabaseRequest build() { - StopDistributedDatabaseRequest request = buildWithoutInvocationCallback(); + public CreateMarketRequest build() { + CreateMarketRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of StopDistributedDatabaseRequest as configured by this builder + * 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.marketplacepublisher.model.CreateMarketDetails body) { + createMarketDetails(body); + return this; + } + + /** + * Build the instance of CreateMarketRequest 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 + * @return instance of CreateMarketRequest */ - public StopDistributedDatabaseRequest buildWithoutInvocationCallback() { - StopDistributedDatabaseRequest request = new StopDistributedDatabaseRequest(); - request.distributedDatabaseId = distributedDatabaseId; + public CreateMarketRequest buildWithoutInvocationCallback() { + CreateMarketRequest request = new CreateMarketRequest(); + request.createMarketDetails = createMarketDetails; request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; return request; - // new StopDistributedDatabaseRequest(distributedDatabaseId, opcRetryToken, - // opcRequestId, ifMatch); + // new CreateMarketRequest(createMarketDetails, opcRetryToken, opcRequestId); } } @@ -231,10 +215,9 @@ public StopDistributedDatabaseRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() - .distributedDatabaseId(distributedDatabaseId) + .createMarketDetails(createMarketDetails) .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch); + .opcRequestId(opcRequestId); } /** @@ -251,10 +234,9 @@ 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(",createMarketDetails=").append(String.valueOf(this.createMarketDetails)); 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(); } @@ -264,16 +246,15 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof StopDistributedDatabaseRequest)) { + if (!(o instanceof CreateMarketRequest)) { return false; } - StopDistributedDatabaseRequest other = (StopDistributedDatabaseRequest) o; + CreateMarketRequest other = (CreateMarketRequest) o; return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && java.util.Objects.equals(this.createMarketDetails, other.createMarketDetails) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @Override @@ -282,14 +263,13 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.distributedDatabaseId == null + + (this.createMarketDetails == null ? 43 - : this.distributedDatabaseId.hashCode()); + : this.createMarketDetails.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/CreateDistributedDatabaseRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/CreatePublisherRequest.java similarity index 69% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedDatabaseRequest.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/CreatePublisherRequest.java index 6529bde6540..1e4ac6578d8 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedDatabaseRequest.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/CreatePublisherRequest.java @@ -2,28 +2,26 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; /** * Example: Click here to see how to use - * CreateDistributedDatabaseRequest. + * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/marketplacepublisher/CreatePublisherExample.java.html" + * target="_blank" rel="noopener noreferrer">here to see how to use CreatePublisherRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class CreateDistributedDatabaseRequest +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class CreatePublisherRequest extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseDetails> { + com.oracle.bmc.marketplacepublisher.model.CreatePublisherDetails> { - /** Details of the Globally distributed database to be created. */ - private com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseDetails - createDistributedDatabaseDetails; + /** The publisher information to be created. */ + private com.oracle.bmc.marketplacepublisher.model.CreatePublisherDetails createPublisherDetails; - /** Details of the Globally distributed database to be created. */ - public com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseDetails - getCreateDistributedDatabaseDetails() { - return createDistributedDatabaseDetails; + /** The publisher information to be created. */ + public com.oracle.bmc.marketplacepublisher.model.CreatePublisherDetails + getCreatePublisherDetails() { + return createPublisherDetails; } /** * A token that uniquely identifies a request so it can be retried in case of a timeout or @@ -59,31 +57,31 @@ public String getOpcRequestId() { */ @Override @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseDetails getBody$() { - return createDistributedDatabaseDetails; + public com.oracle.bmc.marketplacepublisher.model.CreatePublisherDetails getBody$() { + return createPublisherDetails; } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - CreateDistributedDatabaseRequest, - com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseDetails> { + CreatePublisherRequest, + com.oracle.bmc.marketplacepublisher.model.CreatePublisherDetails> { 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; + /** The publisher information to be created. */ + private com.oracle.bmc.marketplacepublisher.model.CreatePublisherDetails + createPublisherDetails = null; /** - * Details of the Globally distributed database to be created. + * The publisher information to be created. * - * @param createDistributedDatabaseDetails the value to set + * @param createPublisherDetails the value to set * @return this builder instance */ - public Builder createDistributedDatabaseDetails( - com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseDetails - createDistributedDatabaseDetails) { - this.createDistributedDatabaseDetails = createDistributedDatabaseDetails; + public Builder createPublisherDetails( + com.oracle.bmc.marketplacepublisher.model.CreatePublisherDetails + createPublisherDetails) { + this.createPublisherDetails = createPublisherDetails; return this; } @@ -154,8 +152,8 @@ public Builder retryConfiguration( * * @return this builder instance */ - public Builder copy(CreateDistributedDatabaseRequest o) { - createDistributedDatabaseDetails(o.getCreateDistributedDatabaseDetails()); + public Builder copy(CreatePublisherRequest o) { + createPublisherDetails(o.getCreatePublisherDetails()); opcRetryToken(o.getOpcRetryToken()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); @@ -164,7 +162,7 @@ public Builder copy(CreateDistributedDatabaseRequest o) { } /** - * Build the instance of CreateDistributedDatabaseRequest as configured by this builder + * Build the instance of CreatePublisherRequest as configured by this builder * *

    Note that this method takes calls to {@link * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, @@ -172,10 +170,10 @@ public Builder copy(CreateDistributedDatabaseRequest o) { * *

    This is the preferred method to build an instance. * - * @return instance of CreateDistributedDatabaseRequest + * @return instance of CreatePublisherRequest */ - public CreateDistributedDatabaseRequest build() { - CreateDistributedDatabaseRequest request = buildWithoutInvocationCallback(); + public CreatePublisherRequest build() { + CreatePublisherRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; @@ -189,28 +187,27 @@ public CreateDistributedDatabaseRequest build() { */ @com.oracle.bmc.InternalSdk public Builder body$( - com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseDetails body) { - createDistributedDatabaseDetails(body); + com.oracle.bmc.marketplacepublisher.model.CreatePublisherDetails body) { + createPublisherDetails(body); return this; } /** - * Build the instance of CreateDistributedDatabaseRequest as configured by this builder + * Build the instance of CreatePublisherRequest 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 + * @return instance of CreatePublisherRequest */ - public CreateDistributedDatabaseRequest buildWithoutInvocationCallback() { - CreateDistributedDatabaseRequest request = new CreateDistributedDatabaseRequest(); - request.createDistributedDatabaseDetails = createDistributedDatabaseDetails; + public CreatePublisherRequest buildWithoutInvocationCallback() { + CreatePublisherRequest request = new CreatePublisherRequest(); + request.createPublisherDetails = createPublisherDetails; request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; return request; - // new CreateDistributedDatabaseRequest(createDistributedDatabaseDetails, opcRetryToken, - // opcRequestId); + // new CreatePublisherRequest(createPublisherDetails, opcRetryToken, opcRequestId); } } @@ -221,7 +218,7 @@ public CreateDistributedDatabaseRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() - .createDistributedDatabaseDetails(createDistributedDatabaseDetails) + .createPublisherDetails(createPublisherDetails) .opcRetryToken(opcRetryToken) .opcRequestId(opcRequestId); } @@ -240,8 +237,7 @@ 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(",createPublisherDetails=").append(String.valueOf(this.createPublisherDetails)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); @@ -253,15 +249,14 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateDistributedDatabaseRequest)) { + if (!(o instanceof CreatePublisherRequest)) { return false; } - CreateDistributedDatabaseRequest other = (CreateDistributedDatabaseRequest) o; + CreatePublisherRequest other = (CreatePublisherRequest) o; return super.equals(o) && java.util.Objects.equals( - this.createDistributedDatabaseDetails, - other.createDistributedDatabaseDetails) + this.createPublisherDetails, other.createPublisherDetails) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -272,9 +267,9 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.createDistributedDatabaseDetails == null + + (this.createPublisherDetails == null ? 43 - : this.createDistributedDatabaseDetails.hashCode()); + : this.createPublisherDetails.hashCode()); result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StartDistributedDatabaseRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/DeleteCustomerInstanceReportExportRequest.java similarity index 58% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StartDistributedDatabaseRequest.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/DeleteCustomerInstanceReportExportRequest.java index 05e21c7b553..57f1d3d2a29 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StartDistributedDatabaseRequest.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/DeleteCustomerInstanceReportExportRequest.java @@ -2,51 +2,25 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; /** * Example: Click here to see how to use - * StartDistributedDatabaseRequest. + * DeleteCustomerInstanceReportExportRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class StartDistributedDatabaseRequest +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class DeleteCustomerInstanceReportExportRequest extends com.oracle.bmc.requests.BmcRequest { - /** Globally distributed database identifier. */ - private String distributedDatabaseId; + /** Customer Instance Report export identifier. */ + private String customerInstanceReportExportId; - /** 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; + /** Customer Instance Report export identifier. */ + public String getCustomerInstanceReportExportId() { + return customerInstanceReportExportId; } /** * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code @@ -65,48 +39,53 @@ public String getOpcRequestId() { public String getIfMatch() { return ifMatch; } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - StartDistributedDatabaseRequest, java.lang.Void> { + DeleteCustomerInstanceReportExportRequest, 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; + /** Customer Instance Report export identifier. */ + private String customerInstanceReportExportId = null; /** - * Globally distributed database identifier. + * Customer Instance Report export identifier. * - * @param distributedDatabaseId the value to set + * @param customerInstanceReportExportId the value to set * @return this builder instance */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; + public Builder customerInstanceReportExportId(String customerInstanceReportExportId) { + this.customerInstanceReportExportId = customerInstanceReportExportId; 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. + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST 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 opcRetryToken = null; + private String ifMatch = 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. + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST 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 opcRetryToken the value to set + * @param ifMatch the value to set * @return this builder instance */ - public Builder opcRetryToken(String opcRetryToken) { - this.opcRetryToken = opcRetryToken; + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; return this; } @@ -124,28 +103,6 @@ public Builder opcRequestId(String 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. * @@ -175,18 +132,18 @@ public Builder retryConfiguration( * * @return this builder instance */ - public Builder copy(StartDistributedDatabaseRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - opcRetryToken(o.getOpcRetryToken()); - opcRequestId(o.getOpcRequestId()); + public Builder copy(DeleteCustomerInstanceReportExportRequest o) { + customerInstanceReportExportId(o.getCustomerInstanceReportExportId()); ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; } /** - * Build the instance of StartDistributedDatabaseRequest as configured by this builder + * Build the instance of DeleteCustomerInstanceReportExportRequest as configured by this + * builder * *

    Note that this method takes calls to {@link * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, @@ -194,33 +151,34 @@ public Builder copy(StartDistributedDatabaseRequest o) { * *

    This is the preferred method to build an instance. * - * @return instance of StartDistributedDatabaseRequest + * @return instance of DeleteCustomerInstanceReportExportRequest */ - public StartDistributedDatabaseRequest build() { - StartDistributedDatabaseRequest request = buildWithoutInvocationCallback(); + public DeleteCustomerInstanceReportExportRequest build() { + DeleteCustomerInstanceReportExportRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of StartDistributedDatabaseRequest as configured by this builder + * Build the instance of DeleteCustomerInstanceReportExportRequest 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 + * @return instance of DeleteCustomerInstanceReportExportRequest */ - public StartDistributedDatabaseRequest buildWithoutInvocationCallback() { - StartDistributedDatabaseRequest request = new StartDistributedDatabaseRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.opcRetryToken = opcRetryToken; - request.opcRequestId = opcRequestId; + public DeleteCustomerInstanceReportExportRequest buildWithoutInvocationCallback() { + DeleteCustomerInstanceReportExportRequest request = + new DeleteCustomerInstanceReportExportRequest(); + request.customerInstanceReportExportId = customerInstanceReportExportId; request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; return request; - // new StartDistributedDatabaseRequest(distributedDatabaseId, opcRetryToken, - // opcRequestId, ifMatch); + // new DeleteCustomerInstanceReportExportRequest(customerInstanceReportExportId, + // ifMatch, opcRequestId); } } @@ -231,10 +189,9 @@ public StartDistributedDatabaseRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch); + .customerInstanceReportExportId(customerInstanceReportExportId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); } /** @@ -251,10 +208,10 @@ 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(",customerInstanceReportExportId=") + .append(String.valueOf(this.customerInstanceReportExportId)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); return sb.toString(); } @@ -264,16 +221,17 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof StartDistributedDatabaseRequest)) { + if (!(o instanceof DeleteCustomerInstanceReportExportRequest)) { return false; } - StartDistributedDatabaseRequest other = (StartDistributedDatabaseRequest) o; + DeleteCustomerInstanceReportExportRequest other = + (DeleteCustomerInstanceReportExportRequest) 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); + && java.util.Objects.equals( + this.customerInstanceReportExportId, other.customerInstanceReportExportId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @Override @@ -282,14 +240,11 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.distributedDatabaseId == null + + (this.customerInstanceReportExportId == 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()); + : this.customerInstanceReportExportId.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedAutonomousDatabaseRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GenerateCustomerInstanceReportExportRequest.java similarity index 64% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedAutonomousDatabaseRequest.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GenerateCustomerInstanceReportExportRequest.java index 31203fe3340..c35cd009f80 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedAutonomousDatabaseRequest.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GenerateCustomerInstanceReportExportRequest.java @@ -2,29 +2,36 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; /** * Example: Click here to see how to use - * CreateDistributedAutonomousDatabaseRequest. + * GenerateCustomerInstanceReportExportRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class CreateDistributedAutonomousDatabaseRequest +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GenerateCustomerInstanceReportExportRequest extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedAutonomousDatabaseDetails> { + com.oracle.bmc.marketplacepublisher.model + .GenerateCustomerInstanceReportExportDetails> { - /** Details of the Globally distributed autonomous database to be created. */ - private com.oracle.bmc.distributeddatabasev26.model.CreateDistributedAutonomousDatabaseDetails - createDistributedAutonomousDatabaseDetails; + /** Details for the Customer Instance Report export. */ + private com.oracle.bmc.marketplacepublisher.model.GenerateCustomerInstanceReportExportDetails + generateCustomerInstanceReportExportDetails; - /** Details of the Globally distributed autonomous database to be created. */ - public com.oracle.bmc.distributeddatabasev26.model.CreateDistributedAutonomousDatabaseDetails - getCreateDistributedAutonomousDatabaseDetails() { - return createDistributedAutonomousDatabaseDetails; + /** Details for the Customer Instance Report export. */ + public com.oracle.bmc.marketplacepublisher.model.GenerateCustomerInstanceReportExportDetails + getGenerateCustomerInstanceReportExportDetails() { + return generateCustomerInstanceReportExportDetails; + } + /** 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 @@ -45,13 +52,6 @@ public class CreateDistributedAutonomousDatabaseRequest 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. @@ -60,36 +60,50 @@ public String getOpcRequestId() { */ @Override @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model.CreateDistributedAutonomousDatabaseDetails + public com.oracle.bmc.marketplacepublisher.model.GenerateCustomerInstanceReportExportDetails getBody$() { - return createDistributedAutonomousDatabaseDetails; + return generateCustomerInstanceReportExportDetails; } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - CreateDistributedAutonomousDatabaseRequest, - com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedAutonomousDatabaseDetails> { + GenerateCustomerInstanceReportExportRequest, + com.oracle.bmc.marketplacepublisher.model + .GenerateCustomerInstanceReportExportDetails> { 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 for the Customer Instance Report export. */ + private com.oracle.bmc.marketplacepublisher.model + .GenerateCustomerInstanceReportExportDetails + generateCustomerInstanceReportExportDetails = null; + + /** + * Details for the Customer Instance Report export. + * + * @param generateCustomerInstanceReportExportDetails the value to set + * @return this builder instance + */ + public Builder generateCustomerInstanceReportExportDetails( + com.oracle.bmc.marketplacepublisher.model + .GenerateCustomerInstanceReportExportDetails + generateCustomerInstanceReportExportDetails) { + this.generateCustomerInstanceReportExportDetails = + generateCustomerInstanceReportExportDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; /** - * Details of the Globally distributed autonomous database to be created. + * The client request ID for tracing. * - * @param createDistributedAutonomousDatabaseDetails the value to set + * @param opcRequestId the value to set * @return this builder instance */ - public Builder createDistributedAutonomousDatabaseDetails( - com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedAutonomousDatabaseDetails - createDistributedAutonomousDatabaseDetails) { - this.createDistributedAutonomousDatabaseDetails = - createDistributedAutonomousDatabaseDetails; + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; return this; } @@ -117,20 +131,6 @@ public Builder opcRetryToken(String 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. * @@ -160,18 +160,18 @@ public Builder retryConfiguration( * * @return this builder instance */ - public Builder copy(CreateDistributedAutonomousDatabaseRequest o) { - createDistributedAutonomousDatabaseDetails( - o.getCreateDistributedAutonomousDatabaseDetails()); - opcRetryToken(o.getOpcRetryToken()); + public Builder copy(GenerateCustomerInstanceReportExportRequest o) { + generateCustomerInstanceReportExportDetails( + o.getGenerateCustomerInstanceReportExportDetails()); opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; } /** - * Build the instance of CreateDistributedAutonomousDatabaseRequest as configured by this + * Build the instance of GenerateCustomerInstanceReportExportRequest as configured by this * builder * *

    Note that this method takes calls to {@link @@ -180,10 +180,10 @@ public Builder copy(CreateDistributedAutonomousDatabaseRequest o) { * *

    This is the preferred method to build an instance. * - * @return instance of CreateDistributedAutonomousDatabaseRequest + * @return instance of GenerateCustomerInstanceReportExportRequest */ - public CreateDistributedAutonomousDatabaseRequest build() { - CreateDistributedAutonomousDatabaseRequest request = buildWithoutInvocationCallback(); + public GenerateCustomerInstanceReportExportRequest build() { + GenerateCustomerInstanceReportExportRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; @@ -197,33 +197,33 @@ public CreateDistributedAutonomousDatabaseRequest build() { */ @com.oracle.bmc.InternalSdk public Builder body$( - com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedAutonomousDatabaseDetails + com.oracle.bmc.marketplacepublisher.model + .GenerateCustomerInstanceReportExportDetails body) { - createDistributedAutonomousDatabaseDetails(body); + generateCustomerInstanceReportExportDetails(body); return this; } /** - * Build the instance of CreateDistributedAutonomousDatabaseRequest as configured by this + * Build the instance of GenerateCustomerInstanceReportExportRequest 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 + * @return instance of GenerateCustomerInstanceReportExportRequest */ - public CreateDistributedAutonomousDatabaseRequest buildWithoutInvocationCallback() { - CreateDistributedAutonomousDatabaseRequest request = - new CreateDistributedAutonomousDatabaseRequest(); - request.createDistributedAutonomousDatabaseDetails = - createDistributedAutonomousDatabaseDetails; - request.opcRetryToken = opcRetryToken; + public GenerateCustomerInstanceReportExportRequest buildWithoutInvocationCallback() { + GenerateCustomerInstanceReportExportRequest request = + new GenerateCustomerInstanceReportExportRequest(); + request.generateCustomerInstanceReportExportDetails = + generateCustomerInstanceReportExportDetails; request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; return request; // new - // CreateDistributedAutonomousDatabaseRequest(createDistributedAutonomousDatabaseDetails, opcRetryToken, opcRequestId); + // GenerateCustomerInstanceReportExportRequest(generateCustomerInstanceReportExportDetails, opcRequestId, opcRetryToken); } } @@ -234,10 +234,10 @@ public CreateDistributedAutonomousDatabaseRequest buildWithoutInvocationCallback */ public Builder toBuilder() { return new Builder() - .createDistributedAutonomousDatabaseDetails( - createDistributedAutonomousDatabaseDetails) - .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId); + .generateCustomerInstanceReportExportDetails( + generateCustomerInstanceReportExportDetails) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); } /** @@ -254,10 +254,10 @@ 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(",generateCustomerInstanceReportExportDetails=") + .append(String.valueOf(this.generateCustomerInstanceReportExportDetails)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(")"); return sb.toString(); } @@ -267,18 +267,18 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateDistributedAutonomousDatabaseRequest)) { + if (!(o instanceof GenerateCustomerInstanceReportExportRequest)) { return false; } - CreateDistributedAutonomousDatabaseRequest other = - (CreateDistributedAutonomousDatabaseRequest) o; + GenerateCustomerInstanceReportExportRequest other = + (GenerateCustomerInstanceReportExportRequest) 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); + this.generateCustomerInstanceReportExportDetails, + other.generateCustomerInstanceReportExportDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); } @Override @@ -287,13 +287,13 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.createDistributedAutonomousDatabaseDetails == null + + (this.generateCustomerInstanceReportExportDetails == null ? 43 - : this.createDistributedAutonomousDatabaseDetails.hashCode()); + : this.generateCustomerInstanceReportExportDetails.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.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; } } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminArtifactRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminArtifactRequest.java new file mode 100644 index 00000000000..d94eb760dc4 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminArtifactRequest.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.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use GetAdminArtifactRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetAdminArtifactRequest extends com.oracle.bmc.requests.BmcRequest { + + /** artifact OCID */ + private String artifactId; + + /** artifact OCID */ + public String getArtifactId() { + return artifactId; + } + /** 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< + GetAdminArtifactRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** artifact OCID */ + private String artifactId = null; + + /** + * artifact OCID + * + * @param artifactId the value to set + * @return this builder instance + */ + public Builder artifactId(String artifactId) { + this.artifactId = artifactId; + 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(GetAdminArtifactRequest o) { + artifactId(o.getArtifactId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetAdminArtifactRequest 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 GetAdminArtifactRequest + */ + public GetAdminArtifactRequest build() { + GetAdminArtifactRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetAdminArtifactRequest 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 GetAdminArtifactRequest + */ + public GetAdminArtifactRequest buildWithoutInvocationCallback() { + GetAdminArtifactRequest request = new GetAdminArtifactRequest(); + request.artifactId = artifactId; + request.opcRequestId = opcRequestId; + return request; + // new GetAdminArtifactRequest(artifactId, 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().artifactId(artifactId).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(",artifactId=").append(String.valueOf(this.artifactId)); + 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 GetAdminArtifactRequest)) { + return false; + } + + GetAdminArtifactRequest other = (GetAdminArtifactRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.artifactId, other.artifactId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.artifactId == null ? 43 : this.artifactId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminListingRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminListingRequest.java new file mode 100644 index 00000000000..16d74b4b1fb --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminListingRequest.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.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use GetAdminListingRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetAdminListingRequest extends com.oracle.bmc.requests.BmcRequest { + + /** listing OCID */ + private String listingId; + + /** listing OCID */ + public String getListingId() { + return listingId; + } + /** 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< + GetAdminListingRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** listing OCID */ + private String listingId = null; + + /** + * listing OCID + * + * @param listingId the value to set + * @return this builder instance + */ + public Builder listingId(String listingId) { + this.listingId = listingId; + 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(GetAdminListingRequest o) { + listingId(o.getListingId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetAdminListingRequest 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 GetAdminListingRequest + */ + public GetAdminListingRequest build() { + GetAdminListingRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetAdminListingRequest 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 GetAdminListingRequest + */ + public GetAdminListingRequest buildWithoutInvocationCallback() { + GetAdminListingRequest request = new GetAdminListingRequest(); + request.listingId = listingId; + request.opcRequestId = opcRequestId; + return request; + // new GetAdminListingRequest(listingId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().listingId(listingId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",listingId=").append(String.valueOf(this.listingId)); + sb.append(",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 GetAdminListingRequest)) { + return false; + } + + GetAdminListingRequest other = (GetAdminListingRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.listingId, other.listingId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.listingId == null ? 43 : this.listingId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminListingRevisionAttachmentRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminListingRevisionAttachmentRequest.java new file mode 100644 index 00000000000..172e15c903b --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminListingRevisionAttachmentRequest.java @@ -0,0 +1,205 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use + * GetAdminListingRevisionAttachmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetAdminListingRevisionAttachmentRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** attachment OCID */ + private String listingRevisionAttachmentId; + + /** attachment OCID */ + public String getListingRevisionAttachmentId() { + return listingRevisionAttachmentId; + } + /** 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< + GetAdminListingRevisionAttachmentRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** attachment OCID */ + private String listingRevisionAttachmentId = null; + + /** + * attachment OCID + * + * @param listingRevisionAttachmentId the value to set + * @return this builder instance + */ + public Builder listingRevisionAttachmentId(String listingRevisionAttachmentId) { + this.listingRevisionAttachmentId = listingRevisionAttachmentId; + 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(GetAdminListingRevisionAttachmentRequest o) { + listingRevisionAttachmentId(o.getListingRevisionAttachmentId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetAdminListingRevisionAttachmentRequest 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 GetAdminListingRevisionAttachmentRequest + */ + public GetAdminListingRevisionAttachmentRequest build() { + GetAdminListingRevisionAttachmentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetAdminListingRevisionAttachmentRequest 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 GetAdminListingRevisionAttachmentRequest + */ + public GetAdminListingRevisionAttachmentRequest buildWithoutInvocationCallback() { + GetAdminListingRevisionAttachmentRequest request = + new GetAdminListingRevisionAttachmentRequest(); + request.listingRevisionAttachmentId = listingRevisionAttachmentId; + request.opcRequestId = opcRequestId; + return request; + // new GetAdminListingRevisionAttachmentRequest(listingRevisionAttachmentId, + // 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() + .listingRevisionAttachmentId(listingRevisionAttachmentId) + .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(",listingRevisionAttachmentId=") + .append(String.valueOf(this.listingRevisionAttachmentId)); + 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 GetAdminListingRevisionAttachmentRequest)) { + return false; + } + + GetAdminListingRevisionAttachmentRequest other = + (GetAdminListingRevisionAttachmentRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.listingRevisionAttachmentId, other.listingRevisionAttachmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.listingRevisionAttachmentId == null + ? 43 + : this.listingRevisionAttachmentId.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminListingRevisionPackageRequest.java similarity index 66% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRaftMetricRequest.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminListingRevisionPackageRequest.java index 311df699b08..6511571c34e 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRaftMetricRequest.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminListingRevisionPackageRequest.java @@ -2,25 +2,25 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; /** * Example: Click here to see how to use - * GetDistributedDatabaseRaftMetricRequest. + * GetAdminListingRevisionPackageRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedDatabaseRaftMetricRequest +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetAdminListingRevisionPackageRequest extends com.oracle.bmc.requests.BmcRequest { - /** Globally distributed database identifier. */ - private String distributedDatabaseId; + /** Unique listing revision package identifier. */ + private String listingRevisionPackageId; - /** Globally distributed database identifier. */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; + /** Unique listing revision package identifier. */ + public String getListingRevisionPackageId() { + return listingRevisionPackageId; } /** The client request ID for tracing. */ private String opcRequestId; @@ -32,21 +32,21 @@ public String getOpcRequestId() { public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - GetDistributedDatabaseRaftMetricRequest, java.lang.Void> { + GetAdminListingRevisionPackageRequest, 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; + /** Unique listing revision package identifier. */ + private String listingRevisionPackageId = null; /** - * Globally distributed database identifier. + * Unique listing revision package identifier. * - * @param distributedDatabaseId the value to set + * @param listingRevisionPackageId the value to set * @return this builder instance */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; + public Builder listingRevisionPackageId(String listingRevisionPackageId) { + this.listingRevisionPackageId = listingRevisionPackageId; return this; } @@ -93,8 +93,8 @@ public Builder retryConfiguration( * * @return this builder instance */ - public Builder copy(GetDistributedDatabaseRaftMetricRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); + public Builder copy(GetAdminListingRevisionPackageRequest o) { + listingRevisionPackageId(o.getListingRevisionPackageId()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -102,8 +102,7 @@ public Builder copy(GetDistributedDatabaseRaftMetricRequest o) { } /** - * Build the instance of GetDistributedDatabaseRaftMetricRequest as configured by this - * builder + * Build the instance of GetAdminListingRevisionPackageRequest as configured by this builder * *

    Note that this method takes calls to {@link * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, @@ -111,32 +110,31 @@ public Builder copy(GetDistributedDatabaseRaftMetricRequest o) { * *

    This is the preferred method to build an instance. * - * @return instance of GetDistributedDatabaseRaftMetricRequest + * @return instance of GetAdminListingRevisionPackageRequest */ - public GetDistributedDatabaseRaftMetricRequest build() { - GetDistributedDatabaseRaftMetricRequest request = buildWithoutInvocationCallback(); + public GetAdminListingRevisionPackageRequest build() { + GetAdminListingRevisionPackageRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of GetDistributedDatabaseRaftMetricRequest as configured by this - * builder + * Build the instance of GetAdminListingRevisionPackageRequest 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 + * @return instance of GetAdminListingRevisionPackageRequest */ - public GetDistributedDatabaseRaftMetricRequest buildWithoutInvocationCallback() { - GetDistributedDatabaseRaftMetricRequest request = - new GetDistributedDatabaseRaftMetricRequest(); - request.distributedDatabaseId = distributedDatabaseId; + public GetAdminListingRevisionPackageRequest buildWithoutInvocationCallback() { + GetAdminListingRevisionPackageRequest request = + new GetAdminListingRevisionPackageRequest(); + request.listingRevisionPackageId = listingRevisionPackageId; request.opcRequestId = opcRequestId; return request; - // new GetDistributedDatabaseRaftMetricRequest(distributedDatabaseId, opcRequestId); + // new GetAdminListingRevisionPackageRequest(listingRevisionPackageId, opcRequestId); } } @@ -147,7 +145,7 @@ public GetDistributedDatabaseRaftMetricRequest buildWithoutInvocationCallback() */ public Builder toBuilder() { return new Builder() - .distributedDatabaseId(distributedDatabaseId) + .listingRevisionPackageId(listingRevisionPackageId) .opcRequestId(opcRequestId); } @@ -165,7 +163,8 @@ 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(",listingRevisionPackageId=") + .append(String.valueOf(this.listingRevisionPackageId)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); return sb.toString(); @@ -176,13 +175,14 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof GetDistributedDatabaseRaftMetricRequest)) { + if (!(o instanceof GetAdminListingRevisionPackageRequest)) { return false; } - GetDistributedDatabaseRaftMetricRequest other = (GetDistributedDatabaseRaftMetricRequest) o; + GetAdminListingRevisionPackageRequest other = (GetAdminListingRevisionPackageRequest) o; return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && java.util.Objects.equals( + this.listingRevisionPackageId, other.listingRevisionPackageId) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -192,9 +192,9 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.distributedDatabaseId == null + + (this.listingRevisionPackageId == null ? 43 - : this.distributedDatabaseId.hashCode()); + : this.listingRevisionPackageId.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminListingRevisionRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminListingRevisionRequest.java new file mode 100644 index 00000000000..e787cbf2929 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminListingRevisionRequest.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.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use + * GetAdminListingRevisionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetAdminListingRevisionRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** listing revision */ + private String listingRevisionId; + + /** listing revision */ + public String getListingRevisionId() { + return listingRevisionId; + } + /** 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< + GetAdminListingRevisionRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** listing revision */ + private String listingRevisionId = null; + + /** + * listing revision + * + * @param listingRevisionId the value to set + * @return this builder instance + */ + public Builder listingRevisionId(String listingRevisionId) { + this.listingRevisionId = listingRevisionId; + 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(GetAdminListingRevisionRequest o) { + listingRevisionId(o.getListingRevisionId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetAdminListingRevisionRequest 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 GetAdminListingRevisionRequest + */ + public GetAdminListingRevisionRequest build() { + GetAdminListingRevisionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetAdminListingRevisionRequest 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 GetAdminListingRevisionRequest + */ + public GetAdminListingRevisionRequest buildWithoutInvocationCallback() { + GetAdminListingRevisionRequest request = new GetAdminListingRevisionRequest(); + request.listingRevisionId = listingRevisionId; + request.opcRequestId = opcRequestId; + return request; + // new GetAdminListingRevisionRequest(listingRevisionId, 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().listingRevisionId(listingRevisionId).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(",listingRevisionId=").append(String.valueOf(this.listingRevisionId)); + 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 GetAdminListingRevisionRequest)) { + return false; + } + + GetAdminListingRevisionRequest other = (GetAdminListingRevisionRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.listingRevisionId, other.listingRevisionId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.listingRevisionId == null ? 43 : this.listingRevisionId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminPublisherRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminPublisherRequest.java new file mode 100644 index 00000000000..c7a30f2ce1b --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminPublisherRequest.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.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use GetAdminPublisherRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetAdminPublisherRequest extends com.oracle.bmc.requests.BmcRequest { + + /** Publisher OCID */ + private String publisherId; + + /** Publisher OCID */ + public String getPublisherId() { + return publisherId; + } + /** 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< + GetAdminPublisherRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Publisher OCID */ + private String publisherId = null; + + /** + * Publisher OCID + * + * @param publisherId the value to set + * @return this builder instance + */ + public Builder publisherId(String publisherId) { + this.publisherId = publisherId; + 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(GetAdminPublisherRequest o) { + publisherId(o.getPublisherId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetAdminPublisherRequest 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 GetAdminPublisherRequest + */ + public GetAdminPublisherRequest build() { + GetAdminPublisherRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetAdminPublisherRequest 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 GetAdminPublisherRequest + */ + public GetAdminPublisherRequest buildWithoutInvocationCallback() { + GetAdminPublisherRequest request = new GetAdminPublisherRequest(); + request.publisherId = publisherId; + request.opcRequestId = opcRequestId; + return request; + // new GetAdminPublisherRequest(publisherId, 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().publisherId(publisherId).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(",publisherId=").append(String.valueOf(this.publisherId)); + 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 GetAdminPublisherRequest)) { + return false; + } + + GetAdminPublisherRequest other = (GetAdminPublisherRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.publisherId, other.publisherId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.publisherId == null ? 43 : this.publisherId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminTermRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminTermRequest.java new file mode 100644 index 00000000000..18436aa1b5e --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminTermRequest.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.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use GetAdminTermRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetAdminTermRequest extends com.oracle.bmc.requests.BmcRequest { + + /** term OCID */ + private String termId; + + /** term OCID */ + public String getTermId() { + return termId; + } + /** 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< + GetAdminTermRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** term OCID */ + private String termId = null; + + /** + * term OCID + * + * @param termId the value to set + * @return this builder instance + */ + public Builder termId(String termId) { + this.termId = termId; + 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(GetAdminTermRequest o) { + termId(o.getTermId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetAdminTermRequest 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 GetAdminTermRequest + */ + public GetAdminTermRequest build() { + GetAdminTermRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetAdminTermRequest 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 GetAdminTermRequest + */ + public GetAdminTermRequest buildWithoutInvocationCallback() { + GetAdminTermRequest request = new GetAdminTermRequest(); + request.termId = termId; + request.opcRequestId = opcRequestId; + return request; + // new GetAdminTermRequest(termId, 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().termId(termId).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(",termId=").append(String.valueOf(this.termId)); + 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 GetAdminTermRequest)) { + return false; + } + + GetAdminTermRequest other = (GetAdminTermRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.termId, other.termId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.termId == null ? 43 : this.termId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminTermVersionRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminTermVersionRequest.java new file mode 100644 index 00000000000..c830dd4cb21 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminTermVersionRequest.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.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use GetAdminTermVersionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetAdminTermVersionRequest extends com.oracle.bmc.requests.BmcRequest { + + /** term version OCID */ + private String termVersionId; + + /** term version OCID */ + public String getTermVersionId() { + return termVersionId; + } + /** 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< + GetAdminTermVersionRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** term version OCID */ + private String termVersionId = null; + + /** + * term version OCID + * + * @param termVersionId the value to set + * @return this builder instance + */ + public Builder termVersionId(String termVersionId) { + this.termVersionId = termVersionId; + 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(GetAdminTermVersionRequest o) { + termVersionId(o.getTermVersionId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetAdminTermVersionRequest 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 GetAdminTermVersionRequest + */ + public GetAdminTermVersionRequest build() { + GetAdminTermVersionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetAdminTermVersionRequest 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 GetAdminTermVersionRequest + */ + public GetAdminTermVersionRequest buildWithoutInvocationCallback() { + GetAdminTermVersionRequest request = new GetAdminTermVersionRequest(); + request.termVersionId = termVersionId; + request.opcRequestId = opcRequestId; + return request; + // new GetAdminTermVersionRequest(termVersionId, 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().termVersionId(termVersionId).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(",termVersionId=").append(String.valueOf(this.termVersionId)); + 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 GetAdminTermVersionRequest)) { + return false; + } + + GetAdminTermVersionRequest other = (GetAdminTermVersionRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.termVersionId, other.termVersionId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.termVersionId == null ? 43 : this.termVersionId.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/GetDistributedAutonomousDatabaseRaftMetricRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetCustomerInstanceReportExportContentRequest.java similarity index 63% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRaftMetricRequest.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetCustomerInstanceReportExportContentRequest.java index 9a766977fc7..29bea8a226a 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRaftMetricRequest.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetCustomerInstanceReportExportContentRequest.java @@ -2,25 +2,25 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; /** * Example: Click here to see how to use - * GetDistributedAutonomousDatabaseRaftMetricRequest. + * GetCustomerInstanceReportExportContentRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedAutonomousDatabaseRaftMetricRequest +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetCustomerInstanceReportExportContentRequest extends com.oracle.bmc.requests.BmcRequest { - /** Globally distributed autonomous database identifier. */ - private String distributedAutonomousDatabaseId; + /** Customer Instance Report export identifier. */ + private String customerInstanceReportExportId; - /** Globally distributed autonomous database identifier. */ - public String getDistributedAutonomousDatabaseId() { - return distributedAutonomousDatabaseId; + /** Customer Instance Report export identifier. */ + public String getCustomerInstanceReportExportId() { + return customerInstanceReportExportId; } /** The client request ID for tracing. */ private String opcRequestId; @@ -32,21 +32,21 @@ public String getOpcRequestId() { public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - GetDistributedAutonomousDatabaseRaftMetricRequest, java.lang.Void> { + GetCustomerInstanceReportExportContentRequest, 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; + /** Customer Instance Report export identifier. */ + private String customerInstanceReportExportId = null; /** - * Globally distributed autonomous database identifier. + * Customer Instance Report export identifier. * - * @param distributedAutonomousDatabaseId the value to set + * @param customerInstanceReportExportId the value to set * @return this builder instance */ - public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { - this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + public Builder customerInstanceReportExportId(String customerInstanceReportExportId) { + this.customerInstanceReportExportId = customerInstanceReportExportId; return this; } @@ -93,8 +93,8 @@ public Builder retryConfiguration( * * @return this builder instance */ - public Builder copy(GetDistributedAutonomousDatabaseRaftMetricRequest o) { - distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); + public Builder copy(GetCustomerInstanceReportExportContentRequest o) { + customerInstanceReportExportId(o.getCustomerInstanceReportExportId()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -102,8 +102,8 @@ public Builder copy(GetDistributedAutonomousDatabaseRaftMetricRequest o) { } /** - * Build the instance of GetDistributedAutonomousDatabaseRaftMetricRequest as configured by - * this builder + * Build the instance of GetCustomerInstanceReportExportContentRequest as configured by this + * builder * *

    Note that this method takes calls to {@link * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, @@ -111,10 +111,10 @@ public Builder copy(GetDistributedAutonomousDatabaseRaftMetricRequest o) { * *

    This is the preferred method to build an instance. * - * @return instance of GetDistributedAutonomousDatabaseRaftMetricRequest + * @return instance of GetCustomerInstanceReportExportContentRequest */ - public GetDistributedAutonomousDatabaseRaftMetricRequest build() { - GetDistributedAutonomousDatabaseRaftMetricRequest request = + public GetCustomerInstanceReportExportContentRequest build() { + GetCustomerInstanceReportExportContentRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); @@ -122,23 +122,22 @@ public GetDistributedAutonomousDatabaseRaftMetricRequest build() { } /** - * Build the instance of GetDistributedAutonomousDatabaseRaftMetricRequest as configured by - * this builder + * Build the instance of GetCustomerInstanceReportExportContentRequest 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 + * @return instance of GetCustomerInstanceReportExportContentRequest */ - public GetDistributedAutonomousDatabaseRaftMetricRequest buildWithoutInvocationCallback() { - GetDistributedAutonomousDatabaseRaftMetricRequest request = - new GetDistributedAutonomousDatabaseRaftMetricRequest(); - request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + public GetCustomerInstanceReportExportContentRequest buildWithoutInvocationCallback() { + GetCustomerInstanceReportExportContentRequest request = + new GetCustomerInstanceReportExportContentRequest(); + request.customerInstanceReportExportId = customerInstanceReportExportId; request.opcRequestId = opcRequestId; return request; - // new - // GetDistributedAutonomousDatabaseRaftMetricRequest(distributedAutonomousDatabaseId, + // new GetCustomerInstanceReportExportContentRequest(customerInstanceReportExportId, // opcRequestId); } } @@ -150,7 +149,7 @@ public GetDistributedAutonomousDatabaseRaftMetricRequest buildWithoutInvocationC */ public Builder toBuilder() { return new Builder() - .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .customerInstanceReportExportId(customerInstanceReportExportId) .opcRequestId(opcRequestId); } @@ -168,8 +167,8 @@ 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(",customerInstanceReportExportId=") + .append(String.valueOf(this.customerInstanceReportExportId)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); return sb.toString(); @@ -180,15 +179,15 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof GetDistributedAutonomousDatabaseRaftMetricRequest)) { + if (!(o instanceof GetCustomerInstanceReportExportContentRequest)) { return false; } - GetDistributedAutonomousDatabaseRaftMetricRequest other = - (GetDistributedAutonomousDatabaseRaftMetricRequest) o; + GetCustomerInstanceReportExportContentRequest other = + (GetCustomerInstanceReportExportContentRequest) o; return super.equals(o) && java.util.Objects.equals( - this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) + this.customerInstanceReportExportId, other.customerInstanceReportExportId) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -198,9 +197,9 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.distributedAutonomousDatabaseId == null + + (this.customerInstanceReportExportId == null ? 43 - : this.distributedAutonomousDatabaseId.hashCode()); + : this.customerInstanceReportExportId.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetCustomerInstanceReportExportRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetCustomerInstanceReportExportRequest.java new file mode 100644 index 00000000000..74a3e8cf765 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetCustomerInstanceReportExportRequest.java @@ -0,0 +1,204 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use + * GetCustomerInstanceReportExportRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetCustomerInstanceReportExportRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Customer Instance Report export identifier. */ + private String customerInstanceReportExportId; + + /** Customer Instance Report export identifier. */ + public String getCustomerInstanceReportExportId() { + return customerInstanceReportExportId; + } + /** 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< + GetCustomerInstanceReportExportRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Customer Instance Report export identifier. */ + private String customerInstanceReportExportId = null; + + /** + * Customer Instance Report export identifier. + * + * @param customerInstanceReportExportId the value to set + * @return this builder instance + */ + public Builder customerInstanceReportExportId(String customerInstanceReportExportId) { + this.customerInstanceReportExportId = customerInstanceReportExportId; + 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(GetCustomerInstanceReportExportRequest o) { + customerInstanceReportExportId(o.getCustomerInstanceReportExportId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetCustomerInstanceReportExportRequest 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 GetCustomerInstanceReportExportRequest + */ + public GetCustomerInstanceReportExportRequest build() { + GetCustomerInstanceReportExportRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetCustomerInstanceReportExportRequest 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 GetCustomerInstanceReportExportRequest + */ + public GetCustomerInstanceReportExportRequest buildWithoutInvocationCallback() { + GetCustomerInstanceReportExportRequest request = + new GetCustomerInstanceReportExportRequest(); + request.customerInstanceReportExportId = customerInstanceReportExportId; + request.opcRequestId = opcRequestId; + return request; + // new GetCustomerInstanceReportExportRequest(customerInstanceReportExportId, + // 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() + .customerInstanceReportExportId(customerInstanceReportExportId) + .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(",customerInstanceReportExportId=") + .append(String.valueOf(this.customerInstanceReportExportId)); + 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 GetCustomerInstanceReportExportRequest)) { + return false; + } + + GetCustomerInstanceReportExportRequest other = (GetCustomerInstanceReportExportRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.customerInstanceReportExportId, other.customerInstanceReportExportId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.customerInstanceReportExportId == null + ? 43 + : this.customerInstanceReportExportId.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/ListDistributedDatabasesRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminArtifactsRequest.java similarity index 50% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedDatabasesRequest.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminArtifactsRequest.java index 698bc377420..c60ff2b9120 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedDatabasesRequest.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminArtifactsRequest.java @@ -2,54 +2,62 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; /** * Example: Click here to see how to use - * ListDistributedDatabasesRequest. + * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/marketplacepublisher/ListAdminArtifactsExample.java.html" + * target="_blank" rel="noopener noreferrer">here to see how to use ListAdminArtifactsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListDistributedDatabasesRequest - extends com.oracle.bmc.requests.BmcRequest { +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListAdminArtifactsRequest extends com.oracle.bmc.requests.BmcRequest { - /** The ID of the compartment in which to list resources. */ + /** The unique identifier for the compartment. */ private String compartmentId; - /** The ID of the compartment in which to list resources. */ + /** The unique identifier for the compartment. */ public String getCompartmentId() { return compartmentId; } + /** Unique publisher identifier. */ + private String publisherId; + + /** Unique publisher identifier. */ + public String getPublisherId() { + return publisherId; + } + /** A filter to return only artifacts with specific type. */ + private com.oracle.bmc.marketplacepublisher.model.ArtifactTypeEnum artifactType; + + /** A filter to return only artifacts with specific type. */ + public com.oracle.bmc.marketplacepublisher.model.ArtifactTypeEnum getArtifactType() { + return artifactType; + } /** - * When set to true, returns resources in the specified compartment and in all of its child - * compartments recursively. Defaults to false. + * A filter to return only artifacts with their lifecycleState matches the given lifecycleState. */ - private Boolean compartmentIdInSubtree; + private com.oracle.bmc.marketplacepublisher.model.Artifact.LifecycleState lifecycleState; /** - * When set to true, returns resources in the specified compartment and in all of its child - * compartments recursively. Defaults to false. + * A filter to return only artifacts with their lifecycleState matches the given lifecycleState. */ - public Boolean getCompartmentIdInSubtree() { - return compartmentIdInSubtree; + public com.oracle.bmc.marketplacepublisher.model.Artifact.LifecycleState getLifecycleState() { + return lifecycleState; } - /** A filter to return only resources that are associated with the given privateEndpointId. */ - private String privateEndpointId; + /** A filter to return only resources that match the entire display name given. */ + private String displayName; - /** A filter to return only resources that are associated with the given privateEndpointId. */ - public String getPrivateEndpointId() { - return privateEndpointId; + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; } - /** 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 artifacts with specific status. */ + private com.oracle.bmc.marketplacepublisher.model.Artifact.Status status; - /** A filter to return only resources whose lifecycleState matches the specified value. */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase.LifecycleState - getLifecycleState() { - return lifecycleState; + /** A filter to return only artifacts with specific status. */ + public com.oracle.bmc.marketplacepublisher.model.Artifact.Status getStatus() { + return status; } /** The maximum number of items to return. */ private Integer limit; @@ -72,25 +80,26 @@ public String getPage() { return page; } /** The sort order to use, either 'ASC' or 'DESC'. */ - private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder; + private com.oracle.bmc.marketplacepublisher.model.SortOrder sortOrder; /** The sort order to use, either 'ASC' or 'DESC'. */ - public com.oracle.bmc.distributeddatabasev26.model.SortOrder getSortOrder() { + public com.oracle.bmc.marketplacepublisher.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. + * The field to sort admin artifacts by. The default order for timeCreated and timeUpdated is + * descending. The 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. + * The field to sort admin artifacts by. The default order for timeCreated and timeUpdated is + * descending. The default order for displayName is ascending. */ public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { TimeCreated("timeCreated"), TimeUpdated("timeUpdated"), + DisplayName("displayName"), ; private final String value; @@ -122,8 +131,8 @@ public static SortBy create(String 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. + * The field to sort admin artifacts by. The default order for timeCreated and timeUpdated is + * descending. The default order for displayName is ascending. */ public SortBy getSortBy() { return sortBy; @@ -135,60 +144,18 @@ public SortBy getSortBy() { 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> { + ListAdminArtifactsRequest, 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. */ + /** The unique identifier for the compartment. */ private String compartmentId = null; /** - * The ID of the compartment in which to list resources. + * The unique identifier for the compartment. * * @param compartmentId the value to set * @return this builder instance @@ -198,54 +165,80 @@ public Builder compartmentId(String compartmentId) { return this; } + /** Unique publisher identifier. */ + private String publisherId = null; + /** - * When set to true, returns resources in the specified compartment and in all of its child - * compartments recursively. Defaults to false. + * Unique publisher identifier. + * + * @param publisherId the value to set + * @return this builder instance */ - private Boolean compartmentIdInSubtree = null; + public Builder publisherId(String publisherId) { + this.publisherId = publisherId; + return this; + } + + /** A filter to return only artifacts with specific type. */ + private com.oracle.bmc.marketplacepublisher.model.ArtifactTypeEnum artifactType = null; /** - * When set to true, returns resources in the specified compartment and in all of its child - * compartments recursively. Defaults to false. + * A filter to return only artifacts with specific type. * - * @param compartmentIdInSubtree the value to set + * @param artifactType the value to set * @return this builder instance */ - public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { - this.compartmentIdInSubtree = compartmentIdInSubtree; + public Builder artifactType( + com.oracle.bmc.marketplacepublisher.model.ArtifactTypeEnum artifactType) { + this.artifactType = artifactType; return this; } /** - * A filter to return only resources that are associated with the given privateEndpointId. + * A filter to return only artifacts with their lifecycleState matches the given + * lifecycleState. */ - private String privateEndpointId = null; + private com.oracle.bmc.marketplacepublisher.model.Artifact.LifecycleState lifecycleState = + null; /** - * A filter to return only resources that are associated with the given privateEndpointId. + * A filter to return only artifacts with their lifecycleState matches the given + * lifecycleState. * - * @param privateEndpointId the value to set + * @param lifecycleState the value to set * @return this builder instance */ - public Builder privateEndpointId(String privateEndpointId) { - this.privateEndpointId = privateEndpointId; + public Builder lifecycleState( + com.oracle.bmc.marketplacepublisher.model.Artifact.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; 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 that match the entire display name given. */ + private String displayName = null; /** - * A filter to return only resources whose lifecycleState matches the specified value. + * A filter to return only resources that match the entire display name given. * - * @param lifecycleState the value to set + * @param displayName the value to set * @return this builder instance */ - public Builder lifecycleState( - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase.LifecycleState - lifecycleState) { - this.lifecycleState = lifecycleState; + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** A filter to return only artifacts with specific status. */ + private com.oracle.bmc.marketplacepublisher.model.Artifact.Status status = null; + + /** + * A filter to return only artifacts with specific status. + * + * @param status the value to set + * @return this builder instance + */ + public Builder status(com.oracle.bmc.marketplacepublisher.model.Artifact.Status status) { + this.status = status; return this; } @@ -282,7 +275,7 @@ public Builder page(String page) { } /** The sort order to use, either 'ASC' or 'DESC'. */ - private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder = null; + private com.oracle.bmc.marketplacepublisher.model.SortOrder sortOrder = null; /** * The sort order to use, either 'ASC' or 'DESC'. @@ -290,20 +283,20 @@ public Builder page(String page) { * @param sortOrder the value to set * @return this builder instance */ - public Builder sortOrder(com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder) { + public Builder sortOrder(com.oracle.bmc.marketplacepublisher.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. + * The field to sort admin artifacts by. The default order for timeCreated and timeUpdated + * is descending. The 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. + * The field to sort admin artifacts by. The default order for timeCreated and timeUpdated + * is descending. The default order for displayName is ascending. * * @param sortBy the value to set * @return this builder instance @@ -327,72 +320,6 @@ public Builder opcRequestId(String 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. * @@ -422,27 +349,25 @@ public Builder retryConfiguration( * * @return this builder instance */ - public Builder copy(ListDistributedDatabasesRequest o) { + public Builder copy(ListAdminArtifactsRequest o) { compartmentId(o.getCompartmentId()); - compartmentIdInSubtree(o.getCompartmentIdInSubtree()); - privateEndpointId(o.getPrivateEndpointId()); + publisherId(o.getPublisherId()); + artifactType(o.getArtifactType()); lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + status(o.getStatus()); 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 + * Build the instance of ListAdminArtifactsRequest as configured by this builder * *

    Note that this method takes calls to {@link * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, @@ -450,43 +375,40 @@ public Builder copy(ListDistributedDatabasesRequest o) { * *

    This is the preferred method to build an instance. * - * @return instance of ListDistributedDatabasesRequest + * @return instance of ListAdminArtifactsRequest */ - public ListDistributedDatabasesRequest build() { - ListDistributedDatabasesRequest request = buildWithoutInvocationCallback(); + public ListAdminArtifactsRequest build() { + ListAdminArtifactsRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of ListDistributedDatabasesRequest as configured by this builder + * Build the instance of ListAdminArtifactsRequest 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 + * @return instance of ListAdminArtifactsRequest */ - public ListDistributedDatabasesRequest buildWithoutInvocationCallback() { - ListDistributedDatabasesRequest request = new ListDistributedDatabasesRequest(); + public ListAdminArtifactsRequest buildWithoutInvocationCallback() { + ListAdminArtifactsRequest request = new ListAdminArtifactsRequest(); request.compartmentId = compartmentId; - request.compartmentIdInSubtree = compartmentIdInSubtree; - request.privateEndpointId = privateEndpointId; + request.publisherId = publisherId; + request.artifactType = artifactType; request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.status = status; 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); + // new ListAdminArtifactsRequest(compartmentId, publisherId, artifactType, + // lifecycleState, displayName, status, limit, page, sortOrder, sortBy, opcRequestId); } } @@ -498,18 +420,16 @@ public ListDistributedDatabasesRequest buildWithoutInvocationCallback() { public Builder toBuilder() { return new Builder() .compartmentId(compartmentId) - .compartmentIdInSubtree(compartmentIdInSubtree) - .privateEndpointId(privateEndpointId) + .publisherId(publisherId) + .artifactType(artifactType) .lifecycleState(lifecycleState) + .displayName(displayName) + .status(status) .limit(limit) .page(page) .sortOrder(sortOrder) .sortBy(sortBy) - .opcRequestId(opcRequestId) - .isAutoResourceManagementEnabled(isAutoResourceManagementEnabled) - .displayName(displayName) - .dbDeploymentType(dbDeploymentType) - .metadata(metadata); + .opcRequestId(opcRequestId); } /** @@ -527,19 +447,16 @@ public String toString() { 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(",publisherId=").append(String.valueOf(this.publisherId)); + sb.append(",artifactType=").append(String.valueOf(this.artifactType)); sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",status=").append(String.valueOf(this.status)); 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(); } @@ -549,27 +466,23 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ListDistributedDatabasesRequest)) { + if (!(o instanceof ListAdminArtifactsRequest)) { return false; } - ListDistributedDatabasesRequest other = (ListDistributedDatabasesRequest) o; + ListAdminArtifactsRequest other = (ListAdminArtifactsRequest) 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.publisherId, other.publisherId) + && java.util.Objects.equals(this.artifactType, other.artifactType) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.status, other.status) && 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); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @Override @@ -579,32 +492,18 @@ public int 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.publisherId == null ? 43 : this.publisherId.hashCode()); + result = (result * PRIME) + (this.artifactType == null ? 43 : this.artifactType.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.status == null ? 43 : this.status.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminListingRevisionAttachmentsRequest.java similarity index 70% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedDatabasePrivateEndpointsRequest.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminListingRevisionAttachmentsRequest.java index 94a93fa2f9a..de145cf84b9 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedDatabasePrivateEndpointsRequest.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminListingRevisionAttachmentsRequest.java @@ -2,50 +2,53 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; /** * Example: Click here to see how to use - * ListDistributedDatabasePrivateEndpointsRequest. + * ListAdminListingRevisionAttachmentsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListDistributedDatabasePrivateEndpointsRequest +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListAdminListingRevisionAttachmentsRequest extends com.oracle.bmc.requests.BmcRequest { - /** The ID of the compartment in which to list resources. */ - private String compartmentId; + /** OCID of the listing revision. */ + private String listingRevisionId; - /** The ID of the compartment in which to list resources. */ - public String getCompartmentId() { - return compartmentId; + /** OCID of the listing revision. */ + public String getListingRevisionId() { + return listingRevisionId; } - /** - * When set to true, returns resources in the specified compartment and in all of its child - * compartments recursively. Defaults to false. - */ - private Boolean compartmentIdInSubtree; + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } /** - * When set to true, returns resources in the specified compartment and in all of its child - * compartments recursively. Defaults to false. + * A filter to return only attachments their lifecycleState matches the given lifecycleState. */ - 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 + private com.oracle.bmc.marketplacepublisher.model.ListingRevisionAttachment.LifecycleState lifecycleState; - /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - .LifecycleState + /** + * A filter to return only attachments their lifecycleState matches the given lifecycleState. + */ + public com.oracle.bmc.marketplacepublisher.model.ListingRevisionAttachment.LifecycleState getLifecycleState() { return lifecycleState; } + /** The unique identifier for the compartment. */ + private String compartmentId; + + /** The unique identifier for the compartment. */ + public String getCompartmentId() { + return compartmentId; + } /** The maximum number of items to return. */ private Integer limit; @@ -67,10 +70,10 @@ public String getPage() { return page; } /** The sort order to use, either 'ASC' or 'DESC'. */ - private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder; + private com.oracle.bmc.marketplacepublisher.model.SortOrder sortOrder; /** The sort order to use, either 'ASC' or 'DESC'. */ - public com.oracle.bmc.distributeddatabasev26.model.SortOrder getSortOrder() { + public com.oracle.bmc.marketplacepublisher.model.SortOrder getSortOrder() { return sortOrder; } /** @@ -85,7 +88,7 @@ public com.oracle.bmc.distributeddatabasev26.model.SortOrder getSortOrder() { */ public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { TimeCreated("timeCreated"), - TimeUpdated("timeUpdated"), + DisplayName("displayName"), ; private final String value; @@ -130,79 +133,76 @@ public SortBy getSortBy() { 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> { + ListAdminListingRevisionAttachmentsRequest, 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; + /** OCID of the listing revision. */ + private String listingRevisionId = null; /** - * The ID of the compartment in which to list resources. + * OCID of the listing revision. * - * @param compartmentId the value to set + * @param listingRevisionId the value to set * @return this builder instance */ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; + public Builder listingRevisionId(String listingRevisionId) { + this.listingRevisionId = listingRevisionId; 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; + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; /** - * When set to true, returns resources in the specified compartment and in all of its child - * compartments recursively. Defaults to false. + * A filter to return only resources that match the entire display name given. * - * @param compartmentIdInSubtree the value to set + * @param displayName the value to set * @return this builder instance */ - public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { - this.compartmentIdInSubtree = compartmentIdInSubtree; + public Builder displayName(String displayName) { + this.displayName = displayName; return this; } /** - * A filter to return only resources their lifecycleState matches the given lifecycleState. + * A filter to return only attachments their lifecycleState matches the given + * lifecycleState. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - .LifecycleState + private com.oracle.bmc.marketplacepublisher.model.ListingRevisionAttachment.LifecycleState lifecycleState = null; /** - * A filter to return only resources their lifecycleState matches the given lifecycleState. + * A filter to return only attachments 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 + com.oracle.bmc.marketplacepublisher.model.ListingRevisionAttachment.LifecycleState lifecycleState) { this.lifecycleState = lifecycleState; return this; } + /** The unique identifier for the compartment. */ + private String compartmentId = null; + + /** + * The unique identifier for the compartment. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + /** The maximum number of items to return. */ private Integer limit = null; @@ -236,7 +236,7 @@ public Builder page(String page) { } /** The sort order to use, either 'ASC' or 'DESC'. */ - private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder = null; + private com.oracle.bmc.marketplacepublisher.model.SortOrder sortOrder = null; /** * The sort order to use, either 'ASC' or 'DESC'. @@ -244,7 +244,7 @@ public Builder page(String page) { * @param sortOrder the value to set * @return this builder instance */ - public Builder sortOrder(com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder) { + public Builder sortOrder(com.oracle.bmc.marketplacepublisher.model.SortOrder sortOrder) { this.sortOrder = sortOrder; return this; } @@ -281,24 +281,6 @@ public Builder opcRequestId(String 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. * @@ -328,24 +310,24 @@ public Builder retryConfiguration( * * @return this builder instance */ - public Builder copy(ListDistributedDatabasePrivateEndpointsRequest o) { - compartmentId(o.getCompartmentId()); - compartmentIdInSubtree(o.getCompartmentIdInSubtree()); + public Builder copy(ListAdminListingRevisionAttachmentsRequest o) { + listingRevisionId(o.getListingRevisionId()); + displayName(o.getDisplayName()); lifecycleState(o.getLifecycleState()); + compartmentId(o.getCompartmentId()); 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 + * Build the instance of ListAdminListingRevisionAttachmentsRequest as configured by this + * builder * *

    Note that this method takes calls to {@link * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, @@ -353,42 +335,40 @@ public Builder copy(ListDistributedDatabasePrivateEndpointsRequest o) { * *

    This is the preferred method to build an instance. * - * @return instance of ListDistributedDatabasePrivateEndpointsRequest + * @return instance of ListAdminListingRevisionAttachmentsRequest */ - public ListDistributedDatabasePrivateEndpointsRequest build() { - ListDistributedDatabasePrivateEndpointsRequest request = - buildWithoutInvocationCallback(); + public ListAdminListingRevisionAttachmentsRequest build() { + ListAdminListingRevisionAttachmentsRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of ListDistributedDatabasePrivateEndpointsRequest as configured by - * this builder + * Build the instance of ListAdminListingRevisionAttachmentsRequest 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 + * @return instance of ListAdminListingRevisionAttachmentsRequest */ - public ListDistributedDatabasePrivateEndpointsRequest buildWithoutInvocationCallback() { - ListDistributedDatabasePrivateEndpointsRequest request = - new ListDistributedDatabasePrivateEndpointsRequest(); - request.compartmentId = compartmentId; - request.compartmentIdInSubtree = compartmentIdInSubtree; + public ListAdminListingRevisionAttachmentsRequest buildWithoutInvocationCallback() { + ListAdminListingRevisionAttachmentsRequest request = + new ListAdminListingRevisionAttachmentsRequest(); + request.listingRevisionId = listingRevisionId; + request.displayName = displayName; request.lifecycleState = lifecycleState; + request.compartmentId = compartmentId; 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); + // new ListAdminListingRevisionAttachmentsRequest(listingRevisionId, displayName, + // lifecycleState, compartmentId, limit, page, sortOrder, sortBy, opcRequestId); } } @@ -399,15 +379,15 @@ public ListDistributedDatabasePrivateEndpointsRequest buildWithoutInvocationCall */ public Builder toBuilder() { return new Builder() - .compartmentId(compartmentId) - .compartmentIdInSubtree(compartmentIdInSubtree) + .listingRevisionId(listingRevisionId) + .displayName(displayName) .lifecycleState(lifecycleState) + .compartmentId(compartmentId) .limit(limit) .page(page) .sortOrder(sortOrder) .sortBy(sortBy) - .opcRequestId(opcRequestId) - .displayName(displayName); + .opcRequestId(opcRequestId); } /** @@ -424,15 +404,15 @@ 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(",listingRevisionId=").append(String.valueOf(this.listingRevisionId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",page=").append(String.valueOf(this.page)); sb.append(",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(); } @@ -442,23 +422,22 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ListDistributedDatabasePrivateEndpointsRequest)) { + if (!(o instanceof ListAdminListingRevisionAttachmentsRequest)) { return false; } - ListDistributedDatabasePrivateEndpointsRequest other = - (ListDistributedDatabasePrivateEndpointsRequest) o; + ListAdminListingRevisionAttachmentsRequest other = + (ListAdminListingRevisionAttachmentsRequest) 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.listingRevisionId, other.listingRevisionId) + && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.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); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @Override @@ -467,21 +446,19 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + + (this.listingRevisionId == null ? 43 : this.listingRevisionId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) - + (this.compartmentIdInSubtree == null - ? 43 - : this.compartmentIdInSubtree.hashCode()); + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) - + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminListingRevisionPackagesRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminListingRevisionPackagesRequest.java new file mode 100644 index 00000000000..a27119b6ab3 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminListingRevisionPackagesRequest.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.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use + * ListAdminListingRevisionPackagesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListAdminListingRevisionPackagesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** OCID of the listing revision. */ + private String listingRevisionId; + + /** OCID of the listing revision. */ + public String getListingRevisionId() { + return listingRevisionId; + } + /** The unique identifier for the compartment. */ + private String compartmentId; + + /** The unique identifier for the compartment. */ + public String getCompartmentId() { + return compartmentId; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** A filter to return only packages their lifecycleState matches the given lifecycleState. */ + private com.oracle.bmc.marketplacepublisher.model.ListingRevisionPackage.LifecycleState + lifecycleState; + + /** A filter to return only packages their lifecycleState matches the given lifecycleState. */ + public com.oracle.bmc.marketplacepublisher.model.ListingRevisionPackage.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.marketplacepublisher.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.marketplacepublisher.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"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListAdminListingRevisionPackagesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** OCID of the listing revision. */ + private String listingRevisionId = null; + + /** + * OCID of the listing revision. + * + * @param listingRevisionId the value to set + * @return this builder instance + */ + public Builder listingRevisionId(String listingRevisionId) { + this.listingRevisionId = listingRevisionId; + return this; + } + + /** The unique identifier for the compartment. */ + private String compartmentId = null; + + /** + * The unique identifier for the compartment. + * + * @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 entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * A filter to return only packages their lifecycleState matches the given lifecycleState. + */ + private com.oracle.bmc.marketplacepublisher.model.ListingRevisionPackage.LifecycleState + lifecycleState = null; + + /** + * A filter to return only packages their lifecycleState matches the given lifecycleState. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.marketplacepublisher.model.ListingRevisionPackage.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.marketplacepublisher.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.marketplacepublisher.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; + } + + /** + * 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(ListAdminListingRevisionPackagesRequest o) { + listingRevisionId(o.getListingRevisionId()); + compartmentId(o.getCompartmentId()); + displayName(o.getDisplayName()); + lifecycleState(o.getLifecycleState()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListAdminListingRevisionPackagesRequest 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 ListAdminListingRevisionPackagesRequest + */ + public ListAdminListingRevisionPackagesRequest build() { + ListAdminListingRevisionPackagesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListAdminListingRevisionPackagesRequest 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 ListAdminListingRevisionPackagesRequest + */ + public ListAdminListingRevisionPackagesRequest buildWithoutInvocationCallback() { + ListAdminListingRevisionPackagesRequest request = + new ListAdminListingRevisionPackagesRequest(); + request.listingRevisionId = listingRevisionId; + request.compartmentId = compartmentId; + request.displayName = displayName; + request.lifecycleState = lifecycleState; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListAdminListingRevisionPackagesRequest(listingRevisionId, compartmentId, + // displayName, lifecycleState, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .listingRevisionId(listingRevisionId) + .compartmentId(compartmentId) + .displayName(displayName) + .lifecycleState(lifecycleState) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",listingRevisionId=").append(String.valueOf(this.listingRevisionId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",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 ListAdminListingRevisionPackagesRequest)) { + return false; + } + + ListAdminListingRevisionPackagesRequest other = (ListAdminListingRevisionPackagesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.listingRevisionId, other.listingRevisionId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.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.listingRevisionId == null ? 43 : this.listingRevisionId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminListingRevisionsRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminListingRevisionsRequest.java new file mode 100644 index 00000000000..f8ddbaf80b8 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminListingRevisionsRequest.java @@ -0,0 +1,802 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use + * ListAdminListingRevisionsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListAdminListingRevisionsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** listing OCID */ + private String listingId; + + /** listing OCID */ + public String getListingId() { + return listingId; + } + /** The unique identifier for the compartment. */ + private String compartmentId; + + /** The unique identifier for the compartment. */ + public String getCompartmentId() { + return compartmentId; + } + /** A filter to return listings based on their type */ + private com.oracle.bmc.marketplacepublisher.model.ListingType listingType; + + /** A filter to return listings based on their type */ + public com.oracle.bmc.marketplacepublisher.model.ListingType getListingType() { + return listingType; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** Unique publisher identifier. */ + private String publisherId; + + /** Unique publisher identifier. */ + public String getPublisherId() { + return publisherId; + } + /** + * A filter to return only listing revisions their lifecycleState matches the given + * lifecycleState. + */ + private com.oracle.bmc.marketplacepublisher.model.ListingRevision.LifecycleState lifecycleState; + + /** + * A filter to return only listing revisions their lifecycleState matches the given + * lifecycleState. + */ + public com.oracle.bmc.marketplacepublisher.model.ListingRevision.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** + * A filter to return only listing revisions their status matches the given listing revision + * status. + */ + private com.oracle.bmc.marketplacepublisher.model.ListingRevision.Status listingRevisionStatus; + + /** + * A filter to return only listing revisions their status matches the given listing revision + * status. + */ + public com.oracle.bmc.marketplacepublisher.model.ListingRevision.Status + getListingRevisionStatus() { + return listingRevisionStatus; + } + /** + * Comma-separated listing revision status values used to filter OpenSearch admin listing + * revision results. + */ + private String statusCsv; + + /** + * Comma-separated listing revision status values used to filter OpenSearch admin listing + * revision results. + */ + public String getStatusCsv() { + return statusCsv; + } + /** Product value used to filter OpenSearch admin listing revision results. */ + private String product; + + /** Product value used to filter OpenSearch admin listing revision results. */ + public String getProduct() { + return product; + } + /** Filters data created after the specified date. */ + private java.util.Date timeCreatedAfter; + + /** Filters data created after the specified date. */ + public java.util.Date getTimeCreatedAfter() { + return timeCreatedAfter; + } + /** Filters data updated after the specified date. */ + private java.util.Date timeUpdatedAfter; + + /** Filters data updated after the specified date. */ + public java.util.Date getTimeUpdatedAfter() { + return timeUpdatedAfter; + } + /** 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.marketplacepublisher.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.marketplacepublisher.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 timeUpdated 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 timeUpdated is descending. Default order for displayName is + * ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + TimeUpdated("timeUpdated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for timeUpdated is descending. Default order for displayName is + * ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * Optional pricing type filter for listing admin listing revisions. This filter is only applied + * when dataSource is opensearch. + */ + private String pricingType; + + /** + * Optional pricing type filter for listing admin listing revisions. This filter is only applied + * when dataSource is opensearch. + */ + public String getPricingType() { + return pricingType; + } + /** + * Optional private offer enabled filter for listing admin listing revisions. This filter is + * only applied when dataSource is opensearch. + */ + private Boolean isPrivateOfferEnabled; + + /** + * Optional private offer enabled filter for listing admin listing revisions. This filter is + * only applied when dataSource is opensearch. + */ + public Boolean getIsPrivateOfferEnabled() { + return isPrivateOfferEnabled; + } + /** + * Optional source for listing admin listing revisions. Use opensearch to read from OpenSearch. + */ + private String dataSource; + + /** + * Optional source for listing admin listing revisions. Use opensearch to read from OpenSearch. + */ + public String getDataSource() { + return dataSource; + } + /** 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< + ListAdminListingRevisionsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** listing OCID */ + private String listingId = null; + + /** + * listing OCID + * + * @param listingId the value to set + * @return this builder instance + */ + public Builder listingId(String listingId) { + this.listingId = listingId; + return this; + } + + /** The unique identifier for the compartment. */ + private String compartmentId = null; + + /** + * The unique identifier for the compartment. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** A filter to return listings based on their type */ + private com.oracle.bmc.marketplacepublisher.model.ListingType listingType = null; + + /** + * A filter to return listings based on their type + * + * @param listingType the value to set + * @return this builder instance + */ + public Builder listingType( + com.oracle.bmc.marketplacepublisher.model.ListingType listingType) { + this.listingType = listingType; + return this; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** Unique publisher identifier. */ + private String publisherId = null; + + /** + * Unique publisher identifier. + * + * @param publisherId the value to set + * @return this builder instance + */ + public Builder publisherId(String publisherId) { + this.publisherId = publisherId; + return this; + } + + /** + * A filter to return only listing revisions their lifecycleState matches the given + * lifecycleState. + */ + private com.oracle.bmc.marketplacepublisher.model.ListingRevision.LifecycleState + lifecycleState = null; + + /** + * A filter to return only listing revisions their lifecycleState matches the given + * lifecycleState. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.marketplacepublisher.model.ListingRevision.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * A filter to return only listing revisions their status matches the given listing revision + * status. + */ + private com.oracle.bmc.marketplacepublisher.model.ListingRevision.Status + listingRevisionStatus = null; + + /** + * A filter to return only listing revisions their status matches the given listing revision + * status. + * + * @param listingRevisionStatus the value to set + * @return this builder instance + */ + public Builder listingRevisionStatus( + com.oracle.bmc.marketplacepublisher.model.ListingRevision.Status + listingRevisionStatus) { + this.listingRevisionStatus = listingRevisionStatus; + return this; + } + + /** + * Comma-separated listing revision status values used to filter OpenSearch admin listing + * revision results. + */ + private String statusCsv = null; + + /** + * Comma-separated listing revision status values used to filter OpenSearch admin listing + * revision results. + * + * @param statusCsv the value to set + * @return this builder instance + */ + public Builder statusCsv(String statusCsv) { + this.statusCsv = statusCsv; + return this; + } + + /** Product value used to filter OpenSearch admin listing revision results. */ + private String product = null; + + /** + * Product value used to filter OpenSearch admin listing revision results. + * + * @param product the value to set + * @return this builder instance + */ + public Builder product(String product) { + this.product = product; + return this; + } + + /** Filters data created after the specified date. */ + private java.util.Date timeCreatedAfter = null; + + /** + * Filters data created after the specified date. + * + * @param timeCreatedAfter the value to set + * @return this builder instance + */ + public Builder timeCreatedAfter(java.util.Date timeCreatedAfter) { + this.timeCreatedAfter = timeCreatedAfter; + return this; + } + + /** Filters data updated after the specified date. */ + private java.util.Date timeUpdatedAfter = null; + + /** + * Filters data updated after the specified date. + * + * @param timeUpdatedAfter the value to set + * @return this builder instance + */ + public Builder timeUpdatedAfter(java.util.Date timeUpdatedAfter) { + this.timeUpdatedAfter = timeUpdatedAfter; + 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.marketplacepublisher.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.marketplacepublisher.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 timeUpdated 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 timeUpdated 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; + } + + /** + * Optional pricing type filter for listing admin listing revisions. This filter is only + * applied when dataSource is opensearch. + */ + private String pricingType = null; + + /** + * Optional pricing type filter for listing admin listing revisions. This filter is only + * applied when dataSource is opensearch. + * + * @param pricingType the value to set + * @return this builder instance + */ + public Builder pricingType(String pricingType) { + this.pricingType = pricingType; + return this; + } + + /** + * Optional private offer enabled filter for listing admin listing revisions. This filter is + * only applied when dataSource is opensearch. + */ + private Boolean isPrivateOfferEnabled = null; + + /** + * Optional private offer enabled filter for listing admin listing revisions. This filter is + * only applied when dataSource is opensearch. + * + * @param isPrivateOfferEnabled the value to set + * @return this builder instance + */ + public Builder isPrivateOfferEnabled(Boolean isPrivateOfferEnabled) { + this.isPrivateOfferEnabled = isPrivateOfferEnabled; + return this; + } + + /** + * Optional source for listing admin listing revisions. Use opensearch to read from + * OpenSearch. + */ + private String dataSource = null; + + /** + * Optional source for listing admin listing revisions. Use opensearch to read from + * OpenSearch. + * + * @param dataSource the value to set + * @return this builder instance + */ + public Builder dataSource(String dataSource) { + this.dataSource = dataSource; + 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(ListAdminListingRevisionsRequest o) { + listingId(o.getListingId()); + compartmentId(o.getCompartmentId()); + listingType(o.getListingType()); + displayName(o.getDisplayName()); + publisherId(o.getPublisherId()); + lifecycleState(o.getLifecycleState()); + listingRevisionStatus(o.getListingRevisionStatus()); + statusCsv(o.getStatusCsv()); + product(o.getProduct()); + timeCreatedAfter(o.getTimeCreatedAfter()); + timeUpdatedAfter(o.getTimeUpdatedAfter()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + pricingType(o.getPricingType()); + isPrivateOfferEnabled(o.getIsPrivateOfferEnabled()); + dataSource(o.getDataSource()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListAdminListingRevisionsRequest 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 ListAdminListingRevisionsRequest + */ + public ListAdminListingRevisionsRequest build() { + ListAdminListingRevisionsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListAdminListingRevisionsRequest 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 ListAdminListingRevisionsRequest + */ + public ListAdminListingRevisionsRequest buildWithoutInvocationCallback() { + ListAdminListingRevisionsRequest request = new ListAdminListingRevisionsRequest(); + request.listingId = listingId; + request.compartmentId = compartmentId; + request.listingType = listingType; + request.displayName = displayName; + request.publisherId = publisherId; + request.lifecycleState = lifecycleState; + request.listingRevisionStatus = listingRevisionStatus; + request.statusCsv = statusCsv; + request.product = product; + request.timeCreatedAfter = timeCreatedAfter; + request.timeUpdatedAfter = timeUpdatedAfter; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.pricingType = pricingType; + request.isPrivateOfferEnabled = isPrivateOfferEnabled; + request.dataSource = dataSource; + request.opcRequestId = opcRequestId; + return request; + // new ListAdminListingRevisionsRequest(listingId, compartmentId, listingType, + // displayName, publisherId, lifecycleState, listingRevisionStatus, statusCsv, product, + // timeCreatedAfter, timeUpdatedAfter, limit, page, sortOrder, sortBy, pricingType, + // isPrivateOfferEnabled, dataSource, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .listingId(listingId) + .compartmentId(compartmentId) + .listingType(listingType) + .displayName(displayName) + .publisherId(publisherId) + .lifecycleState(lifecycleState) + .listingRevisionStatus(listingRevisionStatus) + .statusCsv(statusCsv) + .product(product) + .timeCreatedAfter(timeCreatedAfter) + .timeUpdatedAfter(timeUpdatedAfter) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .pricingType(pricingType) + .isPrivateOfferEnabled(isPrivateOfferEnabled) + .dataSource(dataSource) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",listingId=").append(String.valueOf(this.listingId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",listingType=").append(String.valueOf(this.listingType)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",publisherId=").append(String.valueOf(this.publisherId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",listingRevisionStatus=").append(String.valueOf(this.listingRevisionStatus)); + sb.append(",statusCsv=").append(String.valueOf(this.statusCsv)); + sb.append(",product=").append(String.valueOf(this.product)); + sb.append(",timeCreatedAfter=").append(String.valueOf(this.timeCreatedAfter)); + sb.append(",timeUpdatedAfter=").append(String.valueOf(this.timeUpdatedAfter)); + 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(",pricingType=").append(String.valueOf(this.pricingType)); + sb.append(",isPrivateOfferEnabled=").append(String.valueOf(this.isPrivateOfferEnabled)); + sb.append(",dataSource=").append(String.valueOf(this.dataSource)); + 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 ListAdminListingRevisionsRequest)) { + return false; + } + + ListAdminListingRevisionsRequest other = (ListAdminListingRevisionsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.listingId, other.listingId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.listingType, other.listingType) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.publisherId, other.publisherId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.listingRevisionStatus, other.listingRevisionStatus) + && java.util.Objects.equals(this.statusCsv, other.statusCsv) + && java.util.Objects.equals(this.product, other.product) + && java.util.Objects.equals(this.timeCreatedAfter, other.timeCreatedAfter) + && java.util.Objects.equals(this.timeUpdatedAfter, other.timeUpdatedAfter) + && 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.pricingType, other.pricingType) + && java.util.Objects.equals(this.isPrivateOfferEnabled, other.isPrivateOfferEnabled) + && java.util.Objects.equals(this.dataSource, other.dataSource) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.listingId == null ? 43 : this.listingId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.listingType == null ? 43 : this.listingType.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.publisherId == null ? 43 : this.publisherId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.listingRevisionStatus == null + ? 43 + : this.listingRevisionStatus.hashCode()); + result = (result * PRIME) + (this.statusCsv == null ? 43 : this.statusCsv.hashCode()); + result = (result * PRIME) + (this.product == null ? 43 : this.product.hashCode()); + result = + (result * PRIME) + + (this.timeCreatedAfter == null ? 43 : this.timeCreatedAfter.hashCode()); + result = + (result * PRIME) + + (this.timeUpdatedAfter == null ? 43 : this.timeUpdatedAfter.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.pricingType == null ? 43 : this.pricingType.hashCode()); + result = + (result * PRIME) + + (this.isPrivateOfferEnabled == null + ? 43 + : this.isPrivateOfferEnabled.hashCode()); + result = (result * PRIME) + (this.dataSource == null ? 43 : this.dataSource.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminPublisherSkusRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminPublisherSkusRequest.java new file mode 100644 index 00000000000..556eb7260d3 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminPublisherSkusRequest.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.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use + * ListAdminPublisherSkusRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListAdminPublisherSkusRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * 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; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListAdminPublisherSkusRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 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; + } + + /** + * 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(ListAdminPublisherSkusRequest o) { + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListAdminPublisherSkusRequest 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 ListAdminPublisherSkusRequest + */ + public ListAdminPublisherSkusRequest build() { + ListAdminPublisherSkusRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListAdminPublisherSkusRequest 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 ListAdminPublisherSkusRequest + */ + public ListAdminPublisherSkusRequest buildWithoutInvocationCallback() { + ListAdminPublisherSkusRequest request = new ListAdminPublisherSkusRequest(); + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + return request; + // new ListAdminPublisherSkusRequest(opcRequestId, limit, page); + } + } + + /** + * 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().opcRequestId(opcRequestId).limit(limit).page(page); + } + + /** + * 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(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAdminPublisherSkusRequest)) { + return false; + } + + ListAdminPublisherSkusRequest other = (ListAdminPublisherSkusRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page); + } + + @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.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminTermVersionsRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminTermVersionsRequest.java new file mode 100644 index 00000000000..9278d36805f --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminTermVersionsRequest.java @@ -0,0 +1,416 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use + * ListAdminTermVersionsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListAdminTermVersionsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** term OCID */ + private String termId; + + /** term OCID */ + public String getTermId() { + return termId; + } + /** The unique identifier for the compartment. */ + private String compartmentId; + + /** The unique identifier for the compartment. */ + public String getCompartmentId() { + return compartmentId; + } + /** 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.marketplacepublisher.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.marketplacepublisher.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"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + 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 that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListAdminTermVersionsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** term OCID */ + private String termId = null; + + /** + * term OCID + * + * @param termId the value to set + * @return this builder instance + */ + public Builder termId(String termId) { + this.termId = termId; + return this; + } + + /** The unique identifier for the compartment. */ + private String compartmentId = null; + + /** + * The unique identifier for the compartment. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + 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.marketplacepublisher.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.marketplacepublisher.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 that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListAdminTermVersionsRequest o) { + termId(o.getTermId()); + compartmentId(o.getCompartmentId()); + 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 ListAdminTermVersionsRequest 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 ListAdminTermVersionsRequest + */ + public ListAdminTermVersionsRequest build() { + ListAdminTermVersionsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListAdminTermVersionsRequest 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 ListAdminTermVersionsRequest + */ + public ListAdminTermVersionsRequest buildWithoutInvocationCallback() { + ListAdminTermVersionsRequest request = new ListAdminTermVersionsRequest(); + request.termId = termId; + request.compartmentId = compartmentId; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + request.displayName = displayName; + return request; + // new ListAdminTermVersionsRequest(termId, compartmentId, 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() + .termId(termId) + .compartmentId(compartmentId) + .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(",termId=").append(String.valueOf(this.termId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",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 ListAdminTermVersionsRequest)) { + return false; + } + + ListAdminTermVersionsRequest other = (ListAdminTermVersionsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.termId, other.termId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.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.termId == null ? 43 : this.termId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminTermsRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminTermsRequest.java new file mode 100644 index 00000000000..e9a078645a7 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminTermsRequest.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.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use ListAdminTermsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListAdminTermsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** 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 unique identifier for the compartment. */ + private String compartmentId; + + /** The unique identifier for the compartment. */ + public String getCompartmentId() { + return compartmentId; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.marketplacepublisher.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.marketplacepublisher.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"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + 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 that match the entire name given. */ + private String name; + + /** A filter to return only resources that match the entire name given. */ + public String getName() { + return name; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListAdminTermsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** 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 unique identifier for the compartment. */ + private String compartmentId = null; + + /** + * The unique identifier for the compartment. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.marketplacepublisher.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.marketplacepublisher.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 that match the entire name given. */ + private String name = null; + + /** + * A filter to return only resources that match the entire name given. + * + * @param name the value to set + * @return this builder instance + */ + public Builder name(String name) { + this.name = name; + return this; + } + + /** + * 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(ListAdminTermsRequest o) { + limit(o.getLimit()); + page(o.getPage()); + compartmentId(o.getCompartmentId()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + name(o.getName()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListAdminTermsRequest 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 ListAdminTermsRequest + */ + public ListAdminTermsRequest build() { + ListAdminTermsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListAdminTermsRequest 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 ListAdminTermsRequest + */ + public ListAdminTermsRequest buildWithoutInvocationCallback() { + ListAdminTermsRequest request = new ListAdminTermsRequest(); + request.limit = limit; + request.page = page; + request.compartmentId = compartmentId; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + request.name = name; + return request; + // new ListAdminTermsRequest(limit, page, compartmentId, sortOrder, sortBy, + // opcRequestId, name); + } + } + + /** + * 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() + .limit(limit) + .page(page) + .compartmentId(compartmentId) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId) + .name(name); + } + + /** + * 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(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + 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(",name=").append(String.valueOf(this.name)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAdminTermsRequest)) { + return false; + } + + ListAdminTermsRequest other = (ListAdminTermsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && 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.name, other.name); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.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.compartmentId == null ? 43 : this.compartmentId.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.name == null ? 43 : this.name.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestsRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminWorkRequestsRequest.java similarity index 87% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestsRequest.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminWorkRequestsRequest.java index 71c74dce2d1..9be32fa10ec 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestsRequest.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminWorkRequestsRequest.java @@ -2,16 +2,18 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; /** * Example: Click here to see how to use ListWorkRequestsRequest. + * href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/marketplacepublisher/ListAdminWorkRequestsExample.java.html" + * target="_blank" rel="noopener noreferrer">here to see how to use + * ListAdminWorkRequestsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListWorkRequestsRequest extends com.oracle.bmc.requests.BmcRequest { +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListAdminWorkRequestsRequest + extends com.oracle.bmc.requests.BmcRequest { /** The ID of the compartment in which to list resources. */ private String compartmentId; @@ -28,10 +30,10 @@ 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; + private com.oracle.bmc.marketplacepublisher.model.OperationStatus status; /** A filter to return only resources their lifecycleState matches the given OperationStatus. */ - public com.oracle.bmc.distributeddatabasev26.model.OperationStatus getStatus() { + public com.oracle.bmc.marketplacepublisher.model.OperationStatus getStatus() { return status; } /** The ID of the resource affected by the work request. */ @@ -69,10 +71,10 @@ public Integer getLimit() { return limit; } /** The sort order to use, either 'ASC' or 'DESC'. */ - private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder; + private com.oracle.bmc.marketplacepublisher.model.SortOrder sortOrder; /** The sort order to use, either 'ASC' or 'DESC'. */ - public com.oracle.bmc.distributeddatabasev26.model.SortOrder getSortOrder() { + public com.oracle.bmc.marketplacepublisher.model.SortOrder getSortOrder() { return sortOrder; } /** @@ -127,7 +129,7 @@ public SortBy getSortBy() { public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - ListWorkRequestsRequest, java.lang.Void> { + ListAdminWorkRequestsRequest, java.lang.Void> { private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; @@ -162,7 +164,7 @@ public Builder workRequestId(String workRequestId) { /** * A filter to return only resources their lifecycleState matches the given OperationStatus. */ - private com.oracle.bmc.distributeddatabasev26.model.OperationStatus status = null; + private com.oracle.bmc.marketplacepublisher.model.OperationStatus status = null; /** * A filter to return only resources their lifecycleState matches the given OperationStatus. @@ -170,7 +172,7 @@ public Builder workRequestId(String workRequestId) { * @param status the value to set * @return this builder instance */ - public Builder status(com.oracle.bmc.distributeddatabasev26.model.OperationStatus status) { + public Builder status(com.oracle.bmc.marketplacepublisher.model.OperationStatus status) { this.status = status; return this; } @@ -236,7 +238,7 @@ public Builder limit(Integer limit) { } /** The sort order to use, either 'ASC' or 'DESC'. */ - private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder = null; + private com.oracle.bmc.marketplacepublisher.model.SortOrder sortOrder = null; /** * The sort order to use, either 'ASC' or 'DESC'. @@ -244,7 +246,7 @@ public Builder limit(Integer limit) { * @param sortOrder the value to set * @return this builder instance */ - public Builder sortOrder(com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder) { + public Builder sortOrder(com.oracle.bmc.marketplacepublisher.model.SortOrder sortOrder) { this.sortOrder = sortOrder; return this; } @@ -296,7 +298,7 @@ public Builder retryConfiguration( * * @return this builder instance */ - public Builder copy(ListWorkRequestsRequest o) { + public Builder copy(ListAdminWorkRequestsRequest o) { compartmentId(o.getCompartmentId()); workRequestId(o.getWorkRequestId()); status(o.getStatus()); @@ -312,7 +314,7 @@ public Builder copy(ListWorkRequestsRequest o) { } /** - * Build the instance of ListWorkRequestsRequest as configured by this builder + * Build the instance of ListAdminWorkRequestsRequest as configured by this builder * *

    Note that this method takes calls to {@link * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, @@ -320,26 +322,26 @@ public Builder copy(ListWorkRequestsRequest o) { * *

    This is the preferred method to build an instance. * - * @return instance of ListWorkRequestsRequest + * @return instance of ListAdminWorkRequestsRequest */ - public ListWorkRequestsRequest build() { - ListWorkRequestsRequest request = buildWithoutInvocationCallback(); + public ListAdminWorkRequestsRequest build() { + ListAdminWorkRequestsRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of ListWorkRequestsRequest as configured by this builder + * Build the instance of ListAdminWorkRequestsRequest 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 + * @return instance of ListAdminWorkRequestsRequest */ - public ListWorkRequestsRequest buildWithoutInvocationCallback() { - ListWorkRequestsRequest request = new ListWorkRequestsRequest(); + public ListAdminWorkRequestsRequest buildWithoutInvocationCallback() { + ListAdminWorkRequestsRequest request = new ListAdminWorkRequestsRequest(); request.compartmentId = compartmentId; request.workRequestId = workRequestId; request.status = status; @@ -350,7 +352,7 @@ public ListWorkRequestsRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.sortBy = sortBy; return request; - // new ListWorkRequestsRequest(compartmentId, workRequestId, status, resourceId, + // new ListAdminWorkRequestsRequest(compartmentId, workRequestId, status, resourceId, // opcRequestId, page, limit, sortOrder, sortBy); } } @@ -405,11 +407,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ListWorkRequestsRequest)) { + if (!(o instanceof ListAdminWorkRequestsRequest)) { return false; } - ListWorkRequestsRequest other = (ListWorkRequestsRequest) o; + ListAdminWorkRequestsRequest other = (ListAdminWorkRequestsRequest) o; return super.equals(o) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.workRequestId, other.workRequestId) diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListCustomerInstanceReportExportsRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListCustomerInstanceReportExportsRequest.java new file mode 100644 index 00000000000..2aa663863e0 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListCustomerInstanceReportExportsRequest.java @@ -0,0 +1,790 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use + * ListCustomerInstanceReportExportsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListCustomerInstanceReportExportsRequest + 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 client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * 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.marketplacepublisher.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.marketplacepublisher.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 fileName 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 fileName is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + FileName("fileName"), + ; + + 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 fileName is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** A filter to return only resources that match the entire name given. */ + private String name; + + /** A filter to return only resources that match the entire name given. */ + public String getName() { + return name; + } + /** Listing OCID to query resource against. */ + private String listingId; + + /** Listing OCID to query resource against. */ + public String getListingId() { + return listingId; + } + /** A filter to return only report records that match the instance status. */ + private Status status; + + /** A filter to return only report records that match the instance status. */ + public enum Status implements com.oracle.bmc.http.internal.BmcEnum { + Provisioning("PROVISIONING"), + Running("RUNNING"), + Stopped("STOPPED"), + Terminating("TERMINATING"), + Terminated("TERMINATED"), + Disabled("DISABLED"), + Starting("STARTING"), + Stopping("STOPPING"), + Snapshotting("SNAPSHOTTING"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + 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); + } + throw new IllegalArgumentException("Invalid Status: " + key); + } + }; + + /** A filter to return only report records that match the instance status. */ + public Status getStatus() { + return status; + } + /** A filter to return only report records that match the instance shape. */ + private String shape; + + /** A filter to return only report records that match the instance shape. */ + public String getShape() { + return shape; + } + /** A filter to return only report records that match the instance region. */ + private String region; + + /** A filter to return only report records that match the instance region. */ + public String getRegion() { + return region; + } + /** A filter to return only report records that match the instance realm. */ + private String realm; + + /** A filter to return only report records that match the instance realm. */ + public String getRealm() { + return realm; + } + /** A filter to return only report records that match the tenant administrator domain. */ + private String tenantAdminDomain; + + /** A filter to return only report records that match the tenant administrator domain. */ + public String getTenantAdminDomain() { + return tenantAdminDomain; + } + /** A filter to return only report records that match the package version. */ + private String packageVersion; + + /** A filter to return only report records that match the package version. */ + public String getPackageVersion() { + return packageVersion; + } + /** A filter to return only report records that match the instance OCID. */ + private String instanceOcid; + + /** A filter to return only report records that match the instance OCID. */ + public String getInstanceOcid() { + return instanceOcid; + } + /** The inclusive earliest instance creation time, in RFC 3339 format. */ + private java.util.Date timeInstanceCreationFromDate; + + /** The inclusive earliest instance creation time, in RFC 3339 format. */ + public java.util.Date getTimeInstanceCreationFromDate() { + return timeInstanceCreationFromDate; + } + /** The inclusive latest instance creation time, in RFC 3339 format. */ + private java.util.Date timeInstanceCreationToDate; + + /** The inclusive latest instance creation time, in RFC 3339 format. */ + public java.util.Date getTimeInstanceCreationToDate() { + return timeInstanceCreationToDate; + } + /** The inclusive earliest instance termination time, in RFC 3339 format. */ + private java.util.Date timeInstanceTerminationFromDate; + + /** The inclusive earliest instance termination time, in RFC 3339 format. */ + public java.util.Date getTimeInstanceTerminationFromDate() { + return timeInstanceTerminationFromDate; + } + /** The inclusive latest instance termination time, in RFC 3339 format. */ + private java.util.Date timeInstanceTerminationToDate; + + /** The inclusive latest instance termination time, in RFC 3339 format. */ + public java.util.Date getTimeInstanceTerminationToDate() { + return timeInstanceTerminationToDate; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListCustomerInstanceReportExportsRequest, 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 client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 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.marketplacepublisher.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.marketplacepublisher.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 fileName 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 fileName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** A filter to return only resources that match the entire name given. */ + private String name = null; + + /** + * A filter to return only resources that match the entire name given. + * + * @param name the value to set + * @return this builder instance + */ + public Builder name(String name) { + this.name = name; + return this; + } + + /** Listing OCID to query resource against. */ + private String listingId = null; + + /** + * Listing OCID to query resource against. + * + * @param listingId the value to set + * @return this builder instance + */ + public Builder listingId(String listingId) { + this.listingId = listingId; + return this; + } + + /** A filter to return only report records that match the instance status. */ + private Status status = null; + + /** + * A filter to return only report records that match the instance status. + * + * @param status the value to set + * @return this builder instance + */ + public Builder status(Status status) { + this.status = status; + return this; + } + + /** A filter to return only report records that match the instance shape. */ + private String shape = null; + + /** + * A filter to return only report records that match the instance shape. + * + * @param shape the value to set + * @return this builder instance + */ + public Builder shape(String shape) { + this.shape = shape; + return this; + } + + /** A filter to return only report records that match the instance region. */ + private String region = null; + + /** + * A filter to return only report records that match the instance region. + * + * @param region the value to set + * @return this builder instance + */ + public Builder region(String region) { + this.region = region; + return this; + } + + /** A filter to return only report records that match the instance realm. */ + private String realm = null; + + /** + * A filter to return only report records that match the instance realm. + * + * @param realm the value to set + * @return this builder instance + */ + public Builder realm(String realm) { + this.realm = realm; + return this; + } + + /** A filter to return only report records that match the tenant administrator domain. */ + private String tenantAdminDomain = null; + + /** + * A filter to return only report records that match the tenant administrator domain. + * + * @param tenantAdminDomain the value to set + * @return this builder instance + */ + public Builder tenantAdminDomain(String tenantAdminDomain) { + this.tenantAdminDomain = tenantAdminDomain; + return this; + } + + /** A filter to return only report records that match the package version. */ + private String packageVersion = null; + + /** + * A filter to return only report records that match the package version. + * + * @param packageVersion the value to set + * @return this builder instance + */ + public Builder packageVersion(String packageVersion) { + this.packageVersion = packageVersion; + return this; + } + + /** A filter to return only report records that match the instance OCID. */ + private String instanceOcid = null; + + /** + * A filter to return only report records that match the instance OCID. + * + * @param instanceOcid the value to set + * @return this builder instance + */ + public Builder instanceOcid(String instanceOcid) { + this.instanceOcid = instanceOcid; + return this; + } + + /** The inclusive earliest instance creation time, in RFC 3339 format. */ + private java.util.Date timeInstanceCreationFromDate = null; + + /** + * The inclusive earliest instance creation time, in RFC 3339 format. + * + * @param timeInstanceCreationFromDate the value to set + * @return this builder instance + */ + public Builder timeInstanceCreationFromDate(java.util.Date timeInstanceCreationFromDate) { + this.timeInstanceCreationFromDate = timeInstanceCreationFromDate; + return this; + } + + /** The inclusive latest instance creation time, in RFC 3339 format. */ + private java.util.Date timeInstanceCreationToDate = null; + + /** + * The inclusive latest instance creation time, in RFC 3339 format. + * + * @param timeInstanceCreationToDate the value to set + * @return this builder instance + */ + public Builder timeInstanceCreationToDate(java.util.Date timeInstanceCreationToDate) { + this.timeInstanceCreationToDate = timeInstanceCreationToDate; + return this; + } + + /** The inclusive earliest instance termination time, in RFC 3339 format. */ + private java.util.Date timeInstanceTerminationFromDate = null; + + /** + * The inclusive earliest instance termination time, in RFC 3339 format. + * + * @param timeInstanceTerminationFromDate the value to set + * @return this builder instance + */ + public Builder timeInstanceTerminationFromDate( + java.util.Date timeInstanceTerminationFromDate) { + this.timeInstanceTerminationFromDate = timeInstanceTerminationFromDate; + return this; + } + + /** The inclusive latest instance termination time, in RFC 3339 format. */ + private java.util.Date timeInstanceTerminationToDate = null; + + /** + * The inclusive latest instance termination time, in RFC 3339 format. + * + * @param timeInstanceTerminationToDate the value to set + * @return this builder instance + */ + public Builder timeInstanceTerminationToDate(java.util.Date timeInstanceTerminationToDate) { + this.timeInstanceTerminationToDate = timeInstanceTerminationToDate; + 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(ListCustomerInstanceReportExportsRequest o) { + compartmentId(o.getCompartmentId()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + name(o.getName()); + listingId(o.getListingId()); + status(o.getStatus()); + shape(o.getShape()); + region(o.getRegion()); + realm(o.getRealm()); + tenantAdminDomain(o.getTenantAdminDomain()); + packageVersion(o.getPackageVersion()); + instanceOcid(o.getInstanceOcid()); + timeInstanceCreationFromDate(o.getTimeInstanceCreationFromDate()); + timeInstanceCreationToDate(o.getTimeInstanceCreationToDate()); + timeInstanceTerminationFromDate(o.getTimeInstanceTerminationFromDate()); + timeInstanceTerminationToDate(o.getTimeInstanceTerminationToDate()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListCustomerInstanceReportExportsRequest 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 ListCustomerInstanceReportExportsRequest + */ + public ListCustomerInstanceReportExportsRequest build() { + ListCustomerInstanceReportExportsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListCustomerInstanceReportExportsRequest 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 ListCustomerInstanceReportExportsRequest + */ + public ListCustomerInstanceReportExportsRequest buildWithoutInvocationCallback() { + ListCustomerInstanceReportExportsRequest request = + new ListCustomerInstanceReportExportsRequest(); + request.compartmentId = compartmentId; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.name = name; + request.listingId = listingId; + request.status = status; + request.shape = shape; + request.region = region; + request.realm = realm; + request.tenantAdminDomain = tenantAdminDomain; + request.packageVersion = packageVersion; + request.instanceOcid = instanceOcid; + request.timeInstanceCreationFromDate = timeInstanceCreationFromDate; + request.timeInstanceCreationToDate = timeInstanceCreationToDate; + request.timeInstanceTerminationFromDate = timeInstanceTerminationFromDate; + request.timeInstanceTerminationToDate = timeInstanceTerminationToDate; + return request; + // new ListCustomerInstanceReportExportsRequest(compartmentId, opcRequestId, limit, + // page, sortOrder, sortBy, name, listingId, status, shape, region, realm, + // tenantAdminDomain, packageVersion, instanceOcid, timeInstanceCreationFromDate, + // timeInstanceCreationToDate, timeInstanceTerminationFromDate, + // timeInstanceTerminationToDate); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .opcRequestId(opcRequestId) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .name(name) + .listingId(listingId) + .status(status) + .shape(shape) + .region(region) + .realm(realm) + .tenantAdminDomain(tenantAdminDomain) + .packageVersion(packageVersion) + .instanceOcid(instanceOcid) + .timeInstanceCreationFromDate(timeInstanceCreationFromDate) + .timeInstanceCreationToDate(timeInstanceCreationToDate) + .timeInstanceTerminationFromDate(timeInstanceTerminationFromDate) + .timeInstanceTerminationToDate(timeInstanceTerminationToDate); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",name=").append(String.valueOf(this.name)); + sb.append(",listingId=").append(String.valueOf(this.listingId)); + sb.append(",status=").append(String.valueOf(this.status)); + sb.append(",shape=").append(String.valueOf(this.shape)); + sb.append(",region=").append(String.valueOf(this.region)); + sb.append(",realm=").append(String.valueOf(this.realm)); + sb.append(",tenantAdminDomain=").append(String.valueOf(this.tenantAdminDomain)); + sb.append(",packageVersion=").append(String.valueOf(this.packageVersion)); + sb.append(",instanceOcid=").append(String.valueOf(this.instanceOcid)); + sb.append(",timeInstanceCreationFromDate=") + .append(String.valueOf(this.timeInstanceCreationFromDate)); + sb.append(",timeInstanceCreationToDate=") + .append(String.valueOf(this.timeInstanceCreationToDate)); + sb.append(",timeInstanceTerminationFromDate=") + .append(String.valueOf(this.timeInstanceTerminationFromDate)); + sb.append(",timeInstanceTerminationToDate=") + .append(String.valueOf(this.timeInstanceTerminationToDate)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCustomerInstanceReportExportsRequest)) { + return false; + } + + ListCustomerInstanceReportExportsRequest other = + (ListCustomerInstanceReportExportsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.listingId, other.listingId) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.shape, other.shape) + && java.util.Objects.equals(this.region, other.region) + && java.util.Objects.equals(this.realm, other.realm) + && java.util.Objects.equals(this.tenantAdminDomain, other.tenantAdminDomain) + && java.util.Objects.equals(this.packageVersion, other.packageVersion) + && java.util.Objects.equals(this.instanceOcid, other.instanceOcid) + && java.util.Objects.equals( + this.timeInstanceCreationFromDate, other.timeInstanceCreationFromDate) + && java.util.Objects.equals( + this.timeInstanceCreationToDate, other.timeInstanceCreationToDate) + && java.util.Objects.equals( + this.timeInstanceTerminationFromDate, other.timeInstanceTerminationFromDate) + && java.util.Objects.equals( + this.timeInstanceTerminationToDate, other.timeInstanceTerminationToDate); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.listingId == null ? 43 : this.listingId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); + result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); + result = (result * PRIME) + (this.realm == null ? 43 : this.realm.hashCode()); + result = + (result * PRIME) + + (this.tenantAdminDomain == null ? 43 : this.tenantAdminDomain.hashCode()); + result = + (result * PRIME) + + (this.packageVersion == null ? 43 : this.packageVersion.hashCode()); + result = (result * PRIME) + (this.instanceOcid == null ? 43 : this.instanceOcid.hashCode()); + result = + (result * PRIME) + + (this.timeInstanceCreationFromDate == null + ? 43 + : this.timeInstanceCreationFromDate.hashCode()); + result = + (result * PRIME) + + (this.timeInstanceCreationToDate == null + ? 43 + : this.timeInstanceCreationToDate.hashCode()); + result = + (result * PRIME) + + (this.timeInstanceTerminationFromDate == null + ? 43 + : this.timeInstanceTerminationFromDate.hashCode()); + result = + (result * PRIME) + + (this.timeInstanceTerminationToDate == null + ? 43 + : this.timeInstanceTerminationToDate.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListCustomerInstanceReportRecordsRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListCustomerInstanceReportRecordsRequest.java index e8f707ba0ae..9b4069e26a6 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListCustomerInstanceReportRecordsRequest.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListCustomerInstanceReportRecordsRequest.java @@ -22,50 +22,6 @@ public class ListCustomerInstanceReportRecordsRequest public String getCompartmentId() { return compartmentId; } - /** The date range of the report */ - private DateRange dateRange; - - /** The date range of the report */ - public enum DateRange implements com.oracle.bmc.http.internal.BmcEnum { - ThisWeek("THIS_WEEK"), - LastWeek("LAST_WEEK"), - ThisMonth("THIS_MONTH"), - LastMonth("LAST_MONTH"), - LastThreeMonths("LAST_THREE_MONTHS"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (DateRange v : DateRange.values()) { - map.put(v.getValue(), v); - } - } - - DateRange(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static DateRange create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid DateRange: " + key); - } - }; - - /** The date range of the report */ - public DateRange getDateRange() { - return dateRange; - } /** The client request ID for tracing. */ private String opcRequestId; @@ -101,18 +57,17 @@ public com.oracle.bmc.marketplacepublisher.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. + * The field to sort by. Only one sort order may be provided. Default order for instance_id 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. + * The field to sort by. Only one sort order may be provided. Default order for instance_id is + * ascending. */ public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { - TimeCreated("timeCreated"), - DisplayName("displayName"), + InstanceId("INSTANCE_ID"), ; private final String value; @@ -144,8 +99,8 @@ public static SortBy create(String 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. + * The field to sort by. Only one sort order may be provided. Default order for instance_id is + * ascending. */ public SortBy getSortBy() { return sortBy; @@ -157,6 +112,131 @@ public SortBy getSortBy() { public String getName() { return name; } + /** Listing OCID to query resource against. */ + private String listingId; + + /** Listing OCID to query resource against. */ + public String getListingId() { + return listingId; + } + /** A filter to return only report records that match the instance status. */ + private Status status; + + /** A filter to return only report records that match the instance status. */ + public enum Status implements com.oracle.bmc.http.internal.BmcEnum { + Provisioning("PROVISIONING"), + Running("RUNNING"), + Stopped("STOPPED"), + Terminating("TERMINATING"), + Terminated("TERMINATED"), + Disabled("DISABLED"), + Starting("STARTING"), + Stopping("STOPPING"), + Snapshotting("SNAPSHOTTING"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + 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); + } + throw new IllegalArgumentException("Invalid Status: " + key); + } + }; + + /** A filter to return only report records that match the instance status. */ + public Status getStatus() { + return status; + } + /** A filter to return only report records that match the instance shape. */ + private String shape; + + /** A filter to return only report records that match the instance shape. */ + public String getShape() { + return shape; + } + /** A filter to return only report records that match the instance region. */ + private String region; + + /** A filter to return only report records that match the instance region. */ + public String getRegion() { + return region; + } + /** A filter to return only report records that match the instance realm. */ + private String realm; + + /** A filter to return only report records that match the instance realm. */ + public String getRealm() { + return realm; + } + /** A filter to return only report records that match the tenant administrator domain. */ + private String tenantAdminDomain; + + /** A filter to return only report records that match the tenant administrator domain. */ + public String getTenantAdminDomain() { + return tenantAdminDomain; + } + /** A filter to return only report records that match the package version. */ + private String packageVersion; + + /** A filter to return only report records that match the package version. */ + public String getPackageVersion() { + return packageVersion; + } + /** A filter to return only report records that match the instance OCID. */ + private String instanceOcid; + + /** A filter to return only report records that match the instance OCID. */ + public String getInstanceOcid() { + return instanceOcid; + } + /** The inclusive earliest instance creation time, in RFC 3339 format. */ + private java.util.Date timeInstanceCreationFromDate; + + /** The inclusive earliest instance creation time, in RFC 3339 format. */ + public java.util.Date getTimeInstanceCreationFromDate() { + return timeInstanceCreationFromDate; + } + /** The inclusive latest instance creation time, in RFC 3339 format. */ + private java.util.Date timeInstanceCreationToDate; + + /** The inclusive latest instance creation time, in RFC 3339 format. */ + public java.util.Date getTimeInstanceCreationToDate() { + return timeInstanceCreationToDate; + } + /** The inclusive earliest instance termination time, in RFC 3339 format. */ + private java.util.Date timeInstanceTerminationFromDate; + + /** The inclusive earliest instance termination time, in RFC 3339 format. */ + public java.util.Date getTimeInstanceTerminationFromDate() { + return timeInstanceTerminationFromDate; + } + /** The inclusive latest instance termination time, in RFC 3339 format. */ + private java.util.Date timeInstanceTerminationToDate; + + /** The inclusive latest instance termination time, in RFC 3339 format. */ + public java.util.Date getTimeInstanceTerminationToDate() { + return timeInstanceTerminationToDate; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -178,20 +258,6 @@ public Builder compartmentId(String compartmentId) { return this; } - /** The date range of the report */ - private DateRange dateRange = null; - - /** - * The date range of the report - * - * @param dateRange the value to set - * @return this builder instance - */ - public Builder dateRange(DateRange dateRange) { - this.dateRange = dateRange; - return this; - } - /** The client request ID for tracing. */ private String opcRequestId = null; @@ -253,14 +319,14 @@ public Builder sortOrder(com.oracle.bmc.marketplacepublisher.model.SortOrder sor } /** - * The field to sort by. Only one sort order may be provided. Default order for timeCreated - * is descending. Default order for displayName is ascending. + * The field to sort by. Only one sort order may be provided. Default order for instance_id + * 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. + * The field to sort by. Only one sort order may be provided. Default order for instance_id + * is ascending. * * @param sortBy the value to set * @return this builder instance @@ -284,6 +350,175 @@ public Builder name(String name) { return this; } + /** Listing OCID to query resource against. */ + private String listingId = null; + + /** + * Listing OCID to query resource against. + * + * @param listingId the value to set + * @return this builder instance + */ + public Builder listingId(String listingId) { + this.listingId = listingId; + return this; + } + + /** A filter to return only report records that match the instance status. */ + private Status status = null; + + /** + * A filter to return only report records that match the instance status. + * + * @param status the value to set + * @return this builder instance + */ + public Builder status(Status status) { + this.status = status; + return this; + } + + /** A filter to return only report records that match the instance shape. */ + private String shape = null; + + /** + * A filter to return only report records that match the instance shape. + * + * @param shape the value to set + * @return this builder instance + */ + public Builder shape(String shape) { + this.shape = shape; + return this; + } + + /** A filter to return only report records that match the instance region. */ + private String region = null; + + /** + * A filter to return only report records that match the instance region. + * + * @param region the value to set + * @return this builder instance + */ + public Builder region(String region) { + this.region = region; + return this; + } + + /** A filter to return only report records that match the instance realm. */ + private String realm = null; + + /** + * A filter to return only report records that match the instance realm. + * + * @param realm the value to set + * @return this builder instance + */ + public Builder realm(String realm) { + this.realm = realm; + return this; + } + + /** A filter to return only report records that match the tenant administrator domain. */ + private String tenantAdminDomain = null; + + /** + * A filter to return only report records that match the tenant administrator domain. + * + * @param tenantAdminDomain the value to set + * @return this builder instance + */ + public Builder tenantAdminDomain(String tenantAdminDomain) { + this.tenantAdminDomain = tenantAdminDomain; + return this; + } + + /** A filter to return only report records that match the package version. */ + private String packageVersion = null; + + /** + * A filter to return only report records that match the package version. + * + * @param packageVersion the value to set + * @return this builder instance + */ + public Builder packageVersion(String packageVersion) { + this.packageVersion = packageVersion; + return this; + } + + /** A filter to return only report records that match the instance OCID. */ + private String instanceOcid = null; + + /** + * A filter to return only report records that match the instance OCID. + * + * @param instanceOcid the value to set + * @return this builder instance + */ + public Builder instanceOcid(String instanceOcid) { + this.instanceOcid = instanceOcid; + return this; + } + + /** The inclusive earliest instance creation time, in RFC 3339 format. */ + private java.util.Date timeInstanceCreationFromDate = null; + + /** + * The inclusive earliest instance creation time, in RFC 3339 format. + * + * @param timeInstanceCreationFromDate the value to set + * @return this builder instance + */ + public Builder timeInstanceCreationFromDate(java.util.Date timeInstanceCreationFromDate) { + this.timeInstanceCreationFromDate = timeInstanceCreationFromDate; + return this; + } + + /** The inclusive latest instance creation time, in RFC 3339 format. */ + private java.util.Date timeInstanceCreationToDate = null; + + /** + * The inclusive latest instance creation time, in RFC 3339 format. + * + * @param timeInstanceCreationToDate the value to set + * @return this builder instance + */ + public Builder timeInstanceCreationToDate(java.util.Date timeInstanceCreationToDate) { + this.timeInstanceCreationToDate = timeInstanceCreationToDate; + return this; + } + + /** The inclusive earliest instance termination time, in RFC 3339 format. */ + private java.util.Date timeInstanceTerminationFromDate = null; + + /** + * The inclusive earliest instance termination time, in RFC 3339 format. + * + * @param timeInstanceTerminationFromDate the value to set + * @return this builder instance + */ + public Builder timeInstanceTerminationFromDate( + java.util.Date timeInstanceTerminationFromDate) { + this.timeInstanceTerminationFromDate = timeInstanceTerminationFromDate; + return this; + } + + /** The inclusive latest instance termination time, in RFC 3339 format. */ + private java.util.Date timeInstanceTerminationToDate = null; + + /** + * The inclusive latest instance termination time, in RFC 3339 format. + * + * @param timeInstanceTerminationToDate the value to set + * @return this builder instance + */ + public Builder timeInstanceTerminationToDate(java.util.Date timeInstanceTerminationToDate) { + this.timeInstanceTerminationToDate = timeInstanceTerminationToDate; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -315,13 +550,24 @@ public Builder retryConfiguration( */ public Builder copy(ListCustomerInstanceReportRecordsRequest o) { compartmentId(o.getCompartmentId()); - dateRange(o.getDateRange()); opcRequestId(o.getOpcRequestId()); limit(o.getLimit()); page(o.getPage()); sortOrder(o.getSortOrder()); sortBy(o.getSortBy()); name(o.getName()); + listingId(o.getListingId()); + status(o.getStatus()); + shape(o.getShape()); + region(o.getRegion()); + realm(o.getRealm()); + tenantAdminDomain(o.getTenantAdminDomain()); + packageVersion(o.getPackageVersion()); + instanceOcid(o.getInstanceOcid()); + timeInstanceCreationFromDate(o.getTimeInstanceCreationFromDate()); + timeInstanceCreationToDate(o.getTimeInstanceCreationToDate()); + timeInstanceTerminationFromDate(o.getTimeInstanceTerminationFromDate()); + timeInstanceTerminationToDate(o.getTimeInstanceTerminationToDate()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -360,16 +606,30 @@ public ListCustomerInstanceReportRecordsRequest buildWithoutInvocationCallback() ListCustomerInstanceReportRecordsRequest request = new ListCustomerInstanceReportRecordsRequest(); request.compartmentId = compartmentId; - request.dateRange = dateRange; request.opcRequestId = opcRequestId; request.limit = limit; request.page = page; request.sortOrder = sortOrder; request.sortBy = sortBy; request.name = name; + request.listingId = listingId; + request.status = status; + request.shape = shape; + request.region = region; + request.realm = realm; + request.tenantAdminDomain = tenantAdminDomain; + request.packageVersion = packageVersion; + request.instanceOcid = instanceOcid; + request.timeInstanceCreationFromDate = timeInstanceCreationFromDate; + request.timeInstanceCreationToDate = timeInstanceCreationToDate; + request.timeInstanceTerminationFromDate = timeInstanceTerminationFromDate; + request.timeInstanceTerminationToDate = timeInstanceTerminationToDate; return request; - // new ListCustomerInstanceReportRecordsRequest(compartmentId, dateRange, opcRequestId, - // limit, page, sortOrder, sortBy, name); + // new ListCustomerInstanceReportRecordsRequest(compartmentId, opcRequestId, limit, + // page, sortOrder, sortBy, name, listingId, status, shape, region, realm, + // tenantAdminDomain, packageVersion, instanceOcid, timeInstanceCreationFromDate, + // timeInstanceCreationToDate, timeInstanceTerminationFromDate, + // timeInstanceTerminationToDate); } } @@ -381,13 +641,24 @@ public ListCustomerInstanceReportRecordsRequest buildWithoutInvocationCallback() public Builder toBuilder() { return new Builder() .compartmentId(compartmentId) - .dateRange(dateRange) .opcRequestId(opcRequestId) .limit(limit) .page(page) .sortOrder(sortOrder) .sortBy(sortBy) - .name(name); + .name(name) + .listingId(listingId) + .status(status) + .shape(shape) + .region(region) + .realm(realm) + .tenantAdminDomain(tenantAdminDomain) + .packageVersion(packageVersion) + .instanceOcid(instanceOcid) + .timeInstanceCreationFromDate(timeInstanceCreationFromDate) + .timeInstanceCreationToDate(timeInstanceCreationToDate) + .timeInstanceTerminationFromDate(timeInstanceTerminationFromDate) + .timeInstanceTerminationToDate(timeInstanceTerminationToDate); } /** @@ -405,13 +676,28 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(",dateRange=").append(String.valueOf(this.dateRange)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",page=").append(String.valueOf(this.page)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",sortBy=").append(String.valueOf(this.sortBy)); sb.append(",name=").append(String.valueOf(this.name)); + sb.append(",listingId=").append(String.valueOf(this.listingId)); + sb.append(",status=").append(String.valueOf(this.status)); + sb.append(",shape=").append(String.valueOf(this.shape)); + sb.append(",region=").append(String.valueOf(this.region)); + sb.append(",realm=").append(String.valueOf(this.realm)); + sb.append(",tenantAdminDomain=").append(String.valueOf(this.tenantAdminDomain)); + sb.append(",packageVersion=").append(String.valueOf(this.packageVersion)); + sb.append(",instanceOcid=").append(String.valueOf(this.instanceOcid)); + sb.append(",timeInstanceCreationFromDate=") + .append(String.valueOf(this.timeInstanceCreationFromDate)); + sb.append(",timeInstanceCreationToDate=") + .append(String.valueOf(this.timeInstanceCreationToDate)); + sb.append(",timeInstanceTerminationFromDate=") + .append(String.valueOf(this.timeInstanceTerminationFromDate)); + sb.append(",timeInstanceTerminationToDate=") + .append(String.valueOf(this.timeInstanceTerminationToDate)); sb.append(")"); return sb.toString(); } @@ -429,13 +715,28 @@ public boolean equals(Object o) { (ListCustomerInstanceReportRecordsRequest) o; return super.equals(o) && java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.dateRange, other.dateRange) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.sortBy, other.sortBy) - && java.util.Objects.equals(this.name, other.name); + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.listingId, other.listingId) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.shape, other.shape) + && java.util.Objects.equals(this.region, other.region) + && java.util.Objects.equals(this.realm, other.realm) + && java.util.Objects.equals(this.tenantAdminDomain, other.tenantAdminDomain) + && java.util.Objects.equals(this.packageVersion, other.packageVersion) + && java.util.Objects.equals(this.instanceOcid, other.instanceOcid) + && java.util.Objects.equals( + this.timeInstanceCreationFromDate, other.timeInstanceCreationFromDate) + && java.util.Objects.equals( + this.timeInstanceCreationToDate, other.timeInstanceCreationToDate) + && java.util.Objects.equals( + this.timeInstanceTerminationFromDate, other.timeInstanceTerminationFromDate) + && java.util.Objects.equals( + this.timeInstanceTerminationToDate, other.timeInstanceTerminationToDate); } @Override @@ -445,13 +746,44 @@ public int hashCode() { result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.dateRange == null ? 43 : this.dateRange.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.listingId == null ? 43 : this.listingId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); + result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); + result = (result * PRIME) + (this.realm == null ? 43 : this.realm.hashCode()); + result = + (result * PRIME) + + (this.tenantAdminDomain == null ? 43 : this.tenantAdminDomain.hashCode()); + result = + (result * PRIME) + + (this.packageVersion == null ? 43 : this.packageVersion.hashCode()); + result = (result * PRIME) + (this.instanceOcid == null ? 43 : this.instanceOcid.hashCode()); + result = + (result * PRIME) + + (this.timeInstanceCreationFromDate == null + ? 43 + : this.timeInstanceCreationFromDate.hashCode()); + result = + (result * PRIME) + + (this.timeInstanceCreationToDate == null + ? 43 + : this.timeInstanceCreationToDate.hashCode()); + result = + (result * PRIME) + + (this.timeInstanceTerminationFromDate == null + ? 43 + : this.timeInstanceTerminationFromDate.hashCode()); + result = + (result * PRIME) + + (this.timeInstanceTerminationToDate == null + ? 43 + : this.timeInstanceTerminationToDate.hashCode()); return result; } } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListDisbursementReportRecordsRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListDisbursementReportRecordsRequest.java index 7f2b35ed752..8ed7089093d 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListDisbursementReportRecordsRequest.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListDisbursementReportRecordsRequest.java @@ -29,6 +29,10 @@ public String getCompartmentId() { public enum DateRange implements com.oracle.bmc.http.internal.BmcEnum { LastMonth("LAST_MONTH"), LastThreeMonths("LAST_THREE_MONTHS"), + LastSixMonths("LAST_SIX_MONTHS"), + LastTwelveMonths("LAST_TWELVE_MONTHS"), + LastEighteenMonths("LAST_EIGHTEEN_MONTHS"), + AllTime("ALL_TIME"), ; private final String value; diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedDatabaseRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/UpdateAdminArtifactStatusRequest.java similarity index 62% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedDatabaseRequest.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/UpdateAdminArtifactStatusRequest.java index ffc2fbfd795..ae19c02e092 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedDatabaseRequest.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/UpdateAdminArtifactStatusRequest.java @@ -2,42 +2,35 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; /** * Example: Click here to see how to use - * UpdateDistributedDatabaseRequest. + * UpdateAdminArtifactStatusRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class UpdateDistributedDatabaseRequest +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class UpdateAdminArtifactStatusRequest extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedDatabaseDetails> { + com.oracle.bmc.marketplacepublisher.model.UpdateAdminArtifactStatusDetails> { - /** Globally distributed database identifier. */ - private String distributedDatabaseId; + /** The artifact status information to be updated. */ + private com.oracle.bmc.marketplacepublisher.model.UpdateAdminArtifactStatusDetails + updateAdminArtifactStatusDetails; - /** Globally distributed database identifier. */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; + /** The artifact status information to be updated. */ + public com.oracle.bmc.marketplacepublisher.model.UpdateAdminArtifactStatusDetails + getUpdateAdminArtifactStatusDetails() { + return updateAdminArtifactStatusDetails; } - /** The configuration of the Globally distributed database to be updated. */ - private com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedDatabaseDetails - updateDistributedDatabaseDetails; + /** artifact OCID */ + private String artifactId; - /** 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; + /** artifact OCID */ + public String getArtifactId() { + return artifactId; } /** * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code @@ -56,6 +49,13 @@ public String getOpcRequestId() { public String getIfMatch() { return ifMatch; } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } /** * Alternative accessor for the body parameter. @@ -64,59 +64,45 @@ public String getIfMatch() { */ @Override @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedDatabaseDetails getBody$() { - return updateDistributedDatabaseDetails; + public com.oracle.bmc.marketplacepublisher.model.UpdateAdminArtifactStatusDetails getBody$() { + return updateAdminArtifactStatusDetails; } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - UpdateDistributedDatabaseRequest, - com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedDatabaseDetails> { + UpdateAdminArtifactStatusRequest, + com.oracle.bmc.marketplacepublisher.model.UpdateAdminArtifactStatusDetails> { 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; + /** The artifact status information to be updated. */ + private com.oracle.bmc.marketplacepublisher.model.UpdateAdminArtifactStatusDetails + updateAdminArtifactStatusDetails = null; /** - * Globally distributed database identifier. + * The artifact status information to be updated. * - * @param distributedDatabaseId the value to set + * @param updateAdminArtifactStatusDetails the value to set * @return this builder instance */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; + public Builder updateAdminArtifactStatusDetails( + com.oracle.bmc.marketplacepublisher.model.UpdateAdminArtifactStatusDetails + updateAdminArtifactStatusDetails) { + this.updateAdminArtifactStatusDetails = updateAdminArtifactStatusDetails; return this; } - /** The configuration of the Globally distributed database to be updated. */ - private com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedDatabaseDetails - updateDistributedDatabaseDetails = null; + /** artifact OCID */ + private String artifactId = null; /** - * The configuration of the Globally distributed database to be updated. + * artifact OCID * - * @param updateDistributedDatabaseDetails the value to set + * @param artifactId 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; + public Builder artifactId(String artifactId) { + this.artifactId = artifactId; return this; } @@ -142,6 +128,20 @@ public Builder ifMatch(String ifMatch) { return this; } + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -171,18 +171,18 @@ public Builder retryConfiguration( * * @return this builder instance */ - public Builder copy(UpdateDistributedDatabaseRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - updateDistributedDatabaseDetails(o.getUpdateDistributedDatabaseDetails()); - opcRequestId(o.getOpcRequestId()); + public Builder copy(UpdateAdminArtifactStatusRequest o) { + updateAdminArtifactStatusDetails(o.getUpdateAdminArtifactStatusDetails()); + artifactId(o.getArtifactId()); ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; } /** - * Build the instance of UpdateDistributedDatabaseRequest as configured by this builder + * Build the instance of UpdateAdminArtifactStatusRequest as configured by this builder * *

    Note that this method takes calls to {@link * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, @@ -190,10 +190,10 @@ public Builder copy(UpdateDistributedDatabaseRequest o) { * *

    This is the preferred method to build an instance. * - * @return instance of UpdateDistributedDatabaseRequest + * @return instance of UpdateAdminArtifactStatusRequest */ - public UpdateDistributedDatabaseRequest build() { - UpdateDistributedDatabaseRequest request = buildWithoutInvocationCallback(); + public UpdateAdminArtifactStatusRequest build() { + UpdateAdminArtifactStatusRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; @@ -207,29 +207,29 @@ public UpdateDistributedDatabaseRequest build() { */ @com.oracle.bmc.InternalSdk public Builder body$( - com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedDatabaseDetails body) { - updateDistributedDatabaseDetails(body); + com.oracle.bmc.marketplacepublisher.model.UpdateAdminArtifactStatusDetails body) { + updateAdminArtifactStatusDetails(body); return this; } /** - * Build the instance of UpdateDistributedDatabaseRequest as configured by this builder + * Build the instance of UpdateAdminArtifactStatusRequest 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 + * @return instance of UpdateAdminArtifactStatusRequest */ - public UpdateDistributedDatabaseRequest buildWithoutInvocationCallback() { - UpdateDistributedDatabaseRequest request = new UpdateDistributedDatabaseRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.updateDistributedDatabaseDetails = updateDistributedDatabaseDetails; - request.opcRequestId = opcRequestId; + public UpdateAdminArtifactStatusRequest buildWithoutInvocationCallback() { + UpdateAdminArtifactStatusRequest request = new UpdateAdminArtifactStatusRequest(); + request.updateAdminArtifactStatusDetails = updateAdminArtifactStatusDetails; + request.artifactId = artifactId; request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; return request; - // new UpdateDistributedDatabaseRequest(distributedDatabaseId, - // updateDistributedDatabaseDetails, opcRequestId, ifMatch); + // new UpdateAdminArtifactStatusRequest(updateAdminArtifactStatusDetails, artifactId, + // ifMatch, opcRequestId); } } @@ -240,10 +240,10 @@ public UpdateDistributedDatabaseRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .updateDistributedDatabaseDetails(updateDistributedDatabaseDetails) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch); + .updateAdminArtifactStatusDetails(updateAdminArtifactStatusDetails) + .artifactId(artifactId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); } /** @@ -260,11 +260,11 @@ 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(",updateAdminArtifactStatusDetails=") + .append(String.valueOf(this.updateAdminArtifactStatusDetails)); + sb.append(",artifactId=").append(String.valueOf(this.artifactId)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); return sb.toString(); } @@ -274,18 +274,18 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof UpdateDistributedDatabaseRequest)) { + if (!(o instanceof UpdateAdminArtifactStatusRequest)) { return false; } - UpdateDistributedDatabaseRequest other = (UpdateDistributedDatabaseRequest) o; + UpdateAdminArtifactStatusRequest other = (UpdateAdminArtifactStatusRequest) 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); + this.updateAdminArtifactStatusDetails, + other.updateAdminArtifactStatusDetails) + && java.util.Objects.equals(this.artifactId, other.artifactId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @Override @@ -294,16 +294,12 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.distributedDatabaseId == null - ? 43 - : this.distributedDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.updateDistributedDatabaseDetails == null + + (this.updateAdminArtifactStatusDetails == null ? 43 - : this.updateDistributedDatabaseDetails.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + : this.updateAdminArtifactStatusDetails.hashCode()); + result = (result * PRIME) + (this.artifactId == null ? 43 : this.artifactId.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StartDistributedAutonomousDatabaseRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/UpdateListingRevisionBannerContentRequest.java similarity index 57% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StartDistributedAutonomousDatabaseRequest.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/UpdateListingRevisionBannerContentRequest.java index 0236e4914db..2baee458e7e 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StartDistributedAutonomousDatabaseRequest.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/UpdateListingRevisionBannerContentRequest.java @@ -2,51 +2,39 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; /** * Example: Click here to see how to use - * StartDistributedAutonomousDatabaseRequest. + * UpdateListingRevisionBannerContentRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class StartDistributedAutonomousDatabaseRequest - extends com.oracle.bmc.requests.BmcRequest { +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class UpdateListingRevisionBannerContentRequest + extends com.oracle.bmc.requests.BmcRequest { - /** Globally distributed autonomous database identifier. */ - private String distributedAutonomousDatabaseId; + /** listing revision */ + private String listingRevisionId; - /** Globally distributed autonomous database identifier. */ - public String getDistributedAutonomousDatabaseId() { - return distributedAutonomousDatabaseId; + /** listing revision */ + public String getListingRevisionId() { + return listingRevisionId; } - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. 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; + /** banner name */ + private String bannerName; - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. 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; + /** banner name */ + public String getBannerName() { + return bannerName; } - /** The client request ID for tracing. */ - private String opcRequestId; + /** The listing revision icon to be updated. */ + private java.io.InputStream updateListingRevisionBannerContent; - /** The client request ID for tracing. */ - public String getOpcRequestId() { - return opcRequestId; + /** The listing revision icon to be updated. */ + public java.io.InputStream getUpdateListingRevisionBannerContent() { + return updateListingRevisionBannerContent; } /** * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code @@ -65,62 +53,71 @@ public String getOpcRequestId() { public String getIfMatch() { return ifMatch; } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public java.io.InputStream getBody$() { + return updateListingRevisionBannerContent; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - StartDistributedAutonomousDatabaseRequest, java.lang.Void> { + UpdateListingRevisionBannerContentRequest, java.io.InputStream> { 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; + /** listing revision */ + private String listingRevisionId = null; /** - * Globally distributed autonomous database identifier. + * listing revision * - * @param distributedAutonomousDatabaseId the value to set + * @param listingRevisionId the value to set * @return this builder instance */ - public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { - this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + public Builder listingRevisionId(String listingRevisionId) { + this.listingRevisionId = listingRevisionId; 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; + /** banner name */ + private String bannerName = 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. + * banner name * - * @param opcRetryToken the value to set + * @param bannerName the value to set * @return this builder instance */ - public Builder opcRetryToken(String opcRetryToken) { - this.opcRetryToken = opcRetryToken; + public Builder bannerName(String bannerName) { + this.bannerName = bannerName; return this; } - /** The client request ID for tracing. */ - private String opcRequestId = null; + /** The listing revision icon to be updated. */ + private java.io.InputStream updateListingRevisionBannerContent = null; /** - * The client request ID for tracing. + * The listing revision icon to be updated. * - * @param opcRequestId the value to set + * @param updateListingRevisionBannerContent the value to set * @return this builder instance */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; + public Builder updateListingRevisionBannerContent( + java.io.InputStream updateListingRevisionBannerContent) { + this.updateListingRevisionBannerContent = updateListingRevisionBannerContent; return this; } @@ -146,6 +143,20 @@ public Builder ifMatch(String ifMatch) { return this; } + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -175,18 +186,19 @@ public Builder retryConfiguration( * * @return this builder instance */ - public Builder copy(StartDistributedAutonomousDatabaseRequest o) { - distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); - opcRetryToken(o.getOpcRetryToken()); - opcRequestId(o.getOpcRequestId()); + public Builder copy(UpdateListingRevisionBannerContentRequest o) { + listingRevisionId(o.getListingRevisionId()); + bannerName(o.getBannerName()); + updateListingRevisionBannerContent(o.getUpdateListingRevisionBannerContent()); ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; } /** - * Build the instance of StartDistributedAutonomousDatabaseRequest as configured by this + * Build the instance of UpdateListingRevisionBannerContentRequest as configured by this * builder * *

    Note that this method takes calls to {@link @@ -195,35 +207,48 @@ public Builder copy(StartDistributedAutonomousDatabaseRequest o) { * *

    This is the preferred method to build an instance. * - * @return instance of StartDistributedAutonomousDatabaseRequest + * @return instance of UpdateListingRevisionBannerContentRequest */ - public StartDistributedAutonomousDatabaseRequest build() { - StartDistributedAutonomousDatabaseRequest request = buildWithoutInvocationCallback(); + public UpdateListingRevisionBannerContentRequest build() { + UpdateListingRevisionBannerContentRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of StartDistributedAutonomousDatabaseRequest as configured by this + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(java.io.InputStream body) { + updateListingRevisionBannerContent(body); + return this; + } + + /** + * Build the instance of UpdateListingRevisionBannerContentRequest 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 + * @return instance of UpdateListingRevisionBannerContentRequest */ - public StartDistributedAutonomousDatabaseRequest buildWithoutInvocationCallback() { - StartDistributedAutonomousDatabaseRequest request = - new StartDistributedAutonomousDatabaseRequest(); - request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; - request.opcRetryToken = opcRetryToken; - request.opcRequestId = opcRequestId; + public UpdateListingRevisionBannerContentRequest buildWithoutInvocationCallback() { + UpdateListingRevisionBannerContentRequest request = + new UpdateListingRevisionBannerContentRequest(); + request.listingRevisionId = listingRevisionId; + request.bannerName = bannerName; + request.updateListingRevisionBannerContent = updateListingRevisionBannerContent; request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; return request; - // new StartDistributedAutonomousDatabaseRequest(distributedAutonomousDatabaseId, - // opcRetryToken, opcRequestId, ifMatch); + // new UpdateListingRevisionBannerContentRequest(listingRevisionId, bannerName, + // updateListingRevisionBannerContent, ifMatch, opcRequestId); } } @@ -234,10 +259,11 @@ public StartDistributedAutonomousDatabaseRequest buildWithoutInvocationCallback( */ public Builder toBuilder() { return new Builder() - .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) - .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch); + .listingRevisionId(listingRevisionId) + .bannerName(bannerName) + .updateListingRevisionBannerContent(updateListingRevisionBannerContent) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); } /** @@ -254,11 +280,12 @@ 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(",listingRevisionId=").append(String.valueOf(this.listingRevisionId)); + sb.append(",bannerName=").append(String.valueOf(this.bannerName)); + sb.append(",updateListingRevisionBannerContent=") + .append(String.valueOf(this.updateListingRevisionBannerContent)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); return sb.toString(); } @@ -268,18 +295,20 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof StartDistributedAutonomousDatabaseRequest)) { + if (!(o instanceof UpdateListingRevisionBannerContentRequest)) { return false; } - StartDistributedAutonomousDatabaseRequest other = - (StartDistributedAutonomousDatabaseRequest) o; + UpdateListingRevisionBannerContentRequest other = + (UpdateListingRevisionBannerContentRequest) o; return super.equals(o) + && java.util.Objects.equals(this.listingRevisionId, other.listingRevisionId) + && java.util.Objects.equals(this.bannerName, other.bannerName) && 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); + this.updateListingRevisionBannerContent, + other.updateListingRevisionBannerContent) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @Override @@ -288,14 +317,15 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.distributedAutonomousDatabaseId == null - ? 43 - : this.distributedAutonomousDatabaseId.hashCode()); + + (this.listingRevisionId == null ? 43 : this.listingRevisionId.hashCode()); + result = (result * PRIME) + (this.bannerName == null ? 43 : this.bannerName.hashCode()); result = (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + + (this.updateListingRevisionBannerContent == null + ? 43 + : this.updateListingRevisionBannerContent.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabaseResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ChangeListingRevisionStatusToNewResponse.java similarity index 70% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabaseResponse.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ChangeListingRevisionStatusToNewResponse.java index a2e982eac74..4ac5f9fd1d9 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabaseResponse.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ChangeListingRevisionStatusToNewResponse.java @@ -2,12 +2,12 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class UpdateDistributedDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ChangeListingRevisionStatusToNewResponse 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. @@ -36,17 +36,17 @@ public String getEtag() { return etag; } - /** The returned {@code DistributedDatabase} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase; + /** The returned {@code AdminListingRevision} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevision adminListingRevision; /** - * The returned {@code DistributedDatabase} instance. + * The returned {@code AdminListingRevision} instance. * * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase - getDistributedDatabase() { - return distributedDatabase; + public com.oracle.bmc.marketplacepublisher.model.AdminListingRevision + getAdminListingRevision() { + return adminListingRevision; } @java.beans.ConstructorProperties({ @@ -54,23 +54,23 @@ public String getEtag() { "headers", "opcRequestId", "etag", - "distributedDatabase" + "adminListingRevision" }) - private UpdateDistributedDatabaseResponse( + private ChangeListingRevisionStatusToNewResponse( int __httpStatusCode__, java.util.Map> headers, String opcRequestId, String etag, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase) { + com.oracle.bmc.marketplacepublisher.model.AdminListingRevision adminListingRevision) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; this.etag = etag; - this.distributedDatabase = distributedDatabase; + this.adminListingRevision = adminListingRevision; } public static class Builder implements com.oracle.bmc.responses.BmcResponse.Builder< - UpdateDistributedDatabaseResponse> { + ChangeListingRevisionStatusToNewResponse> { private int __httpStatusCode__; @Override @@ -119,19 +119,19 @@ public Builder etag(String etag) { return this; } - /** The returned {@code DistributedDatabase} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase; + /** The returned {@code AdminListingRevision} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevision adminListingRevision; /** - * The returned {@code DistributedDatabase} instance. + * The returned {@code AdminListingRevision} instance. * - * @param distributedDatabase the value to set + * @param adminListingRevision the value to set * @return this builder */ - public Builder distributedDatabase( - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase - distributedDatabase) { - this.distributedDatabase = distributedDatabase; + public Builder adminListingRevision( + com.oracle.bmc.marketplacepublisher.model.AdminListingRevision + adminListingRevision) { + this.adminListingRevision = adminListingRevision; return this; } @@ -141,12 +141,12 @@ public Builder distributedDatabase( * @return this builder instance */ @Override - public Builder copy(UpdateDistributedDatabaseResponse o) { + public Builder copy(ChangeListingRevisionStatusToNewResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); etag(o.getEtag()); - distributedDatabase(o.getDistributedDatabase()); + adminListingRevision(o.getAdminListingRevision()); return this; } @@ -157,9 +157,9 @@ public Builder copy(UpdateDistributedDatabaseResponse o) { * @return the response object */ @Override - public UpdateDistributedDatabaseResponse build() { - return new UpdateDistributedDatabaseResponse( - __httpStatusCode__, headers, opcRequestId, etag, distributedDatabase); + public ChangeListingRevisionStatusToNewResponse build() { + return new ChangeListingRevisionStatusToNewResponse( + __httpStatusCode__, headers, opcRequestId, etag, adminListingRevision); } } @@ -179,7 +179,7 @@ public String toString() { 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(",adminListingRevision=").append(String.valueOf(adminListingRevision)); sb.append(")"); return sb.toString(); } @@ -189,15 +189,16 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof UpdateDistributedDatabaseResponse)) { + if (!(o instanceof ChangeListingRevisionStatusToNewResponse)) { return false; } - UpdateDistributedDatabaseResponse other = (UpdateDistributedDatabaseResponse) o; + ChangeListingRevisionStatusToNewResponse other = + (ChangeListingRevisionStatusToNewResponse) 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); + && java.util.Objects.equals(this.adminListingRevision, other.adminListingRevision); } @Override @@ -208,9 +209,9 @@ public int hashCode() { result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) - + (this.distributedDatabase == null + + (this.adminListingRevision == null ? 43 - : this.distributedDatabase.hashCode()); + : this.adminListingRevision.hashCode()); return result; } } diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ReinstateProxyInstanceResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/CreateMarketResponse.java similarity index 89% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ReinstateProxyInstanceResponse.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/CreateMarketResponse.java index 7264e416e56..35a0a07552c 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ReinstateProxyInstanceResponse.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/CreateMarketResponse.java @@ -2,12 +2,12 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ReinstateProxyInstanceResponse extends com.oracle.bmc.responses.BmcResponse { +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class CreateMarketResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its * status. @@ -46,7 +46,7 @@ public String getOpcRequestId() { "opcWorkRequestId", "opcRequestId" }) - private ReinstateProxyInstanceResponse( + private CreateMarketResponse( int __httpStatusCode__, java.util.Map> headers, String opcWorkRequestId, @@ -57,8 +57,7 @@ private ReinstateProxyInstanceResponse( } public static class Builder - implements com.oracle.bmc.responses.BmcResponse.Builder< - ReinstateProxyInstanceResponse> { + implements com.oracle.bmc.responses.BmcResponse.Builder { private int __httpStatusCode__; @Override @@ -117,7 +116,7 @@ public Builder opcRequestId(String opcRequestId) { * @return this builder instance */ @Override - public Builder copy(ReinstateProxyInstanceResponse o) { + public Builder copy(CreateMarketResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcWorkRequestId(o.getOpcWorkRequestId()); @@ -132,8 +131,8 @@ public Builder copy(ReinstateProxyInstanceResponse o) { * @return the response object */ @Override - public ReinstateProxyInstanceResponse build() { - return new ReinstateProxyInstanceResponse( + public CreateMarketResponse build() { + return new CreateMarketResponse( __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); } } @@ -163,11 +162,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ReinstateProxyInstanceResponse)) { + if (!(o instanceof CreateMarketResponse)) { return false; } - ReinstateProxyInstanceResponse other = (ReinstateProxyInstanceResponse) o; + CreateMarketResponse other = (CreateMarketResponse) o; return super.equals(o) && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/CreatePublisherResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/CreatePublisherResponse.java new file mode 100644 index 00000000000..b78cc52e265 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/CreatePublisherResponse.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.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class CreatePublisherResponse 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 Publisher} instance. */ + private com.oracle.bmc.marketplacepublisher.model.Publisher publisher; + + /** + * The returned {@code Publisher} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.Publisher getPublisher() { + return publisher; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "publisher" + }) + private CreatePublisherResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.marketplacepublisher.model.Publisher publisher) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.publisher = publisher; + } + + 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 Publisher} instance. */ + private com.oracle.bmc.marketplacepublisher.model.Publisher publisher; + + /** + * The returned {@code Publisher} instance. + * + * @param publisher the value to set + * @return this builder + */ + public Builder publisher(com.oracle.bmc.marketplacepublisher.model.Publisher publisher) { + this.publisher = publisher; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreatePublisherResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + publisher(o.getPublisher()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreatePublisherResponse build() { + return new CreatePublisherResponse( + __httpStatusCode__, headers, etag, opcRequestId, publisher); + } + } + + /** + * 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(",publisher=").append(String.valueOf(publisher)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreatePublisherResponse)) { + return false; + } + + CreatePublisherResponse other = (CreatePublisherResponse) 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.publisher, other.publisher); + } + + @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.publisher == null ? 43 : this.publisher.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedAutonomousDatabaseResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/DeleteCustomerInstanceReportExportResponse.java similarity index 60% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedAutonomousDatabaseResponse.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/DeleteCustomerInstanceReportExportResponse.java index 2cb7e37c992..68e9df0b047 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedAutonomousDatabaseResponse.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/DeleteCustomerInstanceReportExportResponse.java @@ -2,29 +2,13 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class PatchDistributedAutonomousDatabaseResponse +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class DeleteCustomerInstanceReportExportResponse 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. @@ -41,25 +25,18 @@ public String getOpcRequestId() { return opcRequestId; } - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcWorkRequestId", - "opcRequestId" - }) - private PatchDistributedAutonomousDatabaseResponse( + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private DeleteCustomerInstanceReportExportResponse( 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> { + DeleteCustomerInstanceReportExportResponse> { private int __httpStatusCode__; @Override @@ -76,24 +53,6 @@ public Builder headers(java.util.Map> 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. @@ -118,10 +77,9 @@ public Builder opcRequestId(String opcRequestId) { * @return this builder instance */ @Override - public Builder copy(PatchDistributedAutonomousDatabaseResponse o) { + public Builder copy(DeleteCustomerInstanceReportExportResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); - opcWorkRequestId(o.getOpcWorkRequestId()); opcRequestId(o.getOpcRequestId()); return this; @@ -133,9 +91,9 @@ public Builder copy(PatchDistributedAutonomousDatabaseResponse o) { * @return the response object */ @Override - public PatchDistributedAutonomousDatabaseResponse build() { - return new PatchDistributedAutonomousDatabaseResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + public DeleteCustomerInstanceReportExportResponse build() { + return new DeleteCustomerInstanceReportExportResponse( + __httpStatusCode__, headers, opcRequestId); } } @@ -153,7 +111,6 @@ 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(); @@ -164,24 +121,19 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof PatchDistributedAutonomousDatabaseResponse)) { + if (!(o instanceof DeleteCustomerInstanceReportExportResponse)) { 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); + DeleteCustomerInstanceReportExportResponse other = + (DeleteCustomerInstanceReportExportResponse) 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.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GenerateCustomerInstanceReportExportResponse.java similarity index 73% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/AddDistributedDatabaseGdsControlNodeResponse.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GenerateCustomerInstanceReportExportResponse.java index a007e84bda7..8102c0d940e 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/AddDistributedDatabaseGdsControlNodeResponse.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GenerateCustomerInstanceReportExportResponse.java @@ -2,12 +2,12 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class AddDistributedDatabaseGdsControlNodeResponse +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GenerateCustomerInstanceReportExportResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its @@ -41,25 +41,40 @@ public String getOpcRequestId() { return opcRequestId; } + /** Customer Instance Report export identifier. */ + private String exportIdentifier; + + /** + * Customer Instance Report export identifier. + * + * @return the value + */ + public String getExportIdentifier() { + return exportIdentifier; + } + @java.beans.ConstructorProperties({ "__httpStatusCode__", "headers", "opcWorkRequestId", - "opcRequestId" + "opcRequestId", + "exportIdentifier" }) - private AddDistributedDatabaseGdsControlNodeResponse( + private GenerateCustomerInstanceReportExportResponse( int __httpStatusCode__, java.util.Map> headers, String opcWorkRequestId, - String opcRequestId) { + String opcRequestId, + String exportIdentifier) { super(__httpStatusCode__, headers); this.opcWorkRequestId = opcWorkRequestId; this.opcRequestId = opcRequestId; + this.exportIdentifier = exportIdentifier; } public static class Builder implements com.oracle.bmc.responses.BmcResponse.Builder< - AddDistributedDatabaseGdsControlNodeResponse> { + GenerateCustomerInstanceReportExportResponse> { private int __httpStatusCode__; @Override @@ -112,17 +127,32 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** Customer Instance Report export identifier. */ + private String exportIdentifier; + + /** + * Customer Instance Report export identifier. + * + * @param exportIdentifier the value to set + * @return this builder + */ + public Builder exportIdentifier(String exportIdentifier) { + this.exportIdentifier = exportIdentifier; + return this; + } + /** * Copy method to populate the builder with values from the given instance. * * @return this builder instance */ @Override - public Builder copy(AddDistributedDatabaseGdsControlNodeResponse o) { + public Builder copy(GenerateCustomerInstanceReportExportResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcWorkRequestId(o.getOpcWorkRequestId()); opcRequestId(o.getOpcRequestId()); + exportIdentifier(o.getExportIdentifier()); return this; } @@ -133,9 +163,9 @@ public Builder copy(AddDistributedDatabaseGdsControlNodeResponse o) { * @return the response object */ @Override - public AddDistributedDatabaseGdsControlNodeResponse build() { - return new AddDistributedDatabaseGdsControlNodeResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + public GenerateCustomerInstanceReportExportResponse build() { + return new GenerateCustomerInstanceReportExportResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId, exportIdentifier); } } @@ -155,6 +185,7 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",exportIdentifier=").append(String.valueOf(exportIdentifier)); sb.append(")"); return sb.toString(); } @@ -164,15 +195,16 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof AddDistributedDatabaseGdsControlNodeResponse)) { + if (!(o instanceof GenerateCustomerInstanceReportExportResponse)) { return false; } - AddDistributedDatabaseGdsControlNodeResponse other = - (AddDistributedDatabaseGdsControlNodeResponse) o; + GenerateCustomerInstanceReportExportResponse other = + (GenerateCustomerInstanceReportExportResponse) 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.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.exportIdentifier, other.exportIdentifier); } @Override @@ -183,6 +215,9 @@ public int hashCode() { (result * PRIME) + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.exportIdentifier == null ? 43 : this.exportIdentifier.hashCode()); return result; } } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminArtifactResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminArtifactResponse.java new file mode 100644 index 00000000000..c0c847f82cd --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminArtifactResponse.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.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetAdminArtifactResponse 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 AdminArtifact} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminArtifact adminArtifact; + + /** + * The returned {@code AdminArtifact} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.AdminArtifact getAdminArtifact() { + return adminArtifact; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "adminArtifact" + }) + private GetAdminArtifactResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.marketplacepublisher.model.AdminArtifact adminArtifact) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.adminArtifact = adminArtifact; + } + + 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 AdminArtifact} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminArtifact adminArtifact; + + /** + * The returned {@code AdminArtifact} instance. + * + * @param adminArtifact the value to set + * @return this builder + */ + public Builder adminArtifact( + com.oracle.bmc.marketplacepublisher.model.AdminArtifact adminArtifact) { + this.adminArtifact = adminArtifact; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetAdminArtifactResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + adminArtifact(o.getAdminArtifact()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetAdminArtifactResponse build() { + return new GetAdminArtifactResponse( + __httpStatusCode__, headers, etag, opcRequestId, adminArtifact); + } + } + + /** + * 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(",adminArtifact=").append(String.valueOf(adminArtifact)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetAdminArtifactResponse)) { + return false; + } + + GetAdminArtifactResponse other = (GetAdminArtifactResponse) 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.adminArtifact, other.adminArtifact); + } + + @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.adminArtifact == null ? 43 : this.adminArtifact.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminListingResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminListingResponse.java new file mode 100644 index 00000000000..c1c53a120fc --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminListingResponse.java @@ -0,0 +1,209 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetAdminListingResponse 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 AdminListing} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminListing adminListing; + + /** + * The returned {@code AdminListing} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.AdminListing getAdminListing() { + return adminListing; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "adminListing" + }) + private GetAdminListingResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.marketplacepublisher.model.AdminListing adminListing) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.adminListing = adminListing; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The returned {@code AdminListing} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminListing adminListing; + + /** + * The returned {@code AdminListing} instance. + * + * @param adminListing the value to set + * @return this builder + */ + public Builder adminListing( + com.oracle.bmc.marketplacepublisher.model.AdminListing adminListing) { + this.adminListing = adminListing; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetAdminListingResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + adminListing(o.getAdminListing()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetAdminListingResponse build() { + return new GetAdminListingResponse( + __httpStatusCode__, headers, opcRequestId, etag, adminListing); + } + } + + /** + * 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(",adminListing=").append(String.valueOf(adminListing)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetAdminListingResponse)) { + return false; + } + + GetAdminListingResponse other = (GetAdminListingResponse) 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.adminListing, other.adminListing); + } + + @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.adminListing == null ? 43 : this.adminListing.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabasePrivateEndpointResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminListingRevisionAttachmentResponse.java similarity index 66% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabasePrivateEndpointResponse.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminListingRevisionAttachmentResponse.java index 0ce45e1cea7..2debc09fbd2 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabasePrivateEndpointResponse.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminListingRevisionAttachmentResponse.java @@ -2,12 +2,12 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedDatabasePrivateEndpointResponse +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetAdminListingRevisionAttachmentResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a @@ -37,18 +37,18 @@ public String getEtag() { return etag; } - /** The returned {@code DistributedDatabasePrivateEndpoint} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - distributedDatabasePrivateEndpoint; + /** The returned {@code AdminListingRevisionAttachment} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionAttachment + adminListingRevisionAttachment; /** - * The returned {@code DistributedDatabasePrivateEndpoint} instance. + * The returned {@code AdminListingRevisionAttachment} instance. * * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - getDistributedDatabasePrivateEndpoint() { - return distributedDatabasePrivateEndpoint; + public com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionAttachment + getAdminListingRevisionAttachment() { + return adminListingRevisionAttachment; } @java.beans.ConstructorProperties({ @@ -56,24 +56,24 @@ public String getEtag() { "headers", "opcRequestId", "etag", - "distributedDatabasePrivateEndpoint" + "adminListingRevisionAttachment" }) - private GetDistributedDatabasePrivateEndpointResponse( + private GetAdminListingRevisionAttachmentResponse( int __httpStatusCode__, java.util.Map> headers, String opcRequestId, String etag, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - distributedDatabasePrivateEndpoint) { + com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionAttachment + adminListingRevisionAttachment) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; this.etag = etag; - this.distributedDatabasePrivateEndpoint = distributedDatabasePrivateEndpoint; + this.adminListingRevisionAttachment = adminListingRevisionAttachment; } public static class Builder implements com.oracle.bmc.responses.BmcResponse.Builder< - GetDistributedDatabasePrivateEndpointResponse> { + GetAdminListingRevisionAttachmentResponse> { private int __httpStatusCode__; @Override @@ -122,20 +122,20 @@ public Builder etag(String etag) { return this; } - /** The returned {@code DistributedDatabasePrivateEndpoint} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - distributedDatabasePrivateEndpoint; + /** The returned {@code AdminListingRevisionAttachment} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionAttachment + adminListingRevisionAttachment; /** - * The returned {@code DistributedDatabasePrivateEndpoint} instance. + * The returned {@code AdminListingRevisionAttachment} instance. * - * @param distributedDatabasePrivateEndpoint the value to set + * @param adminListingRevisionAttachment the value to set * @return this builder */ - public Builder distributedDatabasePrivateEndpoint( - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - distributedDatabasePrivateEndpoint) { - this.distributedDatabasePrivateEndpoint = distributedDatabasePrivateEndpoint; + public Builder adminListingRevisionAttachment( + com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionAttachment + adminListingRevisionAttachment) { + this.adminListingRevisionAttachment = adminListingRevisionAttachment; return this; } @@ -145,12 +145,12 @@ public Builder distributedDatabasePrivateEndpoint( * @return this builder instance */ @Override - public Builder copy(GetDistributedDatabasePrivateEndpointResponse o) { + public Builder copy(GetAdminListingRevisionAttachmentResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); etag(o.getEtag()); - distributedDatabasePrivateEndpoint(o.getDistributedDatabasePrivateEndpoint()); + adminListingRevisionAttachment(o.getAdminListingRevisionAttachment()); return this; } @@ -161,13 +161,13 @@ public Builder copy(GetDistributedDatabasePrivateEndpointResponse o) { * @return the response object */ @Override - public GetDistributedDatabasePrivateEndpointResponse build() { - return new GetDistributedDatabasePrivateEndpointResponse( + public GetAdminListingRevisionAttachmentResponse build() { + return new GetAdminListingRevisionAttachmentResponse( __httpStatusCode__, headers, opcRequestId, etag, - distributedDatabasePrivateEndpoint); + adminListingRevisionAttachment); } } @@ -187,8 +187,8 @@ public String toString() { 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(",adminListingRevisionAttachment=") + .append(String.valueOf(adminListingRevisionAttachment)); sb.append(")"); return sb.toString(); } @@ -198,18 +198,17 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof GetDistributedDatabasePrivateEndpointResponse)) { + if (!(o instanceof GetAdminListingRevisionAttachmentResponse)) { return false; } - GetDistributedDatabasePrivateEndpointResponse other = - (GetDistributedDatabasePrivateEndpointResponse) o; + GetAdminListingRevisionAttachmentResponse other = + (GetAdminListingRevisionAttachmentResponse) 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); + this.adminListingRevisionAttachment, other.adminListingRevisionAttachment); } @Override @@ -220,9 +219,9 @@ public int hashCode() { result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) - + (this.distributedDatabasePrivateEndpoint == null + + (this.adminListingRevisionAttachment == null ? 43 - : this.distributedDatabasePrivateEndpoint.hashCode()); + : this.adminListingRevisionAttachment.hashCode()); return result; } } diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedAutonomousDatabaseResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminListingRevisionPackageResponse.java similarity index 66% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedAutonomousDatabaseResponse.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminListingRevisionPackageResponse.java index cb3f89079d4..0d100dbe06c 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedAutonomousDatabaseResponse.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminListingRevisionPackageResponse.java @@ -2,13 +2,12 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class UpdateDistributedAutonomousDatabaseResponse - extends com.oracle.bmc.responses.BmcResponse { +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetAdminListingRevisionPackageResponse 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. @@ -37,18 +36,18 @@ public String getEtag() { return etag; } - /** The returned {@code DistributedAutonomousDatabase} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase; + /** The returned {@code AdminListingRevisionPackage} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionPackage + adminListingRevisionPackage; /** - * The returned {@code DistributedAutonomousDatabase} instance. + * The returned {@code AdminListingRevisionPackage} instance. * * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - getDistributedAutonomousDatabase() { - return distributedAutonomousDatabase; + public com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionPackage + getAdminListingRevisionPackage() { + return adminListingRevisionPackage; } @java.beans.ConstructorProperties({ @@ -56,24 +55,24 @@ public String getEtag() { "headers", "opcRequestId", "etag", - "distributedAutonomousDatabase" + "adminListingRevisionPackage" }) - private UpdateDistributedAutonomousDatabaseResponse( + private GetAdminListingRevisionPackageResponse( int __httpStatusCode__, java.util.Map> headers, String opcRequestId, String etag, - com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase) { + com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionPackage + adminListingRevisionPackage) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; this.etag = etag; - this.distributedAutonomousDatabase = distributedAutonomousDatabase; + this.adminListingRevisionPackage = adminListingRevisionPackage; } public static class Builder implements com.oracle.bmc.responses.BmcResponse.Builder< - UpdateDistributedAutonomousDatabaseResponse> { + GetAdminListingRevisionPackageResponse> { private int __httpStatusCode__; @Override @@ -122,20 +121,20 @@ public Builder etag(String etag) { return this; } - /** The returned {@code DistributedAutonomousDatabase} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase; + /** The returned {@code AdminListingRevisionPackage} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionPackage + adminListingRevisionPackage; /** - * The returned {@code DistributedAutonomousDatabase} instance. + * The returned {@code AdminListingRevisionPackage} instance. * - * @param distributedAutonomousDatabase the value to set + * @param adminListingRevisionPackage the value to set * @return this builder */ - public Builder distributedAutonomousDatabase( - com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase) { - this.distributedAutonomousDatabase = distributedAutonomousDatabase; + public Builder adminListingRevisionPackage( + com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionPackage + adminListingRevisionPackage) { + this.adminListingRevisionPackage = adminListingRevisionPackage; return this; } @@ -145,12 +144,12 @@ public Builder distributedAutonomousDatabase( * @return this builder instance */ @Override - public Builder copy(UpdateDistributedAutonomousDatabaseResponse o) { + public Builder copy(GetAdminListingRevisionPackageResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); etag(o.getEtag()); - distributedAutonomousDatabase(o.getDistributedAutonomousDatabase()); + adminListingRevisionPackage(o.getAdminListingRevisionPackage()); return this; } @@ -161,9 +160,9 @@ public Builder copy(UpdateDistributedAutonomousDatabaseResponse o) { * @return the response object */ @Override - public UpdateDistributedAutonomousDatabaseResponse build() { - return new UpdateDistributedAutonomousDatabaseResponse( - __httpStatusCode__, headers, opcRequestId, etag, distributedAutonomousDatabase); + public GetAdminListingRevisionPackageResponse build() { + return new GetAdminListingRevisionPackageResponse( + __httpStatusCode__, headers, opcRequestId, etag, adminListingRevisionPackage); } } @@ -183,8 +182,8 @@ public String toString() { 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(",adminListingRevisionPackage=") + .append(String.valueOf(adminListingRevisionPackage)); sb.append(")"); return sb.toString(); } @@ -194,17 +193,16 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof UpdateDistributedAutonomousDatabaseResponse)) { + if (!(o instanceof GetAdminListingRevisionPackageResponse)) { return false; } - UpdateDistributedAutonomousDatabaseResponse other = - (UpdateDistributedAutonomousDatabaseResponse) o; + GetAdminListingRevisionPackageResponse other = (GetAdminListingRevisionPackageResponse) 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); + this.adminListingRevisionPackage, other.adminListingRevisionPackage); } @Override @@ -215,9 +213,9 @@ public int hashCode() { result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) - + (this.distributedAutonomousDatabase == null + + (this.adminListingRevisionPackage == null ? 43 - : this.distributedAutonomousDatabase.hashCode()); + : this.adminListingRevisionPackage.hashCode()); return result; } } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminListingRevisionResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminListingRevisionResponse.java new file mode 100644 index 00000000000..14b54c677f8 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminListingRevisionResponse.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.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetAdminListingRevisionResponse 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 AdminListingRevision} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevision adminListingRevision; + + /** + * The returned {@code AdminListingRevision} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.AdminListingRevision + getAdminListingRevision() { + return adminListingRevision; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "adminListingRevision" + }) + private GetAdminListingRevisionResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.marketplacepublisher.model.AdminListingRevision adminListingRevision) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.adminListingRevision = adminListingRevision; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetAdminListingRevisionResponse> { + 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 AdminListingRevision} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevision adminListingRevision; + + /** + * The returned {@code AdminListingRevision} instance. + * + * @param adminListingRevision the value to set + * @return this builder + */ + public Builder adminListingRevision( + com.oracle.bmc.marketplacepublisher.model.AdminListingRevision + adminListingRevision) { + this.adminListingRevision = adminListingRevision; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetAdminListingRevisionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + adminListingRevision(o.getAdminListingRevision()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetAdminListingRevisionResponse build() { + return new GetAdminListingRevisionResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, adminListingRevision); + } + } + + /** + * 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(",adminListingRevision=").append(String.valueOf(adminListingRevision)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetAdminListingRevisionResponse)) { + return false; + } + + GetAdminListingRevisionResponse other = (GetAdminListingRevisionResponse) 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.adminListingRevision, other.adminListingRevision); + } + + @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.adminListingRevision == null + ? 43 + : this.adminListingRevision.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminPublisherResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminPublisherResponse.java new file mode 100644 index 00000000000..e6a737c7fe6 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminPublisherResponse.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.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetAdminPublisherResponse 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 AdminPublisher} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminPublisher adminPublisher; + + /** + * The returned {@code AdminPublisher} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.AdminPublisher getAdminPublisher() { + return adminPublisher; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "adminPublisher" + }) + private GetAdminPublisherResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.marketplacepublisher.model.AdminPublisher adminPublisher) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.adminPublisher = adminPublisher; + } + + 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 AdminPublisher} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminPublisher adminPublisher; + + /** + * The returned {@code AdminPublisher} instance. + * + * @param adminPublisher the value to set + * @return this builder + */ + public Builder adminPublisher( + com.oracle.bmc.marketplacepublisher.model.AdminPublisher adminPublisher) { + this.adminPublisher = adminPublisher; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetAdminPublisherResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + adminPublisher(o.getAdminPublisher()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetAdminPublisherResponse build() { + return new GetAdminPublisherResponse( + __httpStatusCode__, headers, etag, opcRequestId, adminPublisher); + } + } + + /** + * 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(",adminPublisher=").append(String.valueOf(adminPublisher)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetAdminPublisherResponse)) { + return false; + } + + GetAdminPublisherResponse other = (GetAdminPublisherResponse) 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.adminPublisher, other.adminPublisher); + } + + @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.adminPublisher == null ? 43 : this.adminPublisher.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminTermResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminTermResponse.java new file mode 100644 index 00000000000..08870463e47 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminTermResponse.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.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetAdminTermResponse 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 AdminTerm} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminTerm adminTerm; + + /** + * The returned {@code AdminTerm} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.AdminTerm getAdminTerm() { + return adminTerm; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "adminTerm" + }) + private GetAdminTermResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.marketplacepublisher.model.AdminTerm adminTerm) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.adminTerm = adminTerm; + } + + 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 AdminTerm} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminTerm adminTerm; + + /** + * The returned {@code AdminTerm} instance. + * + * @param adminTerm the value to set + * @return this builder + */ + public Builder adminTerm(com.oracle.bmc.marketplacepublisher.model.AdminTerm adminTerm) { + this.adminTerm = adminTerm; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetAdminTermResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + adminTerm(o.getAdminTerm()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetAdminTermResponse build() { + return new GetAdminTermResponse( + __httpStatusCode__, headers, etag, opcRequestId, adminTerm); + } + } + + /** + * 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(",adminTerm=").append(String.valueOf(adminTerm)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetAdminTermResponse)) { + return false; + } + + GetAdminTermResponse other = (GetAdminTermResponse) 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.adminTerm, other.adminTerm); + } + + @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.adminTerm == null ? 43 : this.adminTerm.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminTermVersionResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminTermVersionResponse.java new file mode 100644 index 00000000000..5e93c610a58 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminTermVersionResponse.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.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetAdminTermVersionResponse 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 AdminTermVersion} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminTermVersion adminTermVersion; + + /** + * The returned {@code AdminTermVersion} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.AdminTermVersion getAdminTermVersion() { + return adminTermVersion; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "adminTermVersion" + }) + private GetAdminTermVersionResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.marketplacepublisher.model.AdminTermVersion adminTermVersion) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.adminTermVersion = adminTermVersion; + } + + 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 AdminTermVersion} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminTermVersion adminTermVersion; + + /** + * The returned {@code AdminTermVersion} instance. + * + * @param adminTermVersion the value to set + * @return this builder + */ + public Builder adminTermVersion( + com.oracle.bmc.marketplacepublisher.model.AdminTermVersion adminTermVersion) { + this.adminTermVersion = adminTermVersion; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetAdminTermVersionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + adminTermVersion(o.getAdminTermVersion()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetAdminTermVersionResponse build() { + return new GetAdminTermVersionResponse( + __httpStatusCode__, headers, etag, opcRequestId, adminTermVersion); + } + } + + /** + * 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(",adminTermVersion=").append(String.valueOf(adminTermVersion)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetAdminTermVersionResponse)) { + return false; + } + + GetAdminTermVersionResponse other = (GetAdminTermVersionResponse) 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.adminTermVersion, other.adminTermVersion); + } + + @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.adminTermVersion == null ? 43 : this.adminTermVersion.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/MoveDistributedDatabaseReplicationUnitResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetCustomerInstanceReportExportContentResponse.java similarity index 60% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/MoveDistributedDatabaseReplicationUnitResponse.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetCustomerInstanceReportExportContentResponse.java index 26f1fc6ddd1..2d765ba289b 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/MoveDistributedDatabaseReplicationUnitResponse.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetCustomerInstanceReportExportContentResponse.java @@ -2,29 +2,13 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class MoveDistributedDatabaseReplicationUnitResponse +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetCustomerInstanceReportExportContentResponse 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. @@ -41,25 +25,18 @@ public String getOpcRequestId() { return opcRequestId; } - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcWorkRequestId", - "opcRequestId" - }) - private MoveDistributedDatabaseReplicationUnitResponse( + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private GetCustomerInstanceReportExportContentResponse( 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> { + GetCustomerInstanceReportExportContentResponse> { private int __httpStatusCode__; @Override @@ -76,24 +53,6 @@ public Builder headers(java.util.Map> 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. @@ -118,10 +77,9 @@ public Builder opcRequestId(String opcRequestId) { * @return this builder instance */ @Override - public Builder copy(MoveDistributedDatabaseReplicationUnitResponse o) { + public Builder copy(GetCustomerInstanceReportExportContentResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); - opcWorkRequestId(o.getOpcWorkRequestId()); opcRequestId(o.getOpcRequestId()); return this; @@ -133,9 +91,9 @@ public Builder copy(MoveDistributedDatabaseReplicationUnitResponse o) { * @return the response object */ @Override - public MoveDistributedDatabaseReplicationUnitResponse build() { - return new MoveDistributedDatabaseReplicationUnitResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + public GetCustomerInstanceReportExportContentResponse build() { + return new GetCustomerInstanceReportExportContentResponse( + __httpStatusCode__, headers, opcRequestId); } } @@ -153,7 +111,6 @@ 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(); @@ -164,24 +121,19 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof MoveDistributedDatabaseReplicationUnitResponse)) { + if (!(o instanceof GetCustomerInstanceReportExportContentResponse)) { 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); + GetCustomerInstanceReportExportContentResponse other = + (GetCustomerInstanceReportExportContentResponse) 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.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/GetDistributedAutonomousDatabaseResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetCustomerInstanceReportExportResponse.java similarity index 67% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseResponse.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetCustomerInstanceReportExportResponse.java index 9dcc4518ae8..609352ead32 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseResponse.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetCustomerInstanceReportExportResponse.java @@ -2,12 +2,12 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedAutonomousDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetCustomerInstanceReportExportResponse 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. @@ -36,18 +36,18 @@ public String getEtag() { return etag; } - /** The returned {@code DistributedAutonomousDatabase} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase; + /** The returned {@code CustomerInstanceReportExport} instance. */ + private com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExport + customerInstanceReportExport; /** - * The returned {@code DistributedAutonomousDatabase} instance. + * The returned {@code CustomerInstanceReportExport} instance. * * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - getDistributedAutonomousDatabase() { - return distributedAutonomousDatabase; + public com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExport + getCustomerInstanceReportExport() { + return customerInstanceReportExport; } @java.beans.ConstructorProperties({ @@ -55,24 +55,24 @@ public String getEtag() { "headers", "opcRequestId", "etag", - "distributedAutonomousDatabase" + "customerInstanceReportExport" }) - private GetDistributedAutonomousDatabaseResponse( + private GetCustomerInstanceReportExportResponse( int __httpStatusCode__, java.util.Map> headers, String opcRequestId, String etag, - com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase) { + com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExport + customerInstanceReportExport) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; this.etag = etag; - this.distributedAutonomousDatabase = distributedAutonomousDatabase; + this.customerInstanceReportExport = customerInstanceReportExport; } public static class Builder implements com.oracle.bmc.responses.BmcResponse.Builder< - GetDistributedAutonomousDatabaseResponse> { + GetCustomerInstanceReportExportResponse> { private int __httpStatusCode__; @Override @@ -121,20 +121,20 @@ public Builder etag(String etag) { return this; } - /** The returned {@code DistributedAutonomousDatabase} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase; + /** The returned {@code CustomerInstanceReportExport} instance. */ + private com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExport + customerInstanceReportExport; /** - * The returned {@code DistributedAutonomousDatabase} instance. + * The returned {@code CustomerInstanceReportExport} instance. * - * @param distributedAutonomousDatabase the value to set + * @param customerInstanceReportExport the value to set * @return this builder */ - public Builder distributedAutonomousDatabase( - com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase) { - this.distributedAutonomousDatabase = distributedAutonomousDatabase; + public Builder customerInstanceReportExport( + com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExport + customerInstanceReportExport) { + this.customerInstanceReportExport = customerInstanceReportExport; return this; } @@ -144,12 +144,12 @@ public Builder distributedAutonomousDatabase( * @return this builder instance */ @Override - public Builder copy(GetDistributedAutonomousDatabaseResponse o) { + public Builder copy(GetCustomerInstanceReportExportResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); etag(o.getEtag()); - distributedAutonomousDatabase(o.getDistributedAutonomousDatabase()); + customerInstanceReportExport(o.getCustomerInstanceReportExport()); return this; } @@ -160,9 +160,9 @@ public Builder copy(GetDistributedAutonomousDatabaseResponse o) { * @return the response object */ @Override - public GetDistributedAutonomousDatabaseResponse build() { - return new GetDistributedAutonomousDatabaseResponse( - __httpStatusCode__, headers, opcRequestId, etag, distributedAutonomousDatabase); + public GetCustomerInstanceReportExportResponse build() { + return new GetCustomerInstanceReportExportResponse( + __httpStatusCode__, headers, opcRequestId, etag, customerInstanceReportExport); } } @@ -182,8 +182,8 @@ public String toString() { 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(",customerInstanceReportExport=") + .append(String.valueOf(customerInstanceReportExport)); sb.append(")"); return sb.toString(); } @@ -193,17 +193,16 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof GetDistributedAutonomousDatabaseResponse)) { + if (!(o instanceof GetCustomerInstanceReportExportResponse)) { return false; } - GetDistributedAutonomousDatabaseResponse other = - (GetDistributedAutonomousDatabaseResponse) o; + GetCustomerInstanceReportExportResponse other = (GetCustomerInstanceReportExportResponse) 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); + this.customerInstanceReportExport, other.customerInstanceReportExport); } @Override @@ -214,9 +213,9 @@ public int hashCode() { result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) - + (this.distributedAutonomousDatabase == null + + (this.customerInstanceReportExport == null ? 43 - : this.distributedAutonomousDatabase.hashCode()); + : this.customerInstanceReportExport.hashCode()); return result; } } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminArtifactsResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminArtifactsResponse.java new file mode 100644 index 00000000000..bbdc7aa3994 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminArtifactsResponse.java @@ -0,0 +1,235 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListAdminArtifactsResponse 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 AdminArtifactCollection} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminArtifactCollection + adminArtifactCollection; + + /** + * The returned {@code AdminArtifactCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.AdminArtifactCollection + getAdminArtifactCollection() { + return adminArtifactCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "adminArtifactCollection" + }) + private ListAdminArtifactsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.marketplacepublisher.model.AdminArtifactCollection + adminArtifactCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.adminArtifactCollection = adminArtifactCollection; + } + + 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 AdminArtifactCollection} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminArtifactCollection + adminArtifactCollection; + + /** + * The returned {@code AdminArtifactCollection} instance. + * + * @param adminArtifactCollection the value to set + * @return this builder + */ + public Builder adminArtifactCollection( + com.oracle.bmc.marketplacepublisher.model.AdminArtifactCollection + adminArtifactCollection) { + this.adminArtifactCollection = adminArtifactCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListAdminArtifactsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + adminArtifactCollection(o.getAdminArtifactCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListAdminArtifactsResponse build() { + return new ListAdminArtifactsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + adminArtifactCollection); + } + } + + /** + * 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(",adminArtifactCollection=").append(String.valueOf(adminArtifactCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAdminArtifactsResponse)) { + return false; + } + + ListAdminArtifactsResponse other = (ListAdminArtifactsResponse) 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.adminArtifactCollection, other.adminArtifactCollection); + } + + @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.adminArtifactCollection == null + ? 43 + : this.adminArtifactCollection.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasePrivateEndpointsResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminListingRevisionAttachmentsResponse.java similarity index 67% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasePrivateEndpointsResponse.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminListingRevisionAttachmentsResponse.java index 62d25d4ddff..f7c570edd67 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasePrivateEndpointsResponse.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminListingRevisionAttachmentsResponse.java @@ -2,12 +2,12 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListDistributedDatabasePrivateEndpointsResponse +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListAdminListingRevisionAttachmentsResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a @@ -43,18 +43,18 @@ public String getOpcNextPage() { return opcNextPage; } - /** The returned {@code DistributedDatabasePrivateEndpointCollection} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpointCollection - distributedDatabasePrivateEndpointCollection; + /** The returned {@code AdminListingRevisionAttachmentCollection} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionAttachmentCollection + adminListingRevisionAttachmentCollection; /** - * The returned {@code DistributedDatabasePrivateEndpointCollection} instance. + * The returned {@code AdminListingRevisionAttachmentCollection} instance. * * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpointCollection - getDistributedDatabasePrivateEndpointCollection() { - return distributedDatabasePrivateEndpointCollection; + public com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionAttachmentCollection + getAdminListingRevisionAttachmentCollection() { + return adminListingRevisionAttachmentCollection; } @java.beans.ConstructorProperties({ @@ -62,25 +62,24 @@ public String getOpcNextPage() { "headers", "opcRequestId", "opcNextPage", - "distributedDatabasePrivateEndpointCollection" + "adminListingRevisionAttachmentCollection" }) - private ListDistributedDatabasePrivateEndpointsResponse( + private ListAdminListingRevisionAttachmentsResponse( int __httpStatusCode__, java.util.Map> headers, String opcRequestId, String opcNextPage, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpointCollection - distributedDatabasePrivateEndpointCollection) { + com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionAttachmentCollection + adminListingRevisionAttachmentCollection) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; this.opcNextPage = opcNextPage; - this.distributedDatabasePrivateEndpointCollection = - distributedDatabasePrivateEndpointCollection; + this.adminListingRevisionAttachmentCollection = adminListingRevisionAttachmentCollection; } public static class Builder implements com.oracle.bmc.responses.BmcResponse.Builder< - ListDistributedDatabasePrivateEndpointsResponse> { + ListAdminListingRevisionAttachmentsResponse> { private int __httpStatusCode__; @Override @@ -135,23 +134,21 @@ public Builder opcNextPage(String opcNextPage) { return this; } - /** The returned {@code DistributedDatabasePrivateEndpointCollection} instance. */ - private com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpointCollection - distributedDatabasePrivateEndpointCollection; + /** The returned {@code AdminListingRevisionAttachmentCollection} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionAttachmentCollection + adminListingRevisionAttachmentCollection; /** - * The returned {@code DistributedDatabasePrivateEndpointCollection} instance. + * The returned {@code AdminListingRevisionAttachmentCollection} instance. * - * @param distributedDatabasePrivateEndpointCollection the value to set + * @param adminListingRevisionAttachmentCollection the value to set * @return this builder */ - public Builder distributedDatabasePrivateEndpointCollection( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpointCollection - distributedDatabasePrivateEndpointCollection) { - this.distributedDatabasePrivateEndpointCollection = - distributedDatabasePrivateEndpointCollection; + public Builder adminListingRevisionAttachmentCollection( + com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionAttachmentCollection + adminListingRevisionAttachmentCollection) { + this.adminListingRevisionAttachmentCollection = + adminListingRevisionAttachmentCollection; return this; } @@ -161,13 +158,13 @@ public Builder distributedDatabasePrivateEndpointCollection( * @return this builder instance */ @Override - public Builder copy(ListDistributedDatabasePrivateEndpointsResponse o) { + public Builder copy(ListAdminListingRevisionAttachmentsResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); opcNextPage(o.getOpcNextPage()); - distributedDatabasePrivateEndpointCollection( - o.getDistributedDatabasePrivateEndpointCollection()); + adminListingRevisionAttachmentCollection( + o.getAdminListingRevisionAttachmentCollection()); return this; } @@ -178,13 +175,13 @@ public Builder copy(ListDistributedDatabasePrivateEndpointsResponse o) { * @return the response object */ @Override - public ListDistributedDatabasePrivateEndpointsResponse build() { - return new ListDistributedDatabasePrivateEndpointsResponse( + public ListAdminListingRevisionAttachmentsResponse build() { + return new ListAdminListingRevisionAttachmentsResponse( __httpStatusCode__, headers, opcRequestId, opcNextPage, - distributedDatabasePrivateEndpointCollection); + adminListingRevisionAttachmentCollection); } } @@ -204,8 +201,8 @@ public String toString() { 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(",adminListingRevisionAttachmentCollection=") + .append(String.valueOf(adminListingRevisionAttachmentCollection)); sb.append(")"); return sb.toString(); } @@ -215,18 +212,18 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ListDistributedDatabasePrivateEndpointsResponse)) { + if (!(o instanceof ListAdminListingRevisionAttachmentsResponse)) { return false; } - ListDistributedDatabasePrivateEndpointsResponse other = - (ListDistributedDatabasePrivateEndpointsResponse) o; + ListAdminListingRevisionAttachmentsResponse other = + (ListAdminListingRevisionAttachmentsResponse) 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); + this.adminListingRevisionAttachmentCollection, + other.adminListingRevisionAttachmentCollection); } @Override @@ -237,9 +234,9 @@ public int hashCode() { result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); result = (result * PRIME) - + (this.distributedDatabasePrivateEndpointCollection == null + + (this.adminListingRevisionAttachmentCollection == null ? 43 - : this.distributedDatabasePrivateEndpointCollection.hashCode()); + : this.adminListingRevisionAttachmentCollection.hashCode()); return result; } } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminListingRevisionPackagesResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminListingRevisionPackagesResponse.java new file mode 100644 index 00000000000..8d6facb9af0 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminListingRevisionPackagesResponse.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.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListAdminListingRevisionPackagesResponse 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 AdminListingRevisionPackageCollection} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionPackageCollection + adminListingRevisionPackageCollection; + + /** + * The returned {@code AdminListingRevisionPackageCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionPackageCollection + getAdminListingRevisionPackageCollection() { + return adminListingRevisionPackageCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "adminListingRevisionPackageCollection" + }) + private ListAdminListingRevisionPackagesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionPackageCollection + adminListingRevisionPackageCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.adminListingRevisionPackageCollection = adminListingRevisionPackageCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListAdminListingRevisionPackagesResponse> { + 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 AdminListingRevisionPackageCollection} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionPackageCollection + adminListingRevisionPackageCollection; + + /** + * The returned {@code AdminListingRevisionPackageCollection} instance. + * + * @param adminListingRevisionPackageCollection the value to set + * @return this builder + */ + public Builder adminListingRevisionPackageCollection( + com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionPackageCollection + adminListingRevisionPackageCollection) { + this.adminListingRevisionPackageCollection = adminListingRevisionPackageCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListAdminListingRevisionPackagesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + adminListingRevisionPackageCollection(o.getAdminListingRevisionPackageCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListAdminListingRevisionPackagesResponse build() { + return new ListAdminListingRevisionPackagesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + adminListingRevisionPackageCollection); + } + } + + /** + * 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(",adminListingRevisionPackageCollection=") + .append(String.valueOf(adminListingRevisionPackageCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAdminListingRevisionPackagesResponse)) { + return false; + } + + ListAdminListingRevisionPackagesResponse other = + (ListAdminListingRevisionPackagesResponse) 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.adminListingRevisionPackageCollection, + other.adminListingRevisionPackageCollection); + } + + @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.adminListingRevisionPackageCollection == null + ? 43 + : this.adminListingRevisionPackageCollection.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminListingRevisionsResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminListingRevisionsResponse.java new file mode 100644 index 00000000000..a9cc5ab727b --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminListingRevisionsResponse.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.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListAdminListingRevisionsResponse 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 AdminListingRevisionCollection} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionCollection + adminListingRevisionCollection; + + /** + * The returned {@code AdminListingRevisionCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionCollection + getAdminListingRevisionCollection() { + return adminListingRevisionCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "adminListingRevisionCollection" + }) + private ListAdminListingRevisionsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionCollection + adminListingRevisionCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.adminListingRevisionCollection = adminListingRevisionCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListAdminListingRevisionsResponse> { + 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 AdminListingRevisionCollection} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionCollection + adminListingRevisionCollection; + + /** + * The returned {@code AdminListingRevisionCollection} instance. + * + * @param adminListingRevisionCollection the value to set + * @return this builder + */ + public Builder adminListingRevisionCollection( + com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionCollection + adminListingRevisionCollection) { + this.adminListingRevisionCollection = adminListingRevisionCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListAdminListingRevisionsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + adminListingRevisionCollection(o.getAdminListingRevisionCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListAdminListingRevisionsResponse build() { + return new ListAdminListingRevisionsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + adminListingRevisionCollection); + } + } + + /** + * 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(",adminListingRevisionCollection=") + .append(String.valueOf(adminListingRevisionCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAdminListingRevisionsResponse)) { + return false; + } + + ListAdminListingRevisionsResponse other = (ListAdminListingRevisionsResponse) 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.adminListingRevisionCollection, other.adminListingRevisionCollection); + } + + @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.adminListingRevisionCollection == null + ? 43 + : this.adminListingRevisionCollection.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasesResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminPublisherSkusResponse.java similarity index 72% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasesResponse.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminPublisherSkusResponse.java index 65c96dce99e..ba533be7209 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasesResponse.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminPublisherSkusResponse.java @@ -2,12 +2,12 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListDistributedDatabasesResponse extends com.oracle.bmc.responses.BmcResponse { +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListAdminPublisherSkusResponse 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. @@ -42,18 +42,18 @@ public String getOpcNextPage() { return opcNextPage; } - /** The returned {@code DistributedDatabaseCollection} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCollection - distributedDatabaseCollection; + /** The returned {@code AdminPublisherSkuCollection} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminPublisherSkuCollection + adminPublisherSkuCollection; /** - * The returned {@code DistributedDatabaseCollection} instance. + * The returned {@code AdminPublisherSkuCollection} instance. * * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCollection - getDistributedDatabaseCollection() { - return distributedDatabaseCollection; + public com.oracle.bmc.marketplacepublisher.model.AdminPublisherSkuCollection + getAdminPublisherSkuCollection() { + return adminPublisherSkuCollection; } @java.beans.ConstructorProperties({ @@ -61,24 +61,24 @@ public String getOpcNextPage() { "headers", "opcRequestId", "opcNextPage", - "distributedDatabaseCollection" + "adminPublisherSkuCollection" }) - private ListDistributedDatabasesResponse( + private ListAdminPublisherSkusResponse( int __httpStatusCode__, java.util.Map> headers, String opcRequestId, String opcNextPage, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCollection - distributedDatabaseCollection) { + com.oracle.bmc.marketplacepublisher.model.AdminPublisherSkuCollection + adminPublisherSkuCollection) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; this.opcNextPage = opcNextPage; - this.distributedDatabaseCollection = distributedDatabaseCollection; + this.adminPublisherSkuCollection = adminPublisherSkuCollection; } public static class Builder implements com.oracle.bmc.responses.BmcResponse.Builder< - ListDistributedDatabasesResponse> { + ListAdminPublisherSkusResponse> { private int __httpStatusCode__; @Override @@ -133,20 +133,20 @@ public Builder opcNextPage(String opcNextPage) { return this; } - /** The returned {@code DistributedDatabaseCollection} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCollection - distributedDatabaseCollection; + /** The returned {@code AdminPublisherSkuCollection} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminPublisherSkuCollection + adminPublisherSkuCollection; /** - * The returned {@code DistributedDatabaseCollection} instance. + * The returned {@code AdminPublisherSkuCollection} instance. * - * @param distributedDatabaseCollection the value to set + * @param adminPublisherSkuCollection the value to set * @return this builder */ - public Builder distributedDatabaseCollection( - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCollection - distributedDatabaseCollection) { - this.distributedDatabaseCollection = distributedDatabaseCollection; + public Builder adminPublisherSkuCollection( + com.oracle.bmc.marketplacepublisher.model.AdminPublisherSkuCollection + adminPublisherSkuCollection) { + this.adminPublisherSkuCollection = adminPublisherSkuCollection; return this; } @@ -156,12 +156,12 @@ public Builder distributedDatabaseCollection( * @return this builder instance */ @Override - public Builder copy(ListDistributedDatabasesResponse o) { + public Builder copy(ListAdminPublisherSkusResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); opcNextPage(o.getOpcNextPage()); - distributedDatabaseCollection(o.getDistributedDatabaseCollection()); + adminPublisherSkuCollection(o.getAdminPublisherSkuCollection()); return this; } @@ -172,13 +172,13 @@ public Builder copy(ListDistributedDatabasesResponse o) { * @return the response object */ @Override - public ListDistributedDatabasesResponse build() { - return new ListDistributedDatabasesResponse( + public ListAdminPublisherSkusResponse build() { + return new ListAdminPublisherSkusResponse( __httpStatusCode__, headers, opcRequestId, opcNextPage, - distributedDatabaseCollection); + adminPublisherSkuCollection); } } @@ -198,8 +198,8 @@ public String toString() { 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(",adminPublisherSkuCollection=") + .append(String.valueOf(adminPublisherSkuCollection)); sb.append(")"); return sb.toString(); } @@ -209,16 +209,16 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ListDistributedDatabasesResponse)) { + if (!(o instanceof ListAdminPublisherSkusResponse)) { return false; } - ListDistributedDatabasesResponse other = (ListDistributedDatabasesResponse) o; + ListAdminPublisherSkusResponse other = (ListAdminPublisherSkusResponse) 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); + this.adminPublisherSkuCollection, other.adminPublisherSkuCollection); } @Override @@ -229,9 +229,9 @@ public int hashCode() { result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); result = (result * PRIME) - + (this.distributedDatabaseCollection == null + + (this.adminPublisherSkuCollection == null ? 43 - : this.distributedDatabaseCollection.hashCode()); + : this.adminPublisherSkuCollection.hashCode()); return result; } } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminTermVersionsResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminTermVersionsResponse.java new file mode 100644 index 00000000000..120e97fa325 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminTermVersionsResponse.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.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListAdminTermVersionsResponse 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 AdminTermVersionCollection} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminTermVersionCollection + adminTermVersionCollection; + + /** + * The returned {@code AdminTermVersionCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.AdminTermVersionCollection + getAdminTermVersionCollection() { + return adminTermVersionCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcRequestId", + "adminTermVersionCollection" + }) + private ListAdminTermVersionsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcNextPage, + String opcRequestId, + com.oracle.bmc.marketplacepublisher.model.AdminTermVersionCollection + adminTermVersionCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.adminTermVersionCollection = adminTermVersionCollection; + } + + 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 AdminTermVersionCollection} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminTermVersionCollection + adminTermVersionCollection; + + /** + * The returned {@code AdminTermVersionCollection} instance. + * + * @param adminTermVersionCollection the value to set + * @return this builder + */ + public Builder adminTermVersionCollection( + com.oracle.bmc.marketplacepublisher.model.AdminTermVersionCollection + adminTermVersionCollection) { + this.adminTermVersionCollection = adminTermVersionCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListAdminTermVersionsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + adminTermVersionCollection(o.getAdminTermVersionCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListAdminTermVersionsResponse build() { + return new ListAdminTermVersionsResponse( + __httpStatusCode__, + headers, + opcNextPage, + opcRequestId, + adminTermVersionCollection); + } + } + + /** + * 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(",adminTermVersionCollection=") + .append(String.valueOf(adminTermVersionCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAdminTermVersionsResponse)) { + return false; + } + + ListAdminTermVersionsResponse other = (ListAdminTermVersionsResponse) 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.adminTermVersionCollection, other.adminTermVersionCollection); + } + + @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.adminTermVersionCollection == null + ? 43 + : this.adminTermVersionCollection.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminTermsResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminTermsResponse.java new file mode 100644 index 00000000000..cbdfe70216a --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminTermsResponse.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.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListAdminTermsResponse 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 AdminTermCollection} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminTermCollection adminTermCollection; + + /** + * The returned {@code AdminTermCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.AdminTermCollection getAdminTermCollection() { + return adminTermCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcRequestId", + "adminTermCollection" + }) + private ListAdminTermsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcNextPage, + String opcRequestId, + com.oracle.bmc.marketplacepublisher.model.AdminTermCollection adminTermCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.adminTermCollection = adminTermCollection; + } + + 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 AdminTermCollection} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminTermCollection adminTermCollection; + + /** + * The returned {@code AdminTermCollection} instance. + * + * @param adminTermCollection the value to set + * @return this builder + */ + public Builder adminTermCollection( + com.oracle.bmc.marketplacepublisher.model.AdminTermCollection adminTermCollection) { + this.adminTermCollection = adminTermCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListAdminTermsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + adminTermCollection(o.getAdminTermCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListAdminTermsResponse build() { + return new ListAdminTermsResponse( + __httpStatusCode__, headers, opcNextPage, opcRequestId, adminTermCollection); + } + } + + /** + * 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(",adminTermCollection=").append(String.valueOf(adminTermCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAdminTermsResponse)) { + return false; + } + + ListAdminTermsResponse other = (ListAdminTermsResponse) 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.adminTermCollection, other.adminTermCollection); + } + + @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.adminTermCollection == null + ? 43 + : this.adminTermCollection.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminWorkRequestsResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminWorkRequestsResponse.java new file mode 100644 index 00000000000..d845098bdec --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminWorkRequestsResponse.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.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListAdminWorkRequestsResponse 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 AdminWorkRequestSummaryCollection} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminWorkRequestSummaryCollection + adminWorkRequestSummaryCollection; + + /** + * The returned {@code AdminWorkRequestSummaryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.AdminWorkRequestSummaryCollection + getAdminWorkRequestSummaryCollection() { + return adminWorkRequestSummaryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "adminWorkRequestSummaryCollection" + }) + private ListAdminWorkRequestsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.marketplacepublisher.model.AdminWorkRequestSummaryCollection + adminWorkRequestSummaryCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.adminWorkRequestSummaryCollection = adminWorkRequestSummaryCollection; + } + + 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 AdminWorkRequestSummaryCollection} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AdminWorkRequestSummaryCollection + adminWorkRequestSummaryCollection; + + /** + * The returned {@code AdminWorkRequestSummaryCollection} instance. + * + * @param adminWorkRequestSummaryCollection the value to set + * @return this builder + */ + public Builder adminWorkRequestSummaryCollection( + com.oracle.bmc.marketplacepublisher.model.AdminWorkRequestSummaryCollection + adminWorkRequestSummaryCollection) { + this.adminWorkRequestSummaryCollection = adminWorkRequestSummaryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListAdminWorkRequestsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + adminWorkRequestSummaryCollection(o.getAdminWorkRequestSummaryCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListAdminWorkRequestsResponse build() { + return new ListAdminWorkRequestsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + adminWorkRequestSummaryCollection); + } + } + + /** + * 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(",adminWorkRequestSummaryCollection=") + .append(String.valueOf(adminWorkRequestSummaryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAdminWorkRequestsResponse)) { + return false; + } + + ListAdminWorkRequestsResponse other = (ListAdminWorkRequestsResponse) 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.adminWorkRequestSummaryCollection, + other.adminWorkRequestSummaryCollection); + } + + @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.adminWorkRequestSummaryCollection == null + ? 43 + : this.adminWorkRequestSummaryCollection.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedAutonomousDatabasesResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListCustomerInstanceReportExportsResponse.java similarity index 69% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedAutonomousDatabasesResponse.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListCustomerInstanceReportExportsResponse.java index fcd6cbec4f8..4c2bad1c754 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedAutonomousDatabasesResponse.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListCustomerInstanceReportExportsResponse.java @@ -2,12 +2,12 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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; +package com.oracle.bmc.marketplacepublisher.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListDistributedAutonomousDatabasesResponse +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListCustomerInstanceReportExportsResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a @@ -43,18 +43,18 @@ public String getOpcNextPage() { return opcNextPage; } - /** The returned {@code DistributedAutonomousDatabaseCollection} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCollection - distributedAutonomousDatabaseCollection; + /** The returned {@code CustomerInstanceReportExportCollection} instance. */ + private com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExportCollection + customerInstanceReportExportCollection; /** - * The returned {@code DistributedAutonomousDatabaseCollection} instance. + * The returned {@code CustomerInstanceReportExportCollection} instance. * * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCollection - getDistributedAutonomousDatabaseCollection() { - return distributedAutonomousDatabaseCollection; + public com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExportCollection + getCustomerInstanceReportExportCollection() { + return customerInstanceReportExportCollection; } @java.beans.ConstructorProperties({ @@ -62,24 +62,24 @@ public String getOpcNextPage() { "headers", "opcRequestId", "opcNextPage", - "distributedAutonomousDatabaseCollection" + "customerInstanceReportExportCollection" }) - private ListDistributedAutonomousDatabasesResponse( + private ListCustomerInstanceReportExportsResponse( int __httpStatusCode__, java.util.Map> headers, String opcRequestId, String opcNextPage, - com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCollection - distributedAutonomousDatabaseCollection) { + com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExportCollection + customerInstanceReportExportCollection) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; this.opcNextPage = opcNextPage; - this.distributedAutonomousDatabaseCollection = distributedAutonomousDatabaseCollection; + this.customerInstanceReportExportCollection = customerInstanceReportExportCollection; } public static class Builder implements com.oracle.bmc.responses.BmcResponse.Builder< - ListDistributedAutonomousDatabasesResponse> { + ListCustomerInstanceReportExportsResponse> { private int __httpStatusCode__; @Override @@ -134,20 +134,20 @@ public Builder opcNextPage(String opcNextPage) { return this; } - /** The returned {@code DistributedAutonomousDatabaseCollection} instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCollection - distributedAutonomousDatabaseCollection; + /** The returned {@code CustomerInstanceReportExportCollection} instance. */ + private com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExportCollection + customerInstanceReportExportCollection; /** - * The returned {@code DistributedAutonomousDatabaseCollection} instance. + * The returned {@code CustomerInstanceReportExportCollection} instance. * - * @param distributedAutonomousDatabaseCollection the value to set + * @param customerInstanceReportExportCollection the value to set * @return this builder */ - public Builder distributedAutonomousDatabaseCollection( - com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCollection - distributedAutonomousDatabaseCollection) { - this.distributedAutonomousDatabaseCollection = distributedAutonomousDatabaseCollection; + public Builder customerInstanceReportExportCollection( + com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExportCollection + customerInstanceReportExportCollection) { + this.customerInstanceReportExportCollection = customerInstanceReportExportCollection; return this; } @@ -157,12 +157,12 @@ public Builder distributedAutonomousDatabaseCollection( * @return this builder instance */ @Override - public Builder copy(ListDistributedAutonomousDatabasesResponse o) { + public Builder copy(ListCustomerInstanceReportExportsResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); opcNextPage(o.getOpcNextPage()); - distributedAutonomousDatabaseCollection(o.getDistributedAutonomousDatabaseCollection()); + customerInstanceReportExportCollection(o.getCustomerInstanceReportExportCollection()); return this; } @@ -173,13 +173,13 @@ public Builder copy(ListDistributedAutonomousDatabasesResponse o) { * @return the response object */ @Override - public ListDistributedAutonomousDatabasesResponse build() { - return new ListDistributedAutonomousDatabasesResponse( + public ListCustomerInstanceReportExportsResponse build() { + return new ListCustomerInstanceReportExportsResponse( __httpStatusCode__, headers, opcRequestId, opcNextPage, - distributedAutonomousDatabaseCollection); + customerInstanceReportExportCollection); } } @@ -199,8 +199,8 @@ public String toString() { 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(",customerInstanceReportExportCollection=") + .append(String.valueOf(customerInstanceReportExportCollection)); sb.append(")"); return sb.toString(); } @@ -210,18 +210,18 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ListDistributedAutonomousDatabasesResponse)) { + if (!(o instanceof ListCustomerInstanceReportExportsResponse)) { return false; } - ListDistributedAutonomousDatabasesResponse other = - (ListDistributedAutonomousDatabasesResponse) o; + ListCustomerInstanceReportExportsResponse other = + (ListCustomerInstanceReportExportsResponse) 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); + this.customerInstanceReportExportCollection, + other.customerInstanceReportExportCollection); } @Override @@ -232,9 +232,9 @@ public int hashCode() { result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); result = (result * PRIME) - + (this.distributedAutonomousDatabaseCollection == null + + (this.customerInstanceReportExportCollection == null ? 43 - : this.distributedAutonomousDatabaseCollection.hashCode()); + : this.customerInstanceReportExportCollection.hashCode()); return result; } } diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/UpdateAdminArtifactStatusResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/UpdateAdminArtifactStatusResponse.java new file mode 100644 index 00000000000..c8cc538624a --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/UpdateAdminArtifactStatusResponse.java @@ -0,0 +1,209 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class UpdateAdminArtifactStatusResponse 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 Artifact} instance. */ + private com.oracle.bmc.marketplacepublisher.model.Artifact artifact; + + /** + * The returned {@code Artifact} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.Artifact getArtifact() { + return artifact; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "artifact" + }) + private UpdateAdminArtifactStatusResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.marketplacepublisher.model.Artifact artifact) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.artifact = artifact; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateAdminArtifactStatusResponse> { + 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 Artifact} instance. */ + private com.oracle.bmc.marketplacepublisher.model.Artifact artifact; + + /** + * The returned {@code Artifact} instance. + * + * @param artifact the value to set + * @return this builder + */ + public Builder artifact(com.oracle.bmc.marketplacepublisher.model.Artifact artifact) { + this.artifact = artifact; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateAdminArtifactStatusResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + artifact(o.getArtifact()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateAdminArtifactStatusResponse build() { + return new UpdateAdminArtifactStatusResponse( + __httpStatusCode__, headers, etag, opcRequestId, artifact); + } + } + + /** + * 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(",artifact=").append(String.valueOf(artifact)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateAdminArtifactStatusResponse)) { + return false; + } + + UpdateAdminArtifactStatusResponse other = (UpdateAdminArtifactStatusResponse) 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.artifact, other.artifact); + } + + @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.artifact == null ? 43 : this.artifact.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/UpdateListingRevisionBannerContentResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/UpdateListingRevisionBannerContentResponse.java new file mode 100644 index 00000000000..4bd51a76f82 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/UpdateListingRevisionBannerContentResponse.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.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class UpdateListingRevisionBannerContentResponse + 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 ListingRevision} instance. */ + private com.oracle.bmc.marketplacepublisher.model.ListingRevision listingRevision; + + /** + * The returned {@code ListingRevision} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.ListingRevision getListingRevision() { + return listingRevision; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "listingRevision" + }) + private UpdateListingRevisionBannerContentResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.marketplacepublisher.model.ListingRevision listingRevision) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.listingRevision = listingRevision; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateListingRevisionBannerContentResponse> { + 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 ListingRevision} instance. */ + private com.oracle.bmc.marketplacepublisher.model.ListingRevision listingRevision; + + /** + * The returned {@code ListingRevision} instance. + * + * @param listingRevision the value to set + * @return this builder + */ + public Builder listingRevision( + com.oracle.bmc.marketplacepublisher.model.ListingRevision listingRevision) { + this.listingRevision = listingRevision; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateListingRevisionBannerContentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + listingRevision(o.getListingRevision()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateListingRevisionBannerContentResponse build() { + return new UpdateListingRevisionBannerContentResponse( + __httpStatusCode__, headers, etag, opcRequestId, listingRevision); + } + } + + /** + * 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(",listingRevision=").append(String.valueOf(listingRevision)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateListingRevisionBannerContentResponse)) { + return false; + } + + UpdateListingRevisionBannerContentResponse other = + (UpdateListingRevisionBannerContentResponse) 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.listingRevision, other.listingRevision); + } + + @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.listingRevision == null ? 43 : this.listingRevision.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-marketplacepublisher/reflect-config.json b/bmc-marketplacepublisher/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-marketplacepublisher/reflect-config.json index 33fb2cc4cbd..25a51b9f24d 100644 --- a/bmc-marketplacepublisher/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-marketplacepublisher/reflect-config.json +++ b/bmc-marketplacepublisher/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-marketplacepublisher/reflect-config.json @@ -33,6 +33,700 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminAiAgentListingRevision", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminAiAgentListingRevision$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminAiAgentListingRevision$AssetType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminAiAgentListingRevision$Location", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminArtifact", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminArtifactCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminArtifactCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminArtifactSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminArtifactSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminBillToCountries", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminBillToCountries$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminContainerImageArtifact", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminContainerImageArtifact$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminContainerPackage", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminContainerPackage$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminCustomerSuccessAttachment", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminCustomerSuccessAttachment$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminHelmChartPackage", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminHelmChartPackage$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminKubernetesImageArtifact", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminKubernetesImageArtifact$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminLeadGenListingRevision", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminLeadGenListingRevision$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminListing", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminListing$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminListingProduct", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminListingProduct$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminListingRevision", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionAttachment", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionAttachmentCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionAttachmentCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionAttachmentSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionAttachmentSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionPackage", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionPackageCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionPackageCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionPackageSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionPackageSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionSummary$PricingType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminMachineImageArtifact", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminMachineImageArtifact$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminMachineImagePackage", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminMachineImagePackage$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminMarket", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminMarket$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminOciListingRevision", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminOciListingRevision$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminOpnPartnerSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminOpnPartnerSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminOpnPartnerSummary$MembershipStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminPublisher", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminPublisher$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminPublisherSku", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminPublisherSku$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminPublisherSkuCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminPublisherSkuCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminPublisherSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminPublisherSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminRelatedDocumentAttachment", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminRelatedDocumentAttachment$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminReviewSupportDocumentAttachment", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminReviewSupportDocumentAttachment$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminScreenShotAttachment", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminScreenShotAttachment$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminServiceListingRevision", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminServiceListingRevision$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminSkuPricingRate", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminSkuPricingRate$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminStackArtifact", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminStackArtifact$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminStackPackage", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminStackPackage$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminSupportedServiceAttachment", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminSupportedServiceAttachment$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminTerm", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminTerm$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminTermCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminTermCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminTermSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminTermSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminTermVersion", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminTermVersion$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminTermVersion$TermAuthor", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminTermVersion$Author", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminTermVersionAttachment", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminTermVersionAttachment$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminTermVersionCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminTermVersionCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminTermVersionSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminTermVersionSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminVideoAttachment", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminVideoAttachment$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminWorkRequestSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminWorkRequestSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminWorkRequestSummaryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AdminWorkRequestSummaryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplacepublisher.model.Artifact", @@ -109,7 +803,21 @@ }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.marketplacepublisher.model.AvailableServiceSummary$Builder", + "name": "com.oracle.bmc.marketplacepublisher.model.AvailableServiceSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.BillToCountry", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.BillToCountry$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true @@ -246,6 +954,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.CreateAdminListingRevisionNoteDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.CreateAdminListingRevisionNoteDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplacepublisher.model.CreateArtifactDetails", @@ -421,6 +1143,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.CreateMarketDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.CreateMarketDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplacepublisher.model.CreateOciListingRevisionDetails", @@ -435,6 +1171,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.CreatePublisherDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.CreatePublisherDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplacepublisher.model.CreateRelatedDocumentAttachmentDetails", @@ -575,6 +1325,90 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExport", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExport$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExport$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExport$SortOrder", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExport$SortBy", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExport$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExportCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExportCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExportSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExportSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExportSummary$SortOrder", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExportSummary$SortBy", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExportSummary$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportRecord", @@ -673,6 +1507,38 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.GenerateCustomerInstanceReportExportDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.GenerateCustomerInstanceReportExportDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.GenerateCustomerInstanceReportExportDetails$SortOrder", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.GenerateCustomerInstanceReportExportDetails$SortBy", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.GenerateCustomerInstanceReportExportDetails$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplacepublisher.model.GeoLocation", @@ -721,6 +1587,32 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.HybridPricingPlan", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.HybridPricingPlan$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.HybridPricingPlan$BillingFrequency", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.HybridPricingPlan$PlanDuration", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplacepublisher.model.ImageMemoryConstraints", @@ -917,7 +1809,7 @@ }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.marketplacepublisher.model.ListingPart$MetricType", + "name": "com.oracle.bmc.marketplacepublisher.model.ListingPart$BillingModel", "allDeclaredFields": true, "allDeclaredMethods": true }, @@ -981,6 +1873,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.ListingRevisionAttachment$SourceType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplacepublisher.model.ListingRevisionAttachment$LifecycleState", @@ -1021,6 +1919,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.ListingRevisionBannerAttachment", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.ListingRevisionBannerAttachment$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplacepublisher.model.ListingRevisionCollection", @@ -1308,6 +2220,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.MetricType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplacepublisher.model.NamedLink", @@ -1370,15 +2288,23 @@ }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.marketplacepublisher.model.OpnMembership$OpnStatus", + "name": "com.oracle.bmc.marketplacepublisher.model.PackageType", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.marketplacepublisher.model.PackageType", + "name": "com.oracle.bmc.marketplacepublisher.model.PartnerPortalOptions", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.PartnerPortalOptions$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, @@ -1503,12 +2429,6 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, - { - "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.marketplacepublisher.model.Publisher$PublisherStatus", - "allDeclaredFields": true, - "allDeclaredMethods": true - }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplacepublisher.model.Publisher$PublisherType", @@ -1529,6 +2449,12 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.PublisherStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplacepublisher.model.PublisherSummary", @@ -1603,6 +2529,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.SaaSPricingPlan$PlanDuration", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplacepublisher.model.ScreenShotAttachment", @@ -2001,6 +2933,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.UpdateAdminArtifactStatusDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.UpdateAdminArtifactStatusDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplacepublisher.model.UpdateArtifactDetails", @@ -2344,6 +3290,52 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.UsageBasedPricingPlan", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.UsageBasedPricingPlan$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.UsageBasedPricingPlan$BillingFrequency", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.UsageBasedPricingPlan$PlanDuration", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.UsageDimension", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.UsageDimension$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.UsageDimension$DimensionBillingFrequency", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplacepublisher.model.ValidationStatus", diff --git a/bmc-mediaservices/pom.xml b/bmc-mediaservices/pom.xml index 932a3c16eb0..fe7a9a45135 100644 --- a/bmc-mediaservices/pom.xml +++ b/bmc-mediaservices/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-mediaservices @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-mngdmac/pom.xml b/bmc-mngdmac/pom.xml index e7e56d2a681..7fadd7447a0 100644 --- a/bmc-mngdmac/pom.xml +++ b/bmc-mngdmac/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-mngdmac @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-modeldeployment/pom.xml b/bmc-modeldeployment/pom.xml index 929818b0597..2ae16fa2f4b 100644 --- a/bmc-modeldeployment/pom.xml +++ b/bmc-modeldeployment/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-modeldeployment @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index fbc748f2a6a..e11c11eb606 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-monitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-multicloud/pom.xml b/bmc-multicloud/pom.xml index 6f710465463..ccc1924ae53 100644 --- a/bmc-multicloud/pom.xml +++ b/bmc-multicloud/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-multicloud @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-mysql/pom.xml b/bmc-mysql/pom.xml index 9e2abb298f9..ddb5e7c58ea 100644 --- a/bmc-mysql/pom.xml +++ b/bmc-mysql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-mysql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-networkfirewall/pom.xml b/bmc-networkfirewall/pom.xml index a62436c787c..c6524572786 100644 --- a/bmc-networkfirewall/pom.xml +++ b/bmc-networkfirewall/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-networkfirewall @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-networkloadbalancer/pom.xml b/bmc-networkloadbalancer/pom.xml index fc976bcb966..ad1bbffc263 100644 --- a/bmc-networkloadbalancer/pom.xml +++ b/bmc-networkloadbalancer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-networkloadbalancer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-nosql/pom.xml b/bmc-nosql/pom.xml index 74403cc0db9..82b2697fb31 100644 --- a/bmc-nosql/pom.xml +++ b/bmc-nosql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-nosql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml index 4e17ff0ad22..ec6cd2357c2 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.96.0 + 3.97.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.96.0 + 3.97.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.96.0 + 3.97.0 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index 80e1f5a5187..a2e8df6d1ce 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.96.0 + 3.97.0 ../pom.xml @@ -25,17 +25,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.96.0 + 3.97.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.96.0 + 3.97.0 org.slf4j diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index 2f8dedd57d2..217a028a5bd 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.96.0 + 3.97.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index a4080e42756..70fd2a64f41 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index f46f3c80e53..6da86805598 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-oce @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-ocicontrolcenter/pom.xml b/bmc-ocicontrolcenter/pom.xml index 3534b444e53..f32afc1ca7c 100644 --- a/bmc-ocicontrolcenter/pom.xml +++ b/bmc-ocicontrolcenter/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-ocicontrolcenter @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-ocvp/pom.xml b/bmc-ocvp/pom.xml index 883e50e89e3..a65164ab09e 100644 --- a/bmc-ocvp/pom.xml +++ b/bmc-ocvp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-ocvp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml index c2b626f0551..1654d30f371 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-oda @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-onesubscription/pom.xml b/bmc-onesubscription/pom.xml index ad725f6341d..359dd3fce97 100644 --- a/bmc-onesubscription/pom.xml +++ b/bmc-onesubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-onesubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index 2114c263cf4..1965caa66c5 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-ons @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-opa/pom.xml b/bmc-opa/pom.xml index 5f8b1fec9cb..4ee63b1acec 100644 --- a/bmc-opa/pom.xml +++ b/bmc-opa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-opa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-opensearch/pom.xml b/bmc-opensearch/pom.xml index 71447c0395b..e5de894e07c 100644 --- a/bmc-opensearch/pom.xml +++ b/bmc-opensearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-opensearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-operatoraccesscontrol/pom.xml b/bmc-operatoraccesscontrol/pom.xml index ca8e81511a0..850763e2376 100644 --- a/bmc-operatoraccesscontrol/pom.xml +++ b/bmc-operatoraccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-operatoraccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-opsi/pom.xml b/bmc-opsi/pom.xml index 129b979507f..7cb78c65f78 100644 --- a/bmc-opsi/pom.xml +++ b/bmc-opsi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-opsi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-optimizer/pom.xml b/bmc-optimizer/pom.xml index c87f39d13ea..487a8b1cf8d 100644 --- a/bmc-optimizer/pom.xml +++ b/bmc-optimizer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-optimizer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-osmanagementhub/pom.xml b/bmc-osmanagementhub/pom.xml index 3505cf4730e..686806d7363 100644 --- a/bmc-osmanagementhub/pom.xml +++ b/bmc-osmanagementhub/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-osmanagementhub @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-ospgateway/pom.xml b/bmc-ospgateway/pom.xml index 0124a4bd6ad..23587635d5f 100644 --- a/bmc-ospgateway/pom.xml +++ b/bmc-ospgateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-ospgateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-osubbillingschedule/pom.xml b/bmc-osubbillingschedule/pom.xml index d904342d608..ca015687b5f 100644 --- a/bmc-osubbillingschedule/pom.xml +++ b/bmc-osubbillingschedule/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-osubbillingschedule @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-osuborganizationsubscription/pom.xml b/bmc-osuborganizationsubscription/pom.xml index 4a2ee2f297d..63cb15c14a6 100644 --- a/bmc-osuborganizationsubscription/pom.xml +++ b/bmc-osuborganizationsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-osuborganizationsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-osubsubscription/pom.xml b/bmc-osubsubscription/pom.xml index 8747ca00275..c2e74a66eb9 100644 --- a/bmc-osubsubscription/pom.xml +++ b/bmc-osubsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-osubsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-osubusage/pom.xml b/bmc-osubusage/pom.xml index 7a3fe81b49b..149d946ac39 100644 --- a/bmc-osubusage/pom.xml +++ b/bmc-osubusage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-osubusage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-other-examples/bmc-jersey-examples/pom.xml b/bmc-other-examples/bmc-jersey-examples/pom.xml index e78940916df..ac5f0ee461c 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.96.0 + 3.97.0 Oracle Cloud Infrastructure SDK - Examples using Jersey 2 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 2 HTTP client https://docs.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm @@ -58,7 +58,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.96.0 + 3.97.0 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.96.0 + 3.97.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.96.0 + 3.97.0 pom import diff --git a/bmc-other-examples/bmc-jersey3-examples/pom.xml b/bmc-other-examples/bmc-jersey3-examples/pom.xml index b3fb4f89174..d5ced43a520 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.96.0 + 3.97.0 Oracle Cloud Infrastructure SDK - Examples using Jersey 3 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 3 HTTP client https://docs.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm @@ -58,7 +58,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.96.0 + 3.97.0 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.96.0 + 3.97.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.96.0 + 3.97.0 pom import diff --git a/bmc-other-examples/native-maven-example/pom.xml b/bmc-other-examples/native-maven-example/pom.xml index fe451f214e4..7760145a8cb 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.96.0 + 3.97.0 Oracle Cloud Infrastructure SDK - Native Example This project contains an example on how to use the SDK used for Oracle Cloud Infrastructure in a native executable https://docs.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm @@ -98,14 +98,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.96.0 + 3.97.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.96.0 + 3.97.0 pom import diff --git a/bmc-other-examples/pom.xml b/bmc-other-examples/pom.xml index 5d24d0749df..f2b4465be8c 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.96.0 + 3.97.0 ../pom.xml diff --git a/bmc-psa/pom.xml b/bmc-psa/pom.xml index 4fa9fb282bd..e5218333517 100644 --- a/bmc-psa/pom.xml +++ b/bmc-psa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-psa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-psql/pom.xml b/bmc-psql/pom.xml index 4cb8b15cd10..86683e254cf 100644 --- a/bmc-psql/pom.xml +++ b/bmc-psql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-psql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-queue/pom.xml b/bmc-queue/pom.xml index b8c9ea116c8..daf7b363a20 100644 --- a/bmc-queue/pom.xml +++ b/bmc-queue/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-queue @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-recovery/pom.xml b/bmc-recovery/pom.xml index 9c4bc40fb54..b5b9c454254 100644 --- a/bmc-recovery/pom.xml +++ b/bmc-recovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-recovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-redis/pom.xml b/bmc-redis/pom.xml index c337264e36e..cd6e8c4e965 100644 --- a/bmc-redis/pom.xml +++ b/bmc-redis/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-redis @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-resourceanalytics/pom.xml b/bmc-resourceanalytics/pom.xml index ba512ca1523..c320ee7e7dc 100644 --- a/bmc-resourceanalytics/pom.xml +++ b/bmc-resourceanalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-resourceanalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index 5b050f07850..c29865bfd47 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-resourcemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-resourcescheduler/pom.xml b/bmc-resourcescheduler/pom.xml index 37bf93c1590..8ed38bd55b8 100644 --- a/bmc-resourcescheduler/pom.xml +++ b/bmc-resourcescheduler/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-resourcescheduler @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index 7fdaa8d6a15..75e1d19dd76 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-resourcesearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-rover/pom.xml b/bmc-rover/pom.xml index beabdbfeadc..d5b8a3fbba5 100644 --- a/bmc-rover/pom.xml +++ b/bmc-rover/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-rover @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-sch/pom.xml b/bmc-sch/pom.xml index 1c362f3d17e..84dd7d10b33 100644 --- a/bmc-sch/pom.xml +++ b/bmc-sch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-sch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-secrets/pom.xml b/bmc-secrets/pom.xml index d93316c88a2..3c0d5cc984c 100644 --- a/bmc-secrets/pom.xml +++ b/bmc-secrets/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-secrets @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-securityattribute/pom.xml b/bmc-securityattribute/pom.xml index 9d9c39c7f8b..d4bdc4cb6e3 100644 --- a/bmc-securityattribute/pom.xml +++ b/bmc-securityattribute/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-securityattribute @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-self/pom.xml b/bmc-self/pom.xml index 9a422381c10..153d33da19c 100644 --- a/bmc-self/pom.xml +++ b/bmc-self/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-self @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-servicecatalog/pom.xml b/bmc-servicecatalog/pom.xml index 7e5ce678f25..e4c597eb475 100644 --- a/bmc-servicecatalog/pom.xml +++ b/bmc-servicecatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-servicecatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-servicemanagerproxy/pom.xml b/bmc-servicemanagerproxy/pom.xml index 3a99f26479e..af4686c075d 100644 --- a/bmc-servicemanagerproxy/pom.xml +++ b/bmc-servicemanagerproxy/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-servicemanagerproxy @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-shaded/bmc-shaded-full/pom.xml b/bmc-shaded/bmc-shaded-full/pom.xml index d6c3d18540a..7f13e439b2d 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.96.0 + 3.97.0 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index f1ff487525b..5df6f361a3f 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml diff --git a/bmc-stackmonitoring/pom.xml b/bmc-stackmonitoring/pom.xml index c39d9452597..e3f42692b96 100644 --- a/bmc-stackmonitoring/pom.xml +++ b/bmc-stackmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-stackmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml index fe140a844b9..aacf3f42c64 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-streaming @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-tenantmanagercontrolplane/pom.xml b/bmc-tenantmanagercontrolplane/pom.xml index 8407d0a684f..4478adb515e 100644 --- a/bmc-tenantmanagercontrolplane/pom.xml +++ b/bmc-tenantmanagercontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-tenantmanagercontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-threatintelligence/pom.xml b/bmc-threatintelligence/pom.xml index 267f70741b0..b5c31c5eab2 100644 --- a/bmc-threatintelligence/pom.xml +++ b/bmc-threatintelligence/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-threatintelligence @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-usage/pom.xml b/bmc-usage/pom.xml index 5ca3e966111..caf7b4e9a9b 100644 --- a/bmc-usage/pom.xml +++ b/bmc-usage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-usage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-usageapi/pom.xml b/bmc-usageapi/pom.xml index 1528dd56970..996f5b26d72 100644 --- a/bmc-usageapi/pom.xml +++ b/bmc-usageapi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-usageapi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-vault/pom.xml b/bmc-vault/pom.xml index 44a247baca1..eee936638bb 100644 --- a/bmc-vault/pom.xml +++ b/bmc-vault/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-vault @@ -15,12 +15,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-vbsinst/pom.xml b/bmc-vbsinst/pom.xml index 9484bf4e519..d06da2a50d7 100644 --- a/bmc-vbsinst/pom.xml +++ b/bmc-vbsinst/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-vbsinst @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-visualbuilder/pom.xml b/bmc-visualbuilder/pom.xml index c86ac104059..cc28d4b2ebf 100644 --- a/bmc-visualbuilder/pom.xml +++ b/bmc-visualbuilder/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-visualbuilder @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-vnmonitoring/pom.xml b/bmc-vnmonitoring/pom.xml index fe3910beca3..2a01971948b 100644 --- a/bmc-vnmonitoring/pom.xml +++ b/bmc-vnmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-vnmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-vulnerabilityscanning/pom.xml b/bmc-vulnerabilityscanning/pom.xml index 4e436a4f43a..245506e644d 100644 --- a/bmc-vulnerabilityscanning/pom.xml +++ b/bmc-vulnerabilityscanning/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-vulnerabilityscanning @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-waa/pom.xml b/bmc-waa/pom.xml index baeb0c66637..2b83327fa5e 100644 --- a/bmc-waa/pom.xml +++ b/bmc-waa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-waa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml index 982e61a58f2..ba6a0e97d52 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-waas @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-waf/pom.xml b/bmc-waf/pom.xml index d189c6113b5..9344ed38457 100644 --- a/bmc-waf/pom.xml +++ b/bmc-waf/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-waf @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-wlms/pom.xml b/bmc-wlms/pom.xml index 4b018e87af3..a6245e2e65b 100644 --- a/bmc-wlms/pom.xml +++ b/bmc-wlms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-wlms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml index c95b05c13c8..57a16142190 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-workrequests @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/bmc-zpr/pom.xml b/bmc-zpr/pom.xml index 578332258cd..c6bcb26d21c 100644 --- a/bmc-zpr/pom.xml +++ b/bmc-zpr/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 ../pom.xml oci-java-sdk-zpr @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.96.0 + 3.97.0 \ No newline at end of file diff --git a/pom.xml b/pom.xml index 9a080196bf3..420f6201b50 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 3.96.0 + 3.97.0 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure @@ -681,8 +681,8 @@ bmc-costad bmc-datacc bmc-ddfs - bmc-distributeddatabasev26 bmc-clusterhealth + bmc-distributeddatabase bmc-containerengine bmc-keymanagement bmc-resourcesearch @@ -826,7 +826,6 @@ bmc-mngdmac bmc-lustrefilestorage bmc-modeldeployment - bmc-distributeddatabase bmc-apiaccesscontrol bmc-wlms bmc-dbmulticloud